Home
last modified time | relevance | path

Searched refs:getTargetContext (Results 1 – 25 of 198) sorted by relevance

12345678

/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java46 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext()
54 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext()
66 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser()
73 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser()
80 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser()
87 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser()
/frameworks/base/apct-tests/perftests/core/src/android/os/
DPackageManagerPerfTest.java49 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionExists()
60 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist()
71 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testQueryIntentActivities()
82 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetPackageInfo()
93 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetApplicationInfo()
104 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager(); in testGetActivityInfo()
DStrictModeTest.java63 final Context context = InstrumentationRegistry.getTargetContext(); in causeVmViolations()
107 final Context context = InstrumentationRegistry.getTargetContext(); in causeCrossProcessThreadViolations()
/frameworks/base/core/tests/coretests/src/android/provider/
DFontsContractE2ETest.java58 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext();
77 InstrumentationRegistry.getInstrumentation().getTargetContext()); in setUp()
83 InstrumentationRegistry.getInstrumentation().getTargetContext()); in tearDown()
117 Context ctx = inst.getTargetContext(); in typefaceCacheTest()
156 Context ctx = inst.getTargetContext(); in typefaceNotCacheTest()
179 Context ctx = inst.getTargetContext(); in typefaceNullFdTest()
/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/
DApkLayoutCompilerTest.java28 Context context = InstrumentationRegistry.getTargetContext(); in loadDexFile()
45 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout1()
54 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout2()
DLayoutCompilerTest.java40 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout1()
49 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout2()
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java77 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemChangedWithHeader()
97 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemInsertedWithHeader()
117 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemRemovedWithHeader()
137 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemMovedWithHeader()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java43 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawable()
51 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawableFailureThrowsOriginalException()
76 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadNormalDrawableInColorDir()
/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
DAbstractAutofillPerfTestCase.java45 new SettingsStateKeeperRule(InstrumentationRegistry.getTargetContext(),
100 SettingsHelper.syncSet(InstrumentationRegistry.getTargetContext(), in setService()
110 SettingsHelper.syncDelete(InstrumentationRegistry.getTargetContext(), in resetService()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerVrTest.java49 Context context = getInstrumentation().getTargetContext(); in setUp()
50 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService( in setUp()
141 Context context = getInstrumentation().getTargetContext(); in setTestVrListener()
/frameworks/base/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java47 Context ctx = InstrumentationRegistry.getTargetContext(); in getTempFile()
102 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts()
117 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont()
133 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont()
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java43 InstrumentationRegistry.getTargetContext(), /*requestCode=*/ 1, in hasListener_isTrueForRegisteredUid()
53 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
74 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java98 return getInstrumentation().getTargetContext().getResources(); in getResources()
103 return getInstrumentation().getTargetContext().getTheme(); in getTheme()
109 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DViewPerfTest.java40 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSimpleViewInflate()
51 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testTwelveKeyInflate()
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
DCameraTestHelper.java74 InstrumentationRegistry.getInstrumentation().getTargetContext()
100 InstrumentationRegistry.getInstrumentation().getTargetContext() in setupCameraTest()
135 InstrumentationRegistry.getInstrumentation().getTargetContext() in cleanupTestImages()
/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassificationManagerPerfTest.java45 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierDisabled()
61 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierEnabled()
/frameworks/base/apct-tests/perftests/core/src/android/widget/
DTextViewOnMeasurePerfTest.java104 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_AtMost()
121 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_Exactly()
138 final Context context = InstrumentationRegistry.getTargetContext(); in testMeasure_Unspecified()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/
DActionsSuggestionsHelperTest.java162 InstrumentationRegistry.getTargetContext(), in testDeduplicateActions()
217 InstrumentationRegistry.getTargetContext(), in testDeduplicateActions_nullComponent()
255 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult_null()
276 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult_emptyList()
309 InstrumentationRegistry.getTargetContext(), in createLabeledIntentResult()
/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
DPlatformCompatGatingTest.java86 InstrumentationRegistry.getInstrumentation().getTargetContext())).isTrue(); in testDummyGatingPositiveSystemServer()
93 InstrumentationRegistry.getInstrumentation().getTargetContext())).isFalse(); in testDummyGatingNegativeSystemServer()
/frameworks/opt/setupwizard/library/test/instrumentation/src/com/android/setupwizardlib/test/
DItemLayoutTest.java19 import static android.support.test.InstrumentationRegistry.getTargetContext;
75 mContext = new ContextThemeWrapper(getTargetContext(), theme); in ItemLayoutTest()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DAbstractResolverComparatorTest.java47 Context context = InstrumentationRegistry.getTargetContext(); in testPinned()
72 Context context = InstrumentationRegistry.getTargetContext(); in testBothPinned()
/frameworks/base/tests/Internal/src/android/app/
DWallpaperInfoTest.java48 Context context = InstrumentationRegistry.getTargetContext(); in testSupportsAmbientMode()
72 Context context = InstrumentationRegistry.getTargetContext(); in testGetSettingsSliceUri()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterTestBase.java55 static final File FILES_DIR = getInstrumentation().getTargetContext().getFilesDir();
74 final UserManager um = UserManager.get(getInstrumentation().getTargetContext()); in setUp()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
DInputMethodPreferenceTest.java111 InstrumentationRegistry.getTargetContext(), in createPreference()
120 final Context targetContext = InstrumentationRegistry.getTargetContext(); in createInputMethodInfo()
/frameworks/multidex/instrumentation/src/com/android/test/runner/
DMultiDexTestRunner.java35 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()

12345678