Home
last modified time | relevance | path

Searched refs:TransportType (Results 1 – 16 of 16) sorted by relevance

/packages/modules/NetworkStack/src/com/android/networkstack/metrics/
DNetworkValidationMetrics.java36 import android.stats.connectivity.TransportType;
90 public static TransportType getTransportTypeFromNC(@Nullable NetworkCapabilities nc) { in getTransportTypeFromNC()
91 if (nc == null) return TransportType.TT_UNKNOWN; in getTransportTypeFromNC()
105 return TransportType.TT_WIFI_CELLULAR_VPN; in getTransportTypeFromNC()
109 if (hasWifi) return TransportType.TT_WIFI_VPN; in getTransportTypeFromNC()
110 if (hasCellular) return TransportType.TT_CELLULAR_VPN; in getTransportTypeFromNC()
111 if (hasBT) return TransportType.TT_BLUETOOTH_VPN; in getTransportTypeFromNC()
112 if (hasEthernet) return TransportType.TT_ETHERNET_VPN; in getTransportTypeFromNC()
116 if (hasWifi) return TransportType.TT_WIFI; in getTransportTypeFromNC()
117 if (hasCellular) return TransportType.TT_CELLULAR; in getTransportTypeFromNC()
[all …]
Dstats.proto91 optional .android.stats.connectivity.TransportType transport_type = 1;
119 optional .android.stats.connectivity.TransportType transport_type = 1;
144 optional .android.stats.connectivity.TransportType transport_type = 1;
170 optional .android.stats.connectivity.TransportType transport_type = 1;
/packages/modules/NetworkStack/tests/unit/src/com/android/networkstack/metrics/
DNetworkValidationMetricsTest.java36 import android.stats.connectivity.TransportType;
111 assertEquals(TransportType.TT_WIFI, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
113 assertEquals(TransportType.TT_WIFI_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
115 assertEquals(TransportType.TT_WIFI_CELLULAR_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
119 assertEquals(TransportType.TT_CELLULAR, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
121 assertEquals(TransportType.TT_CELLULAR_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
125 assertEquals(TransportType.TT_BLUETOOTH, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
127 assertEquals(TransportType.TT_BLUETOOTH_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
131 assertEquals(TransportType.TT_ETHERNET, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
133 assertEquals(TransportType.TT_ETHERNET_VPN, metrics.getTransportTypeFromNC(nc)); in testNetworkValidationMetrics_VerifyTransportTypeToEnum()
[all …]
/packages/modules/adb/client/
Dadb_client.h57 void adb_set_transport(TransportType type, const char* _Nullable serial, TransportId transport_id);
58 void adb_get_transport(TransportType* _Nullable type, const char* _Nullable* _Nullable serial,
Dadb_client.cpp51 static TransportType __adb_transport = kTransportAny;
57 void adb_set_transport(TransportType type, const char* serial, TransportId transport_id) { in adb_set_transport()
63 void adb_get_transport(TransportType* type, const char** serial, TransportId* transport_id) { in adb_get_transport()
Dcommandline.cpp1079 TransportType t; in wait_for_device()
1141 TransportType previous_type; in adb_root()
1521 TransportType transport_type = kTransportAny; in adb_commandline()
/packages/modules/adb/
Dadb.h91 enum TransportType { enum
227 HostRequestResult handle_host_request(std::string_view service, TransportType type,
Dtransport_test.cpp146 for (TransportType type : {kTransportAny, kTransportLocal}) { in TEST_F()
169 for (TransportType type : {kTransportAny, kTransportLocal}) { in TEST_F()
Dtransport.h306 TransportType type = kTransportAny;
431 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id,
Dservices.cpp163 TransportType transport_type; in wait_service()
Dadb.cpp1125 HostRequestResult handle_host_request(std::string_view service, TransportType type, in handle_host_request()
1145 TransportType type = kTransportAny; in handle_host_request()
Dsockets.cpp720 TransportType type = kTransportAny; in smart_socket_enqueue()
Dtransport.cpp958 atransport* acquire_one_transport(TransportType type, const char* serial, TransportId transport_id, in acquire_one_transport()
/packages/apps/Settings/src/com/android/settings/deviceinfo/simstatus/
DSimStatusDialogController.java690 public void onRegistered(@AccessNetworkConstants.TransportType int imsTransportType) {
695 public void onRegistering(@AccessNetworkConstants.TransportType int imsTransportType) {
706 @AccessNetworkConstants.TransportType int imsTransportType,
/packages/apps/Settings/src/com/android/settings/network/ims/
DImsQueryController.java53 @AccessNetworkConstants.TransportType int transportType) { in ImsQueryController()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DConcreteClientModeManagerTest.java122 private @AccessNetworkConstants.TransportType int mCurrentImsConnectionType =