Home
last modified time | relevance | path

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

12345

/frameworks/support/v7/preference/tests/src/android/support/v7/preference/tests/
DSimplePreferenceComparisonCallbackTest.java49 final Context context = InstrumentationRegistry.getTargetContext(); in setup()
72 new CheckBoxPreference(InstrumentationRegistry.getTargetContext()); in testClassComparison()
264 new CheckBoxPreference(InstrumentationRegistry.getTargetContext()); in testTwoStateComparison()
266 new CheckBoxPreference(InstrumentationRegistry.getTargetContext()); in testTwoStateComparison()
295 new DropDownPreference(InstrumentationRegistry.getTargetContext()); in testDropDownComparison()
297 new DropDownPreference(InstrumentationRegistry.getTargetContext()); in testDropDownComparison()
/frameworks/opt/setupwizard/library/full-support/test/instrumentation/src/com/android/setupwizardlib/test/
DHeaderRecyclerViewTest.java86 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemChangedWithHeader()
108 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemInsertedWithHeader()
130 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemRemovedWithHeader()
152 mHeaderAdapter.setHeader(new View(InstrumentationRegistry.getTargetContext())); in testNotifyItemMovedWithHeader()
/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/packages/SettingsLib/tests/integ/src/com/android/settingslib/drawer/
DSettingsDrawerActivityTest.java54 instrumentation.startActivitySync(new Intent(instrumentation.getTargetContext(), in startActivityWithNoExtra_showNoNavUp()
64 Intent intent = new Intent(instrumentation.getTargetContext(), TestActivity.class) in startActivityWithExtraToHideMenu_showNavUp()
75 Intent intent = new Intent(instrumentation.getTargetContext(), TestActivity.class) in startActivityWithExtraToShowMenu_showNavUp()
/frameworks/base/core/tests/coretests/src/android/os/
DPowerManagerVrTest.java51 Context context = getInstrumentation().getTargetContext(); in setUp()
52 mPm = (PowerManager) getInstrumentation().getTargetContext().getSystemService( in setUp()
143 Context context = getInstrumentation().getTargetContext(); in setTestVrListener()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/media/
DPlaybackControlGlueTest.java96 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
115 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
142 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
164 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
DPlaybackBannerControlGlueTest.java73 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
91 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
117 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
138 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
167 InstrumentationRegistry.getInstrumentation().getTargetContext(), in playerAdapterTest()
222 InstrumentationRegistry.getInstrumentation().getTargetContext(), in savePlayerAdapterEventBeforeAttachToHost()
DPlaybackTransportControlGlueTest.java73 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in usingDefaultRowAndPresenter()
91 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowPresenter()
117 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customControlsRow()
138 mContext = InstrumentationRegistry.getInstrumentation().getTargetContext(); in customRowAndPresenter()
167 InstrumentationRegistry.getInstrumentation().getTargetContext(), in playerAdapterTest()
221 InstrumentationRegistry.getInstrumentation().getTargetContext(), in savePlayerAdapterEventBeforeAttachToHost()
DPlaybackGlueTest.java48 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in glueAndHostInteraction()
85 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in listenerModification()
/frameworks/base/core/tests/coretests/src/android/widget/
DListViewTest.java99 return getInstrumentation().getTargetContext().getResources(); in getResources()
104 return getInstrumentation().getTargetContext().getTheme(); in getTheme()
110 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/support/design/tests/src/android/support/design/widget/
DBottomSheetBehaviorInitialStateTest.java43 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSetStateExpanded()
56 Context context = InstrumentationRegistry.getInstrumentation().getTargetContext(); in testSetStateHidden()
/frameworks/support/v17/leanback/tests/java/android/support/v17/leanback/widget/
DControlBarTest.java44 Context context = InstrumentationRegistry.getTargetContext(); in defaultFocus()
65 Context context = InstrumentationRegistry.getTargetContext(); in persistFocus()
107 Context context = InstrumentationRegistry.getTargetContext(); in getFocusables()
DMediaNowPlayingViewTest.java38 mContext = InstrumentationRegistry.getTargetContext(); in setup()
/frameworks/base/packages/SettingsLib/tests/integ/src/com/android/settingslib/wifi/
DWifiTrackerTest.java144 mContext = InstrumentationRegistry.getTargetContext(); in setUp()
206 InstrumentationRegistry.getTargetContext().getContentResolver(), in setUp()
210 InstrumentationRegistry.getTargetContext().getContentResolver(), in setUp()
218 InstrumentationRegistry.getTargetContext().getContentResolver(), in cleanUp()
354 InstrumentationRegistry.getTargetContext(), null, mWorkerLooper, true, true); in testAccessPointListenerSetWhenLookingUpUsingScanResults()
370 InstrumentationRegistry.getTargetContext(), null, mWorkerLooper, true, true); in testAccessPointListenerSetWhenLookingUpUsingWifiConfiguration()
496 InstrumentationRegistry.getTargetContext().getContentResolver(), in scoreCacheUpdateScoresShouldNotChangeSortOrderWhenSortingDisabled()
552 InstrumentationRegistry.getTargetContext().getContentResolver(), in noBadgesShouldBeInsertedIntoAccessPointWhenScoringUiDisabled()
/frameworks/multidex/instrumentation/src/com/android/test/runner/
DMultiDexTestRunner.java35 MultiDex.install(getTargetContext()); in onCreate()
/frameworks/base/test-runner/src/android/test/
DInstrumentationTestRunner.java314 {getTargetContext().getPackageCodePath(), getContext().getPackageCodePath()}; in onCreate()
350 getTargetContext().getClassLoader()); in onCreate()
382 mTestRunner.setContext(getTargetContext()); in onCreate()
449 testSuiteBuilder.addTestClassByName(testClassName, testMethodName, getTargetContext()); in parseTestClass()
640 return getTargetContext().getFilesDir().getAbsolutePath() + File.separator + in getCoverageFilePath()
DActivityInstrumentationTestCase.java75 final String targetPackageName = getInstrumentation().getTargetContext().getPackageName(); in setUp()
DSyncBaseInstrumentation.java45 mTargetContext = getInstrumentation().getTargetContext(); in setUp()
/frameworks/opt/net/ims/tests/src/com/android/ims/
DImsTestBase.java37 mContext = InstrumentationRegistry.getTargetContext(); in setUp()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ims/
DImsTestBase.java37 mContext = InstrumentationRegistry.getTargetContext(); in setUp()
/frameworks/base/core/tests/bluetoothtests/src/android/bluetooth/
DBluetoothRebootStressTest.java39 Context context = getInstrumentation().getTargetContext(); in setUp()
/frameworks/support/wear/tests/src/android/support/wear/widget/util/
DWakeLockRule.java53 Context context = InstrumentationRegistry.getTargetContext();
/frameworks/base/core/tests/coretests/src/android/view/
DRenderNodeAnimatorTest.java38 return InstrumentationRegistry.getTargetContext(); in getContext()
/frameworks/base/packages/CarrierDefaultApp/tests/unit/src/com/android/carrierdefaultapp/
DCarrierDefaultActivityTestCase.java45 mContext = new TestContext(getInstrumentation().getTargetContext()); in setUp()

12345