Home
last modified time | relevance | path

Searched refs:hasDeviceOwner (Results 1 – 21 of 21) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DPrivacyPreferenceControllerHelperTest.java107 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(true); in hasDeviceOwner_deviceOwner_returnsTrue()
109 assertThat(mPrivacyPreferenceControllerHelper.hasDeviceOwner()).isTrue(); in hasDeviceOwner_deviceOwner_returnsTrue()
114 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()).thenReturn(false); in hasDeviceOwner_noDeviceOwner_returnsFalse()
116 assertThat(mPrivacyPreferenceControllerHelper.hasDeviceOwner()).isFalse(); in hasDeviceOwner_noDeviceOwner_returnsFalse()
DEnterprisePrivacyPreferenceControllerTest.java70 when(mPrivacyPreferenceControllerHelper.hasDeviceOwner()).thenReturn(false); in testIsAvailable_noDeviceOwner_returnsFalse()
77 when(mPrivacyPreferenceControllerHelper.hasDeviceOwner()).thenReturn(true); in testIsAvailable_deviceOwner_financedDevice_returnsFalse()
85 when(mPrivacyPreferenceControllerHelper.hasDeviceOwner()).thenReturn(true); in testIsAvailable_deviceOwner_enterpriseDevice_returnsTrue()
DEnterprisePrivacySettingsTest.java98 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()) in isPageEnabled_hasDeviceOwner_returnsTrue()
108 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()) in isPageEnabled_noDeviceOwner_returnsFalse()
DEnterprisePrivacyFeatureProviderImplTest.java122 assertThat(mProvider.hasDeviceOwner()).isFalse(); in testHasDeviceOwner()
125 assertThat(mProvider.hasDeviceOwner()).isTrue(); in testHasDeviceOwner()
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/enterprise/
DEnterpriseUtilsTest.java24 import static com.android.car.settings.enterprise.EnterpriseUtils.hasDeviceOwner;
158 assertThat(hasDeviceOwner(mSpiedContext)).isFalse(); in testHasDeviceOwner_unmanagedDevice()
166 assertThat(hasDeviceOwner(mSpiedContext)).isFalse(); in testHasDeviceOwner_managedDevice_noDeviceOwnerComponent()
175 assertThat(hasDeviceOwner(mSpiedContext)).isTrue(); in testHasDeviceOwner()
/packages/apps/Settings/src/com/android/settings/enterprise/
DPrivacyPreferenceControllerHelper.java69 boolean hasDeviceOwner() { in hasDeviceOwner() method in PrivacyPreferenceControllerHelper
70 return mFeatureProvider.hasDeviceOwner(); in hasDeviceOwner()
DEnterprisePrivacyFeatureProviderImpl.java75 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl
81 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode()
96 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
DEnterprisePrivacyFeatureProvider.java28 boolean hasDeviceOwner(); in hasDeviceOwner() method
DEnterprisePrivacyPreferenceController.java50 return mPrivacyPreferenceControllerHelper.hasDeviceOwner() in getAvailabilityStatus()
DEnterprisePrivacySettings.java173 .hasDeviceOwner(); in isPageEnabled()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java68 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl
74 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode()
89 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
DEnterprisePrivacyFeatureProvider.java26 boolean hasDeviceOwner(); in hasDeviceOwner() method
DEnterprisePrivacySettingsFragment.java68 context).hasDeviceOwner(); in isPageEnabled()
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/
DEnterprisePrivacyFeatureProviderImpl.java68 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl
74 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode()
89 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
DEnterprisePrivacyFeatureProvider.java26 boolean hasDeviceOwner(); in hasDeviceOwner() method
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/
DEnterprisePrivacySettingsFragment.java48 if (!EnterpriseUtils.hasDeviceOwner(context)) { in onAttach()
DEnterprisePrivacySettingsPreferenceController.java48 if (!EnterpriseUtils.hasDeviceOwner(getContext())) { in getDefaultAvailabilityStatus()
DEnterpriseDisclosurePreferenceController.java43 return EnterpriseUtils.hasDeviceOwner(getContext()) ? AVAILABLE : DISABLED_FOR_PROFILE; in getDefaultAvailabilityStatus()
DEnterpriseUtils.java194 public static boolean hasDeviceOwner(Context context) { in hasDeviceOwner() method in EnterpriseUtils
247 int adminUser = hasDeviceOwner(context) in getActionDisabledByAdminDialog()
DBaseEnterprisePreferenceController.java94 return EnterpriseUtils.hasDeviceOwner(getContext()) in isInCompMode()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/
DAddAccountWithTypeActivity.java101 this).hasDeviceOwner() && Settings.ACTION_ADD_ACCOUNT.equals( in onCreate()