/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/ |
D | RichInputConnection.java | 143 public boolean isConnected() { in isConnected() method in RichInputConnection 195 if (isConnected()) { in beginBatchEdit() 210 if (--mNestLevel == 0 && isConnected()) { in endBatchEdit() 242 if (isConnected() && shouldFinishComposition) { in resetCachesUponCursorMoveAndReturnSuccess() 291 if (isConnected()) { in finishComposingText() 312 if (isConnected()) { in commitText() 340 return isConnected() ? mIC.getSelectedText(flags) : null; in getSelectedText() 365 if (!isConnected()) { in getCursorCapsMode() 435 if (!isConnected()) { in getTextBeforeCursorAndDetectLaggyConnection() 454 if (!isConnected()) { in getTextAfterCursorAndDetectLaggyConnection() [all …]
|
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/ |
D | AvrcpBipClient.java | 149 if (!isConnected()) { in refreshSession() 191 public boolean isConnected() { in isConnected() method in AvrcpBipClient 211 error("Adding messages failed, connection state: " + isConnected()); in getImageProperties() 224 error("Adding messages failed, connection state: " + isConnected()); in getImage() 249 if (isConnected()) { in connect() 351 if (!isConnected()) { in executeRequest() 406 if (!inst.isConnected()) { in handleMessage() 412 if (inst.isConnected()) { in handleMessage() 418 if (inst.isConnected()) { in handleMessage() 424 if (inst.isConnected()) { in handleMessage()
|
/packages/services/Car/obd2-lib/src/com/android/car/obd2/connections/ |
D | BluetoothConnection.java | 75 return mSocket.isConnected(); in connect() 79 public boolean isConnected() { in isConnected() method in BluetoothConnection 80 return mSocket != null && mSocket.isConnected(); in isConnected() 84 if (isConnected()) { in close() 104 if (isConnected()) { in getInputStream() 116 if (isConnected()) { in getOutputStream()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | ConnectedDevicesSliceProvider.java | 233 boolean isConnected = AccessoryUtils.isConnected(device) && cachedDevice.isConnected(); in createBluetoothDeviceSlice() 235 .setKey(isConnected ? KEY_DISCONNECT : KEY_CONNECT) in createBluetoothDeviceSlice() 236 .setTitle(getString(isConnected in createBluetoothDeviceSlice() 243 isConnected ? KEY_DISCONNECT : KEY_CONNECT, in createBluetoothDeviceSlice() 245 isConnected in createBluetoothDeviceSlice() 251 isConnected ? 1 /* default to NO (index 1) */ : 0 /* default to YES */ in createBluetoothDeviceSlice() 432 if (AccessoryUtils.isConnected(device)) { in updateConnectedDevices() 434 if (cachedDevice != null && cachedDevice.isConnected()) { in updateConnectedDevices() 498 boolean isConnected = AccessoryUtils.isConnected(device) in createBtDeviceSlicePreference() 500 && AccessoryUtils.getCachedBluetoothDevice(getContext(), device).isConnected(); in createBtDeviceSlicePreference() [all …]
|
D | AccessoryUtils.java | 105 public static boolean isConnected(BluetoothDevice device) { in isConnected() method in AccessoryUtils 109 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isConnected() 116 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isBonded()
|
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/ |
D | CarApiTestFragment.java | 54 + mCarForCreateAndConnect.isConnected() 61 + mCarForCreateAndConnect.isConnected()); 83 mTextForCreateCar.setText("isConnected:" + mCarForCreateCar.isConnected()); in onCreateView() 95 + car.isConnected() in onCreateView() 101 + car.isConnected()); in onCreateView() 120 if (car != null && car.isConnected()) { in disconnectCar()
|
/packages/services/BuiltInPrintService/src/com/android/bips/util/ |
D | WifiMonitor.java | 58 boolean isConnected = info != null && info.isConnected(); in WifiMonitor() 59 if (mListener != null && (mConnected == null || mConnected != isConnected)) { in WifiMonitor() 60 mConnected = isConnected; in WifiMonitor() 80 void onConnectionStateChanged(boolean isConnected); in onConnectionStateChanged() argument
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 107 doReturn(false).when(mBluetoothDevice).isConnected(); in update_filterMatch_addPreference() 118 doReturn(true).when(mBluetoothDevice).isConnected(); in update_filterNotMatch_removePreference() 127 when(mBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceConnected_removePreference() 137 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 155 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClick_Preference_connected_setActive() 172 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 190 when(mBluetoothDevice.isConnected()).thenReturn(true); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 245 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_deviceNotContain_removePreference()
|
D | BluetoothPairingDetailTest.java | 238 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish() 252 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing() 267 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_doNothing() 284 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 303 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 305 when(cachedDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 124 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_behaveAsExpected() 149 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel() 180 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedUntetheredHeadset_behaveAsExpected() 204 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connected_updateCorrectInfo() 214 when(mCachedDevice.isConnected()).thenReturn(false); in refresh_disconnected_updateCorrectInfo() 237 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_checkSummary() 270 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_withLowBatteryAndUncharged_showAlertIcon()
|
D | BluetoothDetailsButtonsControllerTest.java | 99 when(mCachedDevice.isConnected()).thenReturn(false); in clickOnConnect() 115 when(mCachedDevice.isConnected()).thenReturn(false); in becomeDisconnected() 127 when(mCachedDevice.isConnected()).thenReturn(false); in becomeConnected() 134 when(mCachedDevice.isConnected()).thenReturn(true); in becomeConnected()
|
D | BluetoothDetailsControllerTestBase.java | 128 boolean isConnected() { in isConnected() method in BluetoothDetailsControllerTestBase.DeviceConfig 152 when(mCachedDevice.isConnected()).thenReturn(config.isConnected()); in setupDevice()
|
D | BluetoothDevicePreferenceTest.java | 112 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClicked_deviceConnected_shouldLogBluetoothDisconnectEvent() 122 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent() 133 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent() 149 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallDiagnosticServiceController.java | 270 if (isConnected()) { in onCallAdded() 293 if (isConnected()) { in onCallDisconnected() 593 if (isConnected()) { in sendCallToBoundService() 612 if (isConnected()) { in removeCallFromBoundService() 623 public boolean isConnected() { in isConnected() method in CallDiagnosticServiceController 633 if (isConnected()) { in updateCall() 649 if (isConnected()) { in handleBluetoothCallQualityReport() 668 if (isConnected()) { in handleReceivedDeviceToDeviceMessage() 686 if (isConnected()) { in handleCallQualityReport() 720 pw.println(isConnected()); in dump()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarTest.java | 72 assertThat(car.isConnected()).isFalse(); in testCarConnection() 78 assertThat(car.isConnected()).isTrue(); in testCarConnection() 91 assertThat(car.isConnected()).isFalse(); in testCarConnection() 98 assertThat(car.isConnected()).isFalse(); in testDoubleConnect() 112 assertThat(car2.isConnected()).isTrue(); in testConstructorWithICar()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 160 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onDeviceClicked_connected_launchesDeviceDetailsFragment() 174 when(mBondedCachedDevice.isConnected()).thenReturn(true); in bluetoothButtonClicked_connected_disconnectsFromDevice() 190 when(mBondedCachedDevice.isConnected()).thenReturn(false); in bluetoothButtonClicked_notConnected_connectsToDevice() 208 when(mBondedCachedDevice.isConnected()).thenReturn(true); in phoneButtonClicked_phoneProfile_enabled() 230 when(mBondedCachedDevice.isConnected()).thenReturn(true); in mediaButtonClicked_mediaProfile_enabled() 249 when(mBondedCachedDevice.isConnected()).thenReturn(true); in actionButtons_disallowConfigBluetooth_bluetoothActionStaysDisabled() 270 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 292 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled()
|
D | BluetoothDeviceActionButtonsPreferenceControllerTest.java | 107 when(mCachedDevice.isConnected()).thenReturn(true); in connectionButtonClicked_deviceConnected_disconnectsDevice() 117 when(mCachedDevice.isConnected()).thenReturn(false); in connectionButtonClicked_deviceNotConnected_connectsDevice() 127 when(mCachedDevice.isConnected()).thenReturn(true); in deviceConnected_connectionButtonShowsDisconnect() 136 when(mCachedDevice.isConnected()).thenReturn(false); in deviceNotConnected_connectionButtonShowsConnect()
|
D | BluetoothDeviceNamePreferenceControllerTest.java | 103 when(mCachedDevice.isConnected()).thenReturn(true); in refreshUi_connected_setsCarConnectionSummaryAsSummary() 113 when(mCachedDevice.isConnected()).thenReturn(false); in refreshUi_notConnected_setsDisconnectedAsSummary() 134 when(mCachedDevice.isConnected()).thenReturn(true); in refreshUi_hearingAidDevice_setsBatteryStatusesAsSummary()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceController.java | 150 } else if (cachedDevice.isConnected()) { in toggleBluetoothConnectivity() 179 boolean isConnected = cachedDevice.isConnected(); in setButtonsCheckedAndListeners() 184 bluetoothItem.setChecked(isConnected); in setButtonsCheckedAndListeners() 201 if (phoneProfile == null || !isConnected) { in setButtonsCheckedAndListeners() 214 if (mediaProfile == null || !isConnected) { in setButtonsCheckedAndListeners()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdater.java | 104 ", is connected : " + device.isConnected() + ", is profile connected : " in isFilterMatched() 105 + cachedDevice.isConnected()); in isFilterMatched() 108 && (mDisplayConnected || !device.isConnected()); in isFilterMatched() 116 if (device.isConnected()) { in onPreferenceClick()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothDevicesSliceTest.java | 188 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasAvailableMediaDevice_shouldBuildPrimaryBluetoothAction() 200 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(false); in getSlice_hasPreviouslyConnectedDevice_shouldBuildPrimaryBluetoothAction() 211 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasNonMediaDeviceConnected_shouldNotBuildPrimaryBluetoothAction() 234 doReturn(true).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_connectedDevice_shouldActivateDevice() 248 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_availableDisconnectedDevice_shouldConnectToDevice() 263 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing()
|
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/ |
D | LocationHelper.java | 152 void onLocationChanged(Location location, boolean isConnected) { in onLocationChanged() argument 214 LocationHelper.this.onLocationChanged(location, isConnected()); in getLocation() 228 LocationHelper.this.onLocationChanged(location, isConnected()); in onLocationChanged() 243 private boolean isConnected() { in isConnected() method in LocationHelper.LocationHelperInternal
|
/packages/apps/ImsServiceEntitlement/tests/unittests/src/com/android/imsserviceentitlement/ |
D | WfcActivationControllerTest.java | 282 private void setNetworkConnected(boolean isConnected) { in setNetworkConnected() argument 283 when(mNetworkInfo.isConnected()).thenReturn(isConnected); in setNetworkConnected() 287 when(mNetworkInfo.isConnected()).thenReturn(isConnected); in setNetworkConnected()
|
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | LocalSocketTest.java | 50 assertFalse(clientSocket.isConnected()); in testLocalConnections() 52 assertTrue(clientSocket.isConnected()); in testLocalConnections() 55 assertTrue(serverSocket.isConnected()); in testLocalConnections() 304 assertTrue(clientSocketCreatedFromFileDescriptor.isConnected()); in testLocalSocketCreatedFromFileDescriptor() 453 assertTrue(clientSocket.isConnected()); in createConnectedSocketPair()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/ |
D | ShadowWirelessDebuggingPreferenceController.java | 30 public static void setIsWifiConnected(boolean isConnected) { in setIsWifiConnected() argument 31 sIsWifiConnected = isConnected; in setIsWifiConnected()
|