/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/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/modules/Bluetooth/android/app/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() 250 if (isConnected()) { in connect() 352 if (!isConnected()) { in executeRequest() 407 if (!inst.isConnected()) { in handleMessage() 413 if (inst.isConnected()) { in handleMessage() 419 if (inst.isConnected()) { in handleMessage() 425 if (inst.isConnected()) { in handleMessage()
|
/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/TvSettings/Settings/src/com/android/tv/settings/connectivity/ |
D | ActiveNetworkProvider.java | 47 public boolean isConnected() { in isConnected() method in ActiveNetworkProvider 49 && (mNetworkInfo.isConnected() || mNetworkInfo.isConnectedOrConnecting()); in isConnected() 53 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_MOBILE; in isTypeCellular() 57 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_ETHERNET; in isTypeEthernet() 61 return isConnected() && mNetworkInfo.getType() == ConnectivityManager.TYPE_WIFI; in isTypeWifi()
|
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/accessories/ |
D | ConnectedDevicesSliceProvider.java | 236 boolean isConnected = AccessoryUtils.isConnected(device) && cachedDevice.isConnected(); in createBluetoothDeviceSlice() 238 if (!isConnected || showDisconnectButton(device, context)) { in createBluetoothDeviceSlice() 240 .setKey(isConnected ? KEY_DISCONNECT : KEY_CONNECT) in createBluetoothDeviceSlice() 241 .setTitle(getString((isConnected in createBluetoothDeviceSlice() 248 isConnected ? KEY_DISCONNECT : KEY_CONNECT, in createBluetoothDeviceSlice() 250 isConnected in createBluetoothDeviceSlice() 256 isConnected ? 1 /* default to NO (index 1) */ : 0 /* default to YES */ in createBluetoothDeviceSlice() 439 if (AccessoryUtils.isConnected(device)) { in updateConnectedDevices() 441 if (cachedDevice != null && cachedDevice.isConnected()) { in updateConnectedDevices() 513 boolean isConnected = AccessoryUtils.isConnected(device) in createBtDeviceSlicePreference() [all …]
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdaterTest.java | 112 doReturn(false).when(mBluetoothDevice).isConnected(); in update_filterMatch_addPreference() 123 doReturn(true).when(mBluetoothDevice).isConnected(); in update_filterNotMatch_removePreference() 132 when(mBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceConnected_removePreference() 142 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_addPreference() 155 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_leDeviceDisconnected_inDeviceList_invokesAddPreference() 167 when(mBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_notInDeviceList_invokesRemovePreference() 185 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onClick_Preference_connected_setActive() 202 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_findCachedBluetoothDeviceIsMatched_addPreference() 220 when(mBluetoothDevice.isConnected()).thenReturn(true); in forceUpdate_findCachedBluetoothDeviceNotMatched_removePreference() 275 when(mBluetoothDevice.isConnected()).thenReturn(false); in forceUpdate_deviceNotContain_removePreference()
|
D | BluetoothDevicePairingDetailBaseTest.java | 161 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInSelectedListAndConnected_finish() 175 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInSelectedList_doNothing() 190 when(mCachedBluetoothDevice.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_deviceDisconnected_doNothing() 207 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceInPreferenceMapAndConnected_removed() 226 when(mCachedBluetoothDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing() 228 when(cachedDevice.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_deviceNotInPreferenceMap_doNothing()
|
D | AdvancedBluetoothDetailsHeaderControllerTest.java | 129 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_behaveAsExpected() 154 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_unknownBatteryLevel_shouldNotShowBatteryLevel() 176 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedStylus_behaveAsExpected() 196 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedUnknownType_behaveAsExpected() 225 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedUntetheredHeadset_behaveAsExpected() 249 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connected_updateCorrectInfo() 259 when(mCachedDevice.isConnected()).thenReturn(false); in refresh_disconnected_updateCorrectInfo() 283 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_connectedWatch_checkSummary() 316 when(mCachedDevice.isConnected()).thenReturn(true); in refresh_withLowBatteryAndUncharged_showAlertIcon()
|
/packages/apps/Car/Settings/tests/unit/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceControllerTest.java | 195 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onDeviceClicked_connected_launchesDeviceDetailsFragment() 209 when(mBondedCachedDevice.isConnected()).thenReturn(true); in bluetoothButtonClicked_connected_disconnectsFromDevice() 225 when(mBondedCachedDevice.isConnected()).thenReturn(false); in bluetoothButtonClicked_notConnected_connectsToDevice() 242 when(mBondedCachedDevice.isConnected()).thenReturn(true); in phoneButtonClicked_phoneProfile_enabled() 260 when(mBondedCachedDevice.isConnected()).thenReturn(true); in mediaButtonClicked_mediaProfile_enabled() 278 when(mBondedCachedDevice.isConnected()).thenReturn(true); in actionButtons_disallowConfigBluetooth_bluetoothActionStaysDisabled() 298 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsChanged_hasRestrictions_actionButtonDisabled() 320 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsChanged_restrictionToggled_actionButtonsEnabled() 346 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsNoSetup_phoneItemClicked_showsToast() 377 when(mBondedCachedDevice.isConnected()).thenReturn(true); in onUxRestrictionsNoSetup_mediaItemClicked_showsToast() [all …]
|
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()
|
/packages/services/Telecomm/src/com/android/server/telecom/ |
D | CallDiagnosticServiceController.java | 271 if (isConnected()) { in onCallAdded() 294 if (isConnected()) { in onCallDisconnected() 594 if (isConnected()) { in sendCallToBoundService() 613 if (isConnected()) { in removeCallFromBoundService() 624 public boolean isConnected() { in isConnected() method in CallDiagnosticServiceController 634 if (isConnected()) { in updateCall() 650 if (isConnected()) { in handleBluetoothCallQualityReport() 669 if (isConnected()) { in handleReceivedDeviceToDeviceMessage() 687 if (isConnected()) { in handleCallQualityReport() 721 pw.println(isConnected()); in dump()
|
/packages/modules/ImsMedia/framework/src/android/telephony/imsmedia/ |
D | ImsMediaManager.java | 79 if (isConnected()) { in openSession() 100 if (isConnected()) { in closeSession() 118 if (isConnected()) { in generateVideoSprop() 132 if (isConnected()) { in release() 203 private boolean isConnected() { in isConnected() method in ImsMediaManager
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/ |
D | SavedHearingDeviceUpdaterTest.java | 85 doReturn(false).when(mBluetoothDevice).isConnected(); in isFilterMatch_savedHearingDevice_returnTrue() 97 doReturn(false).when(mBluetoothDevice).isConnected(); in isFilterMatch_savedNonHearingDevice_returnFalse() 109 doReturn(false).when(mBluetoothDevice).isConnected(); in isFilterMatch_savedBondingHearingDevice_returnFalse() 121 doReturn(true).when(mBluetoothDevice).isConnected(); in isFilterMatch_connectedHearingDevice_returnFalse() 133 doReturn(false).when(mBluetoothDevice).isConnected(); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
D | AvailableHearingDeviceUpdaterTest.java | 83 when(mBluetoothDevice.isConnected()).thenReturn(true); in isFilterMatch_connectedHearingDevice_returnTrue() 95 when(mBluetoothDevice.isConnected()).thenReturn(false); in isFilterMatch_nonConnectedHearingDevice_returnFalse() 107 when(mBluetoothDevice.isConnected()).thenReturn(true); in isFilterMatch_connectedBondingHearingDevice_returnFalse() 119 when(mBluetoothDevice.isConnected()).thenReturn(true); in isFilterMatch_hearingDeviceNotInCachedDevicesList_returnFalse()
|
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/ |
D | MultiInternetManagerTest.java | 191 private void fakePrimaryCmmConnected(boolean isConnected) { in fakePrimaryCmmConnected() argument 192 when(mPrimaryCmm.getConnectionInfo()).thenReturn(isConnected ? mPrimaryInfo : null); in fakePrimaryCmmConnected() 193 when(mPrimaryCmm.isConnected()).thenReturn(isConnected); in fakePrimaryCmmConnected() 196 private void fakeSecondaryCmmConnected(boolean isConnected) { in fakeSecondaryCmmConnected() argument 198 isConnected ? mSecondaryInfo : null); in fakeSecondaryCmmConnected() 199 when(mSecondaryCmm.isConnected()).thenReturn(isConnected); in fakeSecondaryCmmConnected() 201 isConnected ? mSecondaryInfo.getBSSID() : null); in fakeSecondaryCmmConnected() 366 .get(ScanResult.WIFI_BAND_5_GHZ).isConnected()); in testOnL3ConnectedSecondaryCmmConnection()
|
/packages/apps/Settings/src/com/android/settings/bluetooth/ |
D | SavedBluetoothDeviceUpdater.java | 105 ", is connected : " + device.isConnected() + ", is profile connected : " in isFilterMatched() 106 + cachedDevice.isConnected()); in isFilterMatched() 109 && (mShowConnectedDevice || (!device.isConnected() && isDeviceInCachedDevicesList( in isFilterMatched() 118 if (device.isConnected()) { in onPreferenceClick()
|
/packages/apps/Car/Settings/src/com/android/car/settings/bluetooth/ |
D | BluetoothBondedDevicesPreferenceController.java | 174 } else if (cachedDevice.isConnected()) { in toggleBluetoothConnectivity() 203 boolean isConnected = cachedDevice.isConnected(); in setButtonsCheckedAndListeners() 208 bluetoothItem.setChecked(isConnected); in setButtonsCheckedAndListeners() 225 if (phoneProfile == null || !isConnected || mHasUxRestriction) { in setButtonsCheckedAndListeners() 243 if (mediaProfile == null || !isConnected || mHasUxRestriction) { in setButtonsCheckedAndListeners()
|
/packages/services/Car/tests/android_car_api_test/src/android/car/apitest/ |
D | CarTest.java | 79 assertThat(car.isConnected()).isFalse(); in testCarConnection() 85 assertThat(car.isConnected()).isTrue(); in testCarConnection() 98 assertThat(car.isConnected()).isFalse(); in testCarConnection() 105 assertThat(car.isConnected()).isFalse(); in testDoubleConnect() 119 assertThat(car2.isConnected()).isTrue(); in testConstructorWithICar()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | CarOccupantConnectionManagerUnitTest.java | 340 () -> mOccupantConnectionManager.isConnected(/* receiverZone= */ null)); in testIsConnectedWithNullParameters_throwsException() 345 when(mService.isConnected(PACKAGE_NAME, mReceiverZone)).thenReturn(true); in testIsConnected() 346 boolean isConnected = mOccupantConnectionManager.isConnected(mReceiverZone); in testIsConnected() 348 verify(mService).isConnected(PACKAGE_NAME, mReceiverZone); in testIsConnected() 349 assertThat(isConnected).isTrue(); in testIsConnected()
|
/packages/apps/Settings/tests/robotests/src/com/android/settings/homepage/contextualcards/slices/ |
D | BluetoothDevicesSliceTest.java | 193 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasAvailableMediaDevice_shouldBuildPrimaryBluetoothAction() 205 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(false); in getSlice_hasPreviouslyConnectedDevice_shouldBuildPrimaryBluetoothAction() 216 when(mBluetoothDeviceList.get(0).getDevice().isConnected()).thenReturn(true); in getSlice_hasNonMediaDeviceConnected_shouldNotBuildPrimaryBluetoothAction() 239 doReturn(true).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_connectedDevice_shouldActivateDevice() 253 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_availableDisconnectedDevice_shouldConnectToDevice() 268 doReturn(false).when(mBluetoothDeviceList.get(0)).isConnected(); in onNotifyChange_busyDisconnectedDevice_shouldDoNothing()
|
/packages/apps/Settings/tests/unit/src/com/android/settings/applications/credentials/ |
D | CredentialManagerPreferenceControllerTest.java | 104 assertThat(controller.isConnected()).isFalse(); in getAvailabilityStatus_withoutInit_returnsUnavailable() 112 assertThat(controller.isConnected()).isFalse(); in getAvailabilityStatus_noServices_returnsUnavailable() 120 assertThat(controller.isConnected()).isFalse(); in getAvailabilityStatus_withServices_returnsAvailable() 129 assertThat(controller.isConnected()).isFalse(); in displayPreference_withServices_preferencesAdded() 147 assertThat(controller.isConnected()).isFalse(); in buildSwitchPreference() 186 assertThat(controller.isConnected()).isFalse(); in getAvailabilityStatus_handlesToggleAndSave() 252 assertThat(controller.isConnected()).isFalse(); in handlesCredentialProviderInfoEnabledDisabled() 311 assertThat(controller.isConnected()).isFalse(); in displayPreference_withServices_preferencesAdded_sameAppShouldBeMerged()
|
/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/Car/Launcher/src/com/android/car/carlauncher/recents/ |
D | NonDODisabledTaskProvider.java | 74 if (mCar != null && mCar.isConnected()) { in terminate() 82 return mCar.isConnected() && mIsDistractionOptimizationRequired in isTaskDisabledFromRecents() 89 if (!mCar.isConnected()) { in getDisabledTaskClickListener()
|