Home
last modified time | relevance | path

Searched refs:testUserId (Results 1 – 12 of 12) sorted by relevance

/frameworks/base/core/tests/coretests/src/com/android/internal/widget/
DLockPatternUtilsTest.java163 int testUserId = 10; in testAddWeakEscrowToken() local
165 mLockPatternUtils.addWeakEscrowToken(testToken, testUserId, listener); in testAddWeakEscrowToken()
166 verify(ils).addWeakEscrowToken(eq(testToken), eq(testUserId), eq(listener)); in testAddWeakEscrowToken()
188 int testUserId = 10; in testRemoveAutoEscrowToken() local
190 mLockPatternUtils.removeWeakEscrowToken(testHandle, testUserId); in testRemoveAutoEscrowToken()
191 verify(ils).removeWeakEscrowToken(eq(testHandle), eq(testUserId)); in testRemoveAutoEscrowToken()
197 int testUserId = 10; in testIsAutoEscrowTokenActive() local
199 mLockPatternUtils.isWeakEscrowTokenActive(testHandle, testUserId); in testIsAutoEscrowTokenActive()
200 verify(ils).isWeakEscrowTokenActive(eq(testHandle), eq(testUserId)); in testIsAutoEscrowTokenActive()
206 int testUserId = 10; in testIsAutoEscrowTokenValid() local
[all …]
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DBatteryStatsCpuTimesTest.java279 final int testUserId = 11; in testReadKernelUidCpuTimesLocked() local
280 when(mUserInfoProvider.exists(testUserId)).thenReturn(true); in testReadKernelUidCpuTimesLocked()
281 final int[] testUids = getUids(testUserId, new int[]{ in testReadKernelUidCpuTimesLocked()
352 final int testUserId = 11; in testReadKernelUidCpuTimesLocked_isolatedUid() local
353 when(mUserInfoProvider.exists(testUserId)).thenReturn(true); in testReadKernelUidCpuTimesLocked_isolatedUid()
355 final int isolatedUid = UserHandle.getUid(testUserId, isolatedAppId); in testReadKernelUidCpuTimesLocked_isolatedUid()
356 final int[] testUids = getUids(testUserId, new int[]{ in testReadKernelUidCpuTimesLocked_isolatedUid()
394 final int ownerUid = UserHandle.getUid(testUserId, FIRST_APPLICATION_UID + 42); in testReadKernelUidCpuTimesLocked_isolatedUid()
440 final int testUserId = 11; in testReadKernelUidCpuTimesLocked_invalidUid() local
443 when(mUserInfoProvider.exists(testUserId)).thenReturn(true); in testReadKernelUidCpuTimesLocked_invalidUid()
[all …]
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/users/
DAppCopyingHelperTest.java124 final int testUserId = mTestUser.getIdentifier(); in testInstallSelectedApps() local
140 when(mIpm.getApplicationInfo(eq("app3"), anyLong(), eq(testUserId))) in testInstallSelectedApps()
144 when(mIpm.getApplicationInfo(eq("app4"), anyLong(), eq(testUserId))) in testInstallSelectedApps()
150 "app1", testUserId, in testInstallSelectedApps()
154 "app2"), eq(testUserId), in testInstallSelectedApps()
157 "app3"), eq(testUserId), in testInstallSelectedApps()
160 "app4", testUserId, in testInstallSelectedApps()
165 eq("app1"), anyBoolean(), eq(testUserId)); in testInstallSelectedApps()
167 eq("app2"), anyBoolean(), eq(testUserId)); in testInstallSelectedApps()
169 eq("app3"), eq(false), eq(testUserId)); in testInstallSelectedApps()
[all …]
DAppRestrictionsHelperTest.java131 final int testUserId = mTestUser.getIdentifier(); in testApplyUserAppsStates() local
138 when(mIpm.getApplicationInfo(eq("app2"), anyLong(), eq(testUserId))) in testApplyUserAppsStates()
143 when(mIpm.getApplicationInfo(eq("app3"), anyLong(), eq(testUserId))) in testApplyUserAppsStates()
150 verify(mIpm, times(1)).installExistingPackageAsUser("app1", testUserId, in testApplyUserAppsStates()
153 verify(mIpm, times(1)).setApplicationHiddenSettingAsUser("app2", false, testUserId); in testApplyUserAppsStates()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/wallpaper/
DWallpaperManagerServiceTests.java270 final int testUserId = MIN_SECONDARY_USER_ID; in testWallpaperDataConstructor() local
272 WallpaperData newWallpaperData = new WallpaperData(testUserId, which); in testWallpaperDataConstructor()
274 assertEquals(testUserId, newWallpaperData.userId); in testWallpaperDataConstructor()
276 WallpaperData wallpaperData = mService.getWallpaperSafeLocked(testUserId, which); in testWallpaperDataConstructor()
308 final int testUserId = USER_SYSTEM; in testSetThenClearComponent() local
309 mService.switchUser(testUserId, null); in testSetThenClearComponent()
310 verifyLastWallpaperData(testUserId, sDefaultWallpaperComponent); in testSetThenClearComponent()
311 verifyCurrentSystemData(testUserId); in testSetThenClearComponent()
314 FLAG_SYSTEM, testUserId); in testSetThenClearComponent()
315 verifyLastWallpaperData(testUserId, sImageWallpaperComponentName); in testSetThenClearComponent()
[all …]
/frameworks/base/services/tests/servicestests/src/com/android/server/biometrics/
DHardwareAuthTokenUtilsTest.java51 final long testUserId = 2000L; in testHardwareAuthTokenLoopBack() local
58 hardwareAuthToken.userId = testUserId; in testHardwareAuthTokenLoopBack()
74 assertEquals(testUserId, hardwareAuthToken2.userId); in testHardwareAuthTokenLoopBack()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/pm/
DBackgroundInstallControlCallbackHelperTest.java84 int testUserId = 1; in notifyAllCallbacks_broadcastsToCallbacks() local
87 mCallbackHelper.notifyAllCallbacks(testUserId, testPackageName); in notifyAllCallbacks_broadcastsToCallbacks()
93 assertEquals(testUserId, receivedBundle.getInt(FLAGGED_USER_ID_KEY)); in notifyAllCallbacks_broadcastsToCallbacks()
/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/magnification/
DMagnificationConnectionWrapperTest.java126 final int testUserId = 1; in onUserMagnificationScaleChanged() local
128 mConnectionWrapper.onUserMagnificationScaleChanged(testUserId, TEST_DISPLAY, testScale); in onUserMagnificationScaleChanged()
130 eq(testUserId), eq(TEST_DISPLAY), eq(testScale)); in onUserMagnificationScaleChanged()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/accessibility/
DIMagnificationConnectionTest.java292 final int testUserId = 1; in onUserMagnificationScaleChanged() local
295 testUserId, TEST_DISPLAY, testScale); in onUserMagnificationScaleChanged()
298 assertTrue(mMagnification.mUsersScales.contains(testUserId)); in onUserMagnificationScaleChanged()
299 assertEquals(mMagnification.mUsersScales.get(testUserId).get(TEST_DISPLAY), in onUserMagnificationScaleChanged()
/frameworks/base/services/tests/BackgroundInstallControlServiceTests/host/test-app/BackgroundInstallControlServiceTestApp/src/com/android/server/pm/test/app/
DBackgroundInstallControlServiceTest.java122 int testUserId = 1; in testRegisterBackgroundInstallControlCallback() local
130 mArray.add(new Pair(testPackageName, testUserId)); in testRegisterBackgroundInstallControlCallback()
146 assertThat(sharedResource.get(0).second).isEqualTo(testUserId); in testRegisterBackgroundInstallControlCallback()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotifyingAppTest.java52 public void testUserId() { in testUserId() method in NotifyingAppTest
/frameworks/base/services/core/java/com/android/server/am/
DUserController.java2139 for (int testUserId : userIds) {
2140 final UserInfo parent = mInjector.getUserManager().getProfileParent(testUserId);
2141 if (parent != null && parent.id == userId && testUserId != userId) {
2142 Slogf.d(TAG, "User " + testUserId + " (parent " + parent.id
2144 maybeUnlockUser(testUserId);