Home
last modified time | relevance | path

Searched refs:currentUserId (Results 1 – 25 of 30) sorted by relevance

12

/cts/tests/inputmethod/installtests/src/android/view/inputmethod/cts/installtests/
DMultiUserTest.java128 final int currentUserId = currentUser.id(); in testAdditionalUser() local
132 assertNotEquals(currentUserId, additionalUserId); in testAdditionalUser()
135 assertIme1ImplicitlyEnabledSubtypeNotExist(currentUserId); in testAdditionalUser()
140 assertImeNotExistInApiResult(Ime1Constants.IME_ID, currentUserId); in testAdditionalUser()
142 assertIme1ImplicitlyEnabledSubtypeNotExist(currentUserId); in testAdditionalUser()
149 assertImeNotCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testAdditionalUser()
150 assertImeNotCurrentInputMethodInfo(Ime2Constants.IME_ID, currentUserId); in testAdditionalUser()
155 assertImeNotExistInApiResult(Ime1Constants.IME_ID, currentUserId); in testAdditionalUser()
157 assertIme1ImplicitlyEnabledSubtypeNotExist(currentUserId); in testAdditionalUser()
161 assertImeNotCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testAdditionalUser()
[all …]
DInputMethodServiceSwitchingTest.java74 final int currentUserId = currentUser.id(); in testUninstallCurrentIme() local
77 assertImeInInputMethodList(Ime1Constants.IME_ID, currentUserId); in testUninstallCurrentIme()
79 assertImeNotCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testUninstallCurrentIme()
81 runShellCommandOrThrow(ShellCommandUtils.enableIme(Ime1Constants.IME_ID, currentUserId)); in testUninstallCurrentIme()
83 ShellCommandUtils.setCurrentImeSync(Ime1Constants.IME_ID, currentUserId)); in testUninstallCurrentIme()
85 assertImeInCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testUninstallCurrentIme()
89 assertImeNotCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testUninstallCurrentIme()
95 final int currentUserId = currentUser.id(); in testDisableCurrentIme() local
98 assertImeInInputMethodList(Ime1Constants.IME_ID, currentUserId); in testDisableCurrentIme()
100 assertImeNotCurrentInputMethodInfo(Ime1Constants.IME_ID, currentUserId); in testDisableCurrentIme()
[all …]
DAdditionalSubtypeLifecycleTest.java116 final int currentUserId = currentUser.id(); in testPerUserAdditionalInputMethodSubtype() local
118 assertThat(currentUserId).isNotEqualTo(additionalUserId); in testPerUserAdditionalInputMethodSubtype()
124 new InputMethodSubtype[] {TEST_SUBTYPE1, TEST_SUBTYPE2}, currentUserId); in testPerUserAdditionalInputMethodSubtype()
129 final var subtypeHashCodes = getSubtypeHashCodes(Ime1Constants.IME_ID, currentUserId); in testPerUserAdditionalInputMethodSubtype()
150 final int currentUserId = currentUser.id(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser() local
152 assertThat(currentUserId).isNotEqualTo(additionalUserId); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser()
158 new InputMethodSubtype[] {TEST_SUBTYPE1, TEST_SUBTYPE2}, currentUserId); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser()
166 final var subtypeHashCodes = getSubtypeHashCodes(Ime1Constants.IME_ID, currentUserId); in testClearAdditionalInputMethodSubtypeUponApkUpdateForForegroundUser()
190 final int currentUserId = currentUser.id(); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser() local
192 assertThat(currentUserId).isNotEqualTo(additionalUserId); in testClearAdditionalInputMethodSubtypeUponApkUpdateForBackgroundUser()
[all …]
DMultiUserMockImeTest.java91 final int currentUserId = currentUser.id(); in testProfileSwitching() local
122 currentUserId, isInstant, in testProfileSwitching()
127 MockTestActivityUtil.EXTRA_SHOW_SOFT_INPUT, currentUserId); in testProfileSwitching()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/
DAppCloningHostTest.java224 int currentUserId = getCurrentUserId(); in testCrossUserMediaAccess() local
232 currentUserId, ownerArgs); in testCrossUserMediaAccess()
250 "testMediaStoreManager_verifyCrossUserImagesInSharedStorage", currentUserId, args); in testCrossUserMediaAccess()
262 int currentUserId = getCurrentUserId(); in testGetStorageVolumesIncludingSharedProfiles() local
265 installPackage(APP_A, "--user " + currentUserId); in testGetStorageVolumesIncludingSharedProfiles()
270 currentUserId, args); in testGetStorageVolumesIncludingSharedProfiles()
279 int currentUserId = getCurrentUserId(); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp() local
282 installPackage(APP_A, "--user " + currentUserId); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
285 assertThat(isPackageInstalled(APP_A_PACKAGE, String.valueOf(currentUserId))).isTrue(); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
296 uninstallPackage(APP_A_PACKAGE, currentUserId); in testDeletionOfPrimaryApp_deleteAppWithParentPropertyTrue_deletesCloneApp()
[all …]
/cts/hostsidetests/securitybulletin/src/android/security/cts/
DCVE_2023_21128.java42 int currentUserId = -1; in testPocCVE_2023_21128() local
45 currentUserId = device.getCurrentUser(); in testPocCVE_2023_21128()
54 device.setDeviceOwner(pocDeviceAdminPkg, currentUserId); in testPocCVE_2023_21128()
63 device.removeAdmin(pocDeviceAdminPkg, currentUserId); in testPocCVE_2023_21128()
DCVE_2023_21277.java47 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21277() local
79 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21277()
DCVE_2023_21238.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21238() local
81 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21238()
DCVE_2023_40086.java49 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_40086() local
83 .that(device.switchUser(currentUserId)) in testPocCVE_2023_40086()
DCVE_2023_21279.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21279() local
80 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21279()
DCVE_2023_21286.java48 final int currentUserId = device.getCurrentUser(); in testPocCVE_2023_21286() local
80 assumeTrue(device.switchUser(currentUserId)); in testPocCVE_2023_21286()
/cts/hostsidetests/appsecurity/test-apps/AppDataIsolationTestApp/AppA/src/com/android/cts/appdataisolation/appa/
DIsolatedService.java44 int currentUserId = getCurrentUserId();
46 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
54 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
63 assertDirDoesNotExist("/data/misc/profiles/cur/" + currentUserId + "/"
/cts/hostsidetests/scopedstorage/host/src/android/scopedstorage/cts/host/
DAppCloningMediaProviderHostTest.java124 int currentUserId = getCurrentUserId(); in testInsertCrossUserFilesInDirectoryViaMediaProvider() local
132 currentUserId, ownerArgs); in testInsertCrossUserFilesInDirectoryViaMediaProvider()
137 cloneArgs.put(USER_ID_FOR_PATH, String.valueOf(currentUserId)); in testInsertCrossUserFilesInDirectoryViaMediaProvider()
150 int currentUserId = getCurrentUserId(); in testGetFilesInDirectoryViaMediaProvider() local
155 ownerArgs.put(CURRENT_USER_ID, String.valueOf(currentUserId)); in testGetFilesInDirectoryViaMediaProvider()
158 currentUserId, ownerArgs); in testGetFilesInDirectoryViaMediaProvider()
170 listFilesArgs.put(CURRENT_USER_ID, String.valueOf(currentUserId)); in testGetFilesInDirectoryViaMediaProvider()
174 currentUserId, listFilesArgs); in testGetFilesInDirectoryViaMediaProvider()
DScopedStorageCoreHostTest.java181 int currentUserId = getCurrentUserId(); in grantPermissions() local
184 currentUserId, perm); in grantPermissions()
189 int currentUserId = getCurrentUserId(); in revokePermissions() local
192 currentUserId, perm); in revokePermissions()
DLegacyStorageHostTest.java58 int currentUserId = getCurrentUserId(); in grantPermissions() local
61 currentUserId, perm); in grantPermissions()
66 int currentUserId = getCurrentUserId(); in revokePermissions() local
69 currentUserId, perm); in revokePermissions()
DScopedStorageHostTest.java364 int currentUserId = getCurrentUserId(); in grantPermissionsToPackage() local
367 currentUserId, packageName, perm); in grantPermissionsToPackage()
376 int currentUserId = getCurrentUserId(); in revokePermissions() local
379 currentUserId, perm); in revokePermissions()
/cts/common/host-side/util-axt/src/com/android/compatibility/common/util/
DUserUtil.java57 int currentUserId = device.getCurrentUser(); in getTestUserId() local
59 RUN_TESTS_AS_USER_KEY, currentUserId); in getTestUserId()
60 return currentUserId; in getTestUserId()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DBaseMultiUserTest.java85 int currentUserId = getDevice().getCurrentUser(); in tearDown() local
86 if (currentUserId != mInitialUserId) { in tearDown()
87 CLog.w("User changed during test (to %d). Switching back to %d", currentUserId, in tearDown()
155 final int currentUserId = getDevice().getCurrentUser(); in assertSwitchToUser() local
156 assertWithMessage("Current user is %s, after switching to user %s", currentUserId, toUserId) in assertSwitchToUser()
157 .that(currentUserId).isEqualTo(toUserId); in assertSwitchToUser()
/cts/hostsidetests/appcloning/hostside/src/com/android/cts/appcloning/media/storage/
DAppCloningPublicVolumeTest.java75 int currentUserId = getCurrentUserId(); in testCrossUserMediaAccessInPublicSdCard() local
84 currentUserId, ownerArgs); in testCrossUserMediaAccessInPublicSdCard()
104 "testMediaStoreManager_verifyCrossUserImagesInPublicSdCard", currentUserId, args); in testCrossUserMediaAccessInPublicSdCard()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DUtils.java110 int currentUserId = ActivityManager.getCurrentUser(); in getNotificationManager() local
112 if (currentUserId != contextUserId) { in getNotificationManager()
114 + currentUserId + ") instead of user " + contextUserId in getNotificationManager()
116 context = context.createContextAsUser(UserHandle.of(currentUserId), /* flags= */ 0); in getNotificationManager()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DTestAppCallbacksReceiver.java138 int currentUserId = ActivityManager.getCurrentUser(); in sendBroadcast() local
142 + currentUserId + " using " + bridgeIntent); in sendBroadcast()
143 context.sendBroadcastAsUser(bridgeIntent, UserHandle.of(currentUserId)); in sendBroadcast()
/cts/hostsidetests/backup/src/android/cts/backup/
DBaseMultiUserBackupHostSideTest.java77 int currentUserId = mDevice.getCurrentUser(); in setUp() local
78 mInitialUser = Optional.of(currentUserId); in setUp()
82 if (currentUserId != primaryUserId) { in setUp()
/cts/tests/suspendapps/tests/src/android/suspendapps/cts/
DDistractingPackageTest.java102 final int currentUserId = getCurrentUserId(); in testShouldHideFromSuggestions() local
106 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions()
111 UserHandle.of(currentUserId))); in testShouldHideFromSuggestions()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java349 int currentUserId = getDevice().getCurrentUser(); in getUserIdForTesting() local
352 .that(currentUserId) in getUserIdForTesting()
354 return currentUserId; in getUserIdForTesting()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DCreateAndManageUserTest.java246 int currentUserId = UserHandle.USER_NULL; in newUserDisclaimer() local
255 currentUserId = ActivityManager.getCurrentUser(); in newUserDisclaimer()
256 Log.d(TAG, "currentUserId: " + currentUserId); in newUserDisclaimer()
263 } while (currentUserId != myUserId && attempt < maxAttempts); in newUserDisclaimer()
266 if (currentUserId == UserHandle.USER_NULL) { in newUserDisclaimer()
269 assertWithMessage("current user").that(currentUserId).isEqualTo(myUserId); in newUserDisclaimer()
346 int currentUserId = ActivityManager.getCurrentUser(); in testCreateAndManageUser_LeaveAllSystemApps() local

12