Searched refs:getTargetContext (Results 1 – 13 of 13) sorted by relevance
163 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 …]
73 public static Context getTargetContext() { in getTargetContext() method in InstrumentationUtils74 return getInstrumentation().getTargetContext(); in getTargetContext()
85 protected Context getTargetContext() { in getTargetContext() method in BaseDroidDriverTest86 return getInstrumentation().getTargetContext(); in getTargetContext()
29 Context appContext = getInstrumentation().getTargetContext().getApplicationContext(); in setUp()
43 targetApkPackage = InstrumentationUtils.getTargetContext().getPackageName(); in DuoDriver()
47 Context targetContext = getInstrumentation().getTargetContext(); in testComponentCallbacksForTargetContext()
58 InputMethodManager imm = (InputMethodManager) InstrumentationUtils.getTargetContext() in perform()
48 (PowerManager) getContext().getInstrumentation().getTargetContext() in isScreenOn()
151 (AccessibilityManager) driver.context.getInstrumentation().getTargetContext() in clearAccessibilityNodeInfoCache()
74 final RemoteAPI remoteApi = new RemoteAPI(getTargetContext(), m_logFileName); in onStart()
62 Context targetContext = InstrumentationUtils.getInstrumentation().getTargetContext(); in resourceId()
24 .ensureInitialized(getInstrumentation().getTargetContext()); in setUp()
2070 String dataDir = InstrumentationRegistry.getTargetContext().getApplicationInfo().dataDir;