Searched refs:isFinancedDevice (Results 1 – 9 of 9) sorted by relevance
120 assertThat(mPrivacyPreferenceControllerHelper.isFinancedDevice()).isFalse(); in isFinancedDevice_deviceNotManaged_returnsFalse()125 assertThat(mPrivacyPreferenceControllerHelper.isFinancedDevice()).isFalse(); in isFinancedDevice_deviceManaged_defaultDeviceOwnerType_returnsFalse()133 assertThat(mPrivacyPreferenceControllerHelper.isFinancedDevice()).isTrue(); in isFinancedDevice_deviceManaged_financedDeviceOwnerType_returnsTrue()
65 when(mPrivacyPreferenceControllerHelper.isFinancedDevice()).thenReturn(true); in testIsAvailable_financedDevice_returnsTrue()72 when(mPrivacyPreferenceControllerHelper.isFinancedDevice()).thenReturn(false); in testIsAvailable_enterpriseDevice_returnsFalse()
73 when(mPrivacyPreferenceControllerHelper.isFinancedDevice()).thenReturn(true); in testIsAvailable_deviceOwner_financedDevice_returnsFalse()81 when(mPrivacyPreferenceControllerHelper.isFinancedDevice()).thenReturn(false); in testIsAvailable_deviceOwner_enterpriseDevice_returnsTrue()
32 if (isFinancedDevice(context)) { in createPrivacySettingsPreference()49 private static boolean isFinancedDevice(Context context) { in isFinancedDevice() method in PrivacySettingsPreferenceFactory
61 return mPrivacyPreferenceControllerHelper.isFinancedDevice(); in isAvailable()
58 && !mPrivacyPreferenceControllerHelper.isFinancedDevice(); in isAvailable()
65 boolean isFinancedDevice() { in isFinancedDevice() method in PrivacyPreferenceControllerHelper
54 if (isFinancedDevice()) { in updateState()74 private boolean isFinancedDevice() { in isFinancedDevice() method in DeviceAdminAddWarningPreferenceController
676 if (isFinancedDevice()) { in updateInterface()800 private boolean isFinancedDevice() { in isFinancedDevice() method in DeviceAdminAdd