Home
last modified time | relevance | path

Searched refs:hasWorkProfile (Results 1 – 9 of 9) sorted by relevance

/frameworks/base/packages/SystemUI/src/com/android/systemui/security/data/model/
DSecurityModel.kt30 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/
DFakeSecurityController.kt50 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/
DQSSecurityFooterUtils.java209 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/
DSecurityController.java30 boolean hasWorkProfile(); in hasWorkProfile() method
DSecurityControllerImpl.java225 public boolean hasWorkProfile() { in hasWorkProfile() method in SecurityControllerImpl
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeSecurityController.java42 public boolean hasWorkProfile() { in hasWorkProfile() method in FakeSecurityController
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java225 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/
DSecurityControllerTest.java170 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java725 private boolean hasWorkProfile() {
730 return hasWorkProfile() && ENABLE_TABBED_VIEW;
1507 if (!hasWorkProfile() || currentUserHandle.equals(getUser())) {