Home
last modified time | relevance | path

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

123456

/external/glide/library/src/main/java/com/bumptech/glide/manager/
DDefaultConnectivityMonitor.java14 private boolean isConnected; field in DefaultConnectivityMonitor
20 boolean wasConnected = isConnected;
21 isConnected = isConnected(context);
22 if (wasConnected != isConnected) {
23 listener.onConnectivityChanged(isConnected);
38 isConnected = isConnected(context); in register()
52 private boolean isConnected(Context context) { in isConnected() method in DefaultConnectivityMonitor
56 return networkInfo != null && networkInfo.isConnected(); in isConnected()
/external/connectedappssdk/testing/sdk/src/main/java/com/google/android/enterprise/connectedapps/testing/
DAbstractFakeProfileConnector.java48 private boolean isConnected = false; field in AbstractFakeProfileConnector
145 if (isConnected) { in turnOffWorkProfile()
146 isConnected = false; in turnOffWorkProfile()
164 if (isAvailable() && !isConnected) { in automaticallyConnect()
165 isConnected = true; in automaticallyConnect()
183 if (isConnected) { in timeoutConnection()
184 isConnected = false; in timeoutConnection()
266 public boolean isConnected() { in isConnected() method in AbstractFakeProfileConnector
267 return isConnected; in isConnected()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/robotests/
DAutomaticConnectionManagementTest.java87 assertThat(testProfileConnector.isConnected()).isTrue(); in lessThanThirtySecondsWithNoCalls_doesNotDisconnect()
98 assertThat(testProfileConnector.isConnected()).isFalse(); in thirtySecondsWithNoCalls_disconnects()
111 assertThat(testProfileConnector.isConnected()).isTrue(); in moreThanThirtySecondsWithNoCalls_manualManagementStarted_doesNotDisconnect()
126 assertThat(testProfileConnector.isConnected()).isTrue(); in lessThanThirtySecondsWithNoCalls_previousCallsWereChained_doesNotDisconnect()
141 assertThat(testProfileConnector.isConnected()).isFalse(); in thirtySecondsWithNoCalls_previousCallsWereChained_disconnects()
153 assertThat(testProfileConnector.isConnected()).isTrue(); in callWhichTakesALongTime_doesNotDisconnectDuringCall()
165 assertThat(testProfileConnector.isConnected()).isTrue(); in lessThanThirtySecondsAfterCallWhichTakesALongTime_doesNotDisconnect()
177 assertThat(testProfileConnector.isConnected()).isFalse(); in thirtySecondsAfterCallWhichTakesALongTime_disconnects()
192 assertThat(testProfileConnector.isConnected()).isTrue(); in newCall_afterDisconnection_reconnects()
202 assertThat(testProfileConnector.isConnected()).isTrue(); in stopManualConnectionManagement_lessThan30SecondsLater_doesNotDisconnect()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowNetworkInfo.java29 boolean isConnected) { in newInstance() argument
35 isConnected ? NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED); in newInstance()
56 protected boolean isConnected() { in isConnected() method in ShadowNetworkInfo
62 return isConnected() || state == NetworkInfo.State.CONNECTING; in isConnectedOrConnecting()
109 public void setConnectionStatus(boolean isConnected) { in setConnectionStatus() argument
110 setConnectionStatus(isConnected ? NetworkInfo.State.CONNECTED : NetworkInfo.State.DISCONNECTED); in setConnectionStatus()
/external/grpc-grpc-java/android/src/main/java/io/grpc/android/
DAndroidChannelBuilder.java324 private boolean isConnected = false; field in AndroidChannelBuilder.AndroidChannel.DefaultNetworkCallback
328 if (isConnected) { in onAvailable()
333 isConnected = true; in onAvailable()
338 isConnected = false; in onLost()
344 private boolean isConnected = false; field in AndroidChannelBuilder.AndroidChannel.NetworkReceiver
351 boolean wasConnected = isConnected; in onReceive()
352 isConnected = networkInfo != null && networkInfo.isConnected(); in onReceive()
353 if (isConnected && !wasConnected) { in onReceive()
/external/robolectric-shadows/shadows/supportv4/src/main/java/org/robolectric/shadows/support/v4/
DShadowMediaBrowserCompat.java45 private boolean isConnected; field in ShadowMediaBrowserCompat
69 isConnected = true; in connect()
78 isConnected = false; in disconnect()
83 protected boolean isConnected() { in isConnected() method in ShadowMediaBrowserCompat
84 return isConnected; in isConnected()
89 if (!isConnected) { in getRoot()
100 if (isConnected && mediaItem != null) { in getItem()
115 if (isConnected) { in subscribe()
154 if (isConnected) { in search()
/external/walt/android/WALT/app/src/main/java/org/chromium/latency/walt/
DWaltUsbConnection.java114 public boolean isConnected() { in isConnected() method in WaltUsbConnection
115 return super.isConnected() && (endpointIn != null) && (endpointOut != null); in isConnected()
121 if (!isConnected()) { in sendByte()
136 if (!isConnected()) { in syncClock()
158 if (! isConnected()) { in updateLag()
DWaltDevice.java138 public boolean isConnected() { in isConnected() method in WaltDevice
139 return connection.isConnected(); in isConnected()
215 if (!isConnected()) throw new IOException("Not connected to WALT"); in checkVersion()
227 if (!isConnected() || clock == null) { in ping()
255 if (! isConnected()) { in checkDrift()
410 if (!isConnected()) { in startListener()
438 if (isConnected()) { in setConnectionStateListener()
/external/guava/android/guava-tests/test/com/google/common/collect/
DImmutableRangeMapTest.java86 range1.isConnected(range2) && !range1.intersection(range2).isEmpty(); in testOverlapRejection()
102 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testGet()
140 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testSpanTwoRanges()
152 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testGetEntry()
186 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testAsMapOfRanges()
213 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testSubRangeMap()
221 if (entry.getKey().isConnected(subRange) in testSubRangeMap()
/external/apache-http/src/org/apache/http/impl/conn/
DAbstractPoolEntry.java154 if ((this.tracker != null) && this.tracker.isConnected()) { in open()
212 if ((this.tracker == null) || !this.tracker.isConnected()) { in tunnelTarget()
257 if ((this.tracker == null) || !this.tracker.isConnected()) { in tunnelProxy()
286 if ((this.tracker == null) || !this.tracker.isConnected()) { in layerProtocol()
/external/guava/guava-tests/test/com/google/common/collect/
DImmutableRangeMapTest.java87 range1.isConnected(range2) && !range1.intersection(range2).isEmpty(); in testOverlapRejection()
103 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testGet()
141 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testSpanTwoRanges()
153 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testGetEntry()
187 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testAsMapOfRanges()
214 if (!range1.isConnected(range2) || range1.intersection(range2).isEmpty()) { in testSubRangeMap()
222 if (entry.getKey().isConnected(subRange) in testSubRangeMap()
/external/connectedappssdk/tests/instrumented/src/main/java/com/google/android/enterprise/connectedapps/instrumented/tests/
DConnectTest.java72 assertThat(connector.isConnected()).isTrue(); in connect_connects()
97 assertThat(connector.isConnected()).isFalse(); in connect_otherProfileNotAvailable_doesNotConnect()
116 assertThat(connector.isConnected()).isTrue(); in connect_alreadyConnected_returns()
/external/autotest/client/site_tests/network_FirewallHolePunch/src/tcpserver/
Dmain.js90 return {isConnected: tcpServer.isConnected(),
94 return {isConnected: false};
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/
DProfileConnectorTest.java90 assertThat(testProfileConnector.isConnected()).isTrue(); in startConnecting_fromPersonalProfile_binds()
98 assertThat(testProfileConnector.isConnected()).isTrue(); in startConnecting_fromWorkProfile_binds()
106 assertThat(testProfileConnector.isConnected()).isFalse(); in disconnect_fromPersonalProfile_doesNotBind()
114 assertThat(testProfileConnector.isConnected()).isFalse(); in disconnect_fromWorkProfile_doesNotBind()
123 assertThat(testProfileConnector.isConnected()).isFalse(); in disconnect_isBound_unbinds()
/external/mockftpserver/tags/1.0/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java122 if (ftpClient1.isConnected()) { in tearDown()
125 if (ftpClient2.isConnected()) { in tearDown()
128 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/1.1/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java122 if (ftpClient1.isConnected()) { in tearDown()
125 if (ftpClient2.isConnected()) { in tearDown()
128 if (ftpClient3.isConnected()) { in tearDown()
/external/connectedappssdk/tests/robotests/src/test/java/com/google/android/enterprise/connectedapps/testing/
DAbstractFakeProfileConnectorTest.java55 assertThat(fakeProfileConnector.isConnected()).isTrue(); in startConnecting_connectionIsAvailable_isConnected()
95 assertThat(fakeProfileConnector.isConnected()).isTrue(); in connect_connectionIsAvailable_isConnected()
207 assertThat(fakeProfileConnector.isConnected()).isTrue(); in isConnected_isConnected_returnsTrue()
216 assertThat(fakeProfileConnector.isConnected()).isFalse(); in isConnected_isNotConnected_returnsFalse()
395 assertThat(fakeProfileConnector.isConnected()).isTrue(); in timeoutConnection_isManuallyManagingConnection_doesNotDisconnect()
405 assertThat(fakeProfileConnector.isConnected()).isFalse(); in timeoutConnection_isNotManuallyManagingConnection_disconnects()
/external/mockftpserver/tags/1.2.1/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java124 if (ftpClient1.isConnected()) { in tearDown()
127 if (ftpClient2.isConnected()) { in tearDown()
130 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/2.3/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java123 if (ftpClient1.isConnected()) { in tearDown()
126 if (ftpClient2.isConnected()) { in tearDown()
129 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/2.0.1/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java123 if (ftpClient1.isConnected()) { in tearDown()
126 if (ftpClient2.isConnected()) { in tearDown()
129 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/2.0-rc1/MockFtpServer/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java123 if (ftpClient1.isConnected()) { in tearDown()
126 if (ftpClient2.isConnected()) { in tearDown()
129 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/2.1/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java123 if (ftpClient1.isConnected()) { in tearDown()
126 if (ftpClient2.isConnected()) { in tearDown()
129 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/2.4/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java124 if (ftpClient1.isConnected()) { in tearDown()
127 if (ftpClient2.isConnected()) { in tearDown()
130 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/1.2.3/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java124 if (ftpClient1.isConnected()) { in tearDown()
127 if (ftpClient2.isConnected()) { in tearDown()
130 if (ftpClient3.isConnected()) { in tearDown()
/external/mockftpserver/tags/1.2.2/src/test/java/org/mockftpserver/stub/
DStubFtpServer_MultipleClientsIntegrationTest.java124 if (ftpClient1.isConnected()) { in tearDown()
127 if (ftpClient2.isConnected()) { in tearDown()
130 if (ftpClient3.isConnected()) { in tearDown()

123456