Home
last modified time | relevance | path

Searched refs:ShadowDevicePolicyManager (Results 1 – 23 of 23) sorted by relevance

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java46 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
64 ShadowDevicePolicyManager.class,
126 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportTitleForFinancedDevice()
140 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails()
161 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails_shortSupportMessageIsNull()
183 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetailsNotAdmin()
246 private static void setupFinancedDevice(final ShadowDevicePolicyManager dpmShadow) { in setupFinancedDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DGuestTelephonyPreferenceControllerTest.java34 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
51 ShadowDevicePolicyManager.class
61 private ShadowDevicePolicyManager mDpm;
69 mDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DUserCapabilitiesTest.java28 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
41 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class,
47 private ShadowDevicePolicyManager mDpm;
53 mDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DUserDetailsSettingsTest.java58 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
86 ShadowDevicePolicyManager.class
687 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
688 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(UserHandle.myUserId()); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
DUserSettingsTest.java68 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
99 ShadowDevicePolicyManager.class,
281 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in withDisallowRemoveUser_ShouldDisableRemoveUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DCrossProfileCalendarPreferenceControllerTest.java36 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
52 ShadowDevicePolicyManager.class,
67 private ShadowDevicePolicyManager dpm;
76 dpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DRemoveAccountPreferenceControllerTest.java53 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
77 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java50 public class ShadowDevicePolicyManager extends org.robolectric.shadows.ShadowDevicePolicyManager { class
168 public static ShadowDevicePolicyManager getShadow() { in getShadow()
169 return (ShadowDevicePolicyManager) Shadow.extract( in getShadow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DConfirmCredentialTest.java44 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
64 ShadowDevicePolicyManager.class,
86 final ShadowDevicePolicyManager shadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DConfirmLockPatternTest.java54 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
81 ShadowDevicePolicyManager.class,
112 final ShadowDevicePolicyManager shadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DConfirmLockPasswordTest.java58 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
83 ShadowDevicePolicyManager.class,
114 final ShadowDevicePolicyManager shadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DSetupChooseLockPasswordTest.java40 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
72 ShadowDevicePolicyManager.class,
DChooseLockPasswordTest.java55 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
77 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/screenlock/
DLockAfterTimeoutPreferenceControllerTest.java38 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
52 @Config(shadows = ShadowDevicePolicyManager.class)
129 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(userId, adminTimeout); in testUpdateStateWithAdminTimeouts()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/testutils/
DShadowDevicePolicyManager.java31 public class ShadowDevicePolicyManager extends org.robolectric.shadows.ShadowDevicePolicyManager { class
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityDetailsSettingsFragmentTest.java40 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
62 ShadowDevicePolicyManager.class,
129 ((ShadowDevicePolicyManager) Shadows.shadowOf(dpm)).setPermittedAccessibilityServices( in onCreate_extraComponentNameIsDisallowed_launchAccessibilitySettings()
/packages/apps/Settings/tests/robotests/src/com/android/settings/widget/
DRestrictedButtonTest.java33 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
47 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class})
/packages/apps/ManagedProvisioning/tests/robotests/src/com/android/managedprovisioning/ota/
DExtendsShadowDevicePolicyManager.java55 import org.robolectric.shadows.ShadowDevicePolicyManager;
60 public class ExtendsShadowDevicePolicyManager extends ShadowDevicePolicyManager {
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java65 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
91 ShadowDevicePolicyManager.class
309 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in isEnabled_canBeDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java36 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
61 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationInjectedServicesPreferenceControllerTest.java45 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
67 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class})
/packages/apps/Settings/tests/robotests/src/com/android/settings/biometrics/face/
DFaceEnrollIntroductionTest.java71 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
109 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java82 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
125 ShadowDevicePolicyManager.class,
1217 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(doComponent); in lockDownNetwork()
1218 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(doUserId); in lockDownNetwork()