diff options
author | Danny Baumann <dannybaumann@web.de> | 2014-11-12 17:14:27 -0800 |
---|---|---|
committer | Adnan Begovic <adnan@cyngn.com> | 2015-10-26 16:11:13 -0700 |
commit | d40cd5728a415efd72ee192fa6f67727411ed959 (patch) | |
tree | ae0afabb0d80930130005dd09c6c864e9177cfb1 /res | |
parent | cf65d3f14dce8dae3590daac56bdd59be28e1779 (diff) | |
download | packages_apps_Settings-d40cd5728a415efd72ee192fa6f67727411ed959.zip packages_apps_Settings-d40cd5728a415efd72ee192fa6f67727411ed959.tar.gz packages_apps_Settings-d40cd5728a415efd72ee192fa6f67727411ed959.tar.bz2 |
Profiles : Settings
Change-Id: I072758a1c5ec04ef34077551220b6611068fe71d
Diffstat (limited to 'res')
33 files changed, 851 insertions, 0 deletions
diff --git a/res/drawable-hdpi/ic_location.png b/res/drawable-hdpi/ic_location.png Binary files differnew file mode 100644 index 0000000..be38c05 --- /dev/null +++ b/res/drawable-hdpi/ic_location.png diff --git a/res/drawable-hdpi/ic_menu_add.png b/res/drawable-hdpi/ic_menu_add.png Binary files differnew file mode 100644 index 0000000..4b68f52 --- /dev/null +++ b/res/drawable-hdpi/ic_menu_add.png diff --git a/res/drawable-hdpi/ic_menu_nfc_writer_dark.png b/res/drawable-hdpi/ic_menu_nfc_writer_dark.png Binary files differnew file mode 100644 index 0000000..88fe437 --- /dev/null +++ b/res/drawable-hdpi/ic_menu_nfc_writer_dark.png diff --git a/res/drawable-hdpi/ic_menu_trash_holo_dark.png b/res/drawable-hdpi/ic_menu_trash_holo_dark.png Binary files differnew file mode 100644 index 0000000..c7a0832 --- /dev/null +++ b/res/drawable-hdpi/ic_menu_trash_holo_dark.png diff --git a/res/drawable-hdpi/ic_settings_profiles.png b/res/drawable-hdpi/ic_settings_profiles.png Binary files differnew file mode 100644 index 0000000..f47568d --- /dev/null +++ b/res/drawable-hdpi/ic_settings_profiles.png diff --git a/res/drawable-hdpi/nfc_writer.png b/res/drawable-hdpi/nfc_writer.png Binary files differnew file mode 100644 index 0000000..873e721 --- /dev/null +++ b/res/drawable-hdpi/nfc_writer.png diff --git a/res/drawable-mdpi/ic_location.png b/res/drawable-mdpi/ic_location.png Binary files differnew file mode 100644 index 0000000..9bcee70 --- /dev/null +++ b/res/drawable-mdpi/ic_location.png diff --git a/res/drawable-mdpi/ic_menu_add.png b/res/drawable-mdpi/ic_menu_add.png Binary files differnew file mode 100644 index 0000000..15ffadd --- /dev/null +++ b/res/drawable-mdpi/ic_menu_add.png diff --git a/res/drawable-mdpi/ic_menu_trash_holo_dark.png b/res/drawable-mdpi/ic_menu_trash_holo_dark.png Binary files differnew file mode 100644 index 0000000..b9575aa --- /dev/null +++ b/res/drawable-mdpi/ic_menu_trash_holo_dark.png diff --git a/res/drawable-mdpi/ic_settings_profiles.png b/res/drawable-mdpi/ic_settings_profiles.png Binary files differnew file mode 100644 index 0000000..cc740bd --- /dev/null +++ b/res/drawable-mdpi/ic_settings_profiles.png diff --git a/res/drawable-xhdpi/ic_location.png b/res/drawable-xhdpi/ic_location.png Binary files differnew file mode 100644 index 0000000..0e0be6c --- /dev/null +++ b/res/drawable-xhdpi/ic_location.png diff --git a/res/drawable-xhdpi/ic_menu_add.png b/res/drawable-xhdpi/ic_menu_add.png Binary files differnew file mode 100644 index 0000000..420510e --- /dev/null +++ b/res/drawable-xhdpi/ic_menu_add.png diff --git a/res/drawable-xhdpi/ic_menu_nfc_writer_dark.png b/res/drawable-xhdpi/ic_menu_nfc_writer_dark.png Binary files differnew file mode 100644 index 0000000..417ec98 --- /dev/null +++ b/res/drawable-xhdpi/ic_menu_nfc_writer_dark.png diff --git a/res/drawable-xhdpi/ic_menu_trash_holo_dark.png b/res/drawable-xhdpi/ic_menu_trash_holo_dark.png Binary files differnew file mode 100644 index 0000000..33add13 --- /dev/null +++ b/res/drawable-xhdpi/ic_menu_trash_holo_dark.png diff --git a/res/drawable-xhdpi/ic_settings_profiles.png b/res/drawable-xhdpi/ic_settings_profiles.png Binary files differnew file mode 100644 index 0000000..d6c6911 --- /dev/null +++ b/res/drawable-xhdpi/ic_settings_profiles.png diff --git a/res/drawable-xhdpi/nfc_writer.png b/res/drawable-xhdpi/nfc_writer.png Binary files differnew file mode 100644 index 0000000..60f4d6e --- /dev/null +++ b/res/drawable-xhdpi/nfc_writer.png diff --git a/res/layout/nfc_select.xml b/res/layout/nfc_select.xml new file mode 100644 index 0000000..e72a979 --- /dev/null +++ b/res/layout/nfc_select.xml @@ -0,0 +1,49 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center"> + + <LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:layout_centerInParent="true"> + + <TextView + style="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="30dip" + android:layout_marginEnd="30dip" + android:layout_marginBottom="30dip" + android:layout_gravity="center" + android:text="@string/profile_add_nfc_text" /> + + <Button android:id="@+id/add_tag" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dip" + android:layout_gravity="center" + android:text="@string/profile_select" /> + + </LinearLayout> +</RelativeLayout> diff --git a/res/layout/nfc_writer.xml b/res/layout/nfc_writer.xml new file mode 100644 index 0000000..959217c --- /dev/null +++ b/res/layout/nfc_writer.xml @@ -0,0 +1,57 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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. +--> + +<RelativeLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:gravity="center"> + + <LinearLayout + xmlns:android="http://schemas.android.com/apk/res/android" + android:orientation="vertical" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:layout_centerInParent="true"> + + <TextView + style="?android:attr/textAppearanceMedium" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="30dip" + android:layout_marginEnd="30dip" + android:layout_marginBottom="30dip" + android:layout_gravity="center" + android:text="@string/profile_nfc_text" /> + + <ImageView + android:id="@+id/nfc_writer_image" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:src="@drawable/nfc_writer" /> + + <TextView android:id="@+id/touch_tag" + style="?android:attr/textAppearanceLarge" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginTop="12dip" + android:layout_gravity="center" + android:text="@string/profile_write_touch_tag" /> + + </LinearLayout> +</RelativeLayout> diff --git a/res/layout/preference_name.xml b/res/layout/preference_name.xml new file mode 100644 index 0000000..5b3ff86 --- /dev/null +++ b/res/layout/preference_name.xml @@ -0,0 +1,58 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical"> + + <LinearLayout + android:id="@+id/name_pref" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:clickable="true" + android:focusable="true" + android:paddingStart="@*android:dimen/preference_item_padding_side" + android:paddingEnd="?android:attr/scrollbarSize" + android:background="?android:attr/selectableItemBackground"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginStart="@*android:dimen/preference_icon_minWidth" + android:layout_marginEnd="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView + android:id="@+id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceLarge" + android:ellipsize="marquee" + android:fadingEdge="horizontal"/> + + </RelativeLayout> + + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/preference_profiles.xml b/res/layout/preference_profiles.xml new file mode 100644 index 0000000..916c2ee --- /dev/null +++ b/res/layout/preference_profiles.xml @@ -0,0 +1,96 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical"> + + <LinearLayout + android:id="@+id/profiles_pref" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:clickable="true" + android:focusable="true" + android:background="?android:attr/selectableItemBackground"> + + <LinearLayout + android:id="@android:id/widget_frame" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:gravity="center_vertical|end" + android:orientation="vertical" /> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_marginEnd="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1"> + + <TextView + android:id="@+android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal"/> + + <TextView + android:id="@android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/title" + android:layout_alignStart="@android:id/title" + android:paddingBottom="3dip" + android:visibility="gone" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textSize="13sp" + android:textColor="?android:attr/textColorSecondary" + android:focusable="false" + android:maxLines="4" /> + + </RelativeLayout> + + </LinearLayout> + + <View + android:layout_width="2dip" + android:layout_height="match_parent" + android:layout_marginTop="5dip" + android:layout_marginBottom="5dip" + android:background="@android:drawable/divider_horizontal_dark" /> + + <ImageView + android:id="@+id/profiles_settings" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingStart="15dip" + android:paddingEnd="?android:attr/scrollbarSize" + android:src="@drawable/ic_sysbar_quicksettings" + android:contentDescription="@string/input_method_settings_button" + android:layout_gravity="center" + android:clickable="true" + android:focusable="true" + android:background="?android:attr/selectableItemBackground" /> + +</LinearLayout> diff --git a/res/layout/preference_profiles_widget.xml b/res/layout/preference_profiles_widget.xml new file mode 100644 index 0000000..ab63a10 --- /dev/null +++ b/res/layout/preference_profiles_widget.xml @@ -0,0 +1,23 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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. +--> +<RadioButton + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+android:id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_gravity="center" + android:focusable="false" + android:clickable="false" /> diff --git a/res/layout/preference_streamvolume.xml b/res/layout/preference_streamvolume.xml new file mode 100644 index 0000000..a6675f5 --- /dev/null +++ b/res/layout/preference_streamvolume.xml @@ -0,0 +1,86 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2011 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:layout_width="match_parent" + android:layout_height="wrap_content" + android:minHeight="?android:attr/listPreferredItemHeight" + android:gravity="center_vertical" > + + <LinearLayout + android:id="@+id/text_layout" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:layout_weight="1" + android:gravity="center_vertical" + android:clickable="true" + android:focusable="true" + android:paddingStart="@*android:dimen/preference_item_padding_side" + android:paddingEnd="@*android:dimen/preference_item_padding_inner" + android:background="?android:attr/selectableItemBackground"> + + <RelativeLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:paddingTop="6dip" + android:paddingBottom="6dip" + android:paddingStart="@*android:dimen/preference_icon_minWidth" > + + <TextView android:id="@+android:id/title" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + <TextView android:id="@+android:id/summary" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_below="@android:id/title" + android:layout_alignStart="@android:id/title" + android:textAppearance="?android:attr/textAppearanceSmall" + android:textColor="?android:attr/textColorSecondary" + android:maxLines="2" /> + + </RelativeLayout> + + </LinearLayout> + + <View + android:layout_width="2dip" + android:layout_height="match_parent" + android:layout_marginTop="5dip" + android:layout_marginBottom="5dip" + android:background="@android:drawable/divider_horizontal_dark" /> + + <!-- Preference should place its actual preference widget here. --> + <LinearLayout + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:minWidth="68dip" + android:gravity="center" + android:orientation="vertical" > + + <CheckBox + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/profile_checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:clickable="true" + android:gravity="center" /> + </LinearLayout> + +</LinearLayout> diff --git a/res/layout/profile_name_dialog.xml b/res/layout/profile_name_dialog.xml new file mode 100644 index 0000000..e7c2ed3 --- /dev/null +++ b/res/layout/profile_name_dialog.xml @@ -0,0 +1,38 @@ +<!-- + Copyright (C) 2013 The CyanogenMod 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:layout_width="match_parent" + android:layout_height="wrap_content" + android:baselineAligned="false" + android:orientation="vertical" + android:padding="16dip"> + + <TextView + android:id="@+id/prompt" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingBottom="8dip" + android:textAppearance="?android:attr/textAppearanceSmall" /> + + <EditText + android:id="@+id/name" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" /> + +</LinearLayout> diff --git a/res/layout/profile_tabs.xml b/res/layout/profile_tabs.xml new file mode 100644 index 0000000..7c8f6cb --- /dev/null +++ b/res/layout/profile_tabs.xml @@ -0,0 +1,45 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2013 The CyanogenMod 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:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + <android.support.v4.view.ViewPager + android:id="@+id/pager" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_weight="1"> + <android.support.v4.view.PagerTabStrip + android:id="@+id/tabs" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_gravity="top" + android:textAppearance="@style/TextAppearance.PagerTabs" + android:paddingStart="@dimen/pager_tabs_padding" + android:paddingEnd="@dimen/pager_tabs_padding"> + </android.support.v4.view.PagerTabStrip> + </android.support.v4.view.ViewPager> + + <TextView + android:id="@+id/empty" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:text="@string/profile_empty_list_profiles_off" + android:gravity="center" /> + +</LinearLayout> diff --git a/res/values/cm_arrays.xml b/res/values/cm_arrays.xml index 2692f43..3582200 100644 --- a/res/values/cm_arrays.xml +++ b/res/values/cm_arrays.xml @@ -29,4 +29,87 @@ <item>2</item> <item>3</item> </string-array> + + <!-- Ring mode options. --> + <string-array name="ring_mode_entries" translatable="false"> + <item>@string/ring_mode_normal</item> + <item>@string/ring_mode_vibrate</item> + <item>@string/ring_mode_mute</item> + </string-array> + + <!-- Values for Ring mode. Do not translate. --> + <string-array name="ring_mode_values" translatable="false"> + <item>normal</item> + <item>vibrate</item> + <item>mute</item> + </string-array> + + <!-- Profile mode options. --> + <string-array name="profile_entries"> + <item>On</item> + <item>Off</item> + <item>No override</item> + </string-array> + + <!-- Values for vibrate_entries matching constants in SoundSettings. Do not translate. --> + <string-array name="profile_values" translatable="false"> + <item>OVERRIDE</item> + <item>SUPPRESS</item> + <item>DEFAULT</item> + </string-array> + + <!-- Profile mode options. --> + <string-array name="profile_connection_entries"> + <item>Disable</item> + <item>Enable</item> + </string-array> + + <!-- Profile 2G-3G mode options. --> + <string-array name="profile_networkmode_entries" translatable="false"> + <item>@string/profile_networkmode_2g</item> + <item>@string/profile_networkmode_3g</item> + <item>@string/profile_networkmode_2g3g</item> + </string-array> + + <!-- Values for profile connections. Do not translate. --> + <string-array name="profile_connection_values" translatable="false"> + <item>0</item> + <item>1</item> + <item>2</item> + </string-array> + + <!-- Values for profile Wi-Fi triggers --> + <string-array name="profile_trigger_wifi_options" translatable="false"> + <item>@string/profile_trigger_connect</item> + <item>@string/profile_trigger_disconnect</item> + <item>@string/profile_trigger_notrigger</item> + </string-array> + + <!-- Values for profile trigger types --> + <string-array name="profile_trigger_filters" translatable="false"> + <item>@string/profile_trigger_filter_all</item> + <item>@string/profile_trigger_filter_wifi</item> + <item>@string/profile_trigger_filter_bluetooth</item> + </string-array> + + <!-- Profile lock mode options. Do not translate. --> + <string-array name="profile_lockmode_entries" translatable="false"> + <item>@string/profile_lockmode_default</item> + <item>@string/profile_lockmode_insecure</item> + <item>@string/profile_lockmode_disabled</item> + </string-array> + + <!-- Profile lock mode summaries. Do not translate. --> + <string-array name="profile_lockmode_summaries" translatable="false"> + <item>@string/profile_lockmode_default_summary</item> + <item>@string/profile_lockmode_insecure_summary</item> + <item>@string/profile_lockmode_disabled_summary</item> + </string-array> + + <!-- Values for profile lock mode. Do not translate. --> + <string-array name="profile_lockmode_values" translatable="false"> + <item>0</item> + <item>1</item> + <item>2</item> + </string-array> </resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 5d9bd49..6008082 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -45,4 +45,122 @@ <!-- Themes Settings --> <!-- Settings main menu entry --> <string name="themes_settings_title">Themes</string> + + <!-- Sound settings screen --> + <string name="ring_mode_title">Ring mode</string> + <string name="ring_mode_normal">Normal</string> + <string name="ring_mode_vibrate">Vibrate</string> + <string name="ring_mode_mute">Mute</string> + + <!-- Profiles settings --> + <string name="profiles_settings_title">Profiles</string> + <string name="profiles_add">Add</string> + <string name="profile_menu_delete">Delete</string> + <string name="profile_settings_title">Profile</string> + <string name="profile_empty_list_profiles_off">To configure and use system profiles, turn profiles on.</string> + <string name="profile_trigger_configure">Configure trigger</string> + <string name="profile_triggers">Triggers</string> + <string name="profile_trigger_filter_all">All triggers</string> + <string name="profile_trigger_filter_wifi">Wi-Fi triggers</string> + <string name="profile_trigger_filter_bluetooth">Bluetooth triggers</string> + <string name="profile_write_nfc_tag">Write to NFC tag</string> + <string name="profile_write_touch_tag">Touch tag to write</string> + <string name="profile_write_success">Tag successfully written</string> + <string name="profile_write_failed">Tag writing failed!</string> + <string name="profile_selected">Profile selected: %1$s</string> + <string name="profile_nfc_text">Writing a profile to a NFC tag allows for tapping the tag to select the profile. Tapping a second time will select the previously selected profile.</string> + <string name="profile_unknown_nfc_tag">Unknown profile</string> + <string name="profile_add_nfc_text">This NFC tag refers to an unknown profile. Attaching this NFC tag to an existing profile will allow for selecting the profile in the future.</string> + <string name="profile_select">Select profile</string> + + <!-- Add Profile --> + <string name="add_profile_dialog_title">Create new profile</string> + <string name="profile_name_title">Name</string> + <string name="profile_profile_name_prompt">Enter a name for the new profile</string> + <string name="menu_new_profile">New profile</string> + <string name="new_profile_name"><new profile></string> + + <!-- Rename Dialog --> + <string name="rename_dialog_title">Rename</string> + <string name="rename_dialog_message">Enter a new name</string> + <string name="duplicate_profile_name">Duplicate profile name!</string> + <string name="duplicate_appgroup_name">Duplicate app group name!</string> + + <!-- Reset Profiles --> + <string name="profile_reset_title">Reset</string> + <string name="profile_reset_message">Delete all user created profiles and app groups and restore them to default?</string> + + <!-- Delete confimation messages --> + <string name="profile_delete_confirm">Delete this profile?</string> + <string name="profile_app_delete_confirm">Remove this app?</string> + <string name="profile_cannot_delete">An active profile cannot be deleted</string> + + <!-- Profile network mode --> + <string name="profile_networkmode_2g">2G</string> + <string name="profile_networkmode_3g">3G</string> + <string name="profile_networkmode_2g3g">2G/3G</string> + + <!-- Profile Config screen PreferenceGroup titles --> + <string name="profile_connectionoverrides_title">Connection overrides</string> + <string name="profile_volumeoverrides_title">Volume overrides</string> + <string name="connection_state_disabled">Disable</string> + <string name="connection_state_enabled">Enable</string> + <string name="volume_override_summary">Set to</string> + + <!-- Menu item for managing profiles --> + <string name="profile_profiles_manage">Profiles</string> + <string name="profile_profile_manage">Manage profile</string> + <string name="profile_appgroups_manage">App groups</string> + <string name="profile_appgroup_manage">Manage app group</string> + + <!-- Profile settings screen, section header for settings related to notification profiles --> + <string name="profile_settings">Profile settings</string> + <string name="profile_trigger_connect">On connect</string> + <string name="profile_trigger_disconnect">On disconnect</string> + <string name="profile_trigger_notrigger">No trigger</string> + + <!-- Profile Settings sound modes labels --> + <string name="sound_mode">Notification mode</string> + <string name="ringer_mode">Ring mode</string> + <string name="lights_mode">Lights mode</string> + <string name="vibrate_mode">Vibrate mode</string> + <string name="choose_soundtone">Choose notification tone</string> + <string name="choose_ringtone">Choose ringtone</string> + + <!-- Sound settings screen, setting option name to pick ringtone (a list dialog comes up)--> + <string name="soundtone_title">Notification tone</string> + <string name="soundtone_summary" translatable="false">""</string> + + <!-- Title for application group setting screen --> + <string name="profile_appgroups_title">App groups</string> + <string name="profile_applist_title">Apps</string> + <string name="profile_new_appgroup">New app group</string> + <string name="profile_delete_appgroup">Delete this app group?</string> + <string name="profile_appgroup_name_prompt">Enter a name for the new app group</string> + <string name="profile_appgroup_name_title">Name</string> + + <!-- Add application dialog box title --> + <string name="profile_choose_app">Choose app</string> + + <!-- Profiles - system settings --> + <string name="profile_system_settings_title">System settings</string> + <string name="profile_lockmode_title">Lock screen mode</string> + <string name="profile_lockmode_default">Default</string> + <string name="profile_lockmode_insecure">Insecure</string> + <string name="profile_lockmode_disabled">Disabled</string> + <string name="profile_lockmode_default_summary">Use system default</string> + <string name="profile_lockmode_insecure_summary">Use insecure lock screen</string> + <string name="profile_lockmode_disabled_summary">Lock screen is disabled</string> + <string name="profile_airplanemode_title">Airplane mode</string> + + <!-- Connection override toggles (not all are used at this time ) --> + <string name="toggleWifi">Wi-Fi</string> + <string name="toggleWifiAp">Portable Wi-Fi hotspot</string> + <string name="toggleBluetooth">Bluetooth</string> + <string name="toggleGPS">GPS</string> + <string name="toggleData">Mobile Data</string> + <string name="toggleSync">Data Sync</string> + <string name="toggle2g3g">2G/3G</string> + <string name="toggleWimax">WiMAX</string> + <string name="toggleNfc">NFC</string> </resources> diff --git a/res/values/styles.xml b/res/values/styles.xml index 387acf5..84501c3 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -357,4 +357,9 @@ <style name="SetupWizardStorageStyle" parent="@style/SuwThemeMaterial.Light"> <item name="android:colorAccent">#ff009688</item> </style> + + <style name="ProfilesPreferenceStyle"> + <item name="android:layout">@layout/preference_profiles</item> + <item name="android:widgetLayout">@layout/preference_profiles_widget</item> + </style> </resources> diff --git a/res/xml/appgroup_list.xml b/res/xml/appgroup_list.xml new file mode 100644 index 0000000..a578a19 --- /dev/null +++ b/res/xml/appgroup_list.xml @@ -0,0 +1,22 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + android:key="profile_appgroups_list" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + +</PreferenceScreen> diff --git a/res/xml/application_list.xml b/res/xml/application_list.xml new file mode 100644 index 0000000..da8c201 --- /dev/null +++ b/res/xml/application_list.xml @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2008 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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <PreferenceCategory + android:key="general_section" + android:title="@string/profile_appgroup_name_title"> + </PreferenceCategory> + + <PreferenceCategory + android:key="applications_list" + android:title="@string/profile_applist_title" > + </PreferenceCategory> + +</PreferenceScreen> diff --git a/res/xml/dashboard_categories.xml b/res/xml/dashboard_categories.xml index 6c617d7..202e0ff 100644 --- a/res/xml/dashboard_categories.xml +++ b/res/xml/dashboard_categories.xml @@ -177,6 +177,14 @@ android:key="@string/category_key_personal" android:title="@string/header_category_personal" > + <!-- Profiles --> + <dashboard-tile + android:id="@+id/profile_settings" + android:fragment="com.android.settings.profiles.ProfilesSettings" + android:title="@string/profiles_settings_title" + android:icon="@drawable/ic_settings_location" + /> + <!-- Location --> <dashboard-tile android:id="@+id/location_settings" diff --git a/res/xml/profile_config.xml b/res/xml/profile_config.xml new file mode 100644 index 0000000..6777a30 --- /dev/null +++ b/res/xml/profile_config.xml @@ -0,0 +1,42 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <PreferenceCategory + android:key="profile_general_section" + android:title="@string/profile_name_title"> + </PreferenceCategory> + + <PreferenceCategory + android:key="profile_connectionoverrides" + android:title="@string/profile_connectionoverrides_title" /> + + <PreferenceCategory + android:key="profile_volumeoverrides" + android:title="@string/profile_volumeoverrides_title" /> + + <PreferenceCategory + android:key="profile_system_settings" + android:title="@string/profile_system_settings_title" /> + + <PreferenceCategory + android:key="profile_appgroups" + android:title="@string/profile_appgroups_title" /> + +</PreferenceScreen> diff --git a/res/xml/profile_settings.xml b/res/xml/profile_settings.xml new file mode 100644 index 0000000..8bce716 --- /dev/null +++ b/res/xml/profile_settings.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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. +--> + +<PreferenceScreen xmlns:android="http://schemas.android.com/apk/res/android" + android:title="@string/profile_settings" + android:key="profile_settings" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings"> + + <ListPreference + android:key="sound_mode" + android:title="@string/sound_mode" + android:summary="@string/sound_mode" + android:entries="@array/profile_entries" + android:persistent="false" + android:entryValues="@array/profile_values" /> + + <com.android.settings.profiles.ProfileRingtonePreference + android:key="soundtone" + android:title="@string/soundtone_title" + android:summary="@string/soundtone_summary" + android:dialogTitle="@string/soundtone_title" + android:persistent="false" + android:ringtoneType="notification" /> + + <ListPreference + android:key="ringer_mode" + android:title="@string/ringer_mode" + android:summary="@string/ringer_mode" + android:entries="@array/profile_entries" + android:persistent="false" + android:entryValues="@array/profile_values" /> + + <com.android.settings.profiles.ProfileRingtonePreference + android:key="ringtone" + android:title="@string/ringtone_title" + android:summary="@string/ringtone_summary" + android:dialogTitle="@string/ringtone_title" + android:persistent="false" + android:ringtoneType="ringtone" /> + + <ListPreference + android:key="vibrate_mode" + android:title="@string/vibrate_mode" + android:summary="@string/sound_mode" + android:entries="@array/profile_entries" + android:persistent="false" + android:entryValues="@array/profile_values" /> + + <ListPreference + android:key="lights_mode" + android:title="@string/lights_mode" + android:summary="@string/sound_mode" + android:entries="@array/profile_entries" + android:persistent="false" + android:entryValues="@array/profile_values" /> + + +</PreferenceScreen> diff --git a/res/xml/profiles_settings.xml b/res/xml/profiles_settings.xml new file mode 100644 index 0000000..d3c477c --- /dev/null +++ b/res/xml/profiles_settings.xml @@ -0,0 +1,20 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2012 The CyanogenMod 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. +--> + +<PreferenceScreen + xmlns:android="http://schemas.android.com/apk/res/android" + xmlns:settings="http://schemas.android.com/apk/res/com.android.settings" + android:key="profiles_list" /> |