Home
last modified time | relevance | path

Searched refs:managedProfile (Results 1 – 4 of 4) sorted by relevance

/packages/apps/ManagedProvisioning/tests/src/com/android/managedprovisioning/common/
DUtilsTest.java152 UserHandle managedProfile = UserHandle.of(10); in testMaybeCopyAccount_success() local
162 assertTrue(mUtils.maybeCopyAccount(mockContext, testAccount, primaryUser, managedProfile)); in testMaybeCopyAccount_success()
164 eq(managedProfile), any(AccountManagerCallback.class), any(Handler.class)); in testMaybeCopyAccount_success()
173 UserHandle managedProfile = UserHandle.of(10); in testMaybeCopyAccount_error() local
183 assertFalse(mUtils.maybeCopyAccount(mockContext, testAccount, primaryUser, managedProfile)); in testMaybeCopyAccount_error()
185 eq(managedProfile), any(AccountManagerCallback.class), any(Handler.class)); in testMaybeCopyAccount_error()
194 UserHandle managedProfile = UserHandle.of(10); in testMaybeCopyAccount_timeout() local
206 assertFalse(mUtils.maybeCopyAccount(mockContext, testAccount, primaryUser, managedProfile)); in testMaybeCopyAccount_timeout()
208 eq(managedProfile), any(AccountManagerCallback.class), any(Handler.class)); in testMaybeCopyAccount_timeout()
215 UserHandle managedProfile = UserHandle.of(10); in testMaybeCopyAccount_nullAccount() local
[all …]
/packages/apps/Settings/src/com/android/settings/
DAppListPreference.java113 final UserHandle managedProfile = Utils.getManagedProfile(UserManager.get(context)); in AppListPreference() local
114 mUserId = mForWork && managedProfile != null ? managedProfile.getIdentifier() in AppListPreference()
123 final UserHandle managedProfile = Utils.getManagedProfile(UserManager.get(context)); in AppListPreference() local
124 mUserId = mForWork && managedProfile != null ? managedProfile.getIdentifier() in AppListPreference()
/packages/apps/Settings/tests/unit/src/com/android/settings/
DUtilsTest.java53 UserInfo managedProfile = new UserInfo(TEST_MANAGED_PROFILE_ID, null, in setUp() local
55 when(mUserManager.getUserInfo(eq(TEST_MANAGED_PROFILE_ID))).thenReturn(managedProfile); in setUp()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSettings.java172 final UserHandle managedProfile = mProfiles.valueAt(1).userInfo.getUserHandle(); in onPrepareOptionsMenu() local
181 .setOnMenuItemClickListener(new MasterSyncStateClickListener(managedProfile)) in onPrepareOptionsMenu()
183 managedProfile.getIdentifier())); in onPrepareOptionsMenu()