/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/ |
D | PrivacyPreferenceControllerHelperTest.java | 107 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()
|
D | EnterprisePrivacyPreferenceControllerTest.java | 70 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()
|
D | EnterprisePrivacySettingsTest.java | 98 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()) in isPageEnabled_hasDeviceOwner_returnsTrue() 108 when(mFeatureFactory.enterprisePrivacyFeatureProvider.hasDeviceOwner()) in isPageEnabled_noDeviceOwner_returnsFalse()
|
D | EnterprisePrivacyFeatureProviderImplTest.java | 122 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/ |
D | EnterpriseUtilsTest.java | 24 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/ |
D | PrivacyPreferenceControllerHelper.java | 69 boolean hasDeviceOwner() { in hasDeviceOwner() method in PrivacyPreferenceControllerHelper 70 return mFeatureProvider.hasDeviceOwner(); in hasDeviceOwner()
|
D | EnterprisePrivacyFeatureProviderImpl.java | 75 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl 81 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode() 96 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
|
D | EnterprisePrivacyFeatureProvider.java | 28 boolean hasDeviceOwner(); in hasDeviceOwner() method
|
D | EnterprisePrivacyPreferenceController.java | 50 return mPrivacyPreferenceControllerHelper.hasDeviceOwner() in getAvailabilityStatus()
|
D | EnterprisePrivacySettings.java | 173 .hasDeviceOwner(); in isPageEnabled()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 68 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl 74 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode() 89 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
|
D | EnterprisePrivacyFeatureProvider.java | 26 boolean hasDeviceOwner(); in hasDeviceOwner() method
|
D | EnterprisePrivacySettingsFragment.java | 68 context).hasDeviceOwner(); in isPageEnabled()
|
/packages/apps/TvSettings/SettingsAPI/java/com/android/tv/settings/library/enterprise/ |
D | EnterprisePrivacyFeatureProviderImpl.java | 68 public boolean hasDeviceOwner() { in hasDeviceOwner() method in EnterprisePrivacyFeatureProviderImpl 74 return hasDeviceOwner() && getManagedProfileUserId() != UserHandle.USER_NULL; in isInCompMode() 89 if (!hasDeviceOwner()) { in getDeviceOwnerDisclosure()
|
D | EnterprisePrivacyFeatureProvider.java | 26 boolean hasDeviceOwner(); in hasDeviceOwner() method
|
/packages/apps/Car/Settings/src/com/android/car/settings/enterprise/ |
D | EnterprisePrivacySettingsFragment.java | 48 if (!EnterpriseUtils.hasDeviceOwner(context)) { in onAttach()
|
D | EnterprisePrivacySettingsPreferenceController.java | 48 if (!EnterpriseUtils.hasDeviceOwner(getContext())) { in getDefaultAvailabilityStatus()
|
D | EnterpriseDisclosurePreferenceController.java | 43 return EnterpriseUtils.hasDeviceOwner(getContext()) ? AVAILABLE : DISABLED_FOR_PROFILE; in getDefaultAvailabilityStatus()
|
D | EnterpriseUtils.java | 194 public static boolean hasDeviceOwner(Context context) { in hasDeviceOwner() method in EnterpriseUtils 247 int adminUser = hasDeviceOwner(context) in getActionDisabledByAdminDialog()
|
D | BaseEnterprisePreferenceController.java | 94 return EnterpriseUtils.hasDeviceOwner(getContext()) in isInCompMode()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accounts/ |
D | AddAccountWithTypeActivity.java | 101 this).hasDeviceOwner() && Settings.ACTION_ADD_ACCOUNT.equals( in onCreate()
|