Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/
DNetworkAgentConfig.java153 public int legacyType = ConnectivityManager.TYPE_NONE; field in NetworkAgentConfig
160 return legacyType; in getLegacyType()
222 legacyType = nac.legacyType; in NetworkAgentConfig()
316 public Builder setLegacyType(int legacyType) { in setLegacyType() argument
317 mConfig.legacyType = legacyType; in setLegacyType()
364 && legacyType == that.legacyType in equals()
374 skip464xlat, legacyType, legacyTypeName, mLegacyExtraInfo); in hashCode()
387 + ", legacyType = " + legacyType in toString()
408 out.writeInt(legacyType); in writeToParcel()
425 networkAgentConfig.legacyType = in.readInt();
DNetworkRequest.java64 public final int legacyType; field in NetworkRequest
122 public NetworkRequest(NetworkCapabilities nc, int legacyType, int rId, Type type) { in NetworkRequest() argument
128 this.legacyType = legacyType; in NetworkRequest()
138 this.legacyType = that.legacyType; in NetworkRequest()
379 dest.writeInt(legacyType); in writeToParcel()
388 int legacyType = in.readInt();
391 NetworkRequest result = new NetworkRequest(nc, legacyType, requestId, type);
523 (legacyType != ConnectivityManager.TYPE_NONE ? ", legacyType=" + legacyType : "") + in toString()
550 proto.write(NetworkRequestProto.LEGACY_TYPE, legacyType); in writeToProto()
559 return (that.legacyType == this.legacyType && in equals()
[all …]
DNetworkAgent.java357 final NetworkInfo ni = new NetworkInfo(config.legacyType, config.legacyType, in getLegacyNetworkInfo()
DConnectivityManager.java3707 int timeoutMs, int action, int legacyType, CallbackHandler handler) { in sendRequestForNetwork() argument
3728 need, messenger, timeoutMs, binder, legacyType, callingPackageName, in sendRequestForNetwork()
3765 int timeoutMs, int legacyType, @NonNull Handler handler, in requestNetwork() argument
3767 if (legacyType == TYPE_NONE) { in requestNetwork()
3772 sendRequestForNetwork(nc, networkCallback, timeoutMs, REQUEST, 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/base/tests/net/java/android/net/
DConnectivityManagerTest.java85 int legacyType, int transportType, int... capabilities) { in verifyNetworkCapabilities() argument
86 final NetworkCapabilities nc = ConnectivityManager.networkCapabilitiesForType(legacyType); in verifyNetworkCapabilities()
96 static void verifyUnrestrictedNetworkCapabilities(int legacyType, int transportType) { in verifyUnrestrictedNetworkCapabilities() argument
98 legacyType, in verifyUnrestrictedNetworkCapabilities()
106 static void verifyRestrictedMobileNetworkCapabilities(int legacyType, int capability) { in verifyRestrictedMobileNetworkCapabilities() argument
108 legacyType, in verifyRestrictedMobileNetworkCapabilities()
/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()
363 int legacyType = ConnectivityManager.TYPE_NONE; in NetworkInterfaceState() local
367 legacyType = getLegacyType(transportTypes[0]); in NetworkInterfaceState()
375 mLegacyType = legacyType; in NetworkInterfaceState()
/frameworks/base/packages/Tethering/tests/unit/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitorTest.java543 private void assertSatisfiesLegacyType(int legacyType, UpstreamNetworkState ns) { in assertSatisfiesLegacyType() argument
544 if (legacyType == TYPE_NONE) { in assertSatisfiesLegacyType()
550 UpstreamNetworkMonitor.networkCapabilitiesForType(legacyType); in assertSatisfiesLegacyType()
653 int timeoutMs, int legacyType, Handler h, NetworkCallback cb) { in requestNetwork() argument
659 if (legacyType != ConnectivityManager.TYPE_NONE) { in requestNetwork()
660 legacyTypeMap.put(cb, legacyType); in requestNetwork()
/frameworks/base/packages/Tethering/src/com/android/networkstack/tethering/
DUpstreamNetworkMonitor.java239 final int legacyType = mDunRequired ? TYPE_MOBILE_DUN : TYPE_MOBILE_HIPRI; in registerMobileNetworkRequest() local
246 cm().requestNetwork(mobileUpstreamRequest, 0, legacyType, mHandler, in registerMobileNetworkRequest()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java3613 if (nri.request.legacyType != TYPE_NONE && nai != null) { in handleRemoveNetworkRequest()
3620 if (otherRequest.legacyType == nri.request.legacyType && in handleRemoveNetworkRequest()
3629 mLegacyTypeTracker.remove(nri.request.legacyType, nai, false); in handleRemoveNetworkRequest()
5492 Messenger messenger, int timeoutMs, IBinder binder, int legacyType, in requestNetwork() argument
5494 if (legacyType != TYPE_NONE && !checkNetworkStackPermission()) { in requestNetwork()
5534 NetworkRequest networkRequest = new NetworkRequest(networkCapabilities, legacyType, in requestNetwork()
6046 final @Nullable NetworkCapabilities caps, final int legacyType) { in updateInterfaces() argument
6057 bs.noteNetworkInterfaceType(iface, legacyType); in updateInterfaces()
7063 if (nr.legacyType != TYPE_NONE && nr.isRequest()) { in addNetworkToLegacyTypeTracker()
7065 mLegacyTypeTracker.add(nr.legacyType, nai); in addNetworkToLegacyTypeTracker()
[all …]