/frameworks/base/core/java/android/net/ |
D | NetworkRequest.java | 50 public final int legacyType; field in NetworkRequest 108 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument 114 this.legacyType = legacyType; in NetworkRequest() 124 this.legacyType = that.legacyType; in NetworkRequest() 313 dest.writeInt(legacyType); in writeToParcel() 321 int legacyType = in.readInt(); 324 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type); 389 (legacyType != ConnectivityManager.TYPE_NONE ? ", legacyType=" + legacyType : "") + in toString() 396 return (that.legacyType == this.legacyType && in equals() 403 return Objects.hash(requestId, legacyType, networkCapabilities, type); in hashCode()
|
D | ConnectivityManager.java | 2856 int timeoutMs, int action, int legacyType, CallbackHandler handler) { in sendRequestForNetwork() argument 2874 need, messenger, timeoutMs, binder, legacyType); in sendRequestForNetwork() 2899 int timeoutMs, int legacyType, Handler handler) { in requestNetwork() argument 2902 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, legacyType, cbHandler); in requestNetwork() 2973 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local 2975 requestNetwork(request, networkCallback, 0, legacyType, cbHandler); in requestNetwork() 3011 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local 3012 requestNetwork(request, networkCallback, timeoutMs, legacyType, getDefaultHandler()); in requestNetwork() 3048 int legacyType = inferLegacyTypeForNetworkCapabilities(request.networkCapabilities); in requestNetwork() local 3050 requestNetwork(request, networkCallback, timeoutMs, legacyType, cbHandler); in requestNetwork()
|
/frameworks/base/core/java/android/hardware/ |
D | LegacySensorManager.java | 108 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/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 55 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument 56 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities() 66 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument 68 legacyType, in verifyUnrestrictedNetworkCapabilities() 76 static void verifyRestrictedMobileNetworkCapabilities(int legacyType, int capability) { in verifyRestrictedMobileNetworkCapabilities() argument 78 legacyType, in verifyRestrictedMobileNetworkCapabilities()
|
/frameworks/base/services/core/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitor.java | 150 final int legacyType = mDunRequired ? TYPE_MOBILE_DUN : TYPE_MOBILE_HIPRI; in registerMobileNetworkRequest() local 153 .setCapabilities(ConnectivityManager.networkCapabilitiesForType(legacyType)) in registerMobileNetworkRequest() 165 cm().requestNetwork(mobileUpstreamRequest, mMobileNetworkCallback, 0, legacyType, mHandler); in registerMobileNetworkRequest()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/tethering/ |
D | UpstreamNetworkMonitorTest.java | 305 int timeoutMs, int legacyType, Handler h) { in requestNetwork() argument 311 if (legacyType != ConnectivityManager.TYPE_NONE) { in requestNetwork() 312 legacyTypeMap.put(cb, legacyType); in requestNetwork()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/mocks/ |
D | ConnectivityServiceMock.java | 685 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument 692 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
|
/frameworks/base/services/core/java/com/android/server/ |
D | ConnectivityService.java | 2530 if (nri.request.legacyType != TYPE_NONE && nai != null) { in handleRemoveNetworkRequest() 2537 if (otherRequest.legacyType == nri.request.legacyType && in handleRemoveNetworkRequest() 2546 mLegacyTypeTracker.remove(nri.request.legacyType, nai, false); in handleRemoveNetworkRequest() 4042 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument 4069 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork() 4992 if (nr.legacyType != TYPE_NONE && nr.isRequest()) { in rematchNetworkAndRequests() 4994 mLegacyTypeTracker.add(nr.legacyType, newNetwork); in rematchNetworkAndRequests()
|