Home
last modified time | relevance | path

Searched refs:targetUser (Results 1 – 7 of 7) sorted by relevance

/cts/hostsidetests/devicepolicy/app/CorpOwnedManagedProfile/src/com/android/cts/comp/
DBindDeviceAdminServiceGoodSetupTest.java86 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/
DLauncherAppsForHiddenProfilesTest.java235 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/
DQuietModeCommandReceiver.java43 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/
DPolicyUpdateReceiverTest.java130 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/
DPolicySetResultUtils.java37 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/
DDeviceTest.java74 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/
DImeSettings.java281 public Builder setTargetUser(@NonNull UserHandle targetUser) { in setTargetUser() argument
282 mTargetUser = Objects.requireNonNull(targetUser); in setTargetUser()