Home
last modified time | relevance | path

Searched refs:ProfileType (Results 1 – 25 of 61) sorted by relevance

123

/packages/modules/Bluetooth/floss/hcidoc/src/groups/
Dinformational.rs235 profile_type: ProfileType, in report_profile_start() argument
250 profile_type: ProfileType, in report_profile_end() argument
301 let profile_option = ProfileType::from_psm(psm); in report_l2cap_conn_rsp()
358 let profile_option = ProfileType::from_psm(psm); in report_l2cap_disconn_rsp()
388 enum ProfileType { enum
400 impl fmt::Display for ProfileType { implementation
403 ProfileType::Att => "ATT", in fmt()
404 ProfileType::Avctp => "AVCTP", in fmt()
405 ProfileType::Avdtp => "AVDTP", in fmt()
406 ProfileType::Eatt => "EATT", in fmt()
[all …]
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/platform/
DFakeUserManagerTest.kt23 import com.android.intentresolver.platform.FakeUserManager.ProfileType in <lambda>()
45 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
60 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
74 val work = state.createProfile(ProfileType.WORK) in <lambda>()
75 val private = state.createProfile(ProfileType.PRIVATE) in <lambda>()
88 val clone = state.createProfile(ProfileType.CLONE) in <lambda>()
110 val workHandle = state.createProfile(ProfileType.WORK) in <lambda>()
122 val work = state.createProfile(ProfileType.WORK) in <lambda>()
123 val private = state.createProfile(ProfileType.PRIVATE) in <lambda>()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt175 fun MatrixCursor.addIndexableRow(title: CharSequence, profileType: ProfileType) = in <lambda>()
196 addIndexableRow(it.value.title, ProfileType.MANAGED) in <lambda>()
198 addIndexableRow(it.value.title, ProfileType.PRIMARY) in <lambda>()
207 addIndexableRow(title = it, ProfileType.PRIMARY) in <lambda>()
215 ?.let { addIndexableRow(title = it, ProfileType.MANAGED) } in <lambda>()
220 ?.let { addIndexableRow(title = it, ProfileType.PRIVATE) } in <lambda>()
232 private fun String.addSuffix(profileType: ProfileType): String = in <lambda>()
268 keysToRemove.add(safetySource.id.addSuffix(ProfileType.PRIMARY)) in <lambda>()
270 keysToRemove.add(safetySource.id.addSuffix(ProfileType.MANAGED)) in <lambda>()
272 keysToRemove.add(safetySource.id.addSuffix(ProfileType.PRIVATE)) in <lambda>()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java76 ProfileType.PERSONAL,
77 ProfileType.WORK,
78 ProfileType.ALL
80 public @interface ProfileType { annotation in ProfileSelectFragment
335 ProfileType.PERSONAL, in getFragments()
340 ProfileType.WORK, in getFragments()
348 ProfileType.PRIVATE, in getFragments()
367 @ProfileType int profileType, Bundle bundle, FragmentConstructor fragmentConstructor) { in createAndGetFragment()
423 @ProfileType in getTabForPosition()
440 private int profileTypeToTab(@ProfileType int profileType) { in profileTypeToTab()
[all …]
/packages/modules/Permission/service/java/com/android/safetycenter/logging/
DSafetyCenterStatsdLogger.java95 import com.android.safetycenter.UserProfileGroup.ProfileType;
173 @ProfileType int profileType, in writeSafetySourceStateCollected()
215 @ProfileType int profileType, in writeSourceRefreshSystemEvent()
266 @ProfileType int profileType, in writeInlineActionSystemEvent()
291 @ProfileType int profileType, in writeNotificationPostedEvent()
308 @ProfileType int profileType, in writeNotificationDismissedEvent()
325 @ProfileType int profileType, in writeNotificationActionClickedEvent()
340 @ProfileType int profileType, in writeNotificationInteractionReportedEvent()
394 private static int toSourceStateCollectedProfileType(@ProfileType int profileType) { in toSourceStateCollectedProfileType()
407 private static int toSystemEventProfileType(@ProfileType int profileType) { in toSystemEventProfileType()
[all …]
DSafetyCenterPullAtomCallback.java41 import com.android.safetycenter.UserProfileGroup.ProfileType;
154 profileTypeIdx < ProfileType.ALL_PROFILE_TYPES.length; in writeSafetySourceStateCollectedAtomsLocked()
156 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profileTypeIdx]; in writeSafetySourceStateCollectedAtomsLocked()
173 SafetySource safetySource, @UserIdInt int userId, @ProfileType int profileType) { in writeSafetySourceStateCollectedAtomLocked()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/features/profileselector/
DProfileSelector.kt184 UserProfile.ProfileType.PRIMARY -> in getLabelForProfile()
186 UserProfile.ProfileType.MANAGED -> in getLabelForProfile()
188 UserProfile.ProfileType.UNKNOWN -> in getLabelForProfile()
202 UserProfile.ProfileType.PRIMARY -> Icons.Filled.AccountCircle in getIconForProfile()
203 UserProfile.ProfileType.MANAGED -> Icons.Filled.Work in getIconForProfile()
204 UserProfile.ProfileType.UNKNOWN -> Icons.Filled.Person in getIconForProfile()
/packages/apps/Settings/src/com/android/settings/location/
DRecentLocationRequestPreferenceController.java46 private int mType = ProfileSelectFragment.ProfileType.ALL;
130 public void setProfileType(@ProfileSelectFragment.ProfileType int type) { in setProfileType()
152 RecentLocationApps.Request request, @ProfileSelectFragment.ProfileType int type) { in isRequestMatchesProfileType()
155 if (isWorkProfile && (type & ProfileSelectFragment.ProfileType.WORK) != 0) { in isRequestMatchesProfileType()
158 if (!isWorkProfile && (type & ProfileSelectFragment.ProfileType.PERSONAL) != 0) { in isRequestMatchesProfileType()
DRecentLocationAccessPreferenceController.java50 private int mType = ProfileSelectFragment.ProfileType.ALL;
161 public void setProfileType(@ProfileSelectFragment.ProfileType int type) { in setProfileType()
186 RecentAppOpsAccess.Access access, @ProfileSelectFragment.ProfileType int type) { in isRequestMatchesProfileType()
190 if (isWorkProfile && (type & ProfileSelectFragment.ProfileType.WORK) != 0) { in isRequestMatchesProfileType()
193 if (!isWorkProfile && (type & ProfileSelectFragment.ProfileType.PERSONAL) != 0) { in isRequestMatchesProfileType()
/packages/modules/IntentResolver/tests/shared/src/com/android/intentresolver/platform/
DFakeUserManager.kt65 enum class ProfileType { in <lambda>() class in com.android.intentresolver.platform.FakeUserManager
171 fun createProfile(type: ProfileType, parent: UserHandle = primaryUserHandle): UserHandle { in <lambda>()
223 private fun FakeUserManager.ProfileType.toUserType(): String { in FakeUserManager()
225 FakeUserManager.ProfileType.WORK -> UserManager.USER_TYPE_PROFILE_MANAGED in FakeUserManager()
226 FakeUserManager.ProfileType.CLONE -> UserManager.USER_TYPE_PROFILE_CLONE in FakeUserManager()
227 FakeUserManager.ProfileType.PRIVATE -> UserManager.USER_TYPE_PROFILE_PRIVATE in FakeUserManager()
/packages/providers/MediaProvider/photopicker/src/com/android/photopicker/core/user/
DUserProfile.kt34 val profileType: ProfileType = ProfileType.UNKNOWN,
56 enum class ProfileType { class in com.android.photopicker.core.user.UserProfile
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/data/repository/
DUserRepositoryImplTest.kt26 import com.android.intentresolver.platform.FakeUserManager.ProfileType
62 val profile = userState.createProfile(ProfileType.WORK) in <lambda>()
73 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
83 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
99 val private = userState.createProfile(ProfileType.PRIVATE) in <lambda>()
117 val work = userState.createProfile(ProfileType.WORK) in <lambda>()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/profiles/
DMultiProfilePagerAdapter.java69 public @interface ProfileType {} annotation in MultiProfilePagerAdapter
92 @ProfileType int defaultProfile, in MultiProfilePagerAdapter()
129 @ProfileType int profile, in createProfileDescriptor()
149 public final boolean hasPageForProfile(@ProfileType int profile) { in hasPageForProfile()
153 private @ProfileType int getProfileForPageNumber(int position) { in getProfileForPageNumber()
160 public int getPageNumberForProfile(@ProfileType int profile) { in getPageNumberForProfile()
177 private @ProfileType int getProfileForUserHandle(UserHandle userHandle) { in getProfileForUserHandle()
283 public void onProfilePageSelected(@ProfileType int profileId, int pageNumber) { in setupProfileTabs()
365 public final @ProfileType int getActiveProfile() { in getActiveProfile()
DTabConfig.java20 final @MultiProfilePagerAdapter.ProfileType int mProfile;
27 @MultiProfilePagerAdapter.ProfileType int profile, in TabConfig()
/packages/apps/Settings/tests/robotests/src/com/android/settings/dashboard/profileselector/
DProfileSelectLocationFragmentTest.java78 EXTRA_PROFILE, -1)).isEqualTo(ProfileSelectFragment.ProfileType.PERSONAL); in getFragments_containsCorrectBundle()
80 EXTRA_PROFILE, -1)).isEqualTo(ProfileSelectFragment.ProfileType.WORK); in getFragments_containsCorrectBundle()
82 EXTRA_PROFILE, -1)).isEqualTo(ProfileSelectFragment.ProfileType.PRIVATE); in getFragments_containsCorrectBundle()
DProfileSelectFragmentTest.java348 ProfileSelectFragment.ProfileType.PERSONAL, in testGetFragments_whenAvailableBundle_returnsFragmentsWithCorrectBundles()
349 ProfileSelectFragment.ProfileType.WORK, in testGetFragments_whenAvailableBundle_returnsFragmentsWithCorrectBundles()
350 ProfileSelectFragment.ProfileType.PRIVATE); in testGetFragments_whenAvailableBundle_returnsFragmentsWithCorrectBundles()
359 personalBundle.putInt(EXTRA_PROFILE, ProfileType.PERSONAL); in getFragments()
364 workBundle.putInt(EXTRA_PROFILE, ProfileType.WORK); in getFragments()
369 privateBundle.putInt(EXTRA_PROFILE, ProfileType.PRIVATE); in getFragments()
/packages/modules/Permission/service/java/com/android/safetycenter/
DSafetyCenterDataFactory.java61 import com.android.safetycenter.UserProfileGroup.ProfileType;
398 profileTypeIdx < ProfileType.ALL_PROFILE_TYPES.length; in addSafetyCenterEntryGroup()
400 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profileTypeIdx]; in addSafetyCenterEntryGroup()
561 @ProfileType int profileType, in addSafetyCenterEntry()
587 @ProfileType int profileType, in toSafetyCenterEntry()
684 @ProfileType int profileType, in toDefaultSafetyCenterEntry()
738 profileTypeIdx < ProfileType.ALL_PROFILE_TYPES.length; in addSafetyCenterStaticEntryGroup()
740 @ProfileType int profileType = ProfileType.ALL_PROFILE_TYPES[profileTypeIdx]; in addSafetyCenterStaticEntryGroup()
782 @ProfileType int profileType, in addSafetyCenterStaticEntry()
818 @ProfileType int profileType, in toSafetyCenterStaticEntry()
[all …]
DUserProfileGroup.java71 public @interface ProfileType { annotation in UserProfileGroup
299 public int[] getProfilesOfType(@ProfileType int profileType) { in getProfilesOfType()
318 public int[] getRunningProfilesOfType(@ProfileType int profileType) { in getRunningProfilesOfType()
353 public static @ProfileType int getProfileTypeOfUser(@UserIdInt int userId, Context context) { in getProfileTypeOfUser()
367 boolean containsRunningUserId(@UserIdInt int userId, @ProfileType int profileType) { in containsRunningUserId()
/packages/apps/Settings/src/com/android/settings/inputmethod/
DAvailableVirtualKeyboardFragment.java79 case ProfileSelectFragment.ProfileType.WORK: { in onAttach()
87 case ProfileSelectFragment.ProfileType.PRIVATE: { in onAttach()
93 userManager, ProfileSelectFragment.ProfileType.PRIVATE); in onAttach()
97 case ProfileSelectFragment.ProfileType.PERSONAL: { in onAttach()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java56 import com.android.settings.dashboard.profileselector.ProfileSelectFragment.ProfileType;
104 ProfileSelectFragment.ProfileType.PERSONAL); in setUp()
191 mSvp, ProfileSelectFragment.ProfileType.PERSONAL); in launchImagesIntent_resolveActionViewNull_settingsIntent()
208 mSvp, ProfileSelectFragment.ProfileType.PERSONAL); in launchAudioIntent_resolveActionViewNull_settingsIntent()
260 ProfileType.WORK); in launchAppsIntent_forWork_settingsIntent()
290 mSvp, ProfileSelectFragment.ProfileType.PERSONAL); in launchDocumentsIntent_resolveActionViewNull_settingsIntent()
307 mSvp, ProfileSelectFragment.ProfileType.PERSONAL); in launchOtherIntent_resolveActionViewNull_settingsIntent()
342 mSvp, ProfileSelectFragment.ProfileType.PERSONAL); in launchVideosIntent_resolveActionViewNull_settingsIntent()
512 VolumeInfo volume, StorageVolumeProvider svp, @ProfileType int profileType) { in FakeStorageItemPreferenceController()
/packages/apps/Settings/src/com/android/settings/deviceinfo/
DStorageCategoryFragment.java40 import com.android.settings.dashboard.profileselector.ProfileSelectFragment.ProfileType;
89 private @ProfileType int mProfileType;
233 if (mProfileType == ProfileSelectFragment.ProfileType.WORK) { in getMetricsCategory()
235 } else if (mProfileType == ProfileSelectFragment.ProfileType.PRIVATE) { in getMetricsCategory()
259 mNonCurrentUsers = mProfileType == ProfileSelectFragment.ProfileType.PERSONAL in createPreferenceControllers()
/packages/modules/Permission/service/java/com/android/safetycenter/data/
DSafetyCenterIssueRepository.java39 import com.android.safetycenter.UserProfileGroup.ProfileType;
94 private void updateIssues(@UserIdInt int userId, @ProfileType int profileType) { in updateIssues()
186 @UserIdInt int userId, @ProfileType int profileType) { in getAllStoredIssuesFromRawSourceData()
203 @ProfileType int profileType) { in addSafetySourceIssuesInfo()
DSafetySourceStateCollectedLogger.java32 import com.android.safetycenter.UserProfileGroup.ProfileType;
67 void writeAutomaticAtom(SafetySourceKey sourceKey, @ProfileType int profileType) { in writeAutomaticAtom()
104 @ProfileType int profileType, in logSafetySourceStateCollected()
/packages/providers/MediaProvider/photopicker/tests/src/com/android/photopicker/features/profileselector/
DProfileSelectorViewModelTest.kt191 .isEqualTo(listOf(UserProfile.ProfileType.PRIMARY, UserProfile.ProfileType.MANAGED)) in testExposesUserProfileFlowsForUi()
195 .isEqualTo(UserProfile.ProfileType.PRIMARY) in testExposesUserProfileFlowsForUi()
237 it.profileType == UserProfile.ProfileType.MANAGED in testProfileSwitchClearsSelection()
/packages/apps/Settings/src/com/android/settings/password/
DChooseLockPassword.java275 protected enum ProfileType { enum in ChooseLockPassword.ChooseLockPasswordFragment
281 protected ProfileType mProfileType;
416 public String getHint(Context context, boolean isAlpha, int type, ProfileType profile) { in getHint()
420 && profile.equals(ProfileType.Private)) { in getHint()
428 } else if (profile.equals(ProfileType.Managed)) { in getHint()
438 && profile.equals(ProfileType.Private)) { in getHint()
446 } else if (profile.equals(ProfileType.Managed)) { in getHint()
1147 private ProfileType getProfileType() { in getProfileType()
1151 return ProfileType.Managed; in getProfileType()
1155 return ProfileType.Private; in getProfileType()
[all …]

123