/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/devicepolicy/ |
D | DevicePolicyManagerExtTest.kt | 50 whenever(userTracker.userId).thenReturn(CURRENT_USER_ID) in setUp() 59 assertThat(devicePolicyManager.areKeyguardShortcutsDisabled(userId = CURRENT_USER_ID)) in areKeyguardShortcutsDisabled_noDisabledKeyguardFeature_shouldReturnFalse() 68 assertThat(devicePolicyManager.areKeyguardShortcutsDisabled(userId = CURRENT_USER_ID)) in areKeyguardShortcutsDisabled_otherDisabledKeyguardFeatures_shouldReturnFalse() 77 assertThat(devicePolicyManager.areKeyguardShortcutsDisabled(userId = CURRENT_USER_ID)) in areKeyguardShortcutsDisabled_disabledShortcutsKeyguardFeature_shouldReturnTrue() 86 assertThat(devicePolicyManager.areKeyguardShortcutsDisabled(userId = CURRENT_USER_ID)) in areKeyguardShortcutsDisabled_disabledAllKeyguardFeatures_shouldReturnTrue() 92 const val CURRENT_USER_ID = 123 constant
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/ |
D | MagnificationScaleProviderTest.java | 38 private static final int CURRENT_USER_ID = UserHandle.USER_SYSTEM; field in MagnificationScaleProviderTest 39 private static final int SECOND_USER_ID = CURRENT_USER_ID + 1; 83 mScaleProvider.onUserChanged(CURRENT_USER_ID); in onUserRemoved_setScaleOnSecondUser_fallbackToDefaultScale()
|
D | MagnificationConnectionManagerTest.java | 79 private static final int CURRENT_USER_ID = UserHandle.USER_SYSTEM; field in MagnificationConnectionManagerTest 112 CURRENT_USER_ID); in setUp() 271 CURRENT_USER_ID), 2.5f); in persistScale_setValue_expectedValueInProvider() 285 CURRENT_USER_ID), persistedScale); in persistScale_setValueWhenScaleIsOne_nothingChanged() 558 CURRENT_USER_ID, TEST_DISPLAY, testScale); in onUserMagnificationScaleChanged_hasConnection_invokeConnectionMethod() 560 eq(CURRENT_USER_ID), eq(TEST_DISPLAY), eq(testScale)); in onUserMagnificationScaleChanged_hasConnection_invokeConnectionMethod()
|
D | MagnificationControllerTest.java | 110 private static final int CURRENT_USER_ID = UserHandle.USER_SYSTEM; field in MagnificationControllerTest 111 private static final int SECOND_USER_ID = CURRENT_USER_ID + 1; 197 CURRENT_USER_ID); in setUp() 1330 Settings.Secure.ACCESSIBILITY_MAGNIFICATION_MODE, mode, CURRENT_USER_ID); in setMagnificationModeSettings()
|
D | FullScreenMagnificationControllerTest.java | 113 private static final int CURRENT_USER_ID = UserHandle.USER_SYSTEM; field in FullScreenMagnificationControllerTest 167 CURRENT_USER_ID); in setUp() 170 CURRENT_USER_ID); in setUp() 202 CURRENT_USER_ID); in tearDown()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/privacy/ |
D | AppOpsPrivacyItemMonitorTest.kt | 61 val CURRENT_USER_ID = 1 constant 62 val TEST_UID = CURRENT_USER_ID * UserHandle.PER_USER_RANGE 112 listOf(UserInfo(CURRENT_USER_ID, TEST_PACKAGE_NAME, 0))) in setup() 287 val otherUser = CURRENT_USER_ID + 1 in testListFilterCurrentUser() 312 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneCameraOps() 336 val otherUser = CURRENT_USER_ID + 1 in testAlwaysGetPhoneMicOps()
|
D | PrivacyItemControllerTest.kt | 58 val CURRENT_USER_ID = ActivityManager.getCurrentUser() constant 59 val TEST_UID = CURRENT_USER_ID * UserHandle.PER_USER_RANGE
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/complication/ |
D | ComplicationHostViewControllerTest.java | 102 private static final int CURRENT_USER_ID = UserHandle.USER_SYSTEM; field in ComplicationHostViewControllerTest 118 Settings.Global.ANIMATOR_DURATION_SCALE, 1.0f, CURRENT_USER_ID); in setup()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | Clock.java | 80 private static final String CURRENT_USER_ID = "current_user_id"; field in Clock 157 bundle.putInt(CURRENT_USER_ID, mCurrentUserId); in onSaveInstanceState() 176 if (bundle.containsKey(CURRENT_USER_ID)) { in onRestoreInstanceState() 177 mCurrentUserId = bundle.getInt(CURRENT_USER_ID); in onRestoreInstanceState()
|