Home
last modified time | relevance | path

Searched refs:transports (Results 1 – 25 of 35) sorted by relevance

12

/packages/modules/Connectivity/framework/src/android/net/util/
DKeepaliveUtils.java59 final int[] transports = nc.getTransportTypes(); in getSupportedKeepalivesForNetworkCapabilities() local
60 if (transports.length == 0) return 0; in getSupportedKeepalivesForNetworkCapabilities()
61 int supportedCount = supportedKeepalives[transports[0]]; in getSupportedKeepalivesForNetworkCapabilities()
63 for (final int transport : transports) { in getSupportedKeepalivesForNetworkCapabilities()
/packages/modules/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkCapabilitiesUtils.java137 public static int getDisplayTransport(@NonNull int[] transports) { in getDisplayTransport() argument
139 if (CollectionUtils.contains(transports, transport)) { in getDisplayTransport()
144 if (transports.length < 1) { in getDisplayTransport()
150 return transports[0]; in getDisplayTransport()
/packages/modules/Connectivity/service-t/src/com/android/server/connectivity/mdns/
DMdnsSocketProvider.java327 SocketInfo(MdnsInterfaceSocket socket, List<LinkAddress> addresses, int[] transports, in SocketInfo() argument
331 mTransports = transports; in SocketInfo()
511 final int[] transports; in createSocket() local
513 transports = new int[0]; in createSocket()
518 transports = knownTransports; in createSocket()
521 transports = new int[0]; in createSocket()
524 if (networkInterface == null || !isMdnsCapableInterface(networkInterface, transports)) { in createSocket()
540 final SocketInfo socketInfo = new SocketInfo(socket, addresses, transports, socketKey); in createSocket()
557 @NonNull NetworkInterfaceWrapper iface, @NonNull int[] transports) { in isMdnsCapableInterface() argument
560 if (CollectionUtils.contains(transports, TRANSPORT_CELLULAR) in isMdnsCapableInterface()
[all …]
/packages/modules/Connectivity/tests/common/java/android/net/metrics/
DIpConnectivityLogTest.java139 private ConnectivityMetricsEvent makeExpectedEvent(long timestamp, int netId, long transports, in makeExpectedEvent() argument
145 ev.transports = transports; in makeExpectedEvent()
156 assertEquals(expected.transports, got.transports); in assertEventsEqual()
/packages/modules/Bluetooth/system/bta/dm/
Dbta_dm_disc.cc303 if (!bta_dm_discovery_cb.transports) { in bta_dm_read_dis_cmpl()
324 bta_dm_discovery_cb.transports &= ~BT_TRANSPORT_BR_EDR; in bta_dm_disc_result()
336 bta_dm_discovery_cb.transports &= ~BT_TRANSPORT_LE; in bta_dm_disc_result()
344 if (!bta_dm_discovery_cb.transports) { in bta_dm_disc_result()
356 if (!bta_dm_discovery_cb.transports) { in bta_dm_disc_result()
457 if (bta_dm_discovery_cb.transports & BT_TRANSPORT_LE) { in bta_dm_discover_services()
463 bta_dm_discovery_cb.transports |= BT_TRANSPORT_LE; in bta_dm_discover_services()
470 if (bta_dm_discovery_cb.transports & BT_TRANSPORT_BR_EDR) { in bta_dm_discover_services()
474 bta_dm_discovery_cb.transports |= BT_TRANSPORT_BR_EDR; in bta_dm_discover_services()
567 bool sdp_pending = bta_dm_discovery_cb.transports & BT_TRANSPORT_BR_EDR; in bta_dm_gatt_disc_complete()
[all …]
Dbta_dm_disc_int.h105 uint8_t transports; member
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DNetworkAgentTest.kt303 transports: IntArray = intArrayOf() in makeTestNetworkRequest()
310 if (!transports.contains(TRANSPORT_VPN)) addCapability(NET_CAPABILITY_NOT_VPN) in makeTestNetworkRequest()
317 for (t in transports) { addTransportType(t) } in makeTestNetworkRequest()
320 if (transports.size > 0) removeCapability(NET_CAPABILITY_NOT_RESTRICTED) in makeTestNetworkRequest()
346 transports: IntArray = intArrayOf() in createConnectedNetworkAgent()
351 val nc = makeTestNetworkCapabilities(specifier, transports) in createConnectedNetworkAgent()
363 private fun connectNetwork(vararg transports: Int): Pair<TestableNetworkAgent, Network> { in connectNetwork()
364 val (agent, callback) = createConnectedNetworkAgent(transports = transports) in connectNetwork()
580 transports: IntArray, in doTestAllowedUids()
589 transports.forEach { addTransportType(it) } in doTestAllowedUids()
[all …]
/packages/modules/adb/daemon/
Dauth.cpp63 static android::base::NoDestructor<std::map<uint32_t, weak_ptr<atransport>>> transports; variable
71 (*transports)[id] = transport->weak(); in transport_to_callback_arg()
82 auto it = transports->find(id_u32); in transport_from_callback_arg()
83 if (it == transports->end()) { in transport_from_callback_arg()
94 transports->erase(it); in transport_from_callback_arg()
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DLingerMonitor.java142 String[] transports = notifySwitch.split("-", 2); in isNotificationEnabled() local
143 if (transports.length != 2) { in isNotificationEnabled()
147 int fromTransport = TRANSPORT_NAMES.get("TRANSPORT_" + transports[0]); in isNotificationEnabled()
148 int toTransport = TRANSPORT_NAMES.get("TRANSPORT_" + transports[1]); in isNotificationEnabled()
DNetworkRanker.java313 final int[] transports = defaultSubNai.getCapsNoCopy().getTransportTypes(); in getBestNetworkByPolicy() local
315 nai -> Arrays.equals(transports, nai.getCapsNoCopy().getTransportTypes())); in getBestNetworkByPolicy()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java83 ev.transports = 3; // transports have priority for inferrence of link layer in testLinkLayerInferrence()
101 ev.transports = 1; in testLinkLayerInferrence()
119 ev.transports = 0; in testLinkLayerInferrence()
193 ev.transports = 2; in testDefaultNetworkEventSerialization()
DIpConnectivityMetricsTest.java611 NetworkAgentInfo makeNai(int netId, boolean ipv4, boolean ipv6, long transports) { in makeNai() argument
620 for (int t : BitUtils.unpackBits(transports)) { in makeNai()
/packages/services/Car/car-lib/src/android/car/projection/
DProjectionStatus.java339 List<Integer> transports = new ArrayList<>(mAvailableTransports.length); in getAvailableTransports() local
341 transports.add(transport); in getAvailableTransports()
343 return transports; in getAvailableTransports()
/packages/services/Car/tests/EmbeddedKitchenSinkApp/src/com/google/android/car/kitchensink/connectivity/
DNetworkListAdapter.java70 vh.transports = convertView.findViewById(R.id.network_transports); in getView()
96 vh.transports.setText(mNetworkList[position].mTransports); in getView()
201 public TextView transports; field in NetworkListAdapter.ViewHolder
DConnectivityFragment.java306 String transports = ""; in getTransportString() local
308 transports += sTransportNames.get(transport, ""); in getTransportString()
310 return transports; in getTransportString()
/packages/modules/Connectivity/Tethering/tests/unit/src/com/android/networkstack/tethering/metrics/
DTetheringMetricsTest.java137 private static NetworkCapabilities buildUpstreamCapabilities(final int[] transports) { in buildUpstreamCapabilities() argument
139 for (int type: transports) { in buildUpstreamCapabilities()
145 private static UpstreamNetworkState buildUpstreamState(final int... transports) { in buildUpstreamState() argument
148 buildUpstreamCapabilities(transports), in buildUpstreamState()
/packages/modules/Connectivity/service/src/com/android/metrics/
Dstats.proto82 * Logs the number of network count on each list of transports
88 // the number of network count on each list of transports
117 * Logs connection duration in seconds and list of transports
131 * Logs connection duration on each list of transports, in seconds
230 // Number of networks per list of transports
233 // This is a list of networks with their transports and the duration
/packages/modules/adb/
DOVERVIEW.TXT121 or emulator. There are currently two kinds of transports:
123 - USB transports, for physical devices through USB
125 - Local transports, for emulators running on the host, connected to
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/mdns/
DMdnsSocketProviderTest.java317 private static NetworkCapabilities makeCapabilities(int... transports) {
319 for (int transport : transports) {
325 private void postNetworkAvailable(int... transports) {
329 final NetworkCapabilities testNc = makeCapabilities(transports);
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivityservice/base/
DCSTest.kt540 fun Agent(vararg transports: Int, lp: LinkProperties = defaultLp()): CSAgentWrapper { in waitForIdle()
542 transports.forEach { in waitForIdle()
/packages/modules/NetworkStack/src/com/android/server/connectivity/
DNetworkMonitor.java1337 final int[] transports = mNetworkCapabilities.getTransportTypes(); in maybeWriteDataStallStats() local
1338 for (int i = 0; i < transports.length; i++) { in maybeWriteDataStallStats()
1340 buildDataStallDetectionStats(transports[i], mDataStallTypeToCollect); in maybeWriteDataStallStats()
3602 int[] transports = mNetworkCapabilities.getTransportTypes(); in logNetworkEvent() local
3603 mMetricsLog.log(mCleartextDnsNetwork, transports, new NetworkEvent(evtype)); in logNetworkEvent()
3624 int[] transports = mNetworkCapabilities.getTransportTypes(); in maybeLogEvaluationResult() local
3625 mMetricsLog.log(mCleartextDnsNetwork, transports, in maybeLogEvaluationResult()
3632 int[] transports = mNetworkCapabilities.getTransportTypes(); in logValidationProbe() local
3639 mMetricsLog.log(mCleartextDnsNetwork, transports, ev); in logValidationProbe()
/packages/modules/Connectivity/framework/src/android/net/
DNetworkCapabilities.java1387 int transports = 0;
1389 transports |= 1 << i;
1391 ALL_VALID_TRANSPORTS = transports;
/packages/modules/Connectivity/tests/cts/hostside/app/src/com/android/cts/net/hostside/
DVpnTest.java1698 int[] transports = mCM.getNetworkCapabilities(underlyingNetwork).getTransportTypes(); in assertVpnTransportContains() local
1699 assertVpnTransportContains(transports); in assertVpnTransportContains()
1702 private void assertVpnTransportContains(int... transports) { in assertVpnTransportContains() argument
1704 for (int transport : transports) { in assertVpnTransportContains()
/packages/modules/Connectivity/service-t/src/com/android/server/
DNsdService.java447 @NonNull MdnsInterfaceSocket socket, @NonNull int[] transports) { in onSocketRequestFulfilled() argument
452 || !CollectionUtils.contains(transports, TRANSPORT_WIFI) in onSocketRequestFulfilled()
453 || CollectionUtils.contains(transports, TRANSPORT_VPN)) { in onSocketRequestFulfilled()
/packages/modules/NetworkStack/tests/unit/src/com/android/server/connectivity/
DNetworkMonitorTest.java2811 final int[] transports = nc.getTransportTypes(); in testDataStall_StallTcpSuspectedAndSendMetrics() local
2812 assertEquals(1, transports.length); in testDataStall_StallTcpSuspectedAndSendMetrics()
2813 verifySendDataStallDetectionStats(nm, DATA_STALL_EVALUATION_TYPE_TCP, transports[0]); in testDataStall_StallTcpSuspectedAndSendMetrics()

12