Searched refs:getTargetContext (Results 1 - 25 of 254) sorted by relevance

1234567891011

/frameworks/support/navigation/runtime/ktx/src/androidTest/java/androidx/navigation/
H A DViewTest.kt33 val view = View(InstrumentationRegistry.getTargetContext())
34 val navController = NavController(InstrumentationRegistry.getTargetContext())
43 val view = View(InstrumentationRegistry.getTargetContext())
H A DNavControllerTest.kt28 private val navController = NavController(InstrumentationRegistry.getTargetContext()).apply {
H A DNavHostTest.kt28 private val navController = NavController(InstrumentationRegistry.getTargetContext()).apply {
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyAndException/src/com/android/multidexlegacyandexception/tests/
H A DMultiDexAndroidJUnitRunner.java27 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestAppTests2/src/com/android/multidexlegacytestapp/test2/
H A DMultiDexAndroidJUnitRunner.java11 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/multidex/instrumentation/src/com/android/test/runner/
H A DMultiDexTestRunner.java35 MultiDex.installInstrumentation(getContext(), getTargetContext());
/frameworks/base/apct-tests/perftests/core/src/android/os/
H A DPackageManagerPerfTest.java53 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
64 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
75 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
86 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
97 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
108 final PackageManager pm = InstrumentationRegistry.getTargetContext().getPackageManager();
H A DSharedPreferencesTest.java40 final Context context = InstrumentationRegistry.getTargetContext();
/frameworks/support/navigation/runtime/src/androidTest/java/androidx/navigation/
H A DNavInflaterTest.java49 Context context = InstrumentationRegistry.getTargetContext();
59 Context context = InstrumentationRegistry.getTargetContext();
65 + mInstrumentation.getTargetContext().getPackageName() + "/test");
83 Context context = InstrumentationRegistry.getTargetContext();
99 Context context = InstrumentationRegistry.getTargetContext();
106 Context context = InstrumentationRegistry.getTargetContext();
/frameworks/opt/setupwizard/library/recyclerview/test/instrumentation/src/com/android/setupwizardlib/test/
H A DHeaderRecyclerViewTest.java86 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext()));
108 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext()));
130 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext()));
152 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext()));
/frameworks/support/leanback/src/androidTest/java/androidx/leanback/widget/
H A DMediaNowPlayingViewTest.java38 mContext = InstrumentationRegistry.getTargetContext();
H A DThumbsBarTest.java47 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
69 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
88 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
107 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
151 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
194 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
222 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
251 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
279 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
311 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();
[all...]
/frameworks/support/work/workmanager/src/androidTest/java/androidx/work/
H A DDatabaseTest.java34 mDatabase = WorkDatabase.create(InstrumentationRegistry.getTargetContext(), true);
/frameworks/support/lifecycle/service/src/androidTest/java/androidx/lifecycle/
H A DServiceLifecycleTest.java68 Context context = InstrumentationRegistry.getTargetContext();
84 Context context = InstrumentationRegistry.getTargetContext();
93 Context context = InstrumentationRegistry.getTargetContext();
104 InstrumentationRegistry.getTargetContext().unbindService(connection);
110 Context context = InstrumentationRegistry.getTargetContext();
132 Context context = InstrumentationRegistry.getTargetContext();
155 Context context = InstrumentationRegistry.getTargetContext();
179 Context context = InstrumentationRegistry.getTargetContext();
202 Context context = InstrumentationRegistry.getTargetContext();
/frameworks/base/apct-tests/perftests/core/src/android/view/
H A DViewPerfTest.java40 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext();
51 final Context context = InstrumentationRegistry.getInstrumentation().getTargetContext();
/frameworks/base/core/tests/coretests/src/android/os/
H A DPowerManagerVrTest.java51 Context context = getInstrumentation().getTargetContext();
52 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService(
143 Context context = getInstrumentation().getTargetContext();
/frameworks/base/services/tests/servicestests/src/com/android/server/locksettings/recoverablekeystore/
H A DRecoverySnapshotListenersStorageTest.java42 InstrumentationRegistry.getTargetContext(), /*requestCode=*/ 1,
52 Context context = InstrumentationRegistry.getTargetContext();
73 Context context = InstrumentationRegistry.getTargetContext();
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
H A DBluetoothRebootStressTest.java39 Context context = getInstrumentation().getTargetContext();
/frameworks/base/core/tests/coretests/src/android/content/
H A DBroadcastReceiverTests.java44 mContext = InstrumentationRegistry.getTargetContext();
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawable/
H A DUserIconDrawableTest.java39 InstrumentationRegistry.getTargetContext().getResources(),
/frameworks/base/test-runner/src/android/test/
H A DActivityInstrumentationTestCase.java75 final String targetPackageName = getInstrumentation().getTargetContext().getPackageName();
/frameworks/opt/net/ims/tests/src/com/android/ims/
H A DImsTestBase.java37 mContext = InstrumentationRegistry.getTargetContext();
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
H A DImsTestBase.java37 mContext = InstrumentationRegistry.getTargetContext();
/frameworks/support/compat/src/androidTest/java/androidx/core/content/
H A DPermissionCheckerTest.java41 mContext = InstrumentationRegistry.getTargetContext();
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DTypefaceCompatUtilTest.java40 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext();

Completed in 662 milliseconds

1234567891011