From 3c24caf3570281ca3fbd424b8a56949b054c6d09 Mon Sep 17 00:00:00 2001 From: menghanli Date: Fri, 18 Feb 2022 04:54:31 +0800 Subject: [PATCH 01/11] Refine A11y Tile Service javadoc - Explicitly say that this is only the class name,to be looked up in the a11y services package, and not a full component name - Fix typo of Javadoc refers to class names (plural) - Rename to getTileServiceName() Bug: 219873375 Test: manual test Change-Id: Ib06e68bd07cb85bffe0fa6ee1c680e4ee4e8e00a --- .../accessibility/AccessibilityDetailsSettingsFragment.java | 2 +- .../android/settings/accessibility/AccessibilitySettings.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/com/android/settings/accessibility/AccessibilityDetailsSettingsFragment.java b/src/com/android/settings/accessibility/AccessibilityDetailsSettingsFragment.java index 2cdbb332e0f..911e2fc82aa 100644 --- a/src/com/android/settings/accessibility/AccessibilityDetailsSettingsFragment.java +++ b/src/com/android/settings/accessibility/AccessibilityDetailsSettingsFragment.java @@ -222,7 +222,7 @@ public class AccessibilityDetailsSettingsFragment extends InstrumentedFragment { new ComponentName(packageName, settingsClassName).flattenToString()); } - final String tileServiceClassName = info.getTileServiceClassName(); + final String tileServiceClassName = info.getTileServiceName(); if (!TextUtils.isEmpty(tileServiceClassName)) { extras.putString(AccessibilitySettings.EXTRA_TILE_SERVICE_COMPONENT_NAME, new ComponentName(packageName, tileServiceClassName).flattenToString()); diff --git a/src/com/android/settings/accessibility/AccessibilitySettings.java b/src/com/android/settings/accessibility/AccessibilitySettings.java index 6539f326734..680ddb74dac 100644 --- a/src/com/android/settings/accessibility/AccessibilitySettings.java +++ b/src/com/android/settings/accessibility/AccessibilitySettings.java @@ -576,7 +576,7 @@ public class AccessibilitySettings extends DashboardFragment { serviceEnabled); final String htmlDescription = info.loadHtmlDescription(mPm); final String settingsClassName = info.getSettingsActivityName(); - final String tileServiceClassName = info.getTileServiceClassName(); + final String tileServiceClassName = info.getTileServiceName(); putBasicExtras(preference, prefKey, title, intro, description, imageRes, htmlDescription, componentName); @@ -637,7 +637,7 @@ public class AccessibilitySettings extends DashboardFragment { final int imageRes = info.getAnimatedImageRes(); final String htmlDescription = info.loadHtmlDescription(mPm); final String settingsClassName = info.getSettingsActivityName(); - final String tileServiceClassName = info.getTileServiceClassName(); + final String tileServiceClassName = info.getTileServiceName(); putBasicExtras(preference, prefKey, title, intro, description, imageRes, htmlDescription, componentName); From f3ce34203a9d07d1efc98103b12c6b706ce46805 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Wed, 23 Feb 2022 08:06:38 +0000 Subject: [PATCH 02/11] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: I359d7ac2de90ff5b5096ee70f30c00c20e2ccebe --- res/values-da/strings.xml | 2 +- res/values-vi/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index e89d636f024..88cc2a19ff7 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -1840,7 +1840,7 @@ "Lokationstjenester" "Min lokation" "Lokation for arbejdsprofil" - "Placeringstilladelser for apps" + "Adgangstilladelse til lokation for apps" "Lokation er slået fra" %1$d ud af %2$d app har adgang til din lokation diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index 70058b1e6e3..c7af148220b 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -1013,7 +1013,7 @@ "Tốc độ nhận" "Tốc độ liên kết" "Tần số" - "Địa chỉa IP" + "Địa chỉ IP" "Đã lưu thông qua" "Thông tin xác thực %1$s" "Phương pháp EAP" From b07f4eca84a4279d84680cb276e74fa487894dc1 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Wed, 23 Feb 2022 08:20:54 +0000 Subject: [PATCH 03/11] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: Icf0bc906bc6e41539af9fa4200ec6fe24d559b0f --- res/values-da/strings.xml | 2 +- res/values-vi/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index e89d636f024..88cc2a19ff7 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -1840,7 +1840,7 @@ "Lokationstjenester" "Min lokation" "Lokation for arbejdsprofil" - "Placeringstilladelser for apps" + "Adgangstilladelse til lokation for apps" "Lokation er slået fra" %1$d ud af %2$d app har adgang til din lokation diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index 70058b1e6e3..c7af148220b 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -1013,7 +1013,7 @@ "Tốc độ nhận" "Tốc độ liên kết" "Tần số" - "Địa chỉa IP" + "Địa chỉ IP" "Đã lưu thông qua" "Thông tin xác thực %1$s" "Phương pháp EAP" From fc83e2a05a2440c19e252705fcc93e393ce9b5e1 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Wed, 23 Feb 2022 08:24:25 +0000 Subject: [PATCH 04/11] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: If758b66584626c3d33a0be4982d4cb5ed55e4687 --- res/values-da/strings.xml | 2 +- res/values-vi/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 299a234df66..73abee3bd9c 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -1841,7 +1841,7 @@ "Lokationstjenester" "Min lokation" "Lokation for arbejdsprofil" - "Placeringstilladelser for apps" + "Adgangstilladelse til lokation for apps" "Lokation er slået fra" %1$d ud af %2$d app har adgang til din lokation diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index 42a9c1dfb19..eea27b30fe9 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -1014,7 +1014,7 @@ "Tốc độ nhận" "Tốc độ liên kết" "Tần số" - "Địa chỉa IP" + "Địa chỉ IP" "Đã lưu thông qua" "Thông tin xác thực %1$s" "Phương pháp EAP" From 674c4b2104019ccd30f0c1bd36dad7965b96b781 Mon Sep 17 00:00:00 2001 From: Bill Yi Date: Wed, 23 Feb 2022 08:27:55 +0000 Subject: [PATCH 05/11] Import translations. DO NOT MERGE ANYWHERE Auto-generated-cl: translation import Change-Id: I42ba3032ed27dd6cc3328c42b6076c9ab07921f3 --- res/values-da/strings.xml | 2 +- res/values-vi/strings.xml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/res/values-da/strings.xml b/res/values-da/strings.xml index 05152b7772c..ce193003c06 100644 --- a/res/values-da/strings.xml +++ b/res/values-da/strings.xml @@ -1835,7 +1835,7 @@ "Lokationstjenester" "Min lokation" "Lokation for arbejdsprofil" - "Placeringstilladelser for apps" + "Adgangstilladelse til lokation for apps" "Lokation er slået fra" %1$d ud af %2$d app har adgang til din lokation diff --git a/res/values-vi/strings.xml b/res/values-vi/strings.xml index bd2055e14cf..7b7669764b4 100644 --- a/res/values-vi/strings.xml +++ b/res/values-vi/strings.xml @@ -1007,7 +1007,7 @@ "Tốc độ nhận" "Tốc độ liên kết" "Tần số" - "Địa chỉa IP" + "Địa chỉ IP" "Đã lưu thông qua" "Thông tin xác thực %1$s" "Phương pháp EAP" From e0f4e795cec86cd35c671ac4b845a5baf8c0a788 Mon Sep 17 00:00:00 2001 From: Aaron Liu Date: Fri, 4 Feb 2022 18:42:29 +0000 Subject: [PATCH 06/11] Home Controls: Add Device Controls settings Add a setting that would not require authorization for device controls. Fixes: 216102581 Test: manual Change-Id: I1fd98a2fbc1cea44d0b2c3612dd1616a053af394 --- res/values/strings.xml | 4 + res/xml/security_lockscreen_settings.xml | 8 +- .../ControlsPrivacyPreferenceController.java | 3 + ...olsTrivialPrivacyPreferenceController.java | 84 ++++++++++ .../security/LockscreenDashboardFragment.java | 28 ++++ ...rivialPrivacyPreferenceControllerTest.java | 157 ++++++++++++++++++ .../LockscreenDashboardFragmentTest.java | 9 + 7 files changed, 292 insertions(+), 1 deletion(-) create mode 100644 src/com/android/settings/display/ControlsTrivialPrivacyPreferenceController.java create mode 100644 tests/robotests/src/com/android/settings/display/ControlsTrivialPrivacyPreferenceControllerTest.java diff --git a/res/values/strings.xml b/res/values/strings.xml index 9d868cbe4ea..17aff1afbff 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -13343,6 +13343,10 @@ Show device controls Access controls when locked + + Control from locked device + + Control external devices without unlocking your phone or tablet if allowed by the device controls app Show double-line clock when available diff --git a/res/xml/security_lockscreen_settings.xml b/res/xml/security_lockscreen_settings.xml index 7ecf200c7ae..b61f4586f31 100644 --- a/res/xml/security_lockscreen_settings.xml +++ b/res/xml/security_lockscreen_settings.xml @@ -29,7 +29,7 @@ settings:keywords="@string/keywords_lock_screen_notif"/> + + T use(Class clazz) { From f93bb8c7e8e094df3d03ef7f1f621c517abe726a Mon Sep 17 00:00:00 2001 From: Peter_Liang Date: Thu, 24 Feb 2022 15:49:10 +0800 Subject: [PATCH 07/11] Override the text size attribute of "Preview" in the text and reading options. Fix: 220265332 Test: manual test Change-Id: Ic06e3dd8b7464b1c09745b10c063a4cafbaf0e2d --- res/values/styles.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/res/values/styles.xml b/res/values/styles.xml index ebaea6b18aa..38277675729 100644 --- a/res/values/styles.xml +++ b/res/values/styles.xml @@ -734,6 +734,7 @@ parent="@android:style/TextAppearance.DeviceDefault.Widget.ActionBar.Title" > center_horizontal 6dp + 14sp