Home
last modified time | relevance | path

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

/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/emptystate/
DNoCrossProfileEmptyStateProviderTest.kt101 val profileHelper = createProfileHelper(launchedAs = workUser) in sameProfilePermitted() constant
105 profileHelper, in sameProfilePermitted()
119 val profileHelper = createProfileHelper(launchedAs = personalUser) in testPersonalToWork() constant
123 profileHelper, in testPersonalToWork()
139 val profileHelper = createProfileHelper(launchedAs = workUser) in testWorkToPersonal() constant
143 profileHelper, in testWorkToPersonal()
159 val profileHelper = createProfileHelper(launchedAs = workUser) in testWorkToPrivate() constant
163 profileHelper, in testWorkToPrivate()
180 val profileHelper = createProfileHelper(launchedAs = privateUser) in testPrivateToPersonal() constant
184 profileHelper, in testPrivateToPersonal()
/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/accounts/
DAccountGroupPreferenceController.java59 ProfileHelper profileHelper = getProfileHelper(); in getDefaultAvailabilityStatus() local
60 boolean isCurrentUser = profileHelper.isCurrentProcessUser(getUserInfo()); in getDefaultAvailabilityStatus()
66 if (!isCurrentUser || profileHelper.isDemoOrGuest() in getDefaultAvailabilityStatus()
DAccountDetailsPreferenceController.java148 ProfileHelper profileHelper = getProfileHelper(); in getSecondaryActionAvailabilityStatus() local
149 if (profileHelper.canCurrentProcessModifyAccounts()) { in getSecondaryActionAvailabilityStatus()
152 if (profileHelper.isDemoOrGuest() in getSecondaryActionAvailabilityStatus()
DAccountListPreferenceController.java111 ProfileHelper profileHelper = getProfileHelper(); in getDefaultAvailabilityStatus() local
112 boolean canModifyAccounts = profileHelper.canCurrentProcessModifyAccounts(); in getDefaultAvailabilityStatus()
118 if (profileHelper.isDemoOrGuest() in getDefaultAvailabilityStatus()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DChooseNewAdminPreferenceController.java92 ProfileHelper profileHelper = ProfileHelper.getInstance(context); in removeOldAdmin() local
93 int removeUserResult = profileHelper.removeProfile(context, mAdminInfo); in removeOldAdmin()
98 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.java61 public RemoveProfileHandler(Context context, ProfileHelper profileHelper, in RemoveProfileHandler() argument
64 mProfileHelper = profileHelper; in RemoveProfileHandler()
DProfileDetailsActionButtonsPreferenceController.java89 CarUxRestrictions uxRestrictions, ProfileHelper profileHelper, UserManager userManager, in ProfileDetailsActionButtonsPreferenceController() argument
92 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.java1931 ProfileDatabaseHelper profileHelper) { in needsToUpdateLocaleData() argument
1943 profileHelper.needsToUpdateLocaleData(locales)) { in needsToUpdateLocaleData()
1991 ProfileDatabaseHelper profileHelper) { in updateLocaleOffline() argument
1994 if (!needsToUpdateLocaleData(prefs, currentLocales, contactsHelper, profileHelper)) { in updateLocaleOffline()
1999 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/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/
DNoAppsAvailableEmptyStateProvider.java46 ProfileHelper profileHelper, in NoAppsAvailableEmptyStateProvider() argument
50 mProfileHelper = profileHelper; in NoAppsAvailableEmptyStateProvider()
DWorkProfilePausedEmptyStateProvider.java50 ProfileHelper profileHelper, in WorkProfilePausedEmptyStateProvider() argument
55 mProfileHelper = profileHelper; in WorkProfilePausedEmptyStateProvider()
DNoCrossProfileEmptyStateProvider.java49 ProfileHelper profileHelper, in NoCrossProfileEmptyStateProvider() argument
53 mProfileHelper = profileHelper; in NoCrossProfileEmptyStateProvider()
/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()
/packages/apps/Car/Settings/src/com/android/car/settings/storage/
DStorageAsyncLoader.java63 PackageManager packageManager, ProfileHelper profileHelper) { in StorageAsyncLoader() argument
67 mProfileHelper = profileHelper; in StorageAsyncLoader()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java695 ProfileHelper profileHelper, ProfileAvailability profileAvailability) { in maybeDisableRecentsScreenshot() argument
696 for (Profile profile : profileHelper.getProfiles()) { in maybeDisableRecentsScreenshot()
1134 ProfileHelper profileHelper, in createEmptyStateProvider() argument
1141 profileHelper, in createEmptyStateProvider()
1412 ProfileHelper profileHelper, in createMultiProfilePagerAdapter() argument
1418 Profile launchedAs = profileHelper.getLaunchedAsProfile(); in createMultiProfilePagerAdapter()
1424 for (Profile profile : profileHelper.getProfiles()) { in createMultiProfilePagerAdapter()
1444 createEmptyStateProvider(profileHelper, profileAvailability); in createMultiProfilePagerAdapter()
1447 () -> !(profileHelper.getWorkProfilePresent() in createMultiProfilePagerAdapter()
1449 requireNonNull(profileHelper.getWorkProfile()))); in createMultiProfilePagerAdapter()
[all …]