/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/safetycenter/service/ |
D | SafetyCenterSearchIndexablesProvider.kt | 168 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/ |
D | DocumentHolder.java | 182 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/ |
D | UserCache.java | 132 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/ |
D | EventLog.java | 71 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/ |
D | RecentLocationRequestPreferenceController.java | 153 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()
|
D | RecentLocationAccessPreferenceController.java | 187 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/ |
D | StaticSafetyEntryPreference.java | 84 boolean isWorkProfile = in setupPreferenceKey() 88 if (isWorkProfile) { in setupPreferenceKey()
|
D | SafetySubpageEntryPreference.kt | 96 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/ |
D | EventLogTest.java | 78 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/ |
D | PreferenceControllerListHelper.java | 76 final boolean isWorkProfile = metadata.getBoolean(METADATA_FOR_WORK, false); in getPreferenceControllersFromXml() 84 key, isWorkProfile); in getPreferenceControllersFromXml()
|
D | BasePreferenceController.java | 180 String key, boolean isWorkProfile) { in createInstance() argument 188 controller.setForWork(isWorkProfile); in createInstance()
|
/packages/modules/IntentResolver/java/tests/src/com/android/intentresolver/ |
D | ChooserWrapperActivity.java | 227 protected boolean isWorkProfile() { in isWorkProfile() method in ChooserWrapperActivity 231 return super.isWorkProfile(); in isWorkProfile()
|
/packages/apps/Settings/src/com/android/settings/dashboard/profileselector/ |
D | ProfileSelectFragment.java | 214 final boolean isWorkProfile = UserManager.get(activity).isManagedProfile(userId); in getTabId() 215 if (isWorkProfile) { in getTabId()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/ |
D | PeriodicJobReceiver.java | 50 if (DatabaseUtils.isWorkProfile(context)) { in loadDataAndRefreshJob()
|
D | BootBroadcastReceiver.java | 59 if (DatabaseUtils.isWorkProfile(context)) { in onReceive()
|
D | DatabaseUtils.java | 145 public static boolean isWorkProfile(Context context) { in isWorkProfile() method in DatabaseUtils 425 if (isWorkProfile(context)) { in getParentContext()
|
D | BatteryUsageContentProvider.java | 111 if (DatabaseUtils.isWorkProfile(getContext())) { in onCreate()
|
/packages/apps/Settings/src/com/android/settings/fuelgauge/batteryusage/bugreport/ |
D | BugReportContentProvider.java | 47 if (DatabaseUtils.isWorkProfile(context)) { in dump()
|
/packages/apps/Settings/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceController.java | 146 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/ |
D | DatabaseUtilsTest.java | 96 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/ |
D | AccountSyncSettings.java | 159 boolean isWorkProfile = user != null ? user.isManagedProfile() : false; in setAccessibilityTitle() 165 isWorkProfile in setAccessibilityTitle()
|
/packages/apps/Settings/src/com/android/settings/applications/credentials/ |
D | CredentialManagerPreferenceController.java | 182 boolean isWorkProfile) { in init() argument 185 mIsWorkProfile = isWorkProfile; in init()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/deviceinfo/storage/ |
D | StorageItemPreferenceControllerTest.java | 457 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/ |
D | ChooserActivity.java | 319 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/ |
D | Utils.java | 491 public static int getCurrentUserId(UserManager userManager, boolean isWorkProfile) in getCurrentUserId() argument 493 if (isWorkProfile) { in getCurrentUserId()
|