diff options
Diffstat (limited to 'res')
-rw-r--r-- | res/drawable-hdpi/folder_lock.png | bin | 0 -> 461 bytes | |||
-rw-r--r-- | res/drawable-mdpi/folder_lock.png | bin | 0 -> 372 bytes | |||
-rw-r--r-- | res/drawable-xhdpi/folder_lock.png | bin | 0 -> 601 bytes | |||
-rw-r--r-- | res/drawable-xxhdpi/folder_lock.png | bin | 0 -> 746 bytes | |||
-rw-r--r-- | res/drawable/ic_launch_app.xml | 31 | ||||
-rw-r--r-- | res/drawable/ic_settings_lockscreen.xml | 27 | ||||
-rw-r--r-- | res/drawable/ic_settings_protected.png | bin | 0 -> 750 bytes | |||
-rw-r--r-- | res/drawable/launch_app.xml | 17 | ||||
-rw-r--r-- | res/layout-land/patternlock.xml | 90 | ||||
-rw-r--r-- | res/layout/hidden_apps_list.xml | 21 | ||||
-rw-r--r-- | res/layout/hidden_apps_list_item.xml | 77 | ||||
-rw-r--r-- | res/layout/patternlock.xml | 92 | ||||
-rw-r--r-- | res/layout/protected_account_view.xml | 71 | ||||
-rw-r--r-- | res/values/cm_dimens.xml | 4 | ||||
-rw-r--r-- | res/values/cm_strings.xml | 18 | ||||
-rwxr-xr-x[-rw-r--r--] | res/values/strings.xml | 7 |
16 files changed, 455 insertions, 0 deletions
diff --git a/res/drawable-hdpi/folder_lock.png b/res/drawable-hdpi/folder_lock.png Binary files differnew file mode 100644 index 0000000..ca849e8 --- /dev/null +++ b/res/drawable-hdpi/folder_lock.png diff --git a/res/drawable-mdpi/folder_lock.png b/res/drawable-mdpi/folder_lock.png Binary files differnew file mode 100644 index 0000000..293444e --- /dev/null +++ b/res/drawable-mdpi/folder_lock.png diff --git a/res/drawable-xhdpi/folder_lock.png b/res/drawable-xhdpi/folder_lock.png Binary files differnew file mode 100644 index 0000000..4342c50 --- /dev/null +++ b/res/drawable-xhdpi/folder_lock.png diff --git a/res/drawable-xxhdpi/folder_lock.png b/res/drawable-xxhdpi/folder_lock.png Binary files differnew file mode 100644 index 0000000..4226f6a --- /dev/null +++ b/res/drawable-xxhdpi/folder_lock.png diff --git a/res/drawable/ic_launch_app.xml b/res/drawable/ic_launch_app.xml new file mode 100644 index 0000000..58cb777 --- /dev/null +++ b/res/drawable/ic_launch_app.xml @@ -0,0 +1,31 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="24dp" + android:height="24dp" + android:viewportWidth="96" + android:viewportHeight="96"> + <path + android:fillColor="#009688" + android:pathData="M81.3,12.7H44.8c-0.8,0-1.5,0.5-1.8,1.2c-0.3,0.7-0.1,1.6,0.4,2.2L57.4,30L27.6,59.7 + c-2.4,2.4-2.4,6.2,0,8.6c1.2,1.2,2.8,1.8,4.3,1.8c1.6,0,3.1-0.6,4.3-1.8L66,38.6l13.9,13.9c0.4,0.4,0.9,0.6,1.4,0.6 + c0.3,0,0.5,0,0.8-0.2c0.7-0.3,1.2-1,1.2-1.8V14.7C83.3,13.6,82.4,12.7,81.3,12.7z"/> + + <path + android:fillColor="#009688" + android:pathData="M68.9,50.3c-1.9,0-3.4,1.5-3.4,3.4v22.2H20.1V30.5h20.7c1.9,0,3.4-1.5,3.4-3.4s-1.5-3.4-3.4-3.4H16.6 + c-1.9,0-3.4,1.5-3.4,3.4v52.3c0,1.9,1.5,3.4,3.4,3.4h52.3c1.9,0,3.4-1.5,3.4-3.4V53.7C72.4,51.8,70.8,50.3,68.9,50.3z"/> +</vector> diff --git a/res/drawable/ic_settings_lockscreen.xml b/res/drawable/ic_settings_lockscreen.xml new file mode 100644 index 0000000..390f812 --- /dev/null +++ b/res/drawable/ic_settings_lockscreen.xml @@ -0,0 +1,27 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<vector xmlns:android="http://schemas.android.com/apk/res/android" + android:width="64dp" + android:height="64dp" + android:viewportWidth="48" + android:viewportHeight="48"> + + <path + android:fillColor="#009688" + android:pathData="M36,16h-2v-4c0-5.5-4.5-10-10-10S14,6.5,14,12h3.8c0-3.4,2.8-6.2,6.2-6.2 +s6.2,2.8,6.2,6.2v4H12c-2.2,0-4,1.8-4,4v20c0,2.2,1.8,4,4,4h24c2.2,0,4-1.8,4-4V20C40,17.8,38.2,16,36,16Z +M36,40H12V20L36,40z" /> +</vector> diff --git a/res/drawable/ic_settings_protected.png b/res/drawable/ic_settings_protected.png Binary files differnew file mode 100644 index 0000000..16726d3 --- /dev/null +++ b/res/drawable/ic_settings_protected.png diff --git a/res/drawable/launch_app.xml b/res/drawable/launch_app.xml new file mode 100644 index 0000000..ae5a91b --- /dev/null +++ b/res/drawable/launch_app.xml @@ -0,0 +1,17 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<ripple xmlns:android="http://schemas.android.com/apk/res/android" + android:color="@android:color/darker_gray"/> diff --git a/res/layout-land/patternlock.xml b/res/layout-land/patternlock.xml new file mode 100644 index 0000000..03efa10 --- /dev/null +++ b/res/layout-land/patternlock.xml @@ -0,0 +1,90 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2014, 2014 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="horizontal" + android:fitsSystemWindows="true" > + + <LinearLayout + android:orientation="vertical" + android:layout_width="0dip" + android:layout_height="match_parent" + android:layout_weight="1.0"> + + <!-- header message --> + <TextView android:id="@+id/pattern_lock_header" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:gravity="center" + android:textSize="18sp" + android:paddingTop="20dp" + android:text="@string/lockpattern_recording_intro_header"/> + + <!-- footer can show a message, or confirm / restart buttons --> + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="match_parent"> + + <LinearLayout android:layout_width="match_parent" + android:layout_height="wrap_content" + android:id="@+id/buttonContainer" + android:layout_centerHorizontal="true" + android:layout_alignParentBottom="true" + android:orientation="horizontal"> + + <Button + android:id="@+id/pattern_lock_btn_cancel" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:text="@string/cancel" + android:layout_weight="1"/> + + <Button + android:id="@+id/pattern_lock_btn_continue" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:text="@string/lockpattern_continue_button_text" + android:layout_weight="1"/> + </LinearLayout> + </RelativeLayout> + </LinearLayout> + + <View + android:background="@*android:drawable/code_lock_top" + android:layout_width="2dip" + android:layout_height="match_parent" /> + + <com.android.internal.widget.LockPatternView + android:id="@+id/lock_pattern_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" /> + + <com.android.settings.cyanogenmod.ProtectedAccountView + android:id="@+id/lock_account_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:layout_gravity="center" + android:visibility="gone" > + <include layout="@layout/protected_account_view" /> + </com.android.settings.cyanogenmod.ProtectedAccountView> + +</LinearLayout> diff --git a/res/layout/hidden_apps_list.xml b/res/layout/hidden_apps_list.xml new file mode 100644 index 0000000..fdc1fbf --- /dev/null +++ b/res/layout/hidden_apps_list.xml @@ -0,0 +1,21 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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. +--> +<ListView xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/protected_apps_list" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginLeft="5dp" + android:choiceMode="multipleChoice" /> diff --git a/res/layout/hidden_apps_list_item.xml b/res/layout/hidden_apps_list_item.xml new file mode 100644 index 0000000..4bbb168 --- /dev/null +++ b/res/layout/hidden_apps_list_item.xml @@ -0,0 +1,77 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- Copyright (C) 2015 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:orientation="vertical" > + + <LinearLayout + android:id="@+id/app_item" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:paddingStart="?android:attr/listPreferredItemPaddingStart" + android:paddingEnd="?android:attr/listPreferredItemPaddingEnd" + android:minHeight="48dp" + android:orientation="horizontal" + android:gravity="center_vertical" + android:background="?android:attr/selectableItemBackground" + android:descendantFocusability="blocksDescendants"> + + <ImageView android:id="@+id/icon" + android:layout_width="40dp" + android:layout_height="40dp" + android:layout_gravity="center" /> + + <TextView android:id="@+id/title" + android:layout_width="0dp" + android:layout_height="wrap_content" + android:layout_marginLeft="15dip" + android:layout_marginRight="6dip" + android:layout_marginTop="6dip" + android:layout_marginBottom="6dip" + android:layout_weight="1" + android:singleLine="true" + android:textAppearance="?android:attr/textAppearanceMedium" + android:ellipsize="marquee" + android:fadingEdge="horizontal" /> + + <com.android.settings.widget.InertCheckBox android:id="@+id/checkbox" + android:layout_width="wrap_content" + android:layout_height="wrap_content" /> + + <LinearLayout + android:id="@+id/launch_app" + android:layout_width="wrap_content" + android:layout_height="match_parent" + android:orientation="horizontal" + android:background="@drawable/launch_app" + android:visibility="gone" > + + <View + android:layout_width="1dp" + android:layout_height="match_parent" + android:background="@android:color/darker_gray" /> + + <ImageView + android:layout_width="30dp" + android:layout_height="30dp" + android:src="@drawable/ic_launch_app" + android:layout_gravity="center" + android:layout_marginRight="?android:attr/scrollbarSize" + android:paddingLeft="5dp" /> + </LinearLayout> + </LinearLayout> +</LinearLayout> diff --git a/res/layout/patternlock.xml b/res/layout/patternlock.xml new file mode 100644 index 0000000..46d1393 --- /dev/null +++ b/res/layout/patternlock.xml @@ -0,0 +1,92 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2014, 2014 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:fitsSystemWindows="true" > + + <Space + android:layout_width="1dp" + android:layout_height="0dip" + android:layout_weight=".5" /> + + <TextView + android:id="@+id/pattern_lock_header" + android:layout_width="wrap_content" + android:layout_height="0dip" + android:text="@string/lockpattern_recording_intro_header" + android:layout_weight="1" + android:layout_gravity="center_horizontal" + android:textSize="18sp" /> + + <View + android:background="@*android:drawable/code_lock_top" + android:layout_width="match_parent" + android:layout_height="2dip" /> + + <Space + android:layout_width="1dp" + android:layout_height="0dip" + android:layout_weight=".5" /> + + <com.android.internal.widget.LockPatternView + android:id="@+id/lock_pattern_view" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_gravity="center" + android:layout_weight="4" /> + + <com.android.settings.cyanogenmod.ProtectedAccountView + android:id="@+id/lock_account_view" + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_gravity="center" + android:layout_weight="4" + android:visibility="gone" > + <include layout="@layout/protected_account_view" /> + </com.android.settings.cyanogenmod.ProtectedAccountView> + + <Space + android:layout_width="1dp" + android:layout_height="0dip" + android:layout_weight="1" /> + + <LinearLayout + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:orientation="horizontal" + android:layout_alignParentBottom="true"> + + <Button + android:id="@+id/pattern_lock_btn_cancel" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/cancel"/> + + <Button + android:id="@+id/pattern_lock_btn_continue" + android:layout_width="0dip" + android:layout_height="wrap_content" + android:layout_weight="1" + android:text="@string/lockpattern_continue_button_text"/> + </LinearLayout> +</LinearLayout>
\ No newline at end of file diff --git a/res/layout/protected_account_view.xml b/res/layout/protected_account_view.xml new file mode 100644 index 0000000..e49c329 --- /dev/null +++ b/res/layout/protected_account_view.xml @@ -0,0 +1,71 @@ +<?xml version="1.0" encoding="utf-8"?> +<!-- +** +** Copyright 2014, 2014 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. +*/ +--> +<com.android.settings.cyanogenmod.ProtectedAccountView + xmlns:android="http://schemas.android.com/apk/res/android" + android:id="@+id/pa_account_view" + android:layout_width="match_parent" + android:layout_height="match_parent" + android:orientation="vertical"> + + <RelativeLayout + android:layout_width="match_parent" + android:layout_height="0dip" + android:layout_weight="1"> + + <EditText + android:id="@+id/login" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_marginTop="8dip" + android:layout_marginStart="7dip" + android:layout_marginEnd="7dip" + android:layout_alignParentTop="true" + android:hint="@string/pa_login_username_hint" + android:inputType="textEmailAddress" + /> + + <EditText + android:id="@+id/password" + android:layout_width="match_parent" + android:layout_height="wrap_content" + android:layout_below="@id/login" + android:layout_toLeftOf="@+id/ok" + android:layout_marginTop="15dip" + android:layout_marginStart="7dip" + android:layout_marginEnd="7dip" + android:inputType="textPassword" + android:hint="@string/pa_login_password_hint" + android:nextFocusRight="@+id/ok" + android:nextFocusDown="@+id/ok" + /> + + <!-- ok below password, aligned to right of screen --> + <Button + android:id="@+id/ok" + android:layout_width="wrap_content" + android:layout_height="wrap_content" + android:layout_margin="7dip" + android:layout_alignParentEnd="true" + android:layout_below="@id/login" + android:text="@string/pa_login_submit_button" + /> + + </RelativeLayout> + +</com.android.settings.cyanogenmod.ProtectedAccountView> diff --git a/res/values/cm_dimens.xml b/res/values/cm_dimens.xml index 373a98e..4298d79 100644 --- a/res/values/cm_dimens.xml +++ b/res/values/cm_dimens.xml @@ -18,4 +18,8 @@ <dimen name="profile_instruction_padding">8dp</dimen> <dimen name="fab_line_width">2dp</dimen> <dimen name="oval_notification_size">26dp</dimen> + <!-- Width of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> + <dimen name="pa_security_width">320dp</dimen> + <!-- Height of the sliding KeyguardSecurityContainer (includes 2x keyguard_security_view_margin) --> + <dimen name="pa_security_height">400dp</dimen> </resources> diff --git a/res/values/cm_strings.xml b/res/values/cm_strings.xml index 2050c63..156d9e8 100644 --- a/res/values/cm_strings.xml +++ b/res/values/cm_strings.xml @@ -794,4 +794,22 @@ <string name="preview_carrier_title">Carrier</string> <string name="stats_collection_title">Stats collection</string> <string name="stats_collection_summary">When enabled, allows metrics collection.</string> + + <!-- Protected apps lockpattern reset button --> + <string name="lockpattern_reset_button">Reset pattern</string> + <string name="lockpattern_settings_reset_summary">Enter primary email account and associated password to reset pattern lock</string> + + <!-- Protected Apps --> + <string name="menu_hidden_apps_delete">Reset</string> + <string name="menu_hidden_apps_reset_lock">Reset pattern lock</string> + <string name="protected_apps">Protected apps</string> + <string name="saving_protected_components">Saving component state\u2026</string> + <string name="launch_app">Launch app</string> + + <string name="pa_login_username_hint">Username (email)</string> + <string name="pa_login_password_hint">Password</string> + <string name="pa_login_submit_button">Sign in</string> + <string name="pa_login_checking_password">Checking account\u2026</string> + <string name="pa_login_incorrect_login">Login was incorrect</string> + </resources> diff --git a/res/values/strings.xml b/res/values/strings.xml index fde5c9b..74f1362 100644..100755 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -7062,4 +7062,11 @@ <!-- Description of feature to change color setting for the display [CHAR LIMIT=NONE] --> <string name="picture_color_mode_desc">Use sRGB</string> + + <!-- Protected Apps --> + <string name="menu_hidden_apps_delete">Reset</string> + <string name="menu_hidden_apps_reset_lock">Reset pattern lock</string> + <string name="protected_apps">Protected apps</string> + <string name="saving_protected_components">Saving component state</string> + </resources> |