Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/android/net/
DLocalSocket.java35 private boolean isConnected; field in LocalSocket
43 isConnected = false; in LocalSocket()
52 this.isConnected = false; in LocalSocket()
93 if (isConnected) { in connect()
99 isConnected = true; in connect()
216 public synchronized boolean isConnected() { in isConnected() method in LocalSocket
217 return isConnected; in isConnected()
DNetworkInfo.java231 public boolean isConnected() { in isConnected() method in NetworkInfo
/frameworks/base/core/java/android/widget/
DRemoteViewsAdapter.java238 public synchronized boolean isConnected() { in isConnected() method in RemoteViewsAdapter.RemoteViewsAdapterServiceConnection
757 if (mServiceConnection.isConnected()) { in loadNextIndexInBackground()
831 if (!mServiceConnection.isConnected()) return; in updateRemoteViews()
937 boolean isConnected = mServiceConnection.isConnected(); in getView()
940 if (!isInCache && !isConnected) { in getView()
1085 if (!mServiceConnection.isConnected()) { in notifyDataSetChanged()
1112 if (mServiceConnection.isConnected()) { in handleMessage()
1131 if (!mServiceConnection.isConnected()) { in requestBindService()
1137 return mServiceConnection.isConnected(); in requestBindService()
/frameworks/base/core/java/android/bluetooth/
DIBluetoothPbap.aidl31 boolean isConnected(in BluetoothDevice device); in isConnected() method
DBluetoothPbap.java185 public boolean isConnected(BluetoothDevice device) { in isConnected() method in BluetoothPbap
189 return mService.isConnected(device); in isConnected()
DHeadsetBase.java254 public boolean isConnected() { in isConnected() method in HeadsetBase
DBluetoothSocket.java282 public boolean isConnected() { in isConnected() method in BluetoothSocket
/frameworks/base/core/java/android/nfc/tech/
DTagTechnology.java210 public boolean isConnected(); in isConnected() method
DBasicTagTechnology.java57 public boolean isConnected() { in isConnected() method in BasicTagTechnology
/frameworks/base/media/java/android/media/
DAudioService.java2379 boolean isConnected = in onReceive()
2383 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onReceive()
2395 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onReceive()
2438 boolean isConnected = (mConnectedDevices.containsKey(device) && in onReceive()
2442 if (isConnected && state != BluetoothProfile.STATE_CONNECTED) { in onReceive()
2449 } else if (!isConnected && state == BluetoothProfile.STATE_CONNECTED) { in onReceive()
2462 boolean isConnected = in onReceive()
2464 if (state == 0 && isConnected) { in onReceive()
2469 } else if (state == 1 && !isConnected) { in onReceive()
2477 boolean isConnected = in onReceive()
[all …]
DMediaScannerConnection.java147 public synchronized boolean isConnected() { in isConnected() method in MediaScannerConnection
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/unit/
DWifiClientTest.java260 assertTrue(mNetworkInfo.isConnected()); in testWifiBroadcasts()
269 assertTrue(!mNetworkInfo.isConnected()); in testWifiBroadcasts()
/frameworks/base/services/java/com/android/server/
DConnectivityService.java594 if (mNetTrackers[mNetworkPreference].getNetworkInfo().isConnected()) in enforcePreference()
602 mNetTrackers[t].getNetworkInfo().isConnected()) { in enforcePreference()
938 if (ni.isConnected() == true) { in startUsingNetworkFeature()
1133 if (tracker == null || !tracker.getNetworkInfo().isConnected() || in requestRouteToHostAddress()
1438 if (networkInfo.isConnected() && networkInfo.getType() != prevNetType) { in handleDisconnect()
1744 if (mNetTrackers[netType].getNetworkInfo().isConnected()) { in handleConnectivityChange()
1983 if (nt.getNetworkInfo().isConnected() && in reassessPidDns()
2109 if (nt != null && nt.getNetworkInfo().isConnected() && !nt.isTeardownRequested()) { in handleDnsConfigurationChange()
2172 if (nst.getNetworkInfo().isConnected()) { in dump()
2563 if (networkInfo.isConnected() == false) { in handleInetConditionHoldEnd()
/frameworks/base/core/tests/hosttests/test-apps/DownloadManagerTestApp/src/com/android/frameworks/
DDownloadManagerBaseTest.java232 Log.i(LOG_TAG, "WiFi Connection state is currently: " + info.isConnected()); in getWiFiIsOn()
233 return info.isConnected(); in getWiFiIsOn()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java227 Log.i(LOG_TAG, "WiFi Connection state is currently: " + info.isConnected()); in getWiFiIsOn()
228 return info.isConnected(); in getWiFiIsOn()
/frameworks/base/core/java/android/net/http/
DAndroidHttpClientConnection.java159 return (this.open && this.socket != null && this.socket.isConnected()); in isOpen()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
DGsmDataConnectionTracker.java1930 if (isConnected() && ! mPhone.getServiceStateTracker().isConcurrentVoiceAndDataAllowed()) { in onVoiceCallStarted()
1940 if (isConnected()) { in onVoiceCallEnded()
1964 protected boolean isConnected() { in isConnected() method in GsmDataConnectionTracker
2285 if (isConnected()) { in handleMessage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DNetworkController.java654 mWifiConnected = networkInfo != null && networkInfo.isConnected(); in updateWifiState()
736 mBluetoothTethered = info.isConnected() ? true: false; in updateConnectivity()
/frameworks/base/voip/java/com/android/server/sip/
DSipService.java1146 if (info == null || info.isConnected() || in onConnectivityChanged()
1155 boolean connected = (info != null && info.isConnected() && in onConnectivityChanged()
/frameworks/base/docs/html/guide/topics/usb/
Dadk.jd589 repeatedly and calls <code>AndroidAccessory::isConnected()</code> to check for any connected
607 if (acc.isConnected()) {
621 <code>AndroidAccessory::isConnected()</code> method checks for these cases and responds
631 bool AndroidAccessory::isConnected(void)
855 re-configured in the <code>AndroidAccessory::isConnected()</code> function.</p>
/frameworks/base/core/tests/ConnectivityManagerTest/src/com/android/connectivitymanagertest/functional/
DConnectivityManagerMobileTest.java104 assertTrue("not connected to cellular network", extraNetInfo.isConnected()); in verifyCellularConnection()
/frameworks/base/telephony/java/com/android/internal/telephony/
DDataConnectionTracker.java320 mIsWifiConnected = (networkInfo != null && networkInfo.isConnected());
/frameworks/base/core/java/android/content/
DSyncManager.java261 return (networkInfo != null) && networkInfo.isConnected(); in readDataConnectionState()
1884 uidNetworkConnected = networkInfo != null && networkInfo.isConnected(); in maybeStartNextSyncLocked()
/frameworks/base/services/java/com/android/server/connectivity/
DTethering.java1256 if ((info != null) && info.isConnected()) { in chooseUpstreamType()
/frameworks/base/services/java/com/android/server/location/
DGpsLocationProvider.java503 native_update_network_state(info.isConnected(), info.getType(), in handleUpdateNetworkState()

12