Home
last modified time | relevance | path

Searched refs:isWorkProfile (Results 1 – 25 of 26) sorted by relevance

12

/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/
DSafetyCenterSearchIndexablesProvider.kt168 fun MatrixCursor.addIndexableRow(title: CharSequence, isWorkProfile: Boolean) = in <lambda>()
173 .add(COLUMN_KEY, safetySource.id.addSuffix(isWorkProfile)) in <lambda>()
185 val isWorkProfile = userManager.isManagedProfile(it.key.userId) in <lambda>() constant
186 if (isWorkProfile) { in <lambda>()
191 addIndexableRow(it.value.title, isWorkProfile) in <lambda>()
198 addIndexableRow(title = it, isWorkProfile = false) in <lambda>()
204 addIndexableRow(title = it, isWorkProfile = true) in <lambda>()
216 private fun String.addSuffix(isWorkProfile: Boolean): String = in <lambda>()
246 keysToRemove.add(safetySource.id.addSuffix(isWorkProfile = false)) in <lambda>()
248 keysToRemove.add(safetySource.id.addSuffix(isWorkProfile = true)) in <lambda>()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/dirlist/
DDocumentHolder.java182 protected String getPreviewIconContentDescription(boolean isWorkProfile, String fileName) { in getPreviewIconContentDescription() argument
184 return getUpdatablePreviewIconContentDescription(isWorkProfile, fileName); in getPreviewIconContentDescription()
187 isWorkProfile ? R.string.preview_work_file : R.string.preview_file, fileName); in getPreviewIconContentDescription()
193 boolean isWorkProfile, String fileName) { in getUpdatablePreviewIconContentDescription() argument
196 String updatableStringId = isWorkProfile ? PREVIEW_WORK_FILE_ACCESSIBILITY : UNDEFINED; in getUpdatablePreviewIconContentDescription()
198 isWorkProfile ? R.string.preview_work_file : R.string.preview_file; in getUpdatablePreviewIconContentDescription()
/packages/providers/MediaProvider/src/com/android/providers/media/util/
DUserCache.java132 public boolean isWorkProfile(int userId) { in isWorkProfile() method in UserCache
149 boolean isWorkProfile = false; in isWorkProfile()
156 isWorkProfile = true; in isWorkProfile()
161 if(!isWorkProfile) { in isWorkProfile()
168 return isWorkProfile; in isWorkProfile()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/logging/
DEventLog.java71 boolean isWorkProfile, in write() argument
114 boolean isWorkProfile, String targetMimeType, long systemCost) { in logChooserActivityShown() argument
117 isWorkProfile ? MetricsEvent.MANAGED_PROFILE : MetricsEvent.PARENT_PROFILE) in logChooserActivityShown()
502 boolean isWorkProfile, in write() argument
515 /* is_workprofile */ isWorkProfile, in write()
/packages/apps/Settings/src/com/android/settings/location/
DRecentLocationRequestPreferenceController.java153 final boolean isWorkProfile = userManager.isManagedProfile( in isRequestMatchesProfileType()
155 if (isWorkProfile && (type & ProfileSelectFragment.ProfileType.WORK) != 0) { in isRequestMatchesProfileType()
158 if (!isWorkProfile && (type & ProfileSelectFragment.ProfileType.PERSONAL) != 0) { in isRequestMatchesProfileType()
DRecentLocationAccessPreferenceController.java187 final boolean isWorkProfile = userManager.isManagedProfile( in isRequestMatchesProfileType()
189 if (isWorkProfile && (type & ProfileSelectFragment.ProfileType.WORK) != 0) { in isRequestMatchesProfileType()
192 if (!isWorkProfile && (type & ProfileSelectFragment.ProfileType.PERSONAL) != 0) { in isRequestMatchesProfileType()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/ui/
DStaticSafetyEntryPreference.java84 boolean isWorkProfile = in setupPreferenceKey()
88 if (isWorkProfile) { in setupPreferenceKey()
DSafetySubpageEntryPreference.kt96 val isWorkProfile = in setupPreferenceKey() constant
98 val keySuffix = if (isWorkProfile) WORK_PROFILE_SUFFIX else PERSONAL_PROFILE_SUFFIX in setupPreferenceKey()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/logging/
DEventLogTest.java78 final boolean isWorkProfile = false; in testLogChooserActivityShown_personalProfile()
82 mChooserLogger.logChooserActivityShown(isWorkProfile, mimeType, systemCost); in testLogChooserActivityShown_personalProfile()
97 final boolean isWorkProfile = true; in testLogChooserActivityShown_workProfile()
101 mChooserLogger.logChooserActivityShown(isWorkProfile, mimeType, systemCost); in testLogChooserActivityShown_workProfile()
/packages/apps/Settings/src/com/android/settings/core/
DPreferenceControllerListHelper.java76 final boolean isWorkProfile = metadata.getBoolean(METADATA_FOR_WORK, false); in getPreferenceControllersFromXml()
84 key, isWorkProfile); in getPreferenceControllersFromXml()
DBasePreferenceController.java180 String key, boolean isWorkProfile) { in createInstance() argument
188 controller.setForWork(isWorkProfile); in createInstance()
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/
DChooserWrapperActivity.java227 protected boolean isWorkProfile() { in isWorkProfile() method in ChooserWrapperActivity
231 return super.isWorkProfile(); in isWorkProfile()
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/
DProfileSelectFragment.java214 final boolean isWorkProfile = UserManager.get(activity).isManagedProfile(userId); in getTabId()
215 if (isWorkProfile) { in getTabId()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/
DPeriodicJobReceiver.java50 if (DatabaseUtils.isWorkProfile(context)) { in loadDataAndRefreshJob()
DBootBroadcastReceiver.java59 if (DatabaseUtils.isWorkProfile(context)) { in onReceive()
DDatabaseUtils.java145 public static boolean isWorkProfile(Context context) { in isWorkProfile() method in DatabaseUtils
425 if (isWorkProfile(context)) { in getParentContext()
DBatteryUsageContentProvider.java111 if (DatabaseUtils.isWorkProfile(getContext())) { in onCreate()
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/
DBugReportContentProvider.java47 if (DatabaseUtils.isWorkProfile(context)) { in dump()
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceController.java146 VolumeInfo volume, StorageVolumeProvider svp, boolean isWorkProfile) { in StorageItemPreferenceController() argument
153 mIsWorkProfile = isWorkProfile; in StorageItemPreferenceController()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DDatabaseUtilsTest.java96 assertThat(DatabaseUtils.isWorkProfile(mContext)).isFalse(); in isWorkProfile_defaultValue_returnFalse()
102 assertThat(DatabaseUtils.isWorkProfile(mContext)).isTrue(); in isWorkProfile_withManagedUser_returnTrue()
/packages/apps/Settings/src/com/android/settings/accounts/
DAccountSyncSettings.java159 boolean isWorkProfile = user != null ? user.isManagedProfile() : false; in setAccessibilityTitle()
165 isWorkProfile in setAccessibilityTitle()
/packages/apps/Settings/src/com/android/settings/applications/credentials/
DCredentialManagerPreferenceController.java182 boolean isWorkProfile) { in init() argument
185 mIsWorkProfile = isWorkProfile; in init()
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/
DStorageItemPreferenceControllerTest.java457 VolumeInfo volume, StorageVolumeProvider svp, boolean isWorkProfile) { in FakeStorageItemPreferenceController() argument
458 super(context, hostFragment, volume, svp, isWorkProfile); in FakeStorageItemPreferenceController()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/
DChooserActivity.java319 isWorkProfile(), mChooserRequest.getTargetType(), systemCost); in onCreate()
341 isWorkProfile(), in onCreate()
565 protected boolean isWorkProfile() { in isWorkProfile() method in ChooserActivity
/packages/apps/Settings/src/com/android/settings/
DUtils.java491 public static int getCurrentUserId(UserManager userManager, boolean isWorkProfile) in getCurrentUserId() argument
493 if (isWorkProfile) { in getCurrentUserId()

12