Home
last modified time | relevance | path

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

12345678910>>...16

/frameworks/base/services/tests/servicestests/src/com/android/server/companion/datatransfer/contextsync/
DCrossDeviceCallTest.java49 InstrumentationRegistry.getTargetContext(), in updateCallDetails_uninitialized()
59 InstrumentationRegistry.getTargetContext(), in updateCallDetails_ringing()
74 InstrumentationRegistry.getTargetContext(), in updateCallDetails_ongoing()
89 InstrumentationRegistry.getTargetContext(), in updateCallDetails_holding()
103 InstrumentationRegistry.getTargetContext(), in updateCallDetails_cannotHold()
117 InstrumentationRegistry.getTargetContext(), in updateCallDetails_cannotMute()
131 InstrumentationRegistry.getTargetContext(), in updateCallDetails_transitionRingingToOngoing()
154 InstrumentationRegistry.getTargetContext(), in updateCallDetails_transitionDialingToOngoing()
175 InstrumentationRegistry.getTargetContext(), in updateSilencedIfRinging_ringing_silenced()
190 InstrumentationRegistry.getTargetContext(), in updateSilencedIfRinging_notRinging_notSilenced()
[all …]
/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
DPackageManagerPerfTest.java117 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetAppMetadata()
135 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionExists()
154 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testCheckPermissionDoesntExist()
173 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testQueryIntentActivities()
192 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetPackageInfo()
210 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetApplicationInfo()
228 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetActivityInfo()
246 InstrumentationRegistry.getInstrumentation().getTargetContext().getPackageManager(); in testGetInstalledPackages()
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java73 assertNotNull(InstrumentationRegistry.getInstrumentation().getTargetContext()); in testInstrumentationTargetContext()
98 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext()
107 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext()
120 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser()
128 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser()
136 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser()
144 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser()
271 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDeviceIdForTestContext()
/frameworks/base/apct-tests/perftests/core/src/android/content/pm/
DPackageManagerBenchmark.java38 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in createUserContextBenchmark()
49 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in getResourcesForApplication_byStarAsUser()
61 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in getResourcesApplication_byCreateContextAsUser()
/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/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
DRecoverySnapshotListenersStorageTest.java43 InstrumentationRegistry.getTargetContext(), /*requestCode=*/ 1, in hasListener_isTrueForRegisteredUid()
45 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()), in hasListener_isTrueForRegisteredUid()
55 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_invokesIntentImmediatelyIfPreviouslyNotified()
78 Context context = InstrumentationRegistry.getTargetContext(); in setSnapshotListener_doesNotRepeatedlyInvokeListener()
/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/services/tests/servicestests/src/com/android/server/accessibility/
DSystemActionPerformerTest.java78 InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION1)
79 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()),
87 InstrumentationRegistry.getTargetContext(), 0, new Intent(INTENT_ACTION2)
88 .setPackage(InstrumentationRegistry.getTargetContext().getPackageName()),
236 br.register(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionNewAction()
243 br.unregister(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionNewAction()
256 br.register(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId()
263 br.unregister(InstrumentationRegistry.getTargetContext()); in testPerformSystemActionOverrideLegacyActionUsingLegacyActionId()
/frameworks/base/core/tests/coretests/src/android/content/res/
DResourcesDrawableTest.java45 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawable()
53 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadColorAsDrawableFailureThrowsOriginalException()
78 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testLoadNormalDrawableInColorDir()
/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/view/
DScrollCaptureSearchResultsTest.java19 import static androidx.test.InstrumentationRegistry.getTargetContext;
149 ViewGroup targetView1 = new FakeView(getTargetContext(), 0, 0, 60, 60, 1); in testRanking()
156 ViewGroup targetView2 = new FakeView(getTargetContext(), 0, 0, 60, 60, 2); in testRanking()
163 ViewGroup targetView3 = new FakeView(getTargetContext(), 0, 0, 60, 60, 3); in testRanking()
170 ViewGroup targetView4 = new FakeView(getTargetContext(), 0, 0, 60, 60, 4); in testRanking()
177 ViewGroup targetView5 = new FakeView(getTargetContext(), 0, 0, 60, 60, 5); in testRanking()
185 ViewGroup targetView6 = new FakeView(getTargetContext(), 0, 0, 60, 60, 6); in testRanking()
307 View mockView = new View(getTargetContext()); in createTarget()
/frameworks/base/core/tests/coretests/src/com/android/internal/app/
DAbstractResolverComparatorTest.java52 Context context = InstrumentationRegistry.getTargetContext(); in testPositionFixed()
69 Context context = InstrumentationRegistry.getTargetContext(); in testPinned()
94 Context context = InstrumentationRegistry.getTargetContext(); in testBothPinned()
DNoOpResolverComparatorTest.java42 .getInstrumentation().getTargetContext().getUser();
58 InstrumentationRegistry.getInstrumentation().getTargetContext(), in setUp()
/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/core/tests/coretests/src/android/graphics/
DFontFileUtilTest.java51 Context ctx = InstrumentationRegistry.getTargetContext(); in getTempFile()
106 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testRegularFonts()
121 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testTtcFont()
137 AssetManager am = InstrumentationRegistry.getTargetContext().getAssets(); in testVariationFont()
/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/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/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
DTextClassificationManagerPerfTest.java73 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierDisabled()
85 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierEnabled()
/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/services/tests/servicestests/src/com/android/server/companion/utils/
DPackageUtilsTest.java60 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_true()
84 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_package_disallowed()
108 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_signature_mismatch()
/frameworks/base/tests/Internal/src/android/app/
DWallpaperInfoTest.java48 Context context = InstrumentationRegistry.getTargetContext(); in testSupportsAmbientMode()
72 Context context = InstrumentationRegistry.getTargetContext(); in testGetSettingsSliceUri()
/frameworks/multidex/instrumentation/src/com/android/test/runner/
DMultiDexTestRunner.java35 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/
DMultiDexAndroidJUnitRunner.java28 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/
DMultiDexAndroidJUnitRunner.java12 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()

12345678910>>...16