Home
last modified time | relevance | path

Searched refs:ShadowDevicePolicyManager (Results 1 – 19 of 19) 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.java23 public class ShadowDevicePolicyManager extends org.robolectric.shadows.ShadowDevicePolicyManager { class
101 public static ShadowDevicePolicyManager getShadow() { in getShadow()
102 return (ShadowDevicePolicyManager) Shadow.extract( in getShadow()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/inputmethod/
DKeyboardPreferenceControllerTest.java35 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
52 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
84 ShadowDevicePolicyManager.reset(); in tearDown()
201 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
DEnabledKeyboardPreferenceControllerTest.java39 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
57 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
263 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
DKeyboardManagementPreferenceControllerTest.java43 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
60 @Config(shadows = {ShadowInputMethodManager.class, ShadowDevicePolicyManager.class})
1057 private static ShadowDevicePolicyManager getShadowDevicePolicyManager(Context context) { in getShadowDevicePolicyManager()
/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/Settings/tests/robotests/src/com/android/settings/password/
DChooseLockPasswordTest.java49 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
69 ShadowDevicePolicyManager.class,
73 private ShadowDevicePolicyManager mShadowDpm;
79 mShadowDpm = ShadowDevicePolicyManager.getShadow(); in setUp()
DSetupChooseLockPasswordTest.java37 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
66 ShadowDevicePolicyManager.class,
/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;
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.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/
DUserDetailsSettingsTest.java55 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
80 ShadowDevicePolicyManager.class
585 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
586 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(UserHandle.myUserId()); in canDeleteUser_adminSelectsUser_hasRemoveRestriction_shouldReturnFalse()
DUserSettingsTest.java61 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
86 @Config(shadows = {ShadowUserManager.class, ShadowDevicePolicyManager.class})
189 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in withDisallowRemoveUser_ShouldDisableRemoveUser()
/packages/apps/Car/Settings/tests/robotests/src/com/android/car/settings/applications/
DApplicationDetailsFragmentTest.java47 import com.android.car.settings.testutils.ShadowDevicePolicyManager;
82 ShadowDevicePolicyManager.class,
122 ShadowDevicePolicyManager.reset(); in tearDown()
601 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/details2/
DWifiDetailPreferenceController2Test.java73 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
112 @Config(shadows = {ShadowDevicePolicyManager.class, ShadowEntityHeaderController.class})
1171 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(doComponent); in lockDownNetwork()
1172 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(doUserId); in lockDownNetwork()
/packages/apps/Settings/tests/robotests/src/com/android/settings/wifi/details/
DWifiDetailPreferenceControllerTest.java74 import com.android.settings.testutils.shadow.ShadowDevicePolicyManager;
113 @Config(shadows = {ShadowDevicePolicyManager.class, ShadowEntityHeaderController.class})
1157 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(doComponent); in lockDownNetwork()
1158 ShadowDevicePolicyManager.getShadow().setDeviceOwnerUserId(doUserId); in lockDownNetwork()