/frameworks/base/packages/SystemUI/src/com/android/systemui/security/data/model/ |
D | SecurityModel.kt | 30 val hasWorkProfile: Boolean, constant in com.android.systemui.security.data.model.SecurityModel 71 hasWorkProfile = securityController.hasWorkProfile(), in create()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/ |
D | FakeSecurityController.kt | 50 override fun hasWorkProfile(): Boolean = fakeState.hasWorkProfile in isDeviceManaged() method in com.android.systemui.statusbar.policy.FakeSecurityController 103 var hasWorkProfile: Boolean = false, variable in com.android.systemui.statusbar.policy.FakeSecurityController.FakeState
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/ |
D | QSSecurityFooterUtils.java | 210 final boolean hasWorkProfile = securityModel.getHasWorkProfile(); in getButtonConfig() 224 || vpnNameWorkProfile != null || (hasWorkProfile && isNetworkLoggingEnabled); in getButtonConfig() 243 String text = getFooterText(isDeviceManaged, hasWorkProfile, in getButtonConfig() 267 protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile, in getFooterText() argument 280 return getManagedAndPersonalProfileFooterText(hasWorkProfile, hasCACerts, in getFooterText() 362 private String getManagedAndPersonalProfileFooterText(boolean hasWorkProfile, in getManagedAndPersonalProfileFooterText() argument 372 return getVpnText(hasWorkProfile, vpnName, vpnNameWorkProfile, isWorkProfileOn); in getManagedAndPersonalProfileFooterText() 374 if (hasWorkProfile && isNetworkLoggingEnabled && isWorkProfileOn) { in getManagedAndPersonalProfileFooterText() 403 private String getVpnText(boolean hasWorkProfile, String vpnName, String vpnNameWorkProfile, in getVpnText() argument 417 if (hasWorkProfile) { in getVpnText() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
D | SecurityController.java | 30 boolean hasWorkProfile(); in hasWorkProfile() method
|
D | SecurityControllerImpl.java | 250 public boolean hasWorkProfile() { in hasWorkProfile() method in SecurityControllerImpl
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/ |
D | MediaProjectionAppSelectorActivity.kt | 228 if (!hasWorkProfile()) { in bind() 277 if (hasWorkProfile()) { in shouldGetOnlyDefaultActivities() 291 private fun hasWorkProfile() = mMultiProfilePagerAdapter.count > 1 in shouldShowStickyContentPreviewWhenEmpty() method
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/ |
D | FakeSecurityController.java | 42 public boolean hasWorkProfile() { in hasWorkProfile() method in FakeSecurityController
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSSecurityFooterTest.java | 235 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testTappableView_profileOwnerOfOrgOwnedDevice_networkLoggingEnabled() 277 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOn() 290 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOff() 488 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testVpnEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 173 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverActivity.java | 846 private boolean hasWorkProfile() { 878 return hasWorkProfile() && ENABLE_TABBED_VIEW; 1670 if (!hasWorkProfile() || currentUserHandle.equals(getUser())) {
|