diff --git a/res/drawable/ic_accessibility_animation.xml b/res/drawable/ic_accessibility_animation.xml new file mode 100644 index 00000000000..13bc4a264dc --- /dev/null +++ b/res/drawable/ic_accessibility_animation.xml @@ -0,0 +1,36 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/res/layout-land/udfps_enroll_enrolling_land.xml b/res/layout-land/udfps_enroll_enrolling_land.xml index 7ccd396936b..776f8a9118c 100644 --- a/res/layout-land/udfps_enroll_enrolling_land.xml +++ b/res/layout-land/udfps_enroll_enrolling_land.xml @@ -61,10 +61,10 @@ style="@style/SudGlifIcon" android:layout_width="wrap_content" android:layout_height="wrap_content" - android:layout_gravity="?attr/sudGlifHeaderGravity" + android:scaleType="fitStart" android:layout_marginStart="0dp" android:layout_marginEnd="0dp" - android:src="@drawable/ic_fingerprint_header" /> + android:src="@drawable/ic_lock" /> @*android:color/primary_text_default_material_light + + + ?androidprv:attr/colorSurface diff --git a/res/values/dimens.xml b/res/values/dimens.xml index 4f2dd93a0f4..635bd820704 100755 --- a/res/values/dimens.xml +++ b/res/values/dimens.xml @@ -134,6 +134,7 @@ 48dp 56dp 24dp + 20dp 8dp diff --git a/res/values/strings.xml b/res/values/strings.xml index d845dfd7f95..5e654f96ef2 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -10619,7 +10619,7 @@ Allowing %1$s to always run in the background may reduce battery life. - \n\nYou can change this later from Settings > Apps & notifications. + \n\nYou can change this later from Settings > Apps. %1$s use since last full charge @@ -13625,7 +13625,7 @@ Use print service - Use multiple users + Enable multiple users Use wireless debugging diff --git a/res/xml/accessibility_color_and_motion.xml b/res/xml/accessibility_color_and_motion.xml index af18dbef7e2..a3135261a9a 100644 --- a/res/xml/accessibility_color_and_motion.xml +++ b/res/xml/accessibility_color_and_motion.xml @@ -50,6 +50,7 @@ settings:searchable="false"/> + + diff --git a/res/xml/battery_saver_settings.xml b/res/xml/battery_saver_settings.xml index e1059206be1..862bcd7fbdb 100644 --- a/res/xml/battery_saver_settings.xml +++ b/res/xml/battery_saver_settings.xml @@ -23,6 +23,7 @@ - diff --git a/res/xml/one_handed_settings.xml b/res/xml/one_handed_settings.xml index 7406993d7fc..ab4d6f7c8b7 100644 --- a/res/xml/one_handed_settings.xml +++ b/res/xml/one_handed_settings.xml @@ -46,7 +46,7 @@ android:key="gesture_one_handed_action_pull_screen_down" android:title="@string/one_handed_action_pull_down_screen_title" android:summary="@string/one_handed_action_pull_down_screen_summary" - settings:controller="com.android.settings.gesture_one_handed_mode_footer_textgestures.OneHandedActionPullDownPrefController"/> + settings:controller="com.android.settings.gestures.OneHandedActionPullDownPrefController"/> idCaptor = ArgumentCaptor.forClass(String.class); - verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), idCaptor.capture(), any(), any()); - String safetySourceId = idCaptor.getValue(); - assertThat(safetySourceId).isEqualTo(LockScreenSafetySource.SAFETY_SOURCE_ID); + verify(mSafetyCenterManagerWrapper).setSafetySourceData( + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), any(), any()); } @Test @@ -132,12 +130,9 @@ public class LockScreenSafetySourceTest { LockScreenSafetySource.setSafetySourceData(mApplicationContext, mScreenLockPreferenceDetailsUtils, EVENT_SOURCE_STATE_CHANGED); - ArgumentCaptor eventCaptor = ArgumentCaptor.forClass(SafetyEvent.class); - verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), any(), eventCaptor.capture()); - SafetyEvent safetyEvent = eventCaptor.getValue(); - assertThat(safetyEvent).isEqualTo(EVENT_SOURCE_STATE_CHANGED); + verify(mSafetyCenterManagerWrapper).setSafetySourceData( + any(), any(), any(), eq(EVENT_SOURCE_STATE_CHANGED)); } @Test @@ -176,7 +171,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); @@ -195,7 +190,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); @@ -221,7 +216,7 @@ public class LockScreenSafetySourceTest { } @Test - public void setSafetySourceData_whenLockPatternIsNotSecure_setIssue() { + public void setSafetySourceData_whenLockPatternIsNotSecure_setsIssue() { whenScreenLockIsEnabled(); when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); when(mScreenLockPreferenceDetailsUtils.isLockPatternSecure()).thenReturn(false); @@ -231,7 +226,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); assertThat(safetySourceData.getIssues()).hasSize(1); @@ -244,7 +239,7 @@ public class LockScreenSafetySourceTest { ResourcesUtils.getResourcesString(mApplicationContext, "no_screen_lock_issue_summary")); assertThat(issue.getSeverityLevel()).isEqualTo( - SafetySourceStatus.STATUS_LEVEL_RECOMMENDATION); + SafetySourceIssue.SEVERITY_LEVEL_RECOMMENDATION); assertThat(issue.getIssueTypeId()).isEqualTo( LockScreenSafetySource.NO_SCREEN_LOCK_ISSUE_TYPE_ID); assertThat(issue.getIssueCategory()).isEqualTo(SafetySourceIssue.ISSUE_CATEGORY_DEVICE); @@ -270,7 +265,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); @@ -289,7 +284,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); @@ -311,7 +306,7 @@ public class LockScreenSafetySourceTest { final ArgumentCaptor captor = ArgumentCaptor.forClass( SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); final IconAction iconAction = captor.getValue().getStatus().getIconAction(); assertThat(iconAction.getIconType()).isEqualTo(IconAction.ICON_TYPE_GEAR); @@ -330,7 +325,7 @@ public class LockScreenSafetySourceTest { ArgumentCaptor captor = ArgumentCaptor.forClass(SafetySourceData.class); verify(mSafetyCenterManagerWrapper).setSafetySourceData( - any(), any(), captor.capture(), any()); + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), captor.capture(), any()); SafetySourceData safetySourceData = captor.getValue(); SafetySourceStatus safetySourceStatus = safetySourceData.getStatus(); @@ -338,13 +333,16 @@ public class LockScreenSafetySourceTest { } @Test - public void onLockScreenChange_whenSafetyCenterEnabled_setData() { + public void onLockScreenChange_whenSafetyCenterEnabled_setsLockscreenAndBiometricData() { whenScreenLockIsEnabled(); when(mSafetyCenterManagerWrapper.isEnabled(mApplicationContext)).thenReturn(true); LockScreenSafetySource.onLockScreenChange(mApplicationContext); - verify(mSafetyCenterManagerWrapper).setSafetySourceData(any(), any(), any(), any()); + verify(mSafetyCenterManagerWrapper).setSafetySourceData( + any(), eq(LockScreenSafetySource.SAFETY_SOURCE_ID), any(), any()); + verify(mSafetyCenterManagerWrapper).setSafetySourceData( + any(), eq(BiometricsSafetySource.SAFETY_SOURCE_ID), any(), any()); } @Test