Home
last modified time | relevance | path

Searched refs:isFinancedDevice (Results 1 – 13 of 13) sorted by relevance

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/enterprise/
DActionDisabledByAdminControllerFactory.java48 } else if (isFinancedDevice(context)) { in createInstance()
84 private static boolean isFinancedDevice(Context context) { in isFinancedDevice() method in ActionDisabledByAdminControllerFactory
90 return dpm.isFinancedDevice(); in isFinancedDevice()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityController.java40 boolean isFinancedDevice(); in isFinancedDevice() method
DSecurityControllerImpl.java290 public boolean isFinancedDevice() { in isFinancedDevice() method in SecurityControllerImpl
291 return mDevicePolicyManager.isFinancedDevice(); in isFinancedDevice()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/utils/leaks/
DFakeSecurityController.java87 public boolean isFinancedDevice() { in isFinancedDevice() method in FakeSecurityController
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/
DQSSecurityFooterTest.java131 when(mSecurityController.isFinancedDevice()).thenReturn(false); in setUp()
195 when(mSecurityController.isFinancedDevice()).thenReturn(true); in testManagedFinancedDeviceWithOwnerName()
508 when(mSecurityController.isFinancedDevice()).thenReturn(true); in testGetManagementTitleForFinancedDevice()
539 when(mSecurityController.isFinancedDevice()).thenReturn(true); in testGetManagementMessage_deviceOwner_asFinancedDevice()
706 when(mSecurityController.isFinancedDevice()).thenReturn(true); in testCreateDialogViewForFinancedDevice()
730 when(mSecurityController.isFinancedDevice()).thenReturn(true); in testFinancedDeviceUsesSettingsButtonText()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DSecurityControllerTest.java155 when(mDevicePolicyManager.isFinancedDevice()).thenReturn(true); in testIsFinancedDevice()
159 assertEquals(mSecurityController.isFinancedDevice(), true); in testIsFinancedDevice()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/statusbar/policy/
DFakeSecurityController.kt70 override fun isFinancedDevice(): Boolean = false in isDeviceManaged() method in com.android.systemui.statusbar.policy.FakeSecurityController
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DQSSecurityFooterUtils.java348 if (isFinancedDevice()) { in getMangedDeviceGeneralText()
661 if (isFinancedDevice()) { in getManagementMessage()
765 if (deviceOwnerOrganization != null && isFinancedDevice()) { in getManagementTitle()
797 private boolean isFinancedDevice() { in isFinancedDevice() method in QSSecurityFooterUtils
801 return mSecurityController.isFinancedDevice(); in isFinancedDevice()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/
DKeyguardIndicationControllerBaseTest.java237 when(mDevicePolicyManager.isFinancedDevice()).thenReturn(false); in setUp()
DKeyguardIndicationControllerTest.java303 when(mDevicePolicyManager.isFinancedDevice()).thenReturn(true); in disclosure_deviceOwner_financedDeviceWithOrganizationName()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DKeyguardIndicationController.java549 isFinanced = mDevicePolicyManager.isFinancedDevice(); in getDisclosureText()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DDevicePolicyManagerTest.java7779 assertThat(dpm.isFinancedDevice()).isTrue(); in testSetDeviceOwnerType_asDeviceOwner_toFinancedDevice()
7781 assertThat(dpm.isFinancedDevice()).isTrue(); in testSetDeviceOwnerType_asDeviceOwner_toFinancedDevice()
7792 assertThat(dpm.isFinancedDevice()).isTrue(); in testSetDeviceOwnerType_asDeviceOwner_setDeviceOwnerTypeTwice_success()
7797 assertThrows(SecurityException.class, () -> dpm.isFinancedDevice()); in testIsFinancedDevice_throwsExceptionWhenThereIsNoDeviceOwner()
/frameworks/base/core/java/android/app/admin/
DDevicePolicyManager.java17082 public boolean isFinancedDevice() { in isFinancedDevice() method in DevicePolicyManager