Searched refs:originalContext (Results 1 – 6 of 6) sorted by relevance
93 final Context originalContext = getInstrumentation().getTargetContext(); in setUp() local94 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
1856 private static Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument1857 TypedArray a = originalContext.obtainStyledAttributes(new int[]{R.attr.isLightTheme}); in applyDefaultTheme()1862 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()
217 Context originalContext = getInstrumentation().getTargetContext(); in setUp() local218 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()219 when(mContext.getUser()).thenReturn(originalContext.getUser()); in setUp()220 when(mContext.getPackageName()).thenReturn(originalContext.getPackageName()); in setUp()
352 Context originalContext = ((MyMockContext)getContext()).mTestContext; in testRemovedAccountSync() local364 int accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()372 accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()379 Context originalContext = ((MyMockContext) getContext()).mTestContext; in testPreNDatabaseMigration() local380 PreNTestDatabaseHelper.createV4Database(originalContext, preNDatabaseName); in testPreNDatabaseMigration()382 int n = readNumberOfAccountsFromDbFile(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
108 final Context originalContext = InstrumentationRegistry.getContext(); in setup() local109 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setup()
3836 private Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument3837 TypedArray a = originalContext.obtainStyledAttributes( in applyDefaultTheme()3843 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()