/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/profiles/ |
D | ProfileHelperTest.java | 66 private ProfileHelper mProfileHelper; field in ProfileHelperTest 79 mProfileHelper = new ProfileHelper(mMockUserManager, mMockResources, in setUp() 99 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isTrue(); in canCurrentProcessModifyAccounts_baseline_returnsTrue() 106 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_hasDisallowModifyAccounts_returnsFalse() 112 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isDemoUser_returnsFalse() 118 assertThat(mProfileHelper.canCurrentProcessModifyAccounts()).isFalse(); in canCurrentProcessModifyAccounts_isGuestUser_returnsFalse() 136 assertThat(mProfileHelper.getAllProfiles()).containsExactly(fgUser, user2, user3, user4); in testGetAllsers() 156 assertThat(mProfileHelper.getAllProfiles()) in testGetAllUsers_notHeadless() 174 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(user1, user2); in testGetAllSwitchableUsers() 193 assertThat(mProfileHelper.getAllSwitchableProfiles()).containsExactly(systemUser, user1, in testGetAllSwitchableUsers_notHeadless() [all …]
|
D | ProfilesPreferenceProviderTest.java | 74 private ProfileHelper mProfileHelper; field in ProfilesPreferenceProviderTest 79 ShadowUserHelper.setInstance(mProfileHelper); in setUp() 86 when(mProfileHelper.getCurrentProcessUserInfo()).thenReturn(TEST_CURRENT_USER); in setUp() 87 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp() 88 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn(users); in setUp() 89 when(mProfileHelper.getAllLivingProfiles(any())).thenReturn( in setUp()
|
/packages/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/ |
D | NoCrossProfileEmptyStateProvider.java | 43 private final ProfileHelper mProfileHelper; field in NoCrossProfileEmptyStateProvider 53 mProfileHelper = profileHelper; in NoCrossProfileEmptyStateProvider() 71 Profile launchedBy = mProfileHelper.getLaunchedAsProfile(); in getEmptyState() 72 Profile tabOwner = requireNonNull(mProfileHelper.findProfile(adapter.getUserHandle())); in getEmptyState() 82 effectiveSource = mProfileHelper.getPersonalProfile(); in getEmptyState() 86 effectiveTarget = mProfileHelper.getPersonalProfile(); in getEmptyState()
|
D | WorkProfilePausedEmptyStateProvider.java | 43 private final ProfileHelper mProfileHelper; field in WorkProfilePausedEmptyStateProvider 55 mProfileHelper = profileHelper; in WorkProfilePausedEmptyStateProvider() 65 if (!mProfileHelper.getWorkProfilePresent()) { in getEmptyState() 68 Profile workProfile = requireNonNull(mProfileHelper.getWorkProfile()); in getEmptyState()
|
D | NoAppsAvailableEmptyStateProvider.java | 42 private final ProfileHelper mProfileHelper; field in NoAppsAvailableEmptyStateProvider 50 mProfileHelper = profileHelper; in NoAppsAvailableEmptyStateProvider() 64 requireNonNull(mProfileHelper.findProfileType(listUserHandle)); in getEmptyState()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/profiles/ |
D | ProfilesBasePreferenceControllerTest.java | 79 private ProfileHelper mProfileHelper; field in ProfilesBasePreferenceControllerTest 102 ExtendedMockito.doReturn(mProfileHelper) in setUp() 104 when(mProfileHelper.getCurrentProcessUserInfo()).thenReturn(TEST_CURRENT_USER); in setUp() 105 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp() 106 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn( in setUp() 108 when(mProfileHelper.getAllLivingProfiles(any())).thenReturn( in setUp() 173 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn( in refreshUi_userChange_updatesGroup() 175 when(mProfileHelper.getAllLivingProfiles(any())).thenReturn( in refreshUi_userChange_updatesGroup() 222 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn( in onUsersUpdated_updatesGroup() 224 when(mProfileHelper.getAllLivingProfiles(any())).thenReturn( in onUsersUpdated_updatesGroup()
|
D | ProfilesListPreferenceControllerTest.java | 72 private ProfileHelper mProfileHelper; field in ProfilesListPreferenceControllerTest 97 ExtendedMockito.when(ProfileHelper.getInstance(mContext)).thenReturn(mProfileHelper); in setUp() 98 when(mProfileHelper.getCurrentProcessUserInfo()).thenReturn(TEST_CURRENT_USER); in setUp() 99 when(mProfileHelper.isCurrentProcessUser(TEST_CURRENT_USER)).thenReturn(true); in setUp() 100 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn( in setUp() 102 when(mProfileHelper.getAllLivingProfiles(any())).thenReturn( in setUp()
|
D | ChooseNewAdminPreferenceControllerTest.java | 74 private ProfileHelper mProfileHelper; field in ChooseNewAdminPreferenceControllerTest 90 when(ProfileHelper.getInstance(any(Context.class))).thenReturn(mProfileHelper); in setUp() 146 verify(mProfileHelper).removeProfile(any(), eq(TEST_ADMIN_USER)); in testAssignNewAdminAndRemoveOldAdmin_removeUserCalled() 151 when(mProfileHelper.removeProfile(any(), eq(TEST_ADMIN_USER))) in testAssignNewAdminAndRemoveOldAdmin_success_noErrorDialog() 161 when(mProfileHelper.removeProfile(any(), eq(TEST_ADMIN_USER))) in testAssignNewAdminAndRemoveOldAdmin_failure_errorDialog()
|
D | ProfileDetailsEndSessionPreferenceControllerTest.java | 67 private ProfileHelper mProfileHelper; field in ProfileDetailsEndSessionPreferenceControllerTest 79 ExtendedMockito.when(ProfileHelper.getInstance(mContext)).thenReturn(mProfileHelper); in setUp() 263 verify(mProfileHelper).logoutProfile(); in onClick_logoutProfile()
|
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/ |
D | RemoveProfileHandler.java | 52 private final ProfileHelper mProfileHelper; field in RemoveProfileHandler 64 mProfileHelper = profileHelper; in RemoveProfileHandler() 82 int removeProfileResult = mProfileHelper.removeProfile(mContext, mUserInfo); in setUserInfo() 88 ErrorDialog.newInstance(mProfileHelper.getErrorMessageForProfileResult( in setUserInfo() 144 !(availableForCurrentProcessUser ^ mProfileHelper.isCurrentProcessUser(userInfo)); in getAvailabilityStatus() 160 boolean isLastProfile = mProfileHelper.getAllPersistentProfiles().size() == 1; in showConfirmRemoveProfileDialog() 162 && mProfileHelper.getAllAdminProfiles().size() == 1; in showConfirmRemoveProfileDialog()
|
D | ProfileDetailsActionButtonsPreferenceController.java | 60 private final ProfileHelper mProfileHelper; field in ProfileDetailsActionButtonsPreferenceController 92 mProfileHelper = profileHelper; in ProfileDetailsActionButtonsPreferenceController() 136 && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 141 || mUserManager.isAdminUser() && mProfileHelper.isCurrentProcessUser(getUserInfo()) in onStartInternal() 161 .setVisible(mProfileHelper.isCurrentProcessUser(getUserInfo())) in onStartInternal() 239 UserInfo currUserInfo = mProfileHelper.getCurrentProcessUserInfo(); in areThereOtherProfiles() 240 return !mProfileHelper.getAllLivingProfiles( in areThereOtherProfiles()
|
D | ProfileDetailsHeaderPreferenceController.java | 33 private ProfileHelper mProfileHelper; field in ProfileDetailsHeaderPreferenceController 38 mProfileHelper = ProfileHelper.getInstance(getContext()); in ProfileDetailsHeaderPreferenceController() 57 mProfileHelper = profileHelper; in setProfileHelper() 65 return mProfileHelper.isCurrentProcessUser(getUserInfo()) in getSummary()
|
D | ProfileDetailsDeletePreferenceController.java | 38 private ProfileHelper mProfileHelper; field in ProfileDetailsDeletePreferenceController 56 mProfileHelper = profileHelper; in ProfileDetailsDeletePreferenceController()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/system/ |
D | FactoryResetOtherProfilesPresentPreferenceControllerTest.java | 63 private ProfileHelper mProfileHelper; field in FactoryResetOtherProfilesPresentPreferenceControllerTest 74 when(ProfileHelper.getInstance(any())).thenReturn(mProfileHelper); in setUp() 91 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn(Collections.emptyList()); in onCreate_noSwitchableUsers_hidesPreference() 100 when(mProfileHelper.getAllSwitchableProfiles()).thenReturn( in onCreate_switchableUsers_showsPreference()
|
/packages/apps/Car/Settings/src/com/android/car/settings/storage/ |
D | StorageAsyncLoader.java | 55 private final ProfileHelper mProfileHelper; field in StorageAsyncLoader 67 mProfileHelper = profileHelper; in StorageAsyncLoader() 74 List<UserInfo> infos = mProfileHelper.getAllProfiles(); in loadInBackground()
|
/packages/apps/Car/Settings/src/com/android/car/settings/applications/ |
D | ApplicationActionButtonsPreferenceController.java | 117 private ProfileHelper mProfileHelper; field in ApplicationActionButtonsPreferenceController 252 mProfileHelper = ProfileHelper.getInstance(context); in ApplicationActionButtonsPreferenceController() 432 if (isProfileOrDeviceOwner(mPackageName, mDpm, mProfileHelper)) { in shouldDisableUninstallButton()
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/ |
D | ContactsProvider2.java | 1442 private ProfileDatabaseHelper mProfileHelper; field in ContactsProvider2 1650 mProfileHelper = mProfileProvider.getDatabaseHelper(); in initialize() 1713 mProfileAggregator = new ProfileAggregator(this, mProfileHelper, in initForDefaultLocale() 1719 new PhotoStore(new File(getContext().getFilesDir(), "profile"), mProfileHelper); in initForDefaultLocale() 1725 initDataRowHandlers(mProfileDataRowHandlers, mProfileHelper, mProfileAggregator, in initForDefaultLocale() 1965 if (!needsToUpdateLocaleData(prefs, currentLocales, mContactsHelper, mProfileHelper)) { in updateLocaleInBackground() 1972 mProfileHelper.setLocale(currentLocales); in updateLocaleInBackground() 2013 SQLiteDatabase profileDb = mProfileHelper.getWritableDatabase(); in changeLocaleInBackground() 2046 long profileNum = DatabaseUtils.queryNumEntries(mProfileHelper.getReadableDatabase(), in updateProviderStatus() 2245 mProfileHelper.wipeData(); in wipeData() [all …]
|