Home
last modified time | relevance | path

Searched refs:getShadow (Results 1 – 25 of 39) sorted by relevance

12

/packages/services/Car/tests/robotests/src/com/android/car/users/
DCarUserManagerHelperRoboTest.java65 ShadowActivityManager.getShadow().reset(); in tearDown()
85 ShadowUserManager.getShadow().setCurrentUser(currentProcessUserId); in testGetCurrentProcessUserId()
93 ShadowUserManager.getShadow().setCurrentUser(currentProcessUserId); in testGetCurrentProcessUserInfo()
100 ShadowUserManager userManager = ShadowUserManager.getShadow(); in testGetAllUsers()
127 ShadowUserManager userManager = ShadowUserManager.getShadow(); in testGetAllUsersExceptForegroundUser()
157 ShadowUserManager shadowUserManager = ShadowUserManager.getShadow(); in testIsUserRunningCurrentProcess()
175 ShadowUserManager shadowUserManager = ShadowUserManager.getShadow(); in testRemoveCurrentProcessUserSwitchesToGuestUser()
184 assertThat(ShadowActivityManager.getShadow().getSwitchUserCalled()).isTrue(); in testRemoveCurrentProcessUserSwitchesToGuestUser()
185 assertThat(ShadowActivityManager.getShadow().getUserSwitchedTo()).isEqualTo(0); in testRemoveCurrentProcessUserSwitchesToGuestUser()
196 assertThat(ShadowActivityManager.getShadow().getSwitchUserCalled()).isFalse(); in testSwitchToUser()
[all …]
/packages/apps/Settings/tests/robotests/src/com/android/settings/location/
DLocationServicePreferenceControllerTest.java131 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{UserHandle.myUserId()}); in updateState_shouldRemoveAllAndAddInjectedSettings()
145 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
154 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOn_getParentUserLocationServicesOnly()
169 ShadowUserManager.getShadow().setProfileIdsWithDisabled( in workProfileDisallowShareLocationOff_getAllUserLocationServices()
175 ShadowUserManager.getShadow().setUserRestrictionSources( in workProfileDisallowShareLocationOff_getAllUserLocationServices()
204 ShadowUserManager.getShadow().setProfileIdsWithDisabled(new int[]{UserHandle.myUserId()}); in withUserRestriction_shouldDisableLocationAccuracy()
212 ShadowUserManager.getShadow().setUserRestrictionSources( in withUserRestriction_shouldDisableLocationAccuracy()
/packages/apps/Settings/tests/robotests/src/com/android/settings/display/
DTimeoutPreferenceControllerTest.java105 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/dashboard/
DDashboardFeatureProviderImplTest.java371 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_shouldShow()
387 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_explicitMetadataShouldShow()
404 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_shouldNotShow()
422 ShadowUserManager.getShadow().addUser(userId, "Someone", 0); in openTileIntent_profileSelectionDialog_validUserHandleShouldNotShow()
443 ShadowUserManager.getShadow().addUser(10, "Someone", 0); in openTileIntent_profileSelectionDialog_invalidUserHandleShouldShow()
/packages/apps/Settings/tests/robotests/src/com/android/settings/enterprise/
DActionDisabledByAdminDialogHelperTest.java149 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetails()
174 final ShadowDevicePolicyManager dpmShadow = ShadowDevicePolicyManager.getShadow(); in testSetAdminSupportDetailsNotAdmin()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accounts/
DRemoveAccountPreferenceControllerTest.java158 ShadowUserManager.getShadow().setUserRestrictionSources( in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
162 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser(componentName); in onClick_modifyAccountsIsDisallowed_shouldNotStartConfirmDialog()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DPrivateDnsPreferenceControllerTest.java141 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
291 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in isEnabled_canBeDisabledByAdmin()
/packages/services/Car/tests/robotests/src/com/android/car/testutils/shadow/
DShadowUserHandle.java29 return ShadowUserManager.getShadow().getCurrentUser(); in myUserId()
DShadowActivityManager.java61 public static ShadowActivityManager getShadow() { in getShadow() method in ShadowActivityManager
DShadowUserManager.java143 public static ShadowUserManager getShadow() { in getShadow() method in ShadowUserManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/users/
DUserSettingsTest.java235 ShadowUserManager.getShadow().setUserRestrictionSources( in withDisallowRemoveUser_ShouldDisableRemoveUser()
240 ShadowDevicePolicyManager.getShadow().setDeviceOwnerComponentOnAnyUser( in withDisallowRemoveUser_ShouldDisableRemoveUser()
DUserCapabilitiesTest.java44 mUserManager = ShadowUserManager.getShadow(); in setUp()
DMultiUserSwitchBarControllerTest.java52 mUserManager = ShadowUserManager.getShadow(); in setUp()
DAddUserWhenLockedPreferenceControllerTest.java59 mUserManager = ShadowUserManager.getShadow(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowConnectivityManager.java51 public static ShadowConnectivityManager getShadow() { in getShadow() method in ShadowConnectivityManager
DShadowInputMethodManagerWithMethodList.java54 public static ShadowInputMethodManagerWithMethodList getShadow() { in getShadow() method in ShadowInputMethodManagerWithMethodList
DShadowAudioManager.java53 public static ShadowAudioManager getShadow() { in getShadow() method in ShadowAudioManager
DShadowDevicePolicyManager.java115 public static ShadowDevicePolicyManager getShadow() { in getShadow() method in ShadowDevicePolicyManager
/packages/apps/Settings/tests/robotests/src/com/android/settings/system/
DFactoryResetPreferenceControllerTest.java48 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
DSystemDashboardFragmentTest.java57 ShadowUserManager.getShadow().setIsAdminUser(true); in setup()
/packages/apps/Settings/tests/robotests/src/com/android/settings/security/
DRestrictedEncryptionPreferenceControllerTest.java68 mUserManager = ShadowUserManager.getShadow(); in setUp()
DEncryptionStatusPreferenceControllerTest.java55 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/inputmethod/
DInputMethodAndSubtypePreferenceControllerTest.java88 ShadowInputMethodManagerWithMethodList.getShadow().setInputMethodList(imis); in displayPreference_hasInputMethodSubType_shouldAddPreference()
/packages/apps/Settings/tests/robotests/src/com/android/settings/development/
DDevelopmentSwitchBarControllerTest.java63 ShadowUserManager.getShadow().setIsAdminUser(true); in setUp()
/packages/apps/Settings/tests/robotests/src/com/android/settings/
DRestrictedListPreferenceTest.java65 mShadowUserManager = ShadowUserManager.getShadow(); in setUp()

12