OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:networkCallback
(Results
1 - 6
of
6
) sorted by null
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/
ConnectivityEvents.java
65
* Translates a ConnectivityManager.
NetworkCallback
to JSON.
84
JSONObject
networkCallback
= new JSONObject();
86
networkCallback
.put(ConnectivityConstants.NetworkCallbackContainer.ID, mId);
87
networkCallback
.put(
90
networkCallback
.put(ConnectivityConstants.NetworkCallbackContainer.CREATE_TIMESTAMP,
92
networkCallback
.put(ConnectivityConstants.NetworkCallbackContainer.CURRENT_TIMESTAMP,
95
return
networkCallback
;
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
ShadowConnectivityManager.java
39
private HashSet<ConnectivityManager.
NetworkCallback
> networkCallbacks = new HashSet<>();
71
public Set<ConnectivityManager.
NetworkCallback
> getNetworkCallbacks() {
85
NetworkRequest request, ConnectivityManager.
NetworkCallback
networkCallback
) {
86
registerNetworkCallback(request,
networkCallback
, null);
92
ConnectivityManager.
NetworkCallback
networkCallback
,
94
networkCallbacks.add(
networkCallback
);
99
NetworkRequest request, ConnectivityManager.
NetworkCallback
networkCallback
) {
[
all
...]
/external/grpc-grpc-java/android/src/test/java/io/grpc/android/
AndroidChannelBuilderTest.java
312
private HashSet<ConnectivityManager.
NetworkCallback
> defaultNetworkCallbacks = new HashSet<>();
335
for (ConnectivityManager.
NetworkCallback
networkCallback
: defaultNetworkCallbacks) {
336
networkCallback
.onAvailable(network);
341
for (ConnectivityManager.
NetworkCallback
networkCallback
: defaultNetworkCallbacks) {
342
networkCallback
.onLost(network);
348
ConnectivityManager.
NetworkCallback
networkCallback
) {
349
defaultNetworkCallbacks.add(
networkCallback
);
[
all
...]
/cts/tests/tests/net/src/android/net/wifi/cts/
ConcurrencyTest.java
27
import android.net.ConnectivityManager.
NetworkCallback
;
242
NetworkCallback
networkCallback
= new
NetworkCallback
() {
248
cm.registerNetworkCallback(request,
networkCallback
);
251
cm.unregisterNetworkCallback(
networkCallback
);
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/wifi/
WifiManagerFacade.java
28
import android.net.ConnectivityManager.
NetworkCallback
;
129
private final Map<NetworkSpecifier,
NetworkCallback
> mNetworkCallbacks = new HashMap<>();
202
private final class NetworkCallbackImpl extends
NetworkCallback
{
203
private static final String EVENT_TAG = mEventType + "
NetworkCallback
";
[
all
...]
/cts/tests/tests/net/src/android/net/cts/
ConnectivityManagerTest.java
49
import android.net.ConnectivityManager.
NetworkCallback
;
428
* <p>In order to test that a
NetworkCallback
occurs, we need some change in the network
456
assertNotNull("Did not receive
NetworkCallback
.onAvailable for TRANSPORT_WIFI",
459
assertNotNull("Did not receive
NetworkCallback
.onAvailable for any default network",
462
fail("Broadcast receiver or
NetworkCallback
wait was interrupted.");
472
* of a {@code
NetworkCallback
}.
507
fail("Broadcast receiver or
NetworkCallback
wait was interrupted.");
516
* Exercises the requestNetwork with
NetworkCallback
API. This checks to
529
assertNotNull("Did not receive
NetworkCallback
#onAvailable for INTERNET",
532
fail("
NetworkCallback
wait was interrupted.")
[
all
...]
Completed in 1129 milliseconds