Home
last modified time | relevance | path

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

123456

/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/
DRichInputConnection.java143 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/services/Car/obd2-lib/src/com/android/car/obd2/connections/
DBluetoothConnection.java75 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/services/BuiltInPrintService/src/com/android/bips/util/
DWifiMonitor.java58 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/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java65 assertFalse(car.isConnected()); in testCarConnection()
71 assertTrue(car.isConnected()); in testCarConnection()
84 assertFalse(car.isConnected()); in testCarConnection()
90 assertFalse(car.isConnected()); in testDoubleConnect()
108 assertTrue(car2.isConnected()); in testConstructorWithICar()
/packages/apps/Settings/tests/robotests/src/com/android/settings/network/
DWifiConnectionPreferenceControllerTest.java90 when(mWifiTracker.isConnected()).thenReturn(false); in isAvailable_noWiFiConnection_availableIsFalse()
96 when(mWifiTracker.isConnected()).thenReturn(false); in displayPreference_noWiFiConnection_noPreferenceAdded()
104 when(mWifiTracker.isConnected()).thenReturn(true); in displayPreference_hasWiFiConnection_preferenceAdded()
114 when(mWifiTracker.isConnected()).thenReturn(true); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
125 when(mWifiTracker.isConnected()).thenReturn(false); in onConnectedChanged_wifiBecameDisconnected_preferenceRemoved()
136 when(mWifiTracker.isConnected()).thenReturn(true); in onAccessPointsChanged_wifiBecameConnectedToDifferentAP_preferenceReplaced()
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdaterTest.java83 doReturn(false).when(mBluetoothDevice).isConnected(); in update_filterMatch_addPreference()
93 doReturn(true).when(mBluetoothDevice).isConnected(); in update_filterNotMatch_removePreference()
102 when(mBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceConnected_removePreference()
112 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_addPreference()
DBluetoothDevicePreferenceTest.java79 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClicked_deviceConnected_shouldLogBluetoothDisconnectEvent()
89 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent()
100 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
116 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
DBluetoothDetailsButtonsControllerTest.java100 when(mCachedDevice.isConnected()).thenReturn(false); in clickOnConnect()
116 when(mCachedDevice.isConnected()).thenReturn(false); in becomeDisconnected()
128 when(mCachedDevice.isConnected()).thenReturn(false); in becomeConnected()
135 when(mCachedDevice.isConnected()).thenReturn(true); in becomeConnected()
DBluetoothDetailsControllerTestBase.java128 boolean isConnected() { in isConnected() method in BluetoothDetailsControllerTestBase.DeviceConfig
152 when(mCachedDevice.isConnected()).thenReturn(config.isConnected()); in setupDevice()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdater.java46 ", is connected : " + device.isConnected() + ", is profile connected : " in isFilterMatched()
47 + cachedDevice.isConnected()); in isFilterMatched()
49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
DBluetoothDeviceUpdater.java294 ", is connected : " + device.isConnected() + " , is profile connected : " in isDeviceConnected()
295 + cachedDevice.isConnected()); in isDeviceConnected()
297 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isDeviceConnected()
DBluetoothDetailsButtonsController.java43 mIsConnected = device.isConnected(); in BluetoothDetailsButtonsController()
67 mIsConnected = mCachedDevice.isConnected(); in refresh()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/bluetooth/
DSavedBluetoothDeviceUpdater.java46 ", is connected : " + device.isConnected() + ", is profile connected : " in isFilterMatched()
47 + cachedDevice.isConnected()); in isFilterMatched()
49 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
DBluetoothDeviceUpdater.java284 ", is connected : " + device.isConnected() + " , is profile connected : " in isDeviceConnected()
285 + cachedDevice.isConnected()); in isDeviceConnected()
287 return device.getBondState() == BluetoothDevice.BOND_BONDED && device.isConnected(); in isDeviceConnected()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java152 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/Car/Settings/tests/robotests/src/com/android/car/settings/bluetooth/
DBluetoothDeviceDetailsFragmentTest.java115 when(mCachedDevice.isConnected()).thenReturn(true); in connectionButtonClicked_deviceConnected_disconnectsDevice()
125 when(mCachedDevice.isConnected()).thenReturn(false); in connectionButtonClicked_deviceNotConnected_connectsDevice()
135 when(mCachedDevice.isConnected()).thenReturn(true); in deviceConnected_connectionButtonShowsDisconnect()
144 when(mCachedDevice.isConnected()).thenReturn(false); in deviceNotConnected_connectionButtonShowsConnect()
/packages/apps/Email/provider_src/com/android/email/provider/
DRefreshStatusMonitor.java85 private boolean isConnected() { in isConnected() method in RefreshStatusMonitor
89 return (networkInfo != null) && networkInfo.isConnected(); in isConnected()
116 } else if (!isConnected()) { in run()
/packages/services/Telecomm/src/com/android/server/telecom/
DInCallController.java91 public boolean isConnected() { return false; } in isConnected() method in InCallController.InCallServiceConnection
268 public boolean isConnected() { in isConnected() method in InCallController.InCallServiceBindingConnection
496 public boolean isConnected() { in isConnected() method in InCallController.CarSwappingInCallServiceConnection
558 if (subConnection.isConnected()) { in disconnect()
565 public boolean isConnected() { in isConnected() method in InCallController.NonUIInCallServiceConnectionCollection
568 connected = connected || subConnection.isConnected(); in isConnected()
780 mInCallServiceConnection.isConnected()); in onCallAdded()
1494 return mInCallServiceConnection != null && mInCallServiceConnection.isConnected(); in isBoundAndConnectedToServices()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java136 when(mBluetoothDevice.isConnected()).thenReturn(true); in setUp()
140 when(mSecondBluetoothDevice.isConnected()).thenReturn(true); in setUp()
144 when(mLeftBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
148 when(mRightBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java131 if (shouldConnect && !isConnected(profile) && in onClick()
225 if (!isConnected(profile)) { in disconnect()
235 private boolean isConnected(VpnProfile profile) throws RemoteException { in isConnected() method in ConfigDialogFragment
/packages/services/Car/obd2-lib/src/com/android/car/obd2/
DObd2Connection.java43 boolean isConnected(); in isConnected() method
79 public boolean isConnected() { in isConnected() method in Obd2Connection
80 return mConnection.isConnected(); in isConnected()
/packages/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/vpn2/
DConfigDialogFragment.java131 if (shouldConnect && !isConnected(profile) && in onClick()
225 if (!isConnected(profile)) { in disconnect()
235 private boolean isConnected(VpnProfile profile) throws RemoteException { in isConnected() method in ConfigDialogFragment
/packages/apps/Bluetooth/src/com/android/bluetooth/pbapclient/
DBluetoothPbapObexTransport.java79 public boolean isConnected() throws IOException { in isConnected() method in BluetoothPbapObexTransport
81 return mSocket.isConnected(); in isConnected()
/packages/apps/Car/Settings/src/com/android/car/settings/common/
DCarUxRestrictionsHelper.java63 if (mCar != null && !mCar.isConnected()) { in start()
80 if (mCar != null && mCar.isConnected()) { in stop()
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcp/mockable/
DMediaBrowser.java121 public boolean isConnected() { in isConnected() method in MediaBrowser
122 return mDelegate.isConnected(); in isConnected()

123456