Searched refs:originalContext (Results 1 – 6 of 6) sorted by relevance
92 final Context originalContext = getInstrumentation().getTargetContext(); in setUp() local93 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
1769 private static Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument1770 TypedArray a = originalContext.obtainStyledAttributes(new int[]{R.attr.isLightTheme}); in applyDefaultTheme()1775 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()
101 final Context originalContext = InstrumentationRegistry.getContext(); in setup() local102 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setup()
340 Context originalContext = ((MyMockContext)getContext()).mTestContext; in testRemovedAccountSync() local352 int accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()360 accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()367 Context originalContext = ((MyMockContext) getContext()).mTestContext; in testPreNDatabaseMigration() local368 PreNTestDatabaseHelper.createV4Database(originalContext, preNDatabaseName); in testPreNDatabaseMigration()370 int n = readNumberOfAccountsFromDbFile(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
166 Context originalContext = getInstrumentation().getTargetContext(); in setUp() local167 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
3739 private Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument3740 TypedArray a = originalContext.obtainStyledAttributes( in applyDefaultTheme()3746 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()