Home
last modified time | relevance | path

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

12345678910>>...13

/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/datatransfer/contextsync/
H A 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 …]
/aosp14/frameworks/base/apct-tests/perftests/packagemanager/src/android/os/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/
H A DContextTest.java76 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForTestContext()
84 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDisplayIdForDefaultDisplayContext()
96 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNullUser()
103 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNullIntentNonNullUser()
110 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNullUser()
117 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testStartActivityAsUserNonNullIntentNonNullUser()
233 InstrumentationRegistry.getInstrumentation().getTargetContext(); in testDeviceIdForTestContext()
/aosp14/frameworks/base/core/tests/coretests/src/android/provider/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/accessibility/
H A 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()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A 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()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/content/pm/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/content/res/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/android/os/
H A DPowerManagerVrTest.java49 Context context = getInstrumentation().getTargetContext(); in setUp()
50 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService( in setUp()
141 Context context = getInstrumentation().getTargetContext(); in setTestVrListener()
/aosp14/frameworks/base/core/tests/coretests/src/android/view/
H A 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()
/aosp14/frameworks/base/core/tests/coretests/src/com/android/internal/app/
H A DAbstractResolverComparatorTest.java52 Context context = InstrumentationRegistry.getTargetContext(); in testPositionFixed()
69 Context context = InstrumentationRegistry.getTargetContext(); in testPinned()
94 Context context = InstrumentationRegistry.getTargetContext(); in testBothPinned()
/aosp14/frameworks/base/core/tests/coretests/src/android/widget/
H A DListViewTest.java98 return getInstrumentation().getTargetContext().getResources(); in getResources()
103 return getInstrumentation().getTargetContext().getTheme(); in getTheme()
109 return getInstrumentation().getTargetContext().getSystemService(name); in getSystemService()
/aosp14/frameworks/base/core/tests/coretests/src/android/graphics/
H A 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()
/aosp14/frameworks/base/startop/view_compiler/dex_builder_test/src/android/startop/test/
H A DLayoutCompilerTest.java40 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout1()
49 Context context = InstrumentationRegistry.getTargetContext(); in loadAndInflateLayout2()
/aosp14/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/helpers/
H A DCameraTestHelper.java74 InstrumentationRegistry.getInstrumentation().getTargetContext()
100 InstrumentationRegistry.getInstrumentation().getTargetContext() in setupCameraTest()
135 InstrumentationRegistry.getInstrumentation().getTargetContext() in cleanupTestImages()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/widget/
H A 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()
/aosp14/frameworks/base/apct-tests/perftests/textclassifier/src/android/view/textclassifier/
H A DTextClassificationManagerPerfTest.java73 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierDisabled()
85 Context context = InstrumentationRegistry.getTargetContext(); in testGetTextClassifier_systemTextClassifierEnabled()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/companion/utils/
H A DPackageUtilsTest.java66 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_true()
92 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_package_disallowed()
118 InstrumentationRegistry.getInstrumentation().getTargetContext())); in isAllowlisted_signature_mismatch()
/aosp14/frameworks/base/tests/PlatformCompatGating/src/com/android/tests/gating/
H A DPlatformCompatGatingTest.java86 InstrumentationRegistry.getInstrumentation().getTargetContext())).isTrue(); in testDummyGatingPositiveSystemServer()
93 InstrumentationRegistry.getInstrumentation().getTargetContext())).isFalse(); in testDummyGatingNegativeSystemServer()
/aosp14/frameworks/base/tests/Internal/src/android/app/
H A DWallpaperInfoTest.java48 Context context = InstrumentationRegistry.getTargetContext(); in testSupportsAmbientMode()
72 Context context = InstrumentationRegistry.getTargetContext(); in testGetSettingsSliceUri()
/aosp14/frameworks/base/apct-tests/perftests/autofill/src/android/view/autofill/
H A DAutofillTestWatcher.java88 SettingsHelper.syncSet(InstrumentationRegistry.getTargetContext(), in setAutofillService()
108 SettingsHelper.syncDelete(InstrumentationRegistry.getTargetContext(), in resetAutofillService()
/aosp14/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DStrictModeTest.java63 final Context context = InstrumentationRegistry.getTargetContext(); in causeVmViolations()
107 final Context context = InstrumentationRegistry.getTargetContext(); in causeCrossProcessThreadViolations()
/aosp14/frameworks/base/services/tests/servicestests/src/com/android/server/hdmi/
H A DHdmiControlServiceTvTest.java58 Context context = InstrumentationRegistry.getTargetContext(); in setUp()
64 new HdmiControlService(InstrumentationRegistry.getTargetContext(), in setUp()
/aosp14/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/inputmethod/
H A DInputMethodPreferenceTest.java112 InstrumentationRegistry.getTargetContext(), in createPreference()
122 final Context targetContext = InstrumentationRegistry.getTargetContext(); in createInputMethodInfo()
/aosp14/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/
H A DMultiDexAndroidJUnitRunner.java12 MultiDex.installInstrumentation(getContext(), getTargetContext()); in onCreate()

12345678910>>...13