Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 41) sorted by relevance

12

/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DExternalStorageHostTest.java125 for (int user : mUsers) { in testExternalStorageRename()
126 runDeviceTests(WRITE_PKG, WRITE_CLASS, "testExternalStorageRename", user); in testExternalStorageRename()
145 for (int user : mUsers) { in testExternalStorageNone()
146 runDeviceTests(NONE_PKG, COMMON_CLASS, user); in testExternalStorageNone()
147 runDeviceTests(NONE_PKG, NONE_CLASS, user); in testExternalStorageNone()
168 for (int user : mUsers) { in testExternalStorageRead()
169 runDeviceTests(READ_PKG, COMMON_CLASS, user); in testExternalStorageRead()
170 runDeviceTests(READ_PKG, READ_CLASS, user); in testExternalStorageRead()
191 for (int user : mUsers) { in testExternalStorageWrite()
192 runDeviceTests(WRITE_PKG, COMMON_CLASS, user); in testExternalStorageWrite()
[all …]
DStorageHostTest.java61 for (int user : mUsers) { in setUp()
62 getDevice().executeShellCommand("appops set --user " + user + " " + PKG_STATS in setUp()
83 for (int user : mUsers) { in testVerifyAppStats()
84 runDeviceTests(PKG_A, CLASS, "testAllocate", user); in testVerifyAppStats()
93 for (int user : mUsers) { in testVerifyAppStats()
94 runDeviceTests(PKG_A, CLASS, "testVerifySpaceManual", user); in testVerifyAppStats()
95 runDeviceTests(PKG_A, CLASS, "testVerifySpaceApi", user); in testVerifyAppStats()
101 for (int user : mUsers) { in testVerifyAppQuota()
102 runDeviceTests(PKG_A, CLASS, "testVerifyQuotaApi", user); in testVerifyAppQuota()
108 for (int user : mUsers) { in testVerifyAppAllocate()
[all …]
DUtils.java170 for (Integer user : device.listUsers()) { in getAllUsers()
171 if ((user != USER_SYSTEM) && (user != primary)) { in getAllUsers()
173 users[users.length - 1] = user; in getAllUsers()
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/
DLauncherCallbackTestsService.java172 UserHandle user = params.getParcelable(USER_EXTRA); in eventExists() local
174 Log.i(TAG, "checking for " + packageName + " " + user); in eventExists()
178 if (event.first.equals(packageName) && event.second.equals(user)) { in eventExists()
179 Log.i(TAG, "Event exists " + packageName + " for user " + user); in eventExists()
196 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument
197 Log.i(TAG, "package removed event " + packageName + " " + user); in onPackageRemoved()
199 mPackagesRemoved.put(new Pair(packageName, user)); in onPackageRemoved()
205 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument
206 Log.i(TAG, "package added event " + packageName + " " + user); in onPackageAdded()
208 mPackagesAdded.put(new Pair(packageName, user)); in onPackageAdded()
[all …]
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/scripts/
Dgenerate-client-cert-chain.sh65 -keyout user.key.pem \
68 -out user.csr.pem
77 -in user.csr.pem \
78 -out user.cert.pem
84 "$WORKDIR"/user.cert.pem \
87 > "$TARGETDIR"/user-cert-chain.crt
94 -in "$WORKDIR"/user.key.pem \
95 -out "$TARGETDIR"/user-cert-chain.key
/cts/hostsidetests/appsecurity/test-apps/StorageStatsApp/src/com/android/cts/storagestatsapp/
DStorageStatsTest.java111 final UserHandle user = UserHandle.getUserHandleForUid(uid); in testVerifyStats() local
114 final StorageStats beforeUser = stats.queryStatsForUser(UUID_DEFAULT, user); in testVerifyStats()
119 final StorageStats afterUser = stats.queryStatsForUser(UUID_DEFAULT, user); in testVerifyStats()
168 final UserHandle user = UserHandle.getUserHandleForUid(uid); in testVerifyStatsExternal() local
170 final ExternalStorageStats before = stats.queryExternalStatsForUser(UUID_DEFAULT, user); in testVerifyStatsExternal()
188 final ExternalStorageStats afterInit = stats.queryExternalStatsForUser(UUID_DEFAULT, user); in testVerifyStatsExternal()
199 … final ExternalStorageStats afterRename = stats.queryExternalStatsForUser(UUID_DEFAULT, user); in testVerifyStatsExternal()
214 final UserHandle user = android.os.Process.myUserHandle(); in testVerifyStatsExternalConsistent() local
234 final long statsSize = stats.queryExternalStatsForUser(UUID_DEFAULT, user).getTotalBytes(); in testVerifyStatsExternalConsistent()
252 final UserHandle user = android.os.Process.myUserHandle(); in testCacheClearing() local
[all …]
/cts/tests/tests/content/src/android/content/om/cts/
DOverlayManagerTest.java62 UserHandle user = UserHandle.of(userId); in testSetEnabled() local
66 mManager.setEnabled(packageName, true, user); in testSetEnabled()
74 UserHandle user = UserHandle.of(userId); in testSetEnabledExclusiveInCategory() local
78 mManager.setEnabledExclusiveInCategory(packageName, user); in testSetEnabledExclusiveInCategory()
86 UserHandle user = UserHandle.of(userId); in testGetOverlayInfosForTarget() local
88 mManager.getOverlayInfosForTarget(targetPackageName, user); in testGetOverlayInfosForTarget()
/cts/tests/tests/shortcutmanager/src/android/content/pm/cts/shortcutmanager/
DShortcutManagerLauncherCallbackTest.java58 public void onPackageRemoved(String packageName, UserHandle user) { in onPackageRemoved() argument
62 public void onPackageAdded(String packageName, UserHandle user) { in onPackageAdded() argument
66 public void onPackageChanged(String packageName, UserHandle user) { in onPackageChanged() argument
70 public void onPackagesAvailable(String[] packageNames, UserHandle user, boolean replacing) { in onPackagesAvailable() argument
74 public void onPackagesUnavailable(String[] packageNames, UserHandle user, in onPackagesUnavailable() argument
80 String packageName, List<ShortcutInfo> shortcuts, UserHandle user) { in onShortcutsChanged() argument
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java128 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
132 mRoleManager.addRoleHolderAsUser(roleName, packageName, 0, user, executor, in addRoleHolder()
147 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
151 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolder()
DCallRedirectionServiceTest.java252 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
257 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder()
271 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
276 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
DThirdPartyCallScreeningServiceTest.java556 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
561 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder()
575 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
580 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
/cts/hostsidetests/classloaders/useslibrary/src/android/classloaders/cts/
DUtils.java151 for (Integer user : device.listUsers()) { in getAllUsers()
152 if ((user != USER_SYSTEM) && (user != primary)) { in getAllUsers()
154 users[users.length - 1] = user; in getAllUsers()
/cts/hostsidetests/shortcuts/deviceside/multiuser/src/android/content/pm/cts/shortcut/multiuser/
DShortcutManagerSecondaryUserTest.java39 final UserHandle user = android.os.Process.myUserHandle(); in testCreateAndStart() local
52 final List<ShortcutInfo> list = getLauncherApps().getShortcuts(q, user); in testCreateAndStart()
57 assertEquals(user, si.getUserHandle()); in testCreateAndStart()
DShortcutManagerManagedUserTest.java139 for (UserHandle user : getContext().getSystemService(UserManager.class).getUserProfiles()) { in getOtherUser()
140 if (user.equals(android.os.Process.myUserHandle())) { in getOtherUser()
143 return user; in getOtherUser()
/cts/tests/tests/drm/
DREADME3 of user's DRM plug-in.
4 - If new plug-in is added, user should add corresponding configuration
/cts/hostsidetests/incident/src/com/android/server/cts/
DPackageIncidentTest.java107 for (PackageServiceDumpProto.SharedUserProto user : dump.getSharedUsersList()) { in verifyPackageServiceDumpProto()
108 if (user.getUid() == 1000) { in verifyPackageServiceDumpProto()
109 systemUser = user; in verifyPackageServiceDumpProto()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java551 UserHandle user = Process.myUserHandle(); in assertOnRoleHoldersChangedListenerIsNotified() local
553 sContext.getMainExecutor(), future, user)); in assertOnRoleHoldersChangedListenerIsNotified() local
560 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user)); in assertOnRoleHoldersChangedListenerIsNotified()
564 assertThat(result.second).isEqualTo(user); in assertOnRoleHoldersChangedListenerIsNotified()
571 UserHandle user = Process.myUserHandle(); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() local
574 user); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() local
575 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified()
709 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
710 complete(new Pair<>(roleName, user)); in onRoleHoldersChanged()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java122 UserHandle user = mDevicePolicyManager.createAndManageUser(cn, in testBroadcastReceivedForEnablingApp() local
125 int userId = user.getIdentifier(); in testBroadcastReceivedForEnablingApp()
141 mDevicePolicyManager.removeUser(cn, user); in testBroadcastReceivedForEnablingApp()
/cts/tests/tests/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java47 UserHandle user = Process.myUserHandle(); in ensureDefaultSmsApp() local
57 user, in ensureDefaultSmsApp()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DContactsContract_QuickContactsTest.java53 public void startActivityAsUser(Intent intent, UserHandle user) { in testPrioritizedMimeTypeAndExcludedMimeTypes()
57 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in testPrioritizedMimeTypeAndExcludedMimeTypes()
/cts/tests/tests/widget/src/android/widget/cts/
DQuickContactBadgeTest.java60 public void startActivityAsUser(Intent intent, UserHandle user) { in testPrioritizedMimetype()
65 public void startActivityAsUser(Intent intent, Bundle options, UserHandle user) { in testPrioritizedMimetype()
/cts/tests/tests/keystore/
DAndroid.bp17 name: "cts-keystore-user-auth-helper-library",
55 "cts-keystore-user-auth-helper-library",
/cts/hostsidetests/devicepolicy/app/DeviceAndProfileOwner/src/com/android/cts/deviceandprofileowner/
DBaseDeviceAdminTest.java57 public void onPasswordExpiring(Context context, Intent intent, UserHandle user) { in onPasswordExpiring() argument
58 super.onPasswordExpiring(context, intent, user); in onPasswordExpiring()
/cts/hostsidetests/net/src/com/android/cts/net/
DProcNetTest.java105 String user = mDevice.executeAdbCommand("shell", "stat", "-c", "%u", path).trim(); in readIntFromPath() local
108 assertEquals(user, "0"); in readIntFromPath()
/cts/tests/tests/webkit/src/android/webkit/cts/
DHttpAuthHandlerTest.java76 ProceedHttpAuthClient(int maxAuthAttempts, String user, String password) { in ProceedHttpAuthClient() argument
79 mUser = user; in ProceedHttpAuthClient()

12