Home
last modified time | relevance | path

Searched refs:originalContext (Results 1 – 6 of 6) sorted by relevance

/frameworks/base/services/tests/servicestests/src/com/android/server/am/
DCoreSettingsObserverTest.java93 final Context originalContext = getInstrumentation().getTargetContext(); in setUp() local
94 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java1856 private static Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument
1857 TypedArray a = originalContext.obtainStyledAttributes(new int[]{R.attr.isLightTheme}); in applyDefaultTheme()
1862 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java217 Context originalContext = getInstrumentation().getTargetContext(); in setUp() local
218 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()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java352 Context originalContext = ((MyMockContext)getContext()).mTestContext; in testRemovedAccountSync() local
364 int accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()
372 accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()
379 Context originalContext = ((MyMockContext) getContext()).mTestContext; in testPreNDatabaseMigration() local
380 PreNTestDatabaseHelper.createV4Database(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
382 int n = readNumberOfAccountsFromDbFile(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java108 final Context originalContext = InstrumentationRegistry.getContext(); in setup() local
109 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setup()
/frameworks/base/core/java/android/widget/
DEditor.java3836 private Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument
3837 TypedArray a = originalContext.obtainStyledAttributes( in applyDefaultTheme()
3843 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()