Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java46 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
63 ShadowDevicePolicyManager.class,
124 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportTitleForFinancedDevice()
138 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails()
159 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails_shortSupportMessageIsNull()
181 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetailsNotAdmin()
243 private static void setupFinancedDevice(final ShadowDevicePolicyManager dpmShadow) { in setupFinancedDevice()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java25 public class ShadowDevicePolicyManager extends org.robolectric.shadows.ShadowDevicePolicyManager { class
114 public static ShadowDevicePolicyManager getShadow() { in getShadow()
115 return (ShadowDevicePolicyManager) Shadow.extract( in getShadow()
/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/password/
DChooseLockPasswordTest.java51 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
73 ShadowDevicePolicyManager.class,
77 private ShadowDevicePolicyManager mShadowDpm;
83 mShadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DSetupChooseLockPasswordTest.java39 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
69 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DRemoveAccountPreferenceControllerTest.java56 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
81 ShadowDevicePolicyManager.class
164 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
DCrossProfileCalendarPreferenceControllerTest.java51 import org.robolectric.shadows.ShadowDevicePolicyManager;
70 private ShadowDevicePolicyManager dpm;
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java63 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
89 ShadowDevicePolicyManager.class
291 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in isEnabled_canBeDisabledByAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserDetailsSettingsTest.java57 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
83 ShadowDevicePolicyManager.class
608 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
609 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(UserHandle.myUserId()); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
DUserSettingsTest.java61 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
87 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class})
209 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in withDisallowRemoveUser_ShouldDisableRemoveUser()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/trustagent/
DTrustAgentsPreferenceControllerTest.java36 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
60 ShadowDevicePolicyManager.class,
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details2/
DWifiDetailPreferenceController2Test.java76 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
116 @Config(shadows = {ShadowDevicePolicyManager.class, ShadowEntityHeaderController.class})
1268 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(doComponent); in lockDownNetwork()
1269 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(doUserId); in lockDownNetwork()