Home
last modified time | relevance | path

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

1234567

/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/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputSliceTest.java156 when(device.isConnected()).thenReturn(true); in getSlice_shouldHaveActiveDeviceName()
163 when(device2.isConnected()).thenReturn(false); in getSlice_shouldHaveActiveDeviceName()
185 when(device.isConnected()).thenReturn(false); in getSlice_disconnectedBluetooth_verifyTitle()
192 when(device2.isConnected()).thenReturn(false); in getSlice_disconnectedBluetooth_verifyTitle()
216 when(device.isConnected()).thenReturn(true); in getSlice_inGroupState_checkSliceSize()
223 when(device2.isConnected()).thenReturn(true); in getSlice_inGroupState_checkSliceSize()
251 when(device.isConnected()).thenReturn(true); in getSlice_notInGroupState_checkSliceSize()
258 when(device2.isConnected()).thenReturn(true); in getSlice_notInGroupState_checkSliceSize()
285 when(device.isConnected()).thenReturn(true); in getSlice_singleCastDevice_notContainGroupIconText()
314 when(device.isConnected()).thenReturn(true); in getSlice_multipleCastDevices_containGroupIconText()
[all …]
/packages/apps/Bluetooth/src/com/android/bluetooth/avrcpcontroller/
DAvrcpBipClient.java149 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/
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/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/
DCarApiTestFragment.java54 + 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/
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/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdaterTest.java101 doReturn(false).when(mBluetoothDevice).isConnected(); in update_filterMatch_addPreference()
112 doReturn(true).when(mBluetoothDevice).isConnected(); in update_filterNotMatch_removePreference()
121 when(mBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceConnected_removePreference()
131 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_addPreference()
157 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference()
175 when(mBluetoothDevice.isConnected()).thenReturn(true); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference()
230 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_deviceNotContain_removePreference()
DBluetoothPairingDetailTest.java231 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish()
245 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing()
260 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_doNothing()
277 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed()
296 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
298 when(cachedDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
DBluetoothDetailsButtonsControllerTest.java99 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()
DBluetoothDevicePreferenceTest.java98 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClicked_deviceConnected_shouldLogBluetoothDisconnectEvent()
108 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceBonded_shouldLogBluetoothConnectEvent()
119 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEvent()
135 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onClicked_deviceNotBonded_shouldLogBluetoothPairEventAndPairWithoutNameEvent()
DBluetoothDetailsControllerTestBase.java128 boolean isConnected() { in isConnected() method in BluetoothDetailsControllerTestBase.DeviceConfig
152 when(mCachedDevice.isConnected()).thenReturn(config.isConnected()); in setupDevice()
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/
DCarTest.java72 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/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSliceTest.java187 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasAvailableMediaDevice_shouldBuildPrimaryBluetoothAction()
199 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(false); in getSlice_hasPreviouslyConnectedDevice_shouldBuildPrimaryBluetoothAction()
210 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasNonMediaDeviceConnected_shouldNotBuildPrimaryBluetoothAction()
233 doReturn(true).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_connectedDevice_shouldActivateDevice()
247 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_availableDisconnectedDevice_shouldConnectToDevice()
262 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing()
/packages/apps/Car/CompanionDeviceSupport/src/com/android/car/companiondevicesupport/activity/
DAssociatedDeviceDetails.java36 AssociatedDeviceDetails(@NonNull AssociatedDevice device, boolean isConnected) { in AssociatedDeviceDetails() argument
41 mIsConnected = isConnected; in AssociatedDeviceDetails()
68 boolean isConnected() { in isConnected() method in AssociatedDeviceDetails
/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.java122 when(mCachedDevice.isConnected()).thenReturn(true); in connectionButtonClicked_deviceConnected_disconnectsDevice()
132 when(mCachedDevice.isConnected()).thenReturn(false); in connectionButtonClicked_deviceNotConnected_connectsDevice()
142 when(mCachedDevice.isConnected()).thenReturn(true); in deviceConnected_connectionButtonShowsDisconnect()
151 when(mCachedDevice.isConnected()).thenReturn(false); in deviceNotConnected_connectionButtonShowsConnect()
/packages/apps/Settings/src/com/android/settings/bluetooth/
DSavedBluetoothDeviceUpdater.java101 ", is connected : " + device.isConnected() + ", is profile connected : " in isFilterMatched()
102 + cachedDevice.isConnected()); in isFilterMatched()
104 return device.getBondState() == BluetoothDevice.BOND_BONDED && !device.isConnected(); in isFilterMatched()
/packages/apps/Settings/tests/robotests/src/com/android/settings/testutils/shadow/
DShadowWirelessDebuggingPreferenceController.java30 public static void setIsWifiConnected(boolean isConnected) { in setIsWifiConnected() argument
31 sIsWifiConnected = isConnected; in setIsWifiConnected()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/connectivity/
DNetworkFragment.java164 boolean isDataSaverVisible = isConnected() && SliceUtils.isSliceProviderValid( in onCreatePreferences()
166 boolean isDataAlertVisible = isConnected() && SliceUtils.isSliceProviderValid( in onCreatePreferences()
233 private boolean isConnected() { in isConnected() method in NetworkFragment
235 return activeNetworkInfo != null && activeNetworkInfo.isConnected(); in isConnected()
/packages/apps/Settings/tests/robotests/src/com/android/settings/sound/
DMediaOutputPreferenceControllerTest.java177 when(mBluetoothDevice.isConnected()).thenReturn(true); in setUp()
181 when(mSecondBluetoothDevice.isConnected()).thenReturn(true); in setUp()
185 when(mLeftBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
189 when(mRightBluetoothHapDevice.isConnected()).thenReturn(true); in setUp()
/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/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/Settings/src/com/android/settings/vpn2/
DConfigDialogFragment.java135 if (shouldConnect && !isConnected(profile) && in onClick()
229 if (!isConnected(profile)) { in disconnect()
239 private boolean isConnected(VpnProfile profile) throws RemoteException { in isConnected() method in ConfigDialogFragment

1234567