Home
last modified time | relevance | path

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

1234

/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/BuiltInPrintService/src/com/android/bips/util/
DWifiMonitor.java41 void onConnectionStateChanged(boolean isConnected); in onConnectionStateChanged() argument
48 boolean isConnected = isConnected(context);
49 if (mConnected == null || mConnected != isConnected) {
50 mConnected = isConnected;
71 public static boolean isConnected(Context context) { in isConnected() method in WifiMonitor
77 if (networkInfo != null && networkInfo.isConnected() && in isConnected()
/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/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java66 assertFalse(car.isConnected()); in testCarConnection()
72 assertTrue(car.isConnected()); in testCarConnection()
85 assertFalse(car.isConnected()); in testCarConnection()
91 assertFalse(car.isConnected()); in testDoubleConnect()
109 assertTrue(car2.isConnected()); in testConstructorWithICar()
/packages/services/Car/tests/android_support_car_api_test/src/com/android/support/car/apitest/
DCarTest.java60 assertFalse(car.isConnected()); in testCarConnection()
66 assertTrue(car.isConnected()); in testCarConnection()
79 assertFalse(car.isConnected()); in testCarConnection()
85 assertFalse(car.isConnected()); in testDoubleConnect()
/packages/apps/Dialer/java/com/android/incallui/calllocation/impl/
DLocationHelper.java146 void onLocationChanged(Location location, boolean isConnected) { in onLocationChanged() argument
184 if (apiClient.isConnected()) { in close()
229 LocationHelper.this.onLocationChanged(location, isConnected()); in onLocationChanged()
235 private boolean isConnected() { in isConnected() method in LocationHelper.LocationHelperInternal
/packages/services/Telecomm/src/com/android/server/telecom/
DBluetoothManager.java210 boolean isConnected = false; in isBluetoothAvailable()
215 isConnected = true; in isBluetoothAvailable()
224 Log.v(this, " ==> " + isConnected); in isBluetoothAvailable()
225 return isConnected; in isBluetoothAvailable()
DInCallController.java90 public boolean isConnected() { return false; } in isConnected() method in InCallController.InCallServiceConnection
266 public boolean isConnected() { in isConnected() method in InCallController.InCallServiceBindingConnection
494 public boolean isConnected() { in isConnected() method in InCallController.CarSwappingInCallServiceConnection
556 if (subConnection.isConnected()) { in disconnect()
563 public boolean isConnected() { in isConnected() method in InCallController.NonUIInCallServiceConnectionCollection
566 connected = connected || subConnection.isConnected(); in isConnected()
764 mInCallServiceConnection.isConnected()); in onCallAdded()
1396 return mInCallServiceConnection != null && mInCallServiceConnection.isConnected(); in isBoundAndConnectedToServices()
/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/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DBluetoothDevicePreferenceTest.java69 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClicked_deviceConnected_shouldLogBluetoothDisconnectEvent()
79 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent()
90 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
DBluetoothSummaryUpdaterTest.java140 when(devices.get(0).isConnected()).thenReturn(true); in onConnectionStateChanged_connected_shouldSendConnectedMessage()
207 doReturn(true).when(mConnectedDevice).isConnected(); in prepareConnectedDevice()
212 doReturn(true).when(mConnectedKeyBoardDevice).isConnected(); in prepareConnectedDevice()
/packages/apps/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java155 if (shouldConnect && !isConnected(profile) && in onClick()
249 if (!isConnected(profile)) { in disconnect()
259 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/services/Car/service/src/com/android/car/
DBluetoothDeviceConnectionPolicy.java998 boolean isConnected; in notifyConnectionStatus()
1001 isConnected = false; in notifyConnectionStatus()
1006 isConnected = true; in notifyConnectionStatus()
1019 boolean updateSuccessful = updateDeviceConnectionStatus(params, isConnected); in notifyConnectionStatus()
1021 if (isConnected) { in notifyConnectionStatus()
/packages/services/Car/car-support-lib/src/android/support/car/
DCarServiceLoaderEmbedded.java68 public boolean isConnected() { in isConnected() method in CarServiceLoaderEmbedded
69 return mEmbeddedCar.isConnected(); in isConnected()
DCar.java335 if (!serviceLoader.isConnected()) { in Car()
382 public boolean isConnected() { in isConnected() method in Car
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/dictionarypack/
DDictionarySettingsFragment.java228 boolean isConnected = null == info ? false : info.isConnected(); in refreshNetworkState()
229 if (null != mUpdateNowMenu) mUpdateNowMenu.setEnabled(isConnected); in refreshNetworkState()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMnsObexClient.java155 public boolean isConnected() { in isConnected() method in BluetoothMnsObexClient
236 if (isConnected() == false) { in handleRegistration()
240 sendObserverRegistration = isConnected(); in handleRegistration()
/packages/apps/Settings/src/com/android/settings/connecteddevice/
DUsbModePreferenceController.java104 if (mUsbReceiver.isConnected()) { in updataSummary()
145 public boolean isConnected() { in isConnected() method in UsbModePreferenceController.UsbConnectionBroadcastReceiver
/packages/apps/Settings/src/com/android/settings/bluetooth/
DBluetoothSummaryUpdater.java137 if (device.isConnected()) { in updateConnected()
166 if (device.isConnected()) { in getConnectedDeviceSummary()
/packages/apps/Bluetooth/src/com/android/bluetooth/hfp/
DHeadsetService.java475 if (!mStateMachine.isConnected()) { in connectAudio()
551 if (!mStateMachine.isConnected()) { in enableWBS()
568 if (!mStateMachine.isConnected()) { in disableWBS()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/setup/
DWifiSetupActivity.java558 boolean isConnected = (currentConnection != null) && currentConnection.isConnected(); in addSummaryPage()
559 if (isConnected) { in addSummaryPage()
/packages/apps/Bluetooth/src/com/android/bluetooth/opp/
DBluetoothOppTransfer.java615 private boolean isConnected; field in BluetoothOppTransfer.SocketConnectThread
633 isConnected = false; in SocketConnectThread()
645 isConnected = false; in SocketConnectThread()
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/
DWifiSettingsUiTest.java207 when(mWifiTracker.isConnected()).thenReturn(true); in onConnected_shouldSeeConnectedMessage()
218 when(mWifiTracker.isConnected()).thenReturn(true); in resumingAp_shouldNotForceUpdateWhenExistingAPsAreListed()
/packages/services/Car/tests/carservice_test/src/com/android/car/test/
DMockedCarTestBase.java226 if (!car.isConnected()) { in releaseRealCarService()
231 if (car.isConnected()) { in releaseRealCarService()

1234