Home
last modified time | relevance | path

Searched refs:profileHelper (Results 1 – 11 of 11) sorted by relevance

/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationsUtilsTest.java84 ProfileHelper profileHelper = mock(ProfileHelper.class); in isProfileOrDeviceOwner_profileOwner_returnsTrue() local
85 ShadowUserHelper.setInstance(profileHelper); in isProfileOrDeviceOwner_profileOwner_returnsTrue()
86 when(profileHelper.getAllProfiles()).thenReturn(Collections.singletonList(userInfo)); in isProfileOrDeviceOwner_profileOwner_returnsTrue()
90 assertThat(ApplicationsUtils.isProfileOrDeviceOwner(PACKAGE_NAME, dpm, profileHelper)) in isProfileOrDeviceOwner_profileOwner_returnsTrue()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DChooseNewAdminPreferenceController.java91 ProfileHelper profileHelper = ProfileHelper.getInstance(context); in removeOldAdmin() local
92 int removeUserResult = profileHelper.removeProfile(context, mAdminInfo); in removeOldAdmin()
97 profileHelper.getErrorMessageForProfileResult(removeUserResult)), in removeOldAdmin()
DProfileDetailsHeaderPreferenceController.java56 void setProfileHelper(ProfileHelper profileHelper) { in setProfileHelper() argument
57 mProfileHelper = profileHelper; in setProfileHelper()
DProfileDetailsDeletePreferenceController.java53 CarUxRestrictions uxRestrictions, ProfileHelper profileHelper, in ProfileDetailsDeletePreferenceController() argument
56 mProfileHelper = profileHelper; in ProfileDetailsDeletePreferenceController()
DRemoveProfileHandler.java48 public RemoveProfileHandler(Context context, ProfileHelper profileHelper, in RemoveProfileHandler() argument
51 mProfileHelper = profileHelper; in RemoveProfileHandler()
DProfileDetailsActionButtonsPreferenceController.java85 CarUxRestrictions uxRestrictions, ProfileHelper profileHelper, UserManager userManager, in ProfileDetailsActionButtonsPreferenceController() argument
88 mProfileHelper = profileHelper; in ProfileDetailsActionButtonsPreferenceController()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsUpgradeReceiver.java82 ProfileDatabaseHelper profileHelper = ProfileDatabaseHelper.getInstance(context); in onReceive() local
90 profileHelper.getWritableDatabase(); in onReceive()
93 ContactsProvider2.updateLocaleOffline(context, helper, profileHelper); in onReceive()
DContactsProvider2.java1787 ProfileDatabaseHelper profileHelper) { in needsToUpdateLocaleData() argument
1799 profileHelper.needsToUpdateLocaleData(locales)) { in needsToUpdateLocaleData()
1847 ProfileDatabaseHelper profileHelper) { in updateLocaleOffline() argument
1850 if (!needsToUpdateLocaleData(prefs, currentLocales, contactsHelper, profileHelper)) { in updateLocaleOffline()
1855 profileHelper.setLocale(currentLocales); in updateLocaleOffline()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DFactoryResetOtherProfilesPresentPreferenceController.java48 ProfileHelper profileHelper = ProfileHelper.getInstance(getContext()); in updateState() local
49 preference.setVisible(!profileHelper.getAllSwitchableProfiles().isEmpty()); in updateState()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowUserHelper.java39 public static void setInstance(ProfileHelper profileHelper) { in setInstance() argument
40 sInstance = profileHelper; in setInstance()
/packages/apps/Car/Settings/src/com/android/car/settings/applications/
DApplicationsUtils.java70 ProfileHelper profileHelper) { in isProfileOrDeviceOwner() argument
74 List<UserInfo> userInfos = profileHelper.getAllProfiles(); in isProfileOrDeviceOwner()