Home
last modified time | relevance | path

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

123456

/frameworks/base/packages/SettingsLib/src/com/android/settingslib/media/
DPhoneMediaDevice.java77 boolean isConnected = false; in connect()
79 isConnected = hapProfile.setActiveDevice(null) && a2dpProfile.setActiveDevice(null); in connect()
81 isConnected = a2dpProfile.setActiveDevice(null); in connect()
83 isConnected = hapProfile.setActiveDevice(null); in connect()
85 updateSummary(isConnected); in connect()
88 Log.d(TAG, "connect() device : " + getName() + ", is selected : " + isConnected); in connect()
89 return isConnected; in connect()
98 public boolean isConnected() { in isConnected() method in PhoneMediaDevice
DBluetoothMediaDevice.java51 return isConnected() || mCachedDevice.isBusy() in getSummary()
71 final boolean isConnected = mCachedDevice.setActive(); in connect()
73 Log.d(TAG, "connect() device : " + getName() + ", is selected : " + isConnected); in connect()
74 return isConnected; in connect()
104 public boolean isConnected() { in isConnected() method in BluetoothMediaDevice
106 && mCachedDevice.isConnected(); in isConnected()
DMediaDevice.java109 public abstract boolean isConnected(); in isConnected() method in MediaDevice
134 if (isConnected() ^ another.isConnected()) { in compareTo()
135 if (isConnected()) { in compareTo()
DLocalMediaManager.java118 if (!cachedDevice.isConnected() && !cachedDevice.isBusy()) { in connectDevice()
134 final boolean isConnected = device.connect(); in connectDevice()
135 if (isConnected) { in connectDevice()
139 final int state = isConnected in connectDevice()
225 if (isConnected(((BluetoothMediaDevice) device).getCachedDevice())) { in updateCurrentConnectedDevice()
233 private boolean isConnected(CachedBluetoothDevice device) { in isConnected() method in LocalMediaManager
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/am/
DPersistentConnectionTest.java128 assertFalse(conn.isConnected()); in testAll()
142 assertFalse(conn.isConnected()); in testAll()
160 assertTrue(conn.isConnected()); in testAll()
173 assertFalse(conn.isConnected()); in testAll()
182 assertFalse(conn.isConnected()); in testAll()
196 assertFalse(conn.isConnected()); in testAll()
208 assertTrue(conn.isConnected()); in testAll()
220 assertFalse(conn.isConnected()); in testAll()
236 assertFalse(conn.isConnected()); in testAll()
248 assertTrue(conn.isConnected()); in testAll()
[all …]
/frameworks/base/core/java/android/net/
DLocalSocket.java41 private boolean isConnected; field in LocalSocket
73 this.isConnected = false; in LocalSocket()
100 socket.isConnected = true; in createConnectedLocalSocket()
143 if (isConnected) { in connect()
149 isConnected = true; in connect()
267 public synchronized boolean isConnected() { in isConnected() method in LocalSocket
268 return isConnected; in isConnected()
/frameworks/base/core/java/android/se/omapi/
DChannel.java85 if (!mService.isConnected()) { in isOpen()
104 if (!mService.isConnected()) { in isBasicChannel()
163 if (!mService.isConnected()) { in transmit()
201 if (!mService.isConnected()) { in getSelectResponse()
244 if (!mService.isConnected()) { in selectNext()
DReader.java93 if (!mService.isConnected()) { in openSession()
120 if (!mService.isConnected()) { in isSecureElementPresent()
145 if (!mService.isConnected()) { in closeSessions()
165 if (!mService.isConnected()) { in reset()
DSession.java79 if (!mService.isConnected()) { in getATR()
94 if (!mService.isConnected()) { in close()
125 if (!mService.isConnected()) { in closeChannels()
201 if (!mService.isConnected()) { in openBasicChannel()
307 if (!mService.isConnected()) { in openLogicalChannel()
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManagerTest.java154 when(mCachedDevice1.isConnected()).thenReturn(true); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
155 when(mCachedDevice2.isConnected()).thenReturn(false); in updateHearingAidsDevices_firstPairedDevicesConnected_verifySubDevice()
177 when(mCachedDevice1.isConnected()).thenReturn(false); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
178 when(mCachedDevice2.isConnected()).thenReturn(true); in updateHearingAidsDevices_secondPairedDeviceConnected_verifySubDevice()
199 when(mCachedDevice1.isConnected()).thenReturn(true); in updateHearingAidsDevices_BothConnected_verifySubDevice()
200 when(mCachedDevice2.isConnected()).thenReturn(true); in updateHearingAidsDevices_BothConnected_verifySubDevice()
264 when(mCachedDevice1.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_connected_newDevice_verifySubDevice()
265 when(mCachedDevice2.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_connected_newDevice_verifySubDevice()
288 when(mCachedDevice2.isConnected()).thenReturn(false); in onProfileConnectionStateChanged_connected_mainDevice_subDeviceDisconnected_returnFalse()
306 when(mCachedDevice1.isConnected()).thenReturn(true); in onProfileConnectionStateChanged_connected_subDevice_mainDeviceConnected_verifyRefresh()
[all …]
/frameworks/base/packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/
DBluetoothMediaDeviceTest.java74 when(mDevice.isConnected()).thenReturn(true); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
76 assertThat(mBluetoothMediaDevice.isConnected()).isTrue(); in isCachedBluetoothDeviceConnected_deviceConnected_returnTrue()
82 when(mDevice.isConnected()).thenReturn(false); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
84 assertThat(mBluetoothMediaDevice.isConnected()).isFalse(); in isCachedBluetoothDeviceConnected_deviceNotConnected_returnFalse()
DMediaDeviceTest.java118 when(mCachedDevice1.isConnected()).thenReturn(true); in setUp()
120 when(mCachedDevice2.isConnected()).thenReturn(true); in setUp()
122 when(mCachedDevice3.isConnected()).thenReturn(true); in setUp()
181 when(mCachedDevice2.isConnected()).thenReturn(false); in compareTo_carKitIsDisConnected_nonCarKitBluetooth_nonCarKitBluetoothFirst()
222 when(mCachedDevice2.isConnected()).thenReturn(false); in compareTo_sortByRecord_connectedDeviceFirst()
281 when(mCachedDevice1.isConnected()).thenReturn(false); in compareTo_sortByAlphabet_connectDeviceFirst()
339 when(mCachedDevice1.isConnected()).thenReturn(false); in compareTo_mixedDevices_connectDeviceFirst()
340 when(mCachedDevice2.isConnected()).thenReturn(false); in compareTo_mixedDevices_connectDeviceFirst()
/frameworks/base/services/core/java/com/android/server/location/
DGnssNetworkConnectivityHandler.java198 return activeNetworkInfo != null && activeNetworkInfo.isConnected(); in isDataNetworkConnected()
322 private void handleUpdateNetworkState(Network network, boolean isConnected,
327 networkAvailable = isConnected && telephonyManager.getDataEnabled();
329 NetworkAttributes networkAttributes = updateTrackedNetworksState(isConnected, network,
340 isConnected,
348 isConnected,
361 private NetworkAttributes updateTrackedNetworksState(boolean isConnected, Network network,
363 if (!isConnected) {
/frameworks/base/media/java/android/media/browse/
DMediaBrowser.java278 public boolean isConnected() { in isConnected() method in MediaBrowser
286 if (!isConnected()) { in getServiceComponent()
303 if (!isConnected()) { in getRoot()
316 if (!isConnected()) { in getExtras()
335 if (!isConnected()) { in getSessionToken()
454 if (!isConnected()) { in getItem()
501 if (isConnected()) { in subscribeInternal()
529 if (isConnected()) { in unsubscribeInternal()
538 if (isConnected()) { in unsubscribeInternal()
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java186 boolean isConnected = di != null; in onSetA2dpSinkConnectionState()
188 if (isConnected) { in onSetA2dpSinkConnectionState()
228 boolean isConnected = di != null; in onSetA2dpSourceConnectionState()
230 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSourceConnectionState()
232 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSourceConnectionState()
251 boolean isConnected = di != null; in onSetHearingAidConnectionState()
253 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetHearingAidConnectionState()
255 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onSetHearingAidConnectionState()
432 boolean isConnected = di != null; in handleDeviceConnection()
434 Slog.i(TAG, "deviceInfo:" + di + " is(already)Connected:" + isConnected); in handleDeviceConnection()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DHearingAidDeviceManager.java134 if (cachedDevice.isConnected()) { in onHiSyncIdChanged()
163 if (mainDevice.isConnected()) { in onProfileConnectionStateChangedIfProcessed()
190 if (subDevice != null && subDevice.isConnected()) { in onProfileConnectionStateChangedIfProcessed()
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/
DMMTelFeature.java73 public boolean isConnected(int callSessionType, int callType)
76 return MMTelFeature.this.isConnected(callSessionType, callType);
237 public boolean isConnected(int callSessionType, int callType) { in isConnected() method in MMTelFeature
/frameworks/opt/car/setupwizard/library/main/tests/robotests/src/com/android/car/setupwizardlib/shadows/
DShadowCar.java71 doReturn(sIsConnected).when(sMockCar).isConnected(); in createCar()
89 doReturn(connected).when(sMockCar).isConnected(); in setIsConnected()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DBluetoothControllerImpl.java134 return device.getName() + " " + device.getBondState() + " " + device.isConnected(); in getDeviceString()
243 if (device.isConnected()) { in updateConnected()
282 boolean isConnected = device.isConnectedProfile(profile); in updateAudioProfile()
286 audioProfileConnected |= isConnected; in updateAudioProfile()
288 otherProfileConnected |= isConnected; in updateAudioProfile()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
DMmTelInterfaceAdapter.java57 public boolean isConnected(int callSessionType, int callType) throws RemoteException { in isConnected() method in MmTelInterfaceAdapter
58 return getInterface().isConnected(callSessionType, callType); in isConnected()
/frameworks/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarDrivingStateMonitor.java119 if (mCar.isConnected()) { in startMonitor()
210 if (mCar == null || !mCar.isConnected()) { in disconnectCarMonitor()
226 if (mMonitorStartedCount <= 0 && (mCar == null || !mCar.isConnected())) { in checkIsSetupRestricted()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java239 int networkType, boolean validated, boolean isConnected) { in setConnectivityViaBroadcast() argument
240 setConnectivityCommon(networkType, validated, isConnected); in setConnectivityViaBroadcast()
246 int networkType, boolean validated, boolean isConnected){ in setConnectivityViaCallback() argument
247 setConnectivityCommon(networkType, validated, isConnected); in setConnectivityViaCallback()
253 int networkType, boolean validated, boolean isConnected){ in setConnectivityCommon() argument
255 if (isConnected) { in setConnectivityCommon()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/scanner/
DWificondPnoScannerTest.java150 private WifiNative.PnoSettings createDummyPnoSettings(boolean isConnected) { in createDummyPnoSettings() argument
152 pnoSettings.isConnected = isConnected; in createDummyPnoSettings()
/frameworks/base/core/java/android/nfc/tech/
DTagTechnology.java220 public boolean isConnected(); in isConnected() method
/frameworks/base/tests/net/common/java/android/net/
DNetworkTest.java78 assertTrue(mDgramSocket.isConnected()); in testBindSocketOfConnectedDatagramSocketThrows()
99 assertTrue(mLocalClient.isConnected()); in testBindSocketOfLocalSocketThrows()

123456