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.java92 final Context originalContext = getInstrumentation().getTargetContext(); in setUp() local
93 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
/frameworks/base/core/java/com/android/internal/widget/
DFloatingToolbar.java1769 private static Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument
1770 TypedArray a = originalContext.obtainStyledAttributes(new int[]{R.attr.isLightTheme}); in applyDefaultTheme()
1775 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DGestureLauncherServiceTest.java101 final Context originalContext = InstrumentationRegistry.getContext(); in setup() local
102 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setup()
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
DAccountManagerServiceTest.java340 Context originalContext = ((MyMockContext)getContext()).mTestContext; in testRemovedAccountSync() local
352 int accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()
360 accountsNumber = readNumberOfAccountsFromDbFile(originalContext, ceDatabaseName); in testRemovedAccountSync()
367 Context originalContext = ((MyMockContext) getContext()).mTestContext; in testPreNDatabaseMigration() local
368 PreNTestDatabaseHelper.createV4Database(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
370 int n = readNumberOfAccountsFromDbFile(originalContext, preNDatabaseName); in testPreNDatabaseMigration()
/frameworks/base/services/tests/servicestests/src/com/android/server/people/data/
DDataManagerTest.java166 Context originalContext = getInstrumentation().getTargetContext(); in setUp() local
167 when(mContext.getApplicationInfo()).thenReturn(originalContext.getApplicationInfo()); in setUp()
/frameworks/base/core/java/android/widget/
DEditor.java3739 private Context applyDefaultTheme(Context originalContext) { in applyDefaultTheme() argument
3740 TypedArray a = originalContext.obtainStyledAttributes( in applyDefaultTheme()
3746 return new ContextThemeWrapper(originalContext, themeId); in applyDefaultTheme()