Home
last modified time | relevance | path

Searched refs:CURRENT_USER_ID (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/devicepolicy/
DDevicePolicyManagerExtTest.kt50 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/
DMagnificationScaleProviderTest.java38 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()
DMagnificationConnectionManagerTest.java79 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()
DMagnificationControllerTest.java110 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()
DFullScreenMagnificationControllerTest.java113 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/
DAppOpsPrivacyItemMonitorTest.kt61 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()
DPrivacyItemControllerTest.kt58 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/
DComplicationHostViewControllerTest.java102 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/
DClock.java80 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()