Home
last modified time | relevance | path

Searched refs:user (Results 1 – 25 of 40) 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/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/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/drm/
DREADME3 of user's DRM plug-in.
4 - If new plug-in is added, user should add corresponding configuration
/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/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/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/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/telephonyprovider/src/android/telephonyprovider/cts/
DDefaultSmsAppHelper.java40 UserHandle user = Process.myUserHandle(); in ensureDefaultSmsApp() local
50 user, in ensureDefaultSmsApp()
/cts/tests/tests/role/src/android/app/role/cts/
DRoleManagerTest.java463 UserHandle user = Process.myUserHandle(); in assertOnRoleHoldersChangedListenerIsNotified() local
465 sContext.getMainExecutor(), future, user)); in assertOnRoleHoldersChangedListenerIsNotified() local
472 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user)); in assertOnRoleHoldersChangedListenerIsNotified()
476 assertThat(result.second).isEqualTo(user); in assertOnRoleHoldersChangedListenerIsNotified()
483 UserHandle user = Process.myUserHandle(); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() local
486 user); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified() local
487 sRoleManager.removeOnRoleHoldersChangedListenerAsUser(future, user); in addAndRemoveOnRoleHoldersChangedListenerAndAddRoleHolderThenIsNotNotified()
621 public void onRoleHoldersChanged(@NonNull String roleName, @NonNull UserHandle user) { in onRoleHoldersChanged() argument
622 complete(new Pair<>(roleName, user)); in onRoleHoldersChanged()
/cts/tests/tests/telecom/src/android/telecom/cts/
DCtsRoleManagerAdapter.java161 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
165 mRoleManager.addRoleHolderAsUser(roleName, packageName, 0, user, executor, in addRoleHolder()
180 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
184 mRoleManager.removeRoleHolderAsUser(roleName, packageName, 0, user, executor, in removeRoleHolder()
DCallRedirectionServiceTest.java209 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
214 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder()
228 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
233 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
DThirdPartyCallScreeningServiceTest.java316 UserHandle user = Process.myUserHandle(); in addRoleHolder() local
321 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in addRoleHolder()
335 UserHandle user = Process.myUserHandle(); in removeRoleHolder() local
340 packageName, RoleManager.MANAGE_HOLDERS_FLAG_DONT_KILL_APP, user, executor, in removeRoleHolder()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java117 UserHandle user = mDevicePolicyManager.createAndManageUser(cn, in testBroadcastReceivedForEnablingApp() local
120 int userId = user.getIdentifier(); in testBroadcastReceivedForEnablingApp()
137 mDevicePolicyManager.removeUser(cn, user); in testBroadcastReceivedForEnablingApp()
/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/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/hostsidetests/securitybulletin/securityPatch/CVE-2016-8427/
DAndroid.mk30 LOCAL_CFLAGS += -Wno-constant-conversion -Wno-user-defined-warnings
/cts/hostsidetests/statsd/
DPROCSTATSQ_PULL.pbtxt11 # Normal user should have <1000

12