diff options
author | Chiao Cheng <chiaocheng@google.com> | 2012-08-17 16:59:12 -0700 |
---|---|---|
committer | Chiao Cheng <chiaocheng@google.com> | 2012-08-21 13:31:19 -0700 |
commit | 94b10b530c0fc297e2974e57e094c500d3ee6003 (patch) | |
tree | b74d663c2663b5db2f6da888081648ce054480f5 /tests/res | |
parent | dab5cd8890c0d0ca9001a13c2197114a4002338a (diff) | |
download | android_packages_apps_Dialer-94b10b530c0fc297e2974e57e094c500d3ee6003.tar.gz android_packages_apps_Dialer-94b10b530c0fc297e2974e57e094c500d3ee6003.tar.bz2 android_packages_apps_Dialer-94b10b530c0fc297e2974e57e094c500d3ee6003.zip |
Initial move of dialer features from contacts app.
Bug: 6993891
Change-Id: I758ce359ca7e87a1d184303822979318be171921
Diffstat (limited to 'tests/res')
-rw-r--r-- | tests/res/drawable/default_icon.png | bin | 0 -> 4005 bytes | |||
-rw-r--r-- | tests/res/drawable/phone_icon.png | bin | 0 -> 3621 bytes | |||
-rw-r--r-- | tests/res/layout/fill_call_log_test.xml | 56 | ||||
-rw-r--r-- | tests/res/values/donottranslate_strings.xml | 41 | ||||
-rw-r--r-- | tests/res/xml/iconset.xml | 24 |
5 files changed, 121 insertions, 0 deletions
diff --git a/tests/res/drawable/default_icon.png b/tests/res/drawable/default_icon.png Binary files differnew file mode 100644 index 000000000..cea0eb3b7 --- /dev/null +++ b/tests/res/drawable/default_icon.png diff --git a/tests/res/drawable/phone_icon.png b/tests/res/drawable/phone_icon.png Binary files differnew file mode 100644 index 000000000..4e613ecce --- /dev/null +++ b/tests/res/drawable/phone_icon.png diff --git a/tests/res/layout/fill_call_log_test.xml b/tests/res/layout/fill_call_log_test.xml new file mode 100644 index 000000000..704b9c66e --- /dev/null +++ b/tests/res/layout/fill_call_log_test.xml @@ -0,0 +1,56 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2012 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:gravity="center_horizontal" +> + <TextView + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/numberOfCallLogEntries" + /> + <EditText + android:id="@+id/number" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:inputType="number" + android:text="10" + /> + <CheckBox + android:id="@+id/use_random_numbers" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/useRandomNumbers" + /> + <Button + android:id="@+id/add" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:text="@string/addToCallLogButton" + /> + <ProgressBar + android:id="@+id/progress" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:indeterminate="false" + android:visibility="gone" + /> +</LinearLayout> diff --git a/tests/res/values/donottranslate_strings.xml b/tests/res/values/donottranslate_strings.xml new file mode 100644 index 000000000..ceba5ea96 --- /dev/null +++ b/tests/res/values/donottranslate_strings.xml @@ -0,0 +1,41 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2012 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> +<resources xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2"> + + <string-array name="allIntents"> + <!-- List modes --> + <!-- Various ways to start Contacts --> + <item>DIAL</item> + <item>DIAL phone (deprecated)</item> + <item>DIAL person (deprecated)</item> + <item>DIAL voicemail</item> + <item>CALL BUTTON</item> + <item>DIAL tel</item> + <item>VIEW tel</item> + <item>VIEW calls (call-log after a phone call)</item> + <item>VIEW calls item</item> + <item>CallDetailActivity (legacy)</item> + <item>CallLogActivity (legacy)</item> + </string-array> + + <string name="addToCallLogButton">Add</string> + <string name="useRandomNumbers">Use random numbers</string> + <string name="numberOfCallLogEntries">Number of call log entries to add:</string> + <string name="addedLogEntriesToast">Added %1$d call log entries.</string> + <string name="noLogEntriesToast">No entries in the call log yet. Need at least one record for the template. Or use random numbers.</string> + +</resources> diff --git a/tests/res/xml/iconset.xml b/tests/res/xml/iconset.xml new file mode 100644 index 000000000..ec3894566 --- /dev/null +++ b/tests/res/xml/iconset.xml @@ -0,0 +1,24 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- + ~ Copyright (C) 2012 The Android Open Source Project + ~ + ~ Licensed under the Apache License, Version 2.0 (the "License"); + ~ you may not use this file except in compliance with the License. + ~ You may obtain a copy of the License at + ~ + ~ http://www.apache.org/licenses/LICENSE-2.0 + ~ + ~ Unless required by applicable law or agreed to in writing, software + ~ distributed under the License is distributed on an "AS IS" BASIS, + ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + ~ See the License for the specific language governing permissions and + ~ limitations under the License + --> + +<icon-set xmlns:android="http://schemas.android.com/apk/res/android"> + + <icon-default android:icon="@drawable/default_icon" /> + <icon android:mimeType="vnd.android.cursor.item/phone" + android:icon="@drawable/phone_icon" /> + +</icon-set> |