Home
last modified time | relevance | path

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

/external/webrtc/talk/app/webrtc/androidtests/src/org/webrtc/
DNetworkMonitorTest.java163 Context context = getInstrumentation().getTargetContext(); in createTestMonitor()
200 Context context = getInstrumentation().getTargetContext(); in testNetworkMonitorRegistersInConstructor()
218 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
223 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
228 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
233 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
239 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
244 receiver.onReceive(getInstrumentation().getTargetContext(), connectivityIntent); in testNetworkMonitorJavaObservers()
250 receiver.onReceive(getInstrumentation().getTargetContext(), noConnectivityIntent); in testNetworkMonitorJavaObservers()
263 new ConnectivityManagerDelegate(getInstrumentation().getTargetContext()); in testConnectivityManagerDelegateDoesNotCrash()
[all …]
/external/dexmaker/dexmaker-mockito-tests/src/main/java/com/android/dx/mockito/tests/
DBlacklistedApis.java60 Context context = InstrumentationRegistry.getTargetContext(); in isDebuggable()
70 Context targetContext = InstrumentationRegistry.getTargetContext(); in callBlacklistedPublicMethodRealMethod()
101 Context targetContext = InstrumentationRegistry.getTargetContext(); in copyBlacklistedFields()
124 spy(new View(InstrumentationRegistry.getTargetContext(), null)); in cannotCallBlackListedAfterSpying()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/internal/
DLocalActivityInvoker.java4 import static androidx.test.InstrumentationRegistry.getTargetContext;
34 ActivityInfo ai = intent.resolveActivityInfo(getTargetContext().getPackageManager(), 0); in startActivity()
191 Intent intent = Intent.makeMainActivity(new ComponentName(getTargetContext(), activityClass)); in getIntentForActivity()
192 if (getTargetContext().getPackageManager().resolveActivity(intent, 0) != null) { in getIntentForActivity()
DLocalPermissionGranter.java25 (Application) InstrumentationRegistry.getInstrumentation().getTargetContext(); in requestPermissions()
/external/grpc-grpc-java/android-interop-testing/app/src/androidTest/java/io/grpc/android/integrationtest/
DInteropInstrumentationTest.java72 ProviderInstaller.installIfNeeded(InstrumentationRegistry.getTargetContext()); in setUp()
123 testCa = InstrumentationRegistry.getTargetContext().getResources().openRawResource(R.raw.ca); in runTest()
/external/droiddriver/src/io/appium/droiddriver/util/
DInstrumentationUtils.java76 public static Context getTargetContext() { in getTargetContext() method in InstrumentationUtils
77 return getInstrumentation().getTargetContext(); in getTargetContext()
/external/droiddriver/src/io/appium/droiddriver/helpers/
DBaseDroidDriverTest.java85 protected Context getTargetContext() { in getTargetContext() method in BaseDroidDriverTest
86 return getInstrumentation().getTargetContext(); in getTargetContext()
/external/droiddriver/src/io/appium/droiddriver/duo/
DDuoDriver.java43 targetApkPackage = InstrumentationUtils.getTargetContext().getPackageName(); in DuoDriver()
/external/droiddriver/src/io/appium/droiddriver/actions/view/
DCloseKeyboardAction.java58 InputMethodManager imm = (InputMethodManager) InstrumentationUtils.getTargetContext() in perform()
/external/grpc-grpc/src/android/test/interop/app/src/androidTest/java/io/grpc/interop/cpp/
DInteropTest.java48 Context ctx = InstrumentationRegistry.getTargetContext(); in setUp()
/external/droiddriver/src/io/appium/droiddriver/base/
DBaseUiDevice.java48 (PowerManager) getContext().getInstrumentation().getTargetContext() in isScreenOn()
/external/droiddriver/src/io/appium/droiddriver/uiautomation/
DUiAutomationDriver.java151 (AccessibilityManager) driver.context.getInstrumentation().getTargetContext() in clearAccessibilityNodeInfoCache()
/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java93 ContentResolver resolver = InstrumentationRegistry.getTargetContext().getContentResolver(); in spyStatic()
137 ContentResolver resolver = InstrumentationRegistry.getTargetContext().getContentResolver(); in mockStatic()
/external/robolectric-shadows/robolectric/src/main/java/org/robolectric/android/fakes/
DRoboMonitoringInstrumentation.java42 ActivityInfo ai = intent.resolveActivityInfo(getTargetContext().getPackageManager(), 0); in startActivitySync()
/external/deqp/android/package/src/com/drawelements/deqp/testercore/
DDeqpInstrumentation.java74 final RemoteAPI remoteApi = new RemoteAPI(getTargetContext(), m_logFileName); in onStart()
/external/droiddriver/src/io/appium/droiddriver/finders/
DBy.java62 Context targetContext = InstrumentationUtils.getInstrumentation().getTargetContext(); in resourceId()
/external/skqp/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQPRunner.java45 Context context = InstrumentationRegistry.getTargetContext(); in SkQPRunner()
/external/skia/platform_tools/android/apps/skqp/src/main/java/org/skia/skqp/
DSkQPRunner.java45 Context context = InstrumentationRegistry.getTargetContext(); in SkQPRunner()
/external/dexmaker/dexmaker-tests/src/androidTest/java/com/android/dx/
DAnnotationIdTest.java362 String dataDir = InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir; in getDataDirectory()
DDexMakerTest.java2249 String dataDir = InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir;