Home
last modified time | relevance | path

Searched refs:isConnected (Results 1 – 25 of 70) sorted by relevance

123

/cts/tests/tests/notification/NotificationListener/src/com/android/test/notificationlistener/
DTestNotificationListenerNoAutobind.kt23 var isConnected = false variable
28 isConnected = true in onListenerConnected()
33 isConnected = false in onListenerDisconnected()
DTestNotificationListener.kt22 var isConnected = false variable
27 isConnected = true in onListenerConnected()
32 isConnected = false in onListenerDisconnected()
DNotificationUriAccessService.kt40 val isConnected = listener?.isConnected ?: false in ensureNotificationListenerServiceConnected() constant
41 check(isConnected == ensureConnected) { in ensureNotificationListenerServiceConnected()
DNLSControlService.kt41 return listener?.isConnected ?: false in isNotificationListenerConnected()
/cts/tests/tests/notificationlegacy/notificationlegacy27/src/android/app/notification/legacy/cts/
DPollableConditionProviderService.java26 boolean isConnected; field in PollableConditionProviderService
33 isConnected = true; in onConnected()
39 isConnected = false; in onDestroy()
DSecondaryNotificationListener.java35 boolean isConnected; field in SecondaryNotificationListener
57 isConnected = true; in onListenerConnected()
62 isConnected = false; in onListenerDisconnected()
/cts/common/device-side/bedstead/modules/usb/src/test/kotlin/com/android/bedstead/usb/
DUsbTest.kt32 assertThat(TestApis.usb().isConnected()).isTrue() in isConnected_isConnected_returnsTrue()
39 assertThat(TestApis.usb().isConnected()).isFalse() in isConnected_isNotConnected_returnsFalse()
/cts/tests/tests/car/src/android/car/cts/
DCarTest.java65 if (mCar != null && mCar.isConnected()) { in tearDown()
77 assertThat(mCar.isConnected()).isFalse(); in testConnection()
81 assertThat(mServiceConnectionListener.isConnected()).isTrue(); in testConnection()
84 assertThat(mCar.isConnected()).isFalse(); in testConnection()
224 assertThat(car.isConnected()).isTrue(); in assertConnectedCar()
270 public synchronized boolean isConnected() { in isConnected() method in CarTest.DefaultServiceConnectionListener
/cts/tests/tests/nfc/src/android/nfc/tech/cts/
DNfcBarcodeTest.java119 assertEquals(true, nfcBarcode.isConnected()); in testIsConnected_isConnected()
127 assertEquals(false, nfcBarcode.isConnected()); in testIsConnected_notConnected()
136 assertEquals(false, nfcBarcode.isConnected()); in testIsConnected_serviceDead()
178 assertEquals(false, nfcBarcode.isConnected()); in testClose()
DNfcBTest.java136 assertEquals(true, nfcB.isConnected()); in testIsConnected_isConnected()
144 assertEquals(false, nfcB.isConnected()); in testIsConnected_notConnected()
153 assertEquals(false, nfcB.isConnected()); in testIsConnected_serviceDead()
195 assertEquals(false, nfcB.isConnected()); in testClose()
DNfcVTest.java135 assertEquals(true, nfcV.isConnected()); in testIsConnected_isConnected()
143 assertEquals(false, nfcV.isConnected()); in testIsConnected_notConnected()
152 assertEquals(false, nfcV.isConnected()); in testIsConnected_serviceDead()
194 assertEquals(false, nfcV.isConnected()); in testClose()
DNfcATest.java172 assertEquals(true, nfcA.isConnected()); in testIsConnected_isConnected()
180 assertEquals(false, nfcA.isConnected()); in testIsConnected_notConnected()
189 assertEquals(false, nfcA.isConnected()); in testIsConnected_serviceDead()
231 assertEquals(false, nfcA.isConnected()); in testClose()
DNfcFTest.java171 assertEquals(true, nfcF.isConnected()); in testIsConnected_isConnected()
179 assertEquals(false, nfcF.isConnected()); in testIsConnected_notConnected()
188 assertEquals(false, nfcF.isConnected()); in testIsConnected_serviceDead()
230 assertEquals(false, nfcF.isConnected()); in testClose()
DIsoDepTest.java82 Assert.assertTrue(id.isConnected()); in testIsConnected_isConnected()
89 Assert.assertFalse(id.isConnected()); in testIsConnected_isNotConnected()
96 Assert.assertFalse(id.isConnected()); in testIsConnected_serviceDead()
132 Assert.assertFalse(id.isConnected()); in testClose()
DMifareUltralightTest.java222 assertEquals(true, ultralight.isConnected()); in testIsConnected_isConnected()
230 assertEquals(false, ultralight.isConnected()); in testIsConnected_notConnected()
239 assertEquals(false, ultralight.isConnected()); in testIsConnected_serviceDead()
281 assertEquals(false, ultralight.isConnected()); in testClose()
DNdefFormatableTest.java219 assertEquals(true, formatable.isConnected()); in testIsConnected_isConnected()
229 assertEquals(false, formatable.isConnected()); in testIsConnected_notConnected()
238 assertEquals(false, formatable.isConnected()); in testIsConnected_serviceDead()
282 assertEquals(false, formatable.isConnected()); in testClose()
/cts/common/device-side/interactive/steps/src/main/java/com/android/interactive/steps/
DUntetherDeviceStep.kt23 "Disconnect the USB between this device and the host", { !TestApis.usb().isConnected() } in <lambda>()
DConnectViaAdbToHostStep.kt24 …device via ADB to the host", { TestApis.adb().isEnabledOverWifi() || TestApis.usb().isConnected() } in <lambda>()
/cts/common/device-side/bedstead/modules/usb/src/main/kotlin/com/android/bedstead/usb/
DUsb.kt31 fun isConnected(): Boolean { in isConnected() method
/cts/tests/tests/media/misc/src/android/media/misc/cts/
DMediaScannerConnectionTest.java75 assertFalse(mMediaScannerConnection.isConnected()); in testMediaScannerConnection()
113 return mMediaScannerConnection.isConnected() == expected; in checkConnectionState()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DConnectivityUtils.java32 return (networkInfo != null) && networkInfo.isConnected(); in isNetworkConnected()
/cts/common/device-side/preconditions/src/com/android/compatibility/common/preconditions/
DWifiHelper.java37 return wifiNetworkInfo.isConnected(); in isWifiConnected()
/cts/tests/app/shared/src/android/app/stubs/shared/
DTestNotificationListener.java58 boolean isConnected; field in TestNotificationListener
72 isConnected = true; in onListenerConnected()
80 isConnected = false; in onListenerDisconnected()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/notifications/
DMockListener.java65 boolean isConnected; field in MockListener
105 isConnected = true; in onListenerConnected()
110 isConnected = false; in onListenerDisconnected()
/cts/tests/accessibilityservice/src/android/accessibilityservice/cts/
DBrailleDisplayControllerTest.java450 assertThat(mController.isConnected()).isTrue(); in connect()
471 assertThat(mController.isConnected()).isTrue(); in connect_defaultExecutor_isSuccessful()
577 assertThat(mController.isConnected()).isTrue(); in connect_multipleDevices_returnsCorrectDevice()
632 assertThat(anotherService.getBrailleDisplayController().isConnected()).isTrue(); in connect_multipleServicesSameBrailleDisplay_returnsNotFoundError()
633 assertThat(mController.isConnected()).isFalse(); in connect_multipleServicesSameBrailleDisplay_returnsNotFoundError()
748 assertThat(mController.isConnected()).isTrue(); in connect_allowsReconnectionAfterDisconnect()
770 assertThat(mController.isConnected()).isFalse(); in disconnect_disconnectsExistingConnection()
781 assertThat(mController.isConnected()).isFalse(); in disconnect_notConnected_nothingHappens()

123