/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
TelephonyNetworkFactory.java | 24 import android.net.NetworkRequest; 51 private final HashMap<NetworkRequest, LocalLog> mDefaultRequests = 52 new HashMap<NetworkRequest, LocalLog>(); 53 private final HashMap<NetworkRequest, LocalLog> mSpecificRequests = 54 new HashMap<NetworkRequest, LocalLog>(); 162 private void applyRequests(HashMap<NetworkRequest, LocalLog> requestMap, boolean action, 164 for (NetworkRequest networkRequest : requestMap.keySet()) { 165 LocalLog localLog = requestMap.get(networkRequest); 168 mDcTracker.requestNetwork(networkRequest, localLog) [all...] |
DcRequest.java | 32 import android.net.NetworkRequest; 40 public final NetworkRequest networkRequest; 44 public DcRequest(NetworkRequest nr, Context context) { 46 networkRequest = nr; 47 apnId = apnIdForNetworkRequest(networkRequest); 52 return networkRequest.toString() + ", priority=" + priority + ", apnId=" + apnId; 56 return networkRequest.hashCode(); 61 return networkRequest.equals(((DcRequest)o).networkRequest); [all...] |
DcTracker.java | 39 import android.net.NetworkRequest; [all...] |
/frameworks/base/services/core/java/com/android/server/connectivity/ |
NetworkAgentInfo.java | 27 import android.net.NetworkRequest; 62 // If this network can satisfy the default NetworkRequest, then NetworkMonitor will 64 // If this network cannot satisfy the default NetworkRequest, it will immediately be 78 // satisfy the default NetworkRequest. 79 // A network, that satisfies the default NetworkRequest, in state #5 should always be chosen 80 // in favor of a network, that satisfies the default NetworkRequest, in state #4. 81 // When deciding between two networks, that both satisfy the default NetworkRequest, to select 100 // If the network ever for any period of time had satisfied a NetworkRequest (i.e. had been 101 // the highest scoring that satisfied the NetworkRequest's constraints), but is no longer the 102 // highest scoring network for any NetworkRequest, then there will be a 30s pause befor [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/http/ |
HttpEngine.java | 150 private Request networkRequest; 223 Request request = networkRequest(userRequest); 232 networkRequest = cacheStrategy.networkRequest; 243 if (networkRequest != null) { 265 transport.writeRequestHeaders(networkRequest); 274 transport.writeRequestHeaders(networkRequest); 275 requestBodyOut = transport.createRequestBody(networkRequest, contentLength); 320 address = createAddress(client, networkRequest); 322 routeSelector = RouteSelector.get(address, networkRequest, client) [all...] |
CacheStrategy.java | 34 public final Request networkRequest; 39 private CacheStrategy(Request networkRequest, Response cacheResponse) { 40 this.networkRequest = networkRequest; 163 if (candidate.networkRequest != null && request.cacheControl().onlyIfCached()) {
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
DcTrackerMock.java | 21 import android.net.NetworkRequest; 173 private final ArrayList<NetworkRequest> mRequestedNetworks = new ArrayList<NetworkRequest>(); 176 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { 178 mRequestedNetworks.add(networkRequest); 183 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { 185 mRequestedNetworks.remove(networkRequest);
|
ConnectivityServiceMock.java | 67 import android.net.NetworkRequest; 179 * obj = NetworkRequest 238 handleReleaseNetworkRequest((NetworkRequest) msg.obj, msg.arg1); 271 private boolean isRequest(NetworkRequest request) { 351 // NetworkRequest request = nai.networkRequests.valueAt(i); 403 private final HashMap<NetworkRequest, NetworkRequestInfo> mNetworkRequests = 404 new HashMap<NetworkRequest, NetworkRequestInfo>(); 422 final NetworkRequest request; 431 NetworkRequestInfo(NetworkRequest r, PendingIntent pi, boolean isRequest) { 441 NetworkRequestInfo(Messenger m, NetworkRequest r, IBinder binder, boolean isRequest) [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
PhoneSwitcher.java | 28 import android.net.NetworkRequest; 191 onRequestNetwork((NetworkRequest)msg.obj); 195 onReleaseNetwork((NetworkRequest)msg.obj); 226 protected void needNetworkFor(NetworkRequest networkRequest, int score) { 227 if (VDBG) log("needNetworkFor " + networkRequest + ", " + score); 229 msg.obj = networkRequest; 234 protected void releaseNetworkFor(NetworkRequest networkRequest) { 235 if (VDBG) log("releaseNetworkFor " + networkRequest); [all...] |
/frameworks/base/core/java/android/net/ |
NetworkFactory.java | 64 * msg.obj = NetworkRequest 72 * with the same NetworkRequest but an updated score. 80 * msg.obj = NetworkRequest 137 handleAddRequest((NetworkRequest)msg.obj, msg.arg1); 141 handleRemoveRequest((NetworkRequest) msg.obj); 156 public final NetworkRequest request; 160 public NetworkRequestInfo(NetworkRequest request, int score) { 173 protected void handleAddRequest(NetworkRequest request, int score) { 189 protected void handleRemoveRequest(NetworkRequest request) { 209 * Called for every request every time a new NetworkRequest is see [all...] |
ConnectivityManager.java | 435 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that 446 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that 463 * {@link #requestNetwork(NetworkRequest, NetworkCallback)} to request a network that [all...] |
IConnectivityManager.aidl | 26 import android.net.NetworkRequest; 145 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, 148 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, 153 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, 159 void releaseNetworkRequest(in NetworkRequest networkRequest);
|
/external/sl4a/Common/src/com/googlecode/android_scripting/facade/ |
ConnectivityManagerFacade.java | 31 import android.net.NetworkRequest; 544 NetworkRequest.Builder builder = new NetworkRequest.Builder(); 547 NetworkRequest networkRequest = builder.build(); 549 mManager.registerNetworkCallback(networkRequest, mNetworkCallback); 561 private NetworkRequest buildNetworkRequestFromJson(JSONObject configJson) 563 NetworkRequest.Builder builder = new NetworkRequest.Builder(); 597 NetworkRequest networkRequest = builder.build() [all...] |
/external/okhttp/okhttp-tests/src/test/java/com/squareup/okhttp/ |
InterceptorTest.java | 185 Request networkRequest = chain.request(); 186 assertNotNull(networkRequest.header("User-Agent")); 188 networkRequest.header("Host")); 189 assertNotNull(networkRequest.header("Accept-Encoding")); 192 Response networkResponse = chain.proceed(networkRequest);
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
ConnectivityServiceTest.java | 50 import android.net.NetworkRequest; 328 NetworkRequest request = new NetworkRequest.Builder() 406 * A NetworkFactory that allows tests to wait until any in-flight NetworkRequest add or remove 461 protected void handleAddRequest(NetworkRequest request, int score) { 478 protected void handleRemoveRequest(NetworkRequest request) { 568 NetworkAgentInfo networkAgentInfo, NetworkRequest defaultRequest) { 626 NetworkAgentInfo nai, NetworkRequest defaultRequest) { [all...] |
/frameworks/base/services/core/java/com/android/server/ |
ConnectivityService.java | 70 import android.net.NetworkRequest; 245 // the highest scoring network satisfying a NetworkRequest. This should be passed when 311 * obj = NetworkRequest 428 // NetworkRequest activity String log entries. 788 private NetworkRequest createInternetRequestForTransport(int transportType) { 795 return new NetworkRequest(netCap, TYPE_NONE, nextNetworkRequestId()); [all...] |
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/ |
Cache.java | 397 if (cacheStrategy.networkRequest != null) {
|
/frameworks/base/services/core/java/com/android/server/location/ |
GnssLocationProvider.java | 55 import android.net.NetworkRequest; [all...] |
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/ |
WifiStateMachine.java | 53 import android.net.NetworkRequest; [all...] |
/prebuilts/tools/common/m2/repository/com/squareup/okhttp/okhttp/2.5.0/ |
okhttp-2.5.0.jar | |
/external/robolectric/v3/runtime/ |
android-all-5.1.1_r9-robolectric-1.jar | |
android-all-4.4_r1-robolectric-1.jar | |
android-all-5.0.0_r2-robolectric-1.jar | |