Searched refs:isWorkProfile (Results 1 – 6 of 6) sorted by relevance
45 if (hostAppUserHandle.isWorkProfile() && workProfileScreenCaptureDisabled) { in isScreenCaptureAllowed()55 if (targetAppUserHandle.isWorkProfile()) { in isScreenCaptureAllowed()63 if (hostAppUserHandle.isWorkProfile() && disallowSharingIntoManagedProfile) { in isScreenCaptureAllowed()124 private fun UserHandle?.isWorkProfile(): Boolean = this == workProfileUserHandle method in com.android.systemui.mediaprojection.devicepolicy.ScreenCaptureDevicePolicyResolver
206 boolean isWorkProfile) { in logStartedIntentWithProfile() argument212 return logSettingsTileClickWithProfile(key, sourceMetricsCategory, isWorkProfile); in logStartedIntentWithProfile()236 boolean isWorkProfile) { in logSettingsTileClickWithProfile() argument241 clicked(sourceMetricsCategory, logKey + (isWorkProfile ? "/work" : "/personal")); in logSettingsTileClickWithProfile()
106 assertThat(BatteryUtils.isWorkProfile(mContext)).isFalse(); in isWorkProfile_defaultValue_returnFalse()115 assertThat(BatteryUtils.isWorkProfile(mContext)).isTrue(); in isWorkProfile_workProfileMode_returnTrue()
219 protected boolean isWorkProfile() { in isWorkProfile() method in ChooserWrapperActivity223 return super.isWorkProfile(); in isWorkProfile()
81 public static boolean isWorkProfile(Context context) { in isWorkProfile() method in BatteryUtils
1219 if (isWorkProfile(mContext)) { in notifyBroadcastStateChange()1230 private boolean isWorkProfile(Context context) { in isWorkProfile() method in LocalBluetoothLeBroadcast