Searched refs:targetUser (Results 1 – 7 of 7) sorted by relevance
/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/ |
D | BindDeviceAdminServiceGoodSetupTest.java | 86 for (UserHandle targetUser : mTargetUsers) { in testCannotBind_implicitIntent() 88 bind(implicitIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCannotBind_implicitIntent() 89 fail("IllegalArgumentException should be thrown for target user " + targetUser); in testCannotBind_implicitIntent() 102 for (UserHandle targetUser : mTargetUsers) { in testCannotBind_notResolvableIntent() 103 assertFalse("Should not be allowed to bind to target user " + targetUser, in testCannotBind_notResolvableIntent() 104 bind(notResolvableIntent, EMPTY_SERVICE_CONNECTION, targetUser)); in testCannotBind_notResolvableIntent() 113 for (UserHandle targetUser : mTargetUsers) { in testCannotBind_unprotectedCrossUserService() 115 bind(serviceIntent, EMPTY_SERVICE_CONNECTION, targetUser); in testCannotBind_unprotectedCrossUserService() 116 fail("SecurityException should be thrown for target user " + targetUser); in testCannotBind_unprotectedCrossUserService() 130 for (UserHandle targetUser : mTargetUsers) { in testCheckCannotBind_nonManagingPackage() [all …]
|
/cts/tests/tests/content/src/android/content/pm/cts/ |
D | LauncherAppsForHiddenProfilesTest.java | 235 private void assertCallbacksPropagation(UserReference targetUser, boolean received) { in assertCallbacksPropagation() argument 237 new TestLauncherCallback(targetUser.userHandle(), mTestApp.packageName()); in assertCallbacksPropagation() 239 triggerCallbacks(targetUser); in assertCallbacksPropagation() 272 private void assertHiddenProfileInfoStripped(UserHandle targetUser) { in assertHiddenProfileInfoStripped() argument 273 assertThat(mLauncherApps.getProfiles()).doesNotContain(targetUser); in assertHiddenProfileInfoStripped() 274 assertThat(mLauncherApps.getLauncherUserInfo(targetUser)).isNull(); in assertHiddenProfileInfoStripped() 275 assertThat(mLauncherApps.getPreInstalledSystemPackages(targetUser)).isEmpty(); in assertHiddenProfileInfoStripped() 276 assertThat(mLauncherApps.getAppMarketActivityIntent(/* packageName= */ null, targetUser)) in assertHiddenProfileInfoStripped() 280 assertThat(mLauncherApps.getActivityList(packageName, targetUser)).isEmpty(); in assertHiddenProfileInfoStripped() 281 assertThat(mLauncherApps.isPackageEnabled(packageName, targetUser)).isFalse(); in assertHiddenProfileInfoStripped() [all …]
|
/cts/hostsidetests/devicepolicy/app/LauncherTestsSupport/src/com/android/cts/launchertests/support/ |
D | QuietModeCommandReceiver.java | 43 final UserHandle targetUser = intent.getParcelableExtra(Intent.EXTRA_USER); in onReceive() local 49 hasFlags ? userManager.requestQuietModeEnabled(enableQuietMode, targetUser, in onReceive() 51 : userManager.requestQuietModeEnabled(enableQuietMode, targetUser); in onReceive()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/ |
D | PolicyUpdateReceiverTest.java | 130 TargetUser targetUser, PolicyUpdateResult policyUpdateResult) { in onPolicySetResult() argument 134 mTargetUser = targetUser; in onPolicySetResult() 141 TargetUser targetUser, PolicyUpdateResult policyUpdateResult) { in onPolicyChanged() argument 145 mTargetUser = targetUser; in onPolicyChanged()
|
/cts/tests/devicepolicy/src/android/devicepolicy/cts/utils/ |
D | PolicySetResultUtils.java | 37 DeviceState deviceState, String policyIdentifier, int resultKey, int targetUser, in assertPolicySetResultReceived() argument 48 .isEqualTo(targetUser) in assertPolicySetResultReceived()
|
/cts/hostsidetests/securitybulletin/test-apps/BUG-261036568/test-app/src/android/security/cts/BUG_261036568_test/ |
D | DeviceTest.java | 74 int targetUser = Integer.parseInt(args.getString("target_user", "-1")); in setUp() local 75 assumeTrue("Could not find target user", targetUser != -1); in setUp() 77 mTargetAuthorityUri = withUserId(PROVIDER_AUTHORITY_URI, targetUser); in setUp()
|
/cts/tests/inputmethod/mockime/src/com/android/cts/mockime/ |
D | ImeSettings.java | 281 public Builder setTargetUser(@NonNull UserHandle targetUser) { in setTargetUser() argument 282 mTargetUser = Objects.requireNonNull(targetUser); in setTargetUser()
|