Searched refs:testContext (Results 1 – 4 of 4) sorted by relevance
89 final Context testContext = InstrumentationRegistry.getInstrumentation().getContext(); in TestHelper() local90 mTestInfo = new TestInfo(testContext.getPackageName(), testClass.getName(), in TestHelper()92 mResolver = testContext.getContentResolver(); in TestHelper()
467 val testContext = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant468 val btAdapter = testContext.getSystemService(BluetoothManager::class.java)!!.adapter in nativeNoteOp()470 val wasEnabled = enableBTAdapter(btAdapter, testContext) in nativeNoteOp()489 disableBTAdapter(btAdapter, testContext) in nativeNoteOp()501 val testContext = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant502 val btAdapter = testContext.getSystemService(BluetoothManager::class.java)!!.adapter in nativeNoteOp()504 val wasEnabled = enableBTAdapter(btAdapter, testContext) in nativeNoteOp()526 disableBTAdapter(btAdapter, testContext) in nativeNoteOp()927 val testContext = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant928 testContext.registerReceiver(receiver, IntentFilter(PRIVATE_ACTION), in nativeNoteOp()[all …]
765 static synchronized void resetReceiverState(Context testContext) {766 context = testContext;816 static void bindService(Context testContext) throws Exception {817 resetReceiverState(testContext);
289 public void testContext() throws Exception { in testContext() method in InstrumentationTest