Home
last modified time | relevance | path

Searched refs:hasWorkProfile (Results 1 – 10 of 10) 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
103 var hasWorkProfile: Boolean = false, variable in com.android.systemui.statusbar.policy.FakeSecurityController.FakeState
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java210 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/
DSecurityController.java30 boolean hasWorkProfile(); in hasWorkProfile() method
DSecurityControllerImpl.java250 public boolean hasWorkProfile() { in hasWorkProfile() method in SecurityControllerImpl
/frameworks/base/packages/SystemUI/src/com/android/systemui/mediaprojection/appselector/
DMediaProjectionAppSelectorActivity.kt228 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/
DFakeSecurityController.java42 public boolean hasWorkProfile() { in hasWorkProfile() method in FakeSecurityController
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java235 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/
DSecurityControllerTest.java173 assertTrue(mSecurityController.hasWorkProfile()); in testWorkAccount()
/frameworks/base/core/java/com/android/internal/app/
DResolverActivity.java846 private boolean hasWorkProfile() {
878 return hasWorkProfile() && ENABLE_TABBED_VIEW;
1670 if (!hasWorkProfile() || currentUserHandle.equals(getUser())) {