/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 99 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 | 209 final boolean hasWorkProfile = securityModel.getHasWorkProfile(); in getButtonConfig() 223 || vpnNameWorkProfile != null || (hasWorkProfile && isNetworkLoggingEnabled); in getButtonConfig() 242 String text = getFooterText(isDeviceManaged, hasWorkProfile, in getButtonConfig() 266 protected CharSequence getFooterText(boolean isDeviceManaged, boolean hasWorkProfile, in getFooterText() argument 279 return getManagedAndPersonalProfileFooterText(hasWorkProfile, hasCACerts, in getFooterText() 361 private String getManagedAndPersonalProfileFooterText(boolean hasWorkProfile, in getManagedAndPersonalProfileFooterText() argument 371 return getVpnText(hasWorkProfile, vpnName, vpnNameWorkProfile, isWorkProfileOn); in getManagedAndPersonalProfileFooterText() 373 if (hasWorkProfile && isNetworkLoggingEnabled && isWorkProfileOn) { in getManagedAndPersonalProfileFooterText() 402 private String getVpnText(boolean hasWorkProfile, String vpnName, String vpnNameWorkProfile, in getVpnText() argument 416 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 | 225 public boolean hasWorkProfile() { in hasWorkProfile() method in SecurityControllerImpl
|
/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 | 225 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testTappableView_profileOwnerOfOrgOwnedDevice_networkLoggingEnabled() 267 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOn() 280 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testNetworkLoggingEnabled_managedProfileOwner_workProfileOff() 478 when(mSecurityController.hasWorkProfile()).thenReturn(true); in testVpnEnabled()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | SecurityControllerTest.java | 170 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | ResolverActivity.java | 725 private boolean hasWorkProfile() { 730 return hasWorkProfile() && ENABLE_TABBED_VIEW; 1507 if (!hasWorkProfile() || currentUserHandle.equals(getUser())) {
|