Home
last modified time | relevance | path

Searched refs:testContext (Results 1 – 4 of 4) sorted by relevance

/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DTestHelper.java89 final Context testContext = InstrumentationRegistry.getInstrumentation().getContext(); in TestHelper() local
90 mTestInfo = new TestInfo(testContext.getPackageName(), testClass.getName(), in TestHelper()
92 mResolver = testContext.getContentResolver(); in TestHelper()
/cts/tests/tests/appop/src/android/app/appops/cts/
DAppOpsLoggingTest.kt467 val testContext = context.createAttributionContext(TEST_ATTRIBUTION_TAG) in nativeNoteOp() constant
468 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() constant
502 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() constant
928 testContext.registerReceiver(receiver, IntentFilter(PRIVATE_ACTION), in nativeNoteOp()
[all …]
/cts/tests/tests/libcorefileio/src/android/cts/
DFileChannelInterProcessLockTest.java765 static synchronized void resetReceiverState(Context testContext) {
766 context = testContext;
816 static void bindService(Context testContext) throws Exception {
817 resetReceiverState(testContext);
/cts/tests/app/src/android/app/cts/
DInstrumentationTest.java289 public void testContext() throws Exception { in testContext() method in InstrumentationTest