Home
last modified time | relevance | path

Searched refs:legacyType (Results 1 – 8 of 8) sorted by relevance

/frameworks/base/core/java/android/net/
DNetworkRequest.java63 public final int legacyType; field in NetworkRequest
121 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument
127 this.legacyType = legacyType; in NetworkRequest()
137 this.legacyType = that.legacyType; in NetworkRequest()
367 dest.writeInt(legacyType); in writeToParcel()
375 int legacyType = in.readInt();
378 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
466 (legacyType != ConnectivityManager.TYPE_NONE ? ", legacyType=" + legacyType : "") + in toString()
493 proto.write(NetworkRequestProto.LEGACY_TYPE, legacyType); in writeToProto()
502 return (that.legacyType == this.legacyType && in equals()
[all …]
DConnectivityManager.java3535 int timeoutMs, int action, int legacyType, CallbackHandler handler) { in sendRequestForNetwork() argument
3554 need, messenger, timeoutMs, binder, legacyType); in sendRequestForNetwork()
3581 @NonNull NetworkCallback networkCallback, int timeoutMs, int legacyType, in requestNetwork() argument
3585 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler); in requestNetwork()
3659 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local
3661 requestNetwork(request, networkCallback, 0, legacyType, cbHandler); in requestNetwork()
3698 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local
3699 requestNetwork(request, networkCallback, timeoutMs, legacyType, getDefaultHandler()); in requestNetwork()
3735 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local
3737 requestNetwork(request, networkCallback, timeoutMs, legacyType, cbHandler); in requestNetwork()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java108 private boolean registerLegacyListener(int legacyType, int type, in registerLegacyListener() argument
112 if ((sensors & legacyType) != 0) { in registerLegacyListener()
133 if (legacyListener.registerSensor(legacyType)) { in registerLegacyListener()
161 private void unregisterLegacyListener(int legacyType, int type, in unregisterLegacyListener() argument
164 if ((sensors & legacyType) != 0) { in unregisterLegacyListener()
178 if (legacyListener.unregisterSensor(legacyType)) { in unregisterLegacyListener()
217 boolean registerSensor(int legacyType) { in registerSensor() argument
218 if ((mSensors & legacyType) != 0) { in registerSensor()
222 mSensors |= legacyType; in registerSensor()
223 if (alreadyHasOrientationSensor && hasOrientationSensor(legacyType)) { in registerSensor()
[all …]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
DEthernetNetworkFactory.java268 private TransportInfo(int legacyType, int score) { in TransportInfo() argument
269 mLegacyType = legacyType; in TransportInfo()
362 int legacyType = ConnectivityManager.TYPE_NONE; in NetworkInterfaceState() local
365 legacyType = getLegacyType(transportTypes[0]); in NetworkInterfaceState()
373 mNetworkInfo = new NetworkInfo(legacyType, 0, NETWORK_TYPE, ""); in NetworkInterfaceState()
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitorTest.java542 private void assertSatisfiesLegacyType(int legacyType, NetworkState ns) { in assertSatisfiesLegacyType() argument
543 if (legacyType == TYPE_NONE) { in assertSatisfiesLegacyType()
548 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in assertSatisfiesLegacyType()
649 int timeoutMs, int legacyType, Handler h) { in requestNetwork() argument
655 if (legacyType != ConnectivityManager.TYPE_NONE) { in requestNetwork()
656 legacyTypeMap.put(cb, legacyType); in requestNetwork()
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/
DUpstreamNetworkMonitor.java194 final int legacyType = mDunRequired ? TYPE_MOBILE_DUN : TYPE_MOBILE_HIPRI; in registerMobileNetworkRequest() local
197 .setCapabilities(ConnectivityManager.networkCapabilitiesForType(legacyType)) in registerMobileNetworkRequest()
209 cm().requestNetwork(mobileUpstreamRequest, mMobileNetworkCallback, 0, legacyType, mHandler); in registerMobileNetworkRequest()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/
DConnectivityServiceMock.java401 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument
408 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3306 if (nri.request.legacyType != TYPE_NONE && nai != null) { in handleRemoveNetworkRequest()
3313 if (otherRequest.legacyType == nri.request.legacyType && in handleRemoveNetworkRequest()
3322 mLegacyTypeTracker.remove(nri.request.legacyType, nai, false); in handleRemoveNetworkRequest()
5109 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument
5142 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
6396 if (nr.legacyType != TYPE_NONE && nr.isRequest()) { in rematchNetworkAndRequests()
6398 mLegacyTypeTracker.add(nr.legacyType, newNetwork); in rematchNetworkAndRequests()