Home
last modified time | relevance | path

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

/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java48 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
65 ShadowDevicePolicyManager.class,
149 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails()
174 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetailsNotAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java35 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
55 @Config(shadows = ShadowDevicePolicyManager.class)
105 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, timeout); in testUpdateStateWithAdminTimeouts()
116 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, timeout); in testUpdateStateWithAdminTimeoutsAndRestriction()
147 ShadowDevicePolicyManager.getShadow().setMaximumTimeToLock(profileUserId, allowedTimeout); in updateState_selectedTimeoutLargerThanAdminMax_shouldSetSummaryToUpdatedPrefValue()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowDevicePolicyManager.java21 public class ShadowDevicePolicyManager extends org.robolectric.shadows.ShadowDevicePolicyManager { class
115 public static ShadowDevicePolicyManager getShadow() { in getShadow()
116 return (ShadowDevicePolicyManager) Shadow.extract( in getShadow()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardPreferenceControllerTest.java36 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
52 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
84 ShadowDevicePolicyManager.reset(); in tearDown()
198 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
DEnabledKeyboardPreferenceControllerTest.java40 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
57 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
263 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
DKeyboardManagementPreferenceControllerTest.java44 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
60 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
1045 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
/packages/apps/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockPasswordTest.java48 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
68 ShadowDevicePolicyManager.class,
72 private ShadowDevicePolicyManager mShadowDpm;
78 mShadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DSetNewPasswordActivityTest.java60 import org.robolectric.shadows.ShadowDevicePolicyManager;
/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/accounts/
DRemoveAccountPreferenceControllerTest.java56 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
79 ShadowDevicePolicyManager.class
162 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
DCrossProfileCalendarDisabledPreferenceControllerTest.java44 import org.robolectric.shadows.ShadowDevicePolicyManager;
61 private ShadowDevicePolicyManager mDpm;
DCrossProfileCalendarPreferenceControllerTest.java51 import org.robolectric.shadows.ShadowDevicePolicyManager;
70 private ShadowDevicePolicyManager dpm;
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java64 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/
DUserSettingsTest.java54 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
75 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class})
240 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in withDisallowRemoveUser_ShouldDisableRemoveUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java50 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
85 ShadowDevicePolicyManager.class,
133 ShadowDevicePolicyManager.reset(); in tearDown()
612 private ShadowDevicePolicyManager getShadowDevicePolicyManager() { in getShadowDevicePolicyManager()
/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/details/
DWifiDetailPreferenceControllerTest.java75 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
109 @Config(shadows = {ShadowDevicePolicyManager.class, ShadowEntityHeaderController.class})
1099 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(doComponent); in lockDownNetwork()
1100 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(doUserId); in lockDownNetwork()