Home
last modified time | relevance | path

Searched refs:profileType (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/Permission/service/java/com/android/safetycenter/logging/
DSafetyCenterStatsdLogger.java173 @ProfileType int profileType, in writeSafetySourceStateCollected() argument
193 toSourceStateCollectedProfileType(profileType), in writeSafetySourceStateCollected()
215 @ProfileType int profileType, in writeSourceRefreshSystemEvent() argument
227 toSystemEventProfileType(profileType), in writeSourceRefreshSystemEvent()
266 @ProfileType int profileType, in writeInlineActionSystemEvent() argument
277 toSystemEventProfileType(profileType), in writeInlineActionSystemEvent()
291 @ProfileType int profileType, in writeNotificationPostedEvent() argument
297 profileType, in writeNotificationPostedEvent()
308 @ProfileType int profileType, in writeNotificationDismissedEvent() argument
314 profileType, in writeNotificationDismissedEvent()
[all …]
DSafetyCenterPullAtomCallback.java156 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profileTypeIdx]; in writeSafetySourceStateCollectedAtomsLocked() local
157 if (!SafetySources.supportsProfileType(loggableSource, profileType)) { in writeSafetySourceStateCollectedAtomsLocked()
161 int[] profileIds = userProfileGroup.getProfilesOfType(profileType); in writeSafetySourceStateCollectedAtomsLocked()
164 loggableSource, profileIds[profileIdx], profileType); in writeSafetySourceStateCollectedAtomsLocked()
173 SafetySource safetySource, @UserIdInt int userId, @ProfileType int profileType) { in writeSafetySourceStateCollectedAtomLocked() argument
175 mDataManager.logSafetySourceStateCollectedAutomatic(sourceKey, profileType); in writeSafetySourceStateCollectedAtomLocked()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterDataFactory.java401 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profileTypeIdx]; in addSafetyCenterEntryGroup() local
402 if (!SafetySources.supportsProfileType(safetySource, profileType)) { in addSafetyCenterEntryGroup()
406 int[] profileIds = userProfileGroup.getProfilesOfType(profileType); in addSafetyCenterEntryGroup()
410 userProfileGroup.containsRunningUserId(profileId, profileType); in addSafetyCenterEntryGroup()
411 if (profileType == PROFILE_TYPE_PRIVATE && !isUserRunning) { in addSafetyCenterEntryGroup()
424 profileType, in addSafetyCenterEntryGroup()
578 @ProfileType int profileType, in addSafetyCenterEntry() argument
582 safetySource, defaultPackageName, userId, profileType, isUserRunning); in addSafetyCenterEntry()
659 @ProfileType int profileType, in toSafetyCenterEntry() argument
669 boolean inQuietMode = (PROFILE_TYPE_MANAGED == profileType) && !isUserRunning; in toSafetyCenterEntry()
[all …]
DUserProfileGroup.java255 public int[] getProfilesOfType(@ProfileType int profileType) { in getProfilesOfType() argument
256 switch (profileType) { in getProfilesOfType()
265 Log.w(TAG, "profiles requested for unexpected profile type " + profileType); in getProfilesOfType()
274 public int[] getRunningProfilesOfType(@ProfileType int profileType) { in getRunningProfilesOfType() argument
275 switch (profileType) { in getRunningProfilesOfType()
285 Log.w(TAG, "Unexpected profile type " + profileType); in getRunningProfilesOfType()
323 boolean containsRunningUserId(@UserIdInt int userId, @ProfileType int profileType) { in containsRunningUserId() argument
324 switch (profileType) { in containsRunningUserId()
337 Log.w(TAG, "Unexpected profile type " + profileType); in containsRunningUserId()
DSafetyCenterConfigReader.java525 List<String> getSourceIdsForProfileType(@ProfileType int profileType) { in getSourceIdsForProfileType() argument
526 switch (profileType) { in getSourceIdsForProfileType()
534 Log.w(TAG, "source ids asked for unexpected profile " + profileType); in getSourceIdsForProfileType()
545 List<String> getSourceIdsOnPageOpenForProfileType(@ProfileType int profileType) { in getSourceIdsOnPageOpenForProfileType() argument
546 switch (profileType) { in getSourceIdsOnPageOpenForProfileType()
554 Log.w(TAG, "source ids asked for unexpected profile " + profileType); in getSourceIdsOnPageOpenForProfileType()
DSafetySources.java61 SafetySource safetySource, @ProfileType int profileType) { in supportsProfileType() argument
62 if (UserProfileGroup.PROFILE_TYPE_PRIMARY == profileType) { in supportsProfileType()
DSafetyCenterBroadcastDispatcher.java354 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profilTypeIdx]; in getUserIdsToSourceIds() local
355 int[] runningProfiles = userProfileGroup.getRunningProfilesOfType(profileType); in getUserIdsToSourceIds()
360 broadcast.getSourceIdsForProfileType(profileType), in getUserIdsToSourceIds()
361 broadcast.getSourceIdsOnPageOpenForProfileType(profileType), in getUserIdsToSourceIds()
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DUserUtils.java52 int profileType = ProfileSelectFragment.ProfileType.PERSONAL; in getUser() local
54 profileType = ProfileSelectFragment.ProfileType.WORK; in getUser()
56 profileType = ProfileSelectFragment.ProfileType.PRIVATE; in getUser()
60 UserHandle userHandle = Utils.getProfileOfType(UserManager.get(context), profileType); in getUser()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/user/
DUserProfile.kt35 val profileType: ProfileType = ProfileType.UNKNOWN, constant in com.android.photopicker.core.user.UserProfile
47 profileType == other.profileType && in equals()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyCenterIssueRepository.java94 private void updateIssues(@UserIdInt int userId, @ProfileType int profileType) { in updateIssues() argument
96 getAllStoredIssuesFromRawSourceData(userId, profileType); in updateIssues()
186 @UserIdInt int userId, @ProfileType int profileType) { in getAllStoredIssuesFromRawSourceData() argument
193 allIssuesInfo, safetySourcesGroups.get(j), userId, profileType); in getAllStoredIssuesFromRawSourceData()
203 @ProfileType int profileType) { in addSafetySourceIssuesInfo() argument
211 if (!SafetySources.supportsProfileType(safetySource, profileType)) { in addSafetySourceIssuesInfo()
DSafetySourceStateCollectedLogger.java67 void writeAutomaticAtom(SafetySourceKey sourceKey, @ProfileType int profileType) { in writeAutomaticAtom() argument
73 profileType, in writeAutomaticAtom()
104 @ProfileType int profileType, in logSafetySourceStateCollected() argument
135 profileType, in logSafetySourceStateCollected() local
DSafetySourceDataValidator.java93 @UserProfileGroup.ProfileType int profileType = in validateRequest() local
95 if (!SafetySources.supportsProfileType(safetySource, profileType)) { in validateRequest()
98 + profileType in validateRequest()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/emptystate/
DNoAppsAvailableEmptyStateProvider.java63 Profile.Type profileType = in getEmptyState() local
65 String title = mProfilePagerResources.noAppsMessage(profileType); in getEmptyState()
69 /* isPersonalProfile= */ profileType == PERSONAL in getEmptyState()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java373 @ProfileType int profileType, in createAndGetFragment()
377 bundle.putInt(EXTRA_PROFILE, profileType); in createAndGetFragment()
434 int profileType = mChildFragments[position].getArguments().getInt(EXTRA_PROFILE); in getTabForPosition() local
435 return profileTypeToTab(profileType); in getTabForPosition()
450 private int profileTypeToTab(@ProfileType int profileType) { in profileTypeToTab() argument
451 if (profileType == ProfileType.WORK) { in profileTypeToTab()
454 if (profileType == ProfileType.PRIVATE) { in profileTypeToTab()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/core/user/
DUserMonitorTest.kt119 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
132 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
145 profileType = UserProfile.ProfileType.UNKNOWN, in <lambda>()
729 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
811 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
913 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
1002 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
1510 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
1516 profileType = UserProfile.ProfileType.PRIMARY, in <lambda>()
1520 profileType = UserProfile.ProfileType.MANAGED, in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/location/
DLocationPersonalSettings.java56 final int profileType = getArguments().getInt(ProfileSelectFragment.EXTRA_PROFILE); in onAttach() local
60 controller.setProfileType(profileType); in onAttach()
DLocationWorkProfileSettings.java67 final int profileType = getArguments().getInt(ProfileSelectFragment.EXTRA_PROFILE); in onAttach() local
71 controller.setProfileType(profileType); in onAttach()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelectorFeature.kt88 return when (userMonitor.launchingProfile.profileType) { in getBannerPriority()
103 it.profileType == UserProfile.ProfileType.PRIMARY in buildBanner()
145 it.profileType == UserProfile.ProfileType.PRIMARY in buildBanner()
DProfileSelector.kt278 return when (profile.profileType) { in getLabelForProfile()
296 return when (profile.profileType) { in getIconForProfile()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorViewModelTest.kt252 .that(viewModel.allProfiles.value.map { it.profileType }) in testExposesUserProfileFlowsForUi()
256 .that(viewModel.selectedProfile.value.profileType) in testExposesUserProfileFlowsForUi()
326 it.profileType == UserProfile.ProfileType.MANAGED in testProfileSwitchClearsSelection()
/packages/apps/Car/Settings/src/com/android/car/settings/profiles/
DRemoveProfileHandler.java77 String profileType = arguments.getString(ProfilesDialogProvider.KEY_PROFILE_TYPE); in setUserInfo()
78 if (profileType.equals(ProfilesDialogProvider.LAST_ADMIN)) { in setUserInfo()
/packages/modules/Uwb/service/java/com/android/server/uwb/
DUwbMetrics.java603 int profileType = uwbSession.getProfileType(); in logRangingResult() local
620 writeFirstValidRangingResultSinceStart(profileType, session); in logRangingResult()
642 profileType, report.mNlos, in logRangingResult()
653 private void writeFirstValidRangingResultSinceStart(int profileType, in writeFirstValidRangingResultSinceStart() argument
658 profileType, latencyMs, latencyMs / 200, session.mAttributionSource.getUid()); in writeFirstValidRangingResultSinceStart()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt173 fun MatrixCursor.addIndexableRow(title: CharSequence, profileType: ProfileType) = in <lambda>()
178 .add(COLUMN_KEY, safetySource.id.addSuffix(profileType)) in <lambda>()
231 private fun String.addSuffix(profileType: ProfileType): String = in <lambda>()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java73 final int profileType = getArguments().getInt(ProfileSelectFragment.EXTRA_PROFILE); in onAttach() local
78 switch (profileType) { in onAttach()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/data/
DPrefetchDataServiceImplTest.kt92 profileType = UserProfile.ProfileType.PRIMARY,
105 profileType = UserProfile.ProfileType.MANAGED,

12