Home
last modified time | relevance | path

Searched refs:shadowContext (Results 1 – 7 of 7) sorted by relevance

/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DRobolectricTestUtilities.java73 private final ShadowContextImpl shadowContext; field in RobolectricTestUtilities
102 shadowContext = Shadow.extract(context.getBaseContext()); in RobolectricTestUtilities()
235 shadowContext.setUserId(PERSONAL_PROFILE_USER_ID); in setRunningOnPersonalProfile()
247 shadowContext.setUserId(WORK_PROFILE_USER_ID); in setRunningOnWorkProfile()
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplication.java299 ShadowContextImpl shadowContext = Shadow.extract(realApplication.getBaseContext()); in setSystemService() local
300 shadowContext.setSystemService(key, service); in setSystemService()
/external/robolectric/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextImplTest.java43 private final ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); field in ShadowContextImplTest
115 shadowContext.removeSystemService(Context.WALLPAPER_SERVICE); in removeSystemService_getSystemServiceReturnsNull()
391 shadowContext.setUserId(userId); in getUserId_userIdHasBeenSet_returnsCorrectUserId()
DShadowUserManagerTest.java1139 ShadowContextImpl shadowContext = Shadow.extract(application.getBaseContext()); in setUserIdInContext() local
1140 shadowContext.setUserId(userId); in setUserIdInContext()
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/
DShadowContextImplTest.java37 private final ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); field in ShadowContextImplTest
108 shadowContext.removeSystemService(Context.WALLPAPER_SERVICE); in removeSystemService_getSystemServiceReturnsNull()
/external/robolectric/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowApplication.java391 ShadowContextImpl shadowContext = Shadow.extract(realApplication.getBaseContext()); in setSystemService() local
392 shadowContext.setSystemService(key, service); in setSystemService()
DShadowUserManager.java1119 ShadowContextImpl shadowContext = Shadow.extract(application.getBaseContext()); in switchUser() local
1120 shadowContext.setUserId(userId); in switchUser()