Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkRequest.java47 public final int legacyType; field in NetworkRequest
52 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId) { in NetworkRequest() argument
58 this.legacyType = legacyType; in NetworkRequest()
67 this.legacyType = that.legacyType; in NetworkRequest()
202 dest.writeInt(legacyType); in writeToParcel()
209 int legacyType = in.readInt();
211 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId);
220 return "NetworkRequest [ id=" + requestId + ", legacyType=" + legacyType + in toString()
227 return (that.legacyType == this.legacyType && in equals()
235 return requestId + (legacyType * 1013) + in hashCode()
DConnectivityManager.java2275 int legacyType) { in sendRequestForNetwork() argument
2288 new Messenger(sCallbackHandler), timeoutSec, new Binder(), legacyType); in sendRequestForNetwork()
/frameworks/base/core/java/android/hardware/
DLegacySensorManager.java107 private boolean registerLegacyListener(int legacyType, int type, in registerLegacyListener() argument
111 if ((sensors & legacyType) != 0) { in registerLegacyListener()
132 if (legacyListener.registerSensor(legacyType)) { in registerLegacyListener()
160 private void unregisterLegacyListener(int legacyType, int type, in unregisterLegacyListener() argument
163 if ((sensors & legacyType) != 0) { in unregisterLegacyListener()
177 if (legacyListener.unregisterSensor(legacyType)) { in unregisterLegacyListener()
216 boolean registerSensor(int legacyType) { in registerSensor() argument
217 if ((mSensors & legacyType) != 0) { in registerSensor()
221 mSensors |= legacyType; in registerSensor()
222 if (alreadyHasOrientationSensor && hasOrientationSensor(legacyType)) { in registerSensor()
[all …]
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java2313 if (nri.request.legacyType != TYPE_NONE && nai != null) { in handleReleaseNetworkRequest()
2320 if (otherRequest.legacyType == nri.request.legacyType && in handleReleaseNetworkRequest()
2329 mLegacyTypeTracker.remove(nri.request.legacyType, nai, false); in handleReleaseNetworkRequest()
3570 Messenger messenger, int timeoutMs, IBinder binder, int legacyType) { in requestNetwork() argument
3580 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
4386 if (nr.legacyType != TYPE_NONE && isRequest(nr)) { in rematchNetworkAndRequests()
4388 mLegacyTypeTracker.add(nr.legacyType, newNetwork); in rematchNetworkAndRequests()