Home
last modified time | relevance | path

Searched defs:userId (Results 1 – 25 of 28) sorted by relevance

12

/cts/hostsidetests/devicepolicy/src/com/android/cts/devicepolicy/
DBaseDevicePolicyTest.java153 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
158 protected void installAppAsUser(String appFileName, boolean grantPermissions, int userId) in installAppAsUser()
168 protected void forceStopPackageForUser(String packageName, int userId) throws Exception { in forceStopPackageForUser()
180 protected void startUser(int userId) throws Exception { in startUser()
184 protected void switchUser(int userId) throws Exception { in switchUser()
193 protected int getUserFlags(int userId) throws DeviceNotAvailableException { in getUserFlags()
229 protected void stopUser(int userId) throws Exception { in stopUser()
242 protected void removeUser(int userId) throws Exception { in removeUser()
280 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser()
286 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser()
[all …]
DEphemeralUserTest.java41 int userId = createUser(FLAG_EPHEMERAL); in testCreateEphemeralUser() local
51 int userId = createUser(); in testCreateLongLivedUser() local
65 int userId = createUser(FLAG_EPHEMERAL); in testProfileInheritsEphemeral() local
78 int userId = createUser(FLAG_EPHEMERAL); in testRemoveEphemeralOnStop() local
94 int userId = createUser(FLAG_GUEST); in testEphemeralGuestFeature() local
DDeviceOwnerTest.java115 final int userId = createUser(); in testRemoteBugreportWithTwoUsers() local
154 int userId = createUser(); in testRemoveUsersOnSetForceEphemeralUsers() local
177 int userId = createUser(); in testRemoveUsersOnSetForceEphemeralUsersWithUserSwitch() local
214 int userId = createUser(); in testCreateUserAfterSetForceEphemeralUsers() local
289 final int userId = createUser(); in testSecurityLoggingWithTwoUsers() local
329 final int userId = createUser(); in testNetworkLoggingWithTwoUsers() local
380 final int userId = createUser(); in testLockTask_unaffiliatedUser() local
406 final int userId = createUser(); in testLockTask_affiliatedSecondaryUser() local
DDeviceAndProfileOwnerTest.java651 final int userId = createUser(); in testCannotRemoveUserIfRestrictionSet() local
747 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail()
752 private void changeAccountManagement(String command, String accountType, int userId) in changeAccountManagement()
779 private void setInstallPackageAppOps(String packageName, boolean allowed, int userId) in setInstallPackageAppOps()
787 private void changePolicyOrFail(String command, String extras, int userId) in changePolicyOrFail()
795 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser()
803 protected void setScreenCaptureDisabled(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled()
815 protected void setScreenCaptureDisabled_assist(int userId, boolean disabled) throws Exception { in setScreenCaptureDisabled_assist()
839 private void allowNotificationPolicyAccess(String packageName, int userId) in allowNotificationPolicyAccess()
852 private void disallowNotificationPolicyAccess(String packageName, int userId) in disallowNotificationPolicyAccess()
[all …]
DUserRestrictionsTest.java70 @Nullable String method, int userId) throws DeviceNotAvailableException { in runTests()
74 private void runTests(@Nonnull String className, int userId) in runTests()
258 private void setPoAsUser(int userId) throws Exception { in setPoAsUser()
305 private void runGlobalRestrictionsTest(String testMethodName, int userId) throws Exception { in runGlobalRestrictionsTest()
DManagedProfileTest.java380 private void testCrossProfileCopyPasteInternal(int userId, boolean shouldSucceed) in testCrossProfileCopyPasteInternal()
713 private void setDirectoryPrefix(String directoryName, int userId) in setDirectoryPrefix()
801 private void givePackageWriteSettingsPermission(int userId, String pkg) throws Exception { in givePackageWriteSettingsPermission()
898 private void disableActivityForUser(String activityName, int userId) in disableActivityForUser()
908 private void changeUserRestrictionOrFail(String key, boolean value, int userId) in changeUserRestrictionOrFail()
913 private String changeUserRestriction(String key, boolean value, int userId) in changeUserRestriction()
925 private String changeCrossProfileWidgetForUser(String packageName, String command, int userId) in changeCrossProfileWidgetForUser()
938 private void changeVerificationStatus(int userId, String packageName, String status) in changeVerificationStatus()
1040 String testMethodName, Integer userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
DCustomManagedProfileTest.java51 private void assertIsProvisioningAllowed(boolean expected, int userId) in assertIsProvisioningAllowed()
DCustomDeviceOwnerTest.java93 int userId = -1; in testCannotSetDeviceOwnerWhenSecondaryUserPresent() local
DDeviceAndProfileOwnerTestApi25.java100 protected void startSimpleActivityAsUser(int userId) throws Exception { in startSimpleActivityAsUser()
/cts/hostsidetests/appsecurity/src/android/appsecurity/cts/
DPackageVisibilityTest.java63 int userId = mUsers[1]; in testUninstalledPackageVisibility() local
87 ".PackageAccessTest", "testPackageAccess_notInOtherUser", userId); in testUninstalledPackageVisibility() local
89 ".PackageAccessTest", "testPackageAccess_notInOtherUserUninstalled", userId); in testUninstalledPackageVisibility() local
92 ".PackageAccessTest", "testPackageAccess_getPackagesCantSeeTiny", userId); in testUninstalledPackageVisibility() local
115 ".PackageAccessTest", "testPackageAccess_getPackagesCanSeeTiny", userId); in testUninstalledPackageVisibility() local
127 protected void uninstallWithKeepDataForUser(String packageName, int userId) in uninstallWithKeepDataForUser()
DBaseAppSecurityTest.java69 protected void installTestAppForUser(String apk, int userId) throws Exception { in installTestAppForUser()
75 buildHelper.getTestFile(apk), true, false, userId, "-t")); in installTestAppForUser() local
78 protected boolean isAppVisibleForUser(String packageName, int userId, in isAppVisibleForUser()
DInstantAppUserTest.java188 String testMethodName, int userId) in runDeviceTestsAsUser()
190 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTestsAsUser() local
203 private void installAppAsUser(String apk, int userId) throws Exception { in installAppAsUser()
208 private void replaceFullAppAsUser(String apk, int userId) throws Exception { in replaceFullAppAsUser()
211 buildHelper.getTestFile(apk), true, userId, "--full")); in replaceFullAppAsUser() local
214 private void installExistingInstantAppAsUser(String packageName, int userId) throws Exception { in installExistingInstantAppAsUser()
224 private void installExistingFullAppAsUser(String packageName, int userId) throws Exception { in installExistingFullAppAsUser()
DUtils.java39 public static void runDeviceTests(ITestDevice device, String packageName, int userId) in runDeviceTests()
50 int userId) throws DeviceNotAvailableException { in runDeviceTests()
66 String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTests()
71 String testMethodName, int userId, Map<String, String> testArgs) in runDeviceTests()
DExternalStorageHostTest.java304 private void enableWriteSettings(String packageName, int userId) in enableWriteSettings()
325 private void runDeviceTests(String packageName, String testClassName, int userId) in runDeviceTests()
327 Utils.runDeviceTests(getDevice(), packageName, testClassName, userId); in runDeviceTests() local
331 int userId) throws DeviceNotAvailableException { in runDeviceTests()
332 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTests() local
DStorageHostTest.java236 int userId) throws DeviceNotAvailableException { in runDeviceTests()
237 Utils.runDeviceTests(getDevice(), packageName, testClassName, testMethodName, userId); in runDeviceTests() local
/cts/hostsidetests/media/src/android/media/cts/
DBaseMultiUserTest.java161 protected void installAppAsUser(String appFileName, int userId) in installAppAsUser()
192 int userId = Integer.parseInt(tokens[tokens.length-1]); in createAndStartUser() local
230 protected void removeUser(int userId) throws Exception { in removeUser()
255 @Nullable String testMethodName, int userId) throws DeviceNotAvailableException { in runDeviceTestsAsUser()
317 int userId) throws Exception { in getSettings()
338 @Nullable String value, int userId) throws Exception { in putSettings()
/cts/hostsidetests/media/src/android/media/session/cts/
DMediaSessionManagerHostTest.java144 private void runTestAsUser(String testMethodName, int userId) in runTestAsUser()
161 private void allowGetActiveSessionForTest(int userId) throws Exception { in allowGetActiveSessionForTest()
190 private void sendControlCommand(int userId, int flag) throws Exception { in sendControlCommand()
/cts/hostsidetests/numberblocking/src/com/android/cts/numberblocking/hostside/
DNumberBlockingTest.java150 private void installTestAppForUser(int userId) throws Exception { in installTestAppForUser()
169 private void runTestAsUser(String className, String methodName, int userId) throws Exception { in runTestAsUser()
199 private void setTestAppAsDefaultSmsAppForUser(boolean setToSmsApp, int userId) in setTestAppAsDefaultSmsAppForUser()
208 private int getUserSerialNumber(int userId) throws DeviceNotAvailableException { in getUserSerialNumber()
/cts/hostsidetests/shortcuts/hostside/src/android/content/pm/cts/shortcuthost/
DBaseShortcutManagerHostTest.java96 protected void clearShortcuts(String packageName, int userId) throws Exception { in clearShortcuts()
102 protected void installAppAsUser(String appFileName, int userId) throws FileNotFoundException, in installAppAsUser()
118 String pkgName, @Nullable String testClassName, int userId) in runDeviceTestsAsUser()
125 String pkgName, @Nullable String testClassName, String testMethodName, int userId) in runDeviceTestsAsUser()
132 @Nullable String testMethodName, int userId, in runDeviceTestsAsUser()
/cts/hostsidetests/appsecurity/test-apps/ReadExternalStorageApp/src/com/android/cts/readexternalstorageapp/
DReadExternalStorageTest.java80 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotWritable() local
/cts/hostsidetests/media/common/android/media/cts/
DMediaSessionTestHelperConstants.java86 public static String buildControlCommand(int userId, int flag) { in buildControlCommand()
/cts/hostsidetests/multiuser/src/android/host/multiuser/
DCreateUsersNoAppCrashesTest.java44 int userId = getDevice().createUser( in testCanCreateGuestUser() local
DBaseMultiUserTest.java73 protected int createRestrictedProfile(int userId) in createRestrictedProfile()
/cts/tests/tests/packageinstaller/adminpackageinstaller/src/android/packageinstaller/admin/cts/
DSessionCommitBroadcastTest.java119 int userId = user.getIdentifier(); in testBroadcastReceivedForEnablingApp() local
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/
DExternalStorageTest.java86 final String userId = Integer.toString(android.os.Process.myUid() / 100000); in testMountPointsNotReadable() local

12