Home
last modified time | relevance | path

Searched refs:NetworkRequest (Results 1 – 25 of 54) sorted by relevance

123

/frameworks/base/core/java/android/net/
DNetworkRequest.java27 public class NetworkRequest implements Parcelable { class
52 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId) { in NetworkRequest() method in NetworkRequest
64 public NetworkRequest(NetworkRequest that) { in NetworkRequest() method in NetworkRequest
85 public NetworkRequest build() { in build()
92 return new NetworkRequest(nc, ConnectivityManager.TYPE_NONE, in build()
227 public static final Creator<NetworkRequest> CREATOR =
228 new Creator<NetworkRequest>() {
229 public NetworkRequest createFromParcel(Parcel in) {
233 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId);
236 public NetworkRequest[] newArray(int size) {
[all …]
DNetworkFactory.java137 handleAddRequest((NetworkRequest)msg.obj, msg.arg1); in handleMessage()
141 handleRemoveRequest((NetworkRequest) msg.obj); in handleMessage()
156 public final NetworkRequest request;
160 public NetworkRequestInfo(NetworkRequest request, int score) { in NetworkRequestInfo()
173 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest()
189 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest()
226 public boolean acceptRequest(NetworkRequest request, int score) { in acceptRequest()
262 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor()
266 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor()
271 public void addNetworkRequest(NetworkRequest networkRequest, int score) { in addNetworkRequest()
[all …]
DIConnectivityManager.aidl26 import android.net.NetworkRequest;
145 NetworkRequest requestNetwork(in NetworkCapabilities networkCapabilities, in requestNetwork()
148 NetworkRequest pendingRequestForNetwork(in NetworkCapabilities networkCapabilities, in pendingRequestForNetwork()
153 NetworkRequest listenForNetwork(in NetworkCapabilities networkCapabilities, in listenForNetwork()
159 void releaseNetworkRequest(in NetworkRequest networkRequest); in releaseNetworkRequest()
DConnectivityManager.java1103 NetworkRequest request = null; in startUsingNetworkFeature()
1309 NetworkRequest networkRequest;
1339 private NetworkRequest findRequestForFeature(NetworkCapabilities netCap) { in findRequestForFeature()
1364 private NetworkRequest requestNetworkForFeatureLocked(NetworkCapabilities netCap) { in requestNetworkForFeatureLocked()
2580 private NetworkRequest networkRequest;
2610 private final HashMap<NetworkRequest, NetworkCallback>mCallbackMap;
2616 CallbackHandler(Looper looper, HashMap<NetworkRequest, NetworkCallback>callbackMap, in CallbackHandler() argument
2626 NetworkRequest request = (NetworkRequest) getObject(message, NetworkRequest.class); in handleMessage()
2733 private NetworkCallback getCallback(NetworkRequest req, String name) { in getCallback()
2766 static final HashMap<NetworkRequest, NetworkCallback> sNetworkCallback =
[all …]
DNetworkRequest.aidl19 parcelable NetworkRequest;
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetworkAgentInfo.java27 import android.net.NetworkRequest;
165 public final SparseArray<NetworkRequest> networkRequests = new SparseArray<NetworkRequest>();
169 public final ArrayList<NetworkRequest> networkLingered = new ArrayList<NetworkRequest>();
179 NetworkMisc misc, NetworkRequest defaultRequest, ConnectivityService connService) { in NetworkAgentInfo()
197 public boolean addRequest(NetworkRequest networkRequest) { in addRequest()
204 public boolean satisfies(NetworkRequest request) { in satisfies()
209 public boolean satisfiesImmutableCapabilitiesOf(NetworkRequest request) { in satisfiesImmutableCapabilitiesOf()
DDnsEventListenerService.java24 import android.net.NetworkRequest;
120 final NetworkRequest request = new NetworkRequest.Builder() in DnsEventListenerService()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactory.java24 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, in applyRequests() argument
164 for (NetworkRequest networkRequest : requestMap.keySet()) { in applyRequests()
216 public void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor()
223 NetworkRequest networkRequest = (NetworkRequest)msg.obj; in onNeedNetworkFor()
256 public void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor()
[all …]
DDcRequest.java32 import android.net.NetworkRequest;
40 public final NetworkRequest networkRequest;
44 public DcRequest(NetworkRequest nr, Context context) { in DcRequest()
70 private int apnIdForNetworkRequest(NetworkRequest nr) { in apnIdForNetworkRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java67 import android.net.NetworkRequest;
238 handleReleaseNetworkRequest((NetworkRequest) msg.obj, msg.arg1); in handleMessage()
271 private boolean isRequest(NetworkRequest request) { in isRequest()
403 private final HashMap<NetworkRequest, NetworkRequestInfo> mNetworkRequests =
404 new HashMap<NetworkRequest, NetworkRequestInfo>();
422 final NetworkRequest request;
431 NetworkRequestInfo(NetworkRequest r, PendingIntent pi, boolean isRequest) { in NetworkRequestInfo()
441 NetworkRequestInfo(Messenger m, NetworkRequest r, IBinder binder, boolean isRequest) { in NetworkRequestInfo()
749 public NetworkRequest requestNetwork(NetworkCapabilities networkCapabilities, in requestNetwork()
757 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
[all …]
DDcTrackerMock.java21 import android.net.NetworkRequest;
173 private final ArrayList<NetworkRequest> mRequestedNetworks = new ArrayList<NetworkRequest>();
176 public void requestNetwork(NetworkRequest networkRequest, LocalLog log) { in requestNetwork()
183 public void releaseNetwork(NetworkRequest networkRequest, LocalLog log) { in releaseNetwork()
/frameworks/base/services/tests/servicestests/src/com/android/server/
DConnectivityServiceTest.java50 import android.net.NetworkRequest;
328 NetworkRequest request = new NetworkRequest.Builder() in connect()
461 protected void handleAddRequest(NetworkRequest request, int score) { in handleAddRequest()
478 protected void handleRemoveRequest(NetworkRequest request) { in handleRemoveRequest()
568 NetworkAgentInfo networkAgentInfo, NetworkRequest defaultRequest) { in WrappedNetworkMonitor()
626 NetworkAgentInfo nai, NetworkRequest defaultRequest) { in createNetworkMonitor()
1081 final NetworkRequest wifiRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks()
1083 final NetworkRequest cellRequest = new NetworkRequest.Builder() in testStateChangeNetworkCallbacks()
1155 final NetworkCapabilities nc = new NetworkRequest.Builder().addCapability(capability) in tryNetworkFactoryRequests()
1183 NetworkRequest request = new NetworkRequest.Builder().addCapability(capability).build(); in tryNetworkFactoryRequests()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTelephonyNetworkFactoryTest.java39 import android.net.NetworkRequest;
115 private NetworkRequest makeSubSpecificDefaultRequest(TestSetup ts, int subId) { in makeSubSpecificDefaultRequest()
123 private NetworkRequest makeSubSpecificMmsRequest(TestSetup ts, int subId) { in makeSubSpecificMmsRequest()
164 NetworkRequest subSpecificDefault = makeSubSpecificDefaultRequest(ts, subId); in testActive()
176 NetworkRequest subSpecificMms = makeSubSpecificMmsRequest(ts, subId); in testActive()
268 NetworkRequest subSpecificMms = makeSubSpecificMmsRequest(ts, subId); in testRequests()
281 NetworkRequest subSpecificDefault = makeSubSpecificDefaultRequest(ts, subId); in testRequests()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhoneSwitcher.java28 import android.net.NetworkRequest;
191 onRequestNetwork((NetworkRequest)msg.obj); in handleMessage()
195 onReleaseNetwork((NetworkRequest)msg.obj); in handleMessage()
226 protected void needNetworkFor(NetworkRequest networkRequest, int score) { in needNetworkFor()
234 protected void releaseNetworkFor(NetworkRequest networkRequest) { in releaseNetworkFor()
242 private void onRequestNetwork(NetworkRequest networkRequest) { in onRequestNetwork()
251 private void onReleaseNetwork(NetworkRequest networkRequest) { in onReleaseNetwork()
370 private int phoneIdForRequest(NetworkRequest netRequest) { in phoneIdForRequest()
/frameworks/base/docs/html-intl/intl/zh-tw/preview/features/
Dbackground-optimization.jd173 {@link android.net.NetworkRequest} 物件以 {@link android.net.NetworkCapabilities} 的方式定義網路回呼的參數。
175 …android.net.NetworkRequest.Builder NetworkRequest.Builder} 類別建立{@link android.net.NetworkRequest} …
176 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
178 會將 {@link android.net.NetworkRequest} 物件傳遞到系統。
/frameworks/base/docs/html-intl/intl/zh-cn/preview/features/
Dbackground-optimization.jd174 {@link android.net.NetworkRequest} 对象根据 {@link android.net.NetworkCapabilities} 定义网络回调的参数。
176 android.net.NetworkRequest.Builder NetworkRequest.Builder} 类创建 {@link android.net.NetworkRequest} 对…
177 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
179 将 {@link android.net.NetworkRequest} 对象传递给系统。
/frameworks/base/docs/html-intl/intl/ja/preview/features/
Dbackground-optimization.jd174 …{@link android.net.NetworkRequest} オブジェクトは、{@link android.net.NetworkCapabilities} に応じてネットワーク コールバ…
176 …android.net.NetworkRequest.Builder NetworkRequest.Builder} クラスを使って {@link android.net.NetworkReque…
177 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
178 …ger.NetworkCallback) registerNetworkCallback()} は、{@link android.net.NetworkRequest} オブジェクトをシステムに渡…
/frameworks/base/docs/html-intl/intl/ko/preview/features/
Dbackground-optimization.jd174 {@link android.net.NetworkRequest} 객체는 {@link android.net.NetworkCapabilities}의
176 …android.net.NetworkRequest.Builder NetworkRequest.Builder} 클래스로 {@link android.net.NetworkRequest}…
178 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
180 이 {@link android.net.NetworkRequest} 객체를 시스템에 전달합니다. 네트워크 조건이 충족되면, 앱은 {@link
/frameworks/base/docs/html-intl/intl/ru/preview/features/
Dbackground-optimization.jd173 В объектах {@link android.net.NetworkRequest} параметры
174 …мощью {@link android.net.NetworkCapabilities}. Объекты {@link android.net.NetworkRequest} создаются
176 android.net.NetworkRequest.Builder NetworkRequest.Builder}. Затем метод {@link
177 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
179 передает объект {@link android.net.NetworkRequest} системе. Если
/frameworks/base/core/java/com/android/server/net/
DNetworkPinner.java23 import android.net.NetworkRequest;
117 public static void pin(Context context, NetworkRequest request) { in pin()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DPhoneSwitcherTest.java35 import android.net.NetworkRequest;
157 private NetworkRequest makeSubSpecificDefaultRequest(ConnectivityServiceMock cs, int subId) { in makeSubSpecificDefaultRequest()
166 private NetworkRequest makeSubSpecificMmsRequest(ConnectivityServiceMock cs, int subId) { in makeSubSpecificMmsRequest()
340 NetworkRequest request = makeSubSpecificDefaultRequest(connectivityServiceMock, 0); in testRegister()
466 NetworkRequest request = makeSubSpecificMmsRequest(connectivityServiceMock, 1); in testPrioritization()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DSecurityControllerImpl.java28 import android.net.NetworkRequest;
50 private static final NetworkRequest REQUEST = new NetworkRequest.Builder()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java70 import android.net.NetworkRequest;
788 private NetworkRequest createInternetRequestForTransport(int transportType) { in createInternetRequestForTransport()
795 return new NetworkRequest(netCap, TYPE_NONE, nextNetworkRequestId()); in createInternetRequestForTransport()
1886 for (NetworkRequest nr : nai.networkLingered) pw.println(nr.toString()); in dump()
1990 private boolean isRequest(NetworkRequest request) { in isRequest()
2281 NetworkRequest request = nai.networkRequests.valueAt(i); in handleAsyncChannelDisconnected()
2324 for (Map.Entry<NetworkRequest, NetworkRequestInfo> entry : mNetworkRequests.entrySet()) { in findExistingNetworkRequestInfo()
2396 private void handleReleaseNetworkRequest(NetworkRequest request, int callingUid) { in handleReleaseNetworkRequest()
2459 NetworkRequest otherRequest = nai.networkRequests.valueAt(i); in handleReleaseNetworkRequest()
2635 handleReleaseNetworkRequest((NetworkRequest) msg.obj, msg.arg1); in handleMessage()
[all …]
/frameworks/base/packages/CaptivePortalLogin/src/com/android/captiveportallogin/
DCaptivePortalLoginActivity.java29 import android.net.NetworkRequest;
108 final NetworkRequest.Builder builder = new NetworkRequest.Builder(); in onCreate()
/frameworks/base/docs/html-intl/intl/in/preview/features/
Dbackground-optimization.jd174 Objek {@link android.net.NetworkRequest} mendefinisikan parameter
176 membuat objek {@link android.net.NetworkRequest} dengan kelas {@link
177 android.net.NetworkRequest.Builder NetworkRequest.Builder}. {@link
178 android.net.ConnectivityManager#registerNetworkCallback(android.net.NetworkRequest,
180 kemudian meneruskan objek {@link android.net.NetworkRequest} ke sistem. Bila

123