Home
last modified time | relevance | path

Searched refs:isConnected (Results 1 – 25 of 140) 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.java40 private boolean isConnected; field in LocalSocket
72 this.isConnected = false; in LocalSocket()
99 socket.isConnected = true; in createConnectedLocalSocket()
142 if (isConnected) { in connect()
148 isConnected = true; in connect()
266 public synchronized boolean isConnected() { in isConnected() method in LocalSocket
267 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()
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()
DReader.java91 if (!mService.isConnected()) { in openSession()
118 if (!mService.isConnected()) { in isSecureElementPresent()
143 if (!mService.isConnected()) { in closeSessions()
/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,
324 boolean networkAvailable = isConnected && TelephonyManager.getDefault().getDataEnabled();
325 NetworkAttributes networkAttributes = updateTrackedNetworksState(isConnected, network,
336 isConnected,
344 isConnected,
357 private NetworkAttributes updateTrackedNetworksState(boolean isConnected, Network network,
359 if (!isConnected) {
/frameworks/base/services/core/java/com/android/server/audio/
DAudioDeviceInventory.java172 boolean isConnected = di != null; in onSetA2dpSinkConnectionState()
174 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSinkConnectionState()
187 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSinkConnectionState()
229 boolean isConnected = di != null; in onSetA2dpSourceConnectionState()
231 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSourceConnectionState()
233 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onSetA2dpSourceConnectionState()
252 boolean isConnected = di != null; in onSetHearingAidConnectionState()
254 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onSetHearingAidConnectionState()
256 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onSetHearingAidConnectionState()
430 boolean isConnected = di != null; in handleDeviceConnection()
[all …]
/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/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/opt/car/setupwizard/library/main/src/com/android/car/setupwizardlib/util/
DCarDrivingStateMonitor.java90 if (mCar.isConnected()) { in startMonitor()
186 if (mCar == null || !mCar.isConnected()) { in disconnectCarMonitor()
202 if (mMonitorStartedCount <= 0 && (mCar == null || !mCar.isConnected())) { in checkIsSetupRestricted()
/frameworks/base/telephony/java/android/telephony/ims/compat/feature/
DMMTelFeature.java70 public boolean isConnected(int callSessionType, int callType)
73 return MMTelFeature.this.isConnected(callSessionType, callType);
234 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/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()
DImsServiceInterfaceAdapter.java56 public boolean isConnected(int callSessionType, int callType) throws RemoteException { in isConnected() method in ImsServiceInterfaceAdapter
57 return getInterface().isConnected(SERVICE_ID, callSessionType, callType); in isConnected()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DNetworkControllerBaseTest.java231 int networkType, boolean validated, boolean isConnected) { in setConnectivityViaBroadcast() argument
232 setConnectivityCommon(networkType, validated, isConnected); in setConnectivityViaBroadcast()
238 int networkType, boolean validated, boolean isConnected){ in setConnectivityViaCallback() argument
239 setConnectivityCommon(networkType, validated, isConnected); in setConnectivityViaCallback()
245 int networkType, boolean validated, boolean isConnected){ in setConnectivityCommon() argument
247 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/opt/telephony/tests/telephonytests/src/android/telephony/ims/
DTestMMTelFeatureCompat.java34 public boolean isConnected(int callSessinType, int callType) { in isConnected() method in TestMMTelFeatureCompat

123456