Searched refs:shadowContext (Results 1 – 7 of 7) sorted by relevance
73 private final ShadowContextImpl shadowContext; field in RobolectricTestUtilities102 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()
299 ShadowContextImpl shadowContext = Shadow.extract(realApplication.getBaseContext()); in setSystemService() local300 shadowContext.setSystemService(key, service); in setSystemService()
43 private final ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); field in ShadowContextImplTest115 shadowContext.removeSystemService(Context.WALLPAPER_SERVICE); in removeSystemService_getSystemServiceReturnsNull()391 shadowContext.setUserId(userId); in getUserId_userIdHasBeenSet_returnsCorrectUserId()
1139 ShadowContextImpl shadowContext = Shadow.extract(application.getBaseContext()); in setUserIdInContext() local1140 shadowContext.setUserId(userId); in setUserIdInContext()
37 private final ShadowContextImpl shadowContext = Shadow.extract(context.getBaseContext()); field in ShadowContextImplTest108 shadowContext.removeSystemService(Context.WALLPAPER_SERVICE); in removeSystemService_getSystemServiceReturnsNull()
391 ShadowContextImpl shadowContext = Shadow.extract(realApplication.getBaseContext()); in setSystemService() local392 shadowContext.setSystemService(key, service); in setSystemService()
1119 ShadowContextImpl shadowContext = Shadow.extract(application.getBaseContext()); in switchUser() local1120 shadowContext.setUserId(userId); in switchUser()