Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/net/metrics/
DNetworkMetrics.java43 public final long transports; field in NetworkMetrics
55 public NetworkMetrics(int netId, long transports, TokenBucket tb) { in NetworkMetrics() argument
57 this.transports = transports; in NetworkMetrics()
59 new ConnectStats(netId, transports, tb, CONNECT_LATENCY_MAXIMUM_RECORDS); in NetworkMetrics()
60 this.dnsMetrics = new DnsEvent(netId, transports, INITIAL_DNS_BATCH_SIZE); in NetworkMetrics()
61 this.summary = new Summary(netId, transports); in NetworkMetrics()
80 pendingSummary = new Summary(netId, transports); in addDnsResult()
90 pendingSummary = new Summary(netId, transports); in addConnectResult()
102 pendingSummary = new Summary(netId, transports); in addTcpStatsResult()
113 public final long transports; field in NetworkMetrics.Summary
[all …]
DDnsEvent.java38 public final long transports; field in DnsEvent
53 public DnsEvent(int netId, long transports, int initialCapacity) { in DnsEvent() argument
55 this.transports = transports; in DnsEvent()
90 for (int t : BitUtils.unpackBits(transports)) { in toString()
DIpConnectivityLog.java139 public boolean log(@NonNull Network network, @NonNull int[] transports, @NonNull Event data) { in log() argument
140 return log(network.netId, transports, data); in log()
151 public boolean log(int netid, @NonNull int[] transports, @NonNull Event data) { in log() argument
154 ev.transports = BitUtils.packBits(transports); in log()
DConnectStats.java38 public final long transports; field in ConnectStats
56 public ConnectStats(int netId, long transports, TokenBucket tb, int maxLatencyRecords) { in ConnectStats() argument
58 this.transports = transports; in ConnectStats()
124 for (int t : BitUtils.unpackBits(transports)) { in toString()
DDefaultNetworkEvent.java38 public int transports; field in DefaultNetworkEvent
66 for (int t : BitUtils.unpackBits(transports)) { in toString()
/frameworks/base/core/java/android/net/
DConnectivityMetricsEvent.java34 public long transports; field in ConnectivityMetricsEvent
47 transports = in.readLong(); in ConnectivityMetricsEvent()
73 dest.writeLong(transports); in writeToParcel()
89 for (int t : BitUtils.unpackBits(transports)) { in toString()
/frameworks/base/core/java/android/net/util/
DKeepaliveUtils.java104 final int[] transports = nc.getTransportTypes(); in getSupportedKeepalivesForNetworkCapabilities() local
105 if (transports.length == 0) return 0; in getSupportedKeepalivesForNetworkCapabilities()
106 int supportedCount = supportedKeepalives[transports[0]]; in getSupportedKeepalivesForNetworkCapabilities()
108 for (final int transport : transports) { in getSupportedKeepalivesForNetworkCapabilities()
/frameworks/base/services/core/java/com/android/server/connectivity/
DIpConnectivityEventBuilder.java85 final IpConnectivityEvent out = buildEvent(ev.netId, ev.transports, ev.ifname); in toProto()
101 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
114 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
149 final IpConnectivityEvent out = buildEvent(in.netId, in.transports, null); in toProto()
150 if (in.transports == 0) { in toProto()
158 private static IpConnectivityEvent buildEvent(int netId, long transports, String ifname) { in buildEvent() argument
161 ev.transports = transports; in buildEvent()
346 if (ev.transports != 0) { in inferLinkLayer()
347 linkLayer = transportsToLinkLayer(ev.transports); in inferLinkLayer()
358 private static int transportsToLinkLayer(long transports) { in transportsToLinkLayer() argument
[all …]
DDefaultNetworkMetrics.java138 if (ev.transports != 0) { in logCurrentDefaultNetwork()
139 mLastTransports = ev.transports; in logCurrentDefaultNetwork()
165 ev.transports |= BitUtils.packBits(nai.networkCapabilities.getTransportTypes()); in fillLinkInfo()
DLingerMonitor.java140 String[] transports = notifySwitch.split("-", 2); in isNotificationEnabled() local
141 if (transports.length != 2) { in isNotificationEnabled()
145 int fromTransport = TRANSPORT_NAMES.get("TRANSPORT_" + transports[0]); in isNotificationEnabled()
146 int toTransport = TRANSPORT_NAMES.get("TRANSPORT_" + transports[1]); in isNotificationEnabled()
/frameworks/base/tests/net/common/java/android/net/metrics/
DIpConnectivityLogTest.java138 private ConnectivityMetricsEvent makeExpectedEvent(long timestamp, int netId, long transports, in makeExpectedEvent() argument
144 ev.transports = transports; in makeExpectedEvent()
155 assertEquals(expected.transports, got.transports); in assertEventsEqual()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/
DTransportManagerTest.java658 private List<TransportMock> setUpTransports(TransportData... transports) throws Exception { in setUpTransports() argument
659 setUpTransportsForTransportManager(mShadowPackageManager, transports); in setUpTransports()
660 List<TransportMock> transportMocks = new ArrayList<>(transports.length); in setUpTransports()
661 for (TransportData transport : transports) { in setUpTransports()
684 @Nullable TransportData selectedTransport, TransportData... transports) in createTransportManagerWithRegisteredTransports() argument
686 Set<TransportData> transportSet = merge(selectedTransport, transports); in createTransportManagerWithRegisteredTransports()
693 TransportManager transportManager = createTransportManager(selectedTransport, transports); in createTransportManagerWithRegisteredTransports()
699 @Nullable TransportData selectedTransport, TransportData... transports) { in createTransportManager() argument
704 merge(selectedTransport, transports) in createTransportManager()
715 @Nullable TransportData selectedTransport, TransportData... transports) { in merge() argument
[all …]
DBackupManagerServiceTest.java382 String[] transports = {TEST_TRANSPORT}; in testInitializeTransports_onRegisteredUser_callsMethodForUser() local
384 backupManagerService.initializeTransports(mUserOneId, transports, /* observer */ null); in testInitializeTransports_onRegisteredUser_callsMethodForUser()
386 verify(mUserOneService).initializeTransports(transports, /* observer */ null); in testInitializeTransports_onRegisteredUser_callsMethodForUser()
395 String[] transports = {TEST_TRANSPORT}; in testInitializeTransports_onUnknownUser_doesNotPropagateCall() local
397 backupManagerService.initializeTransports(mUserTwoId, transports, /* observer */ null); in testInitializeTransports_onUnknownUser_doesNotPropagateCall()
399 verify(mUserOneService, never()).initializeTransports(transports, /* observer */ null); in testInitializeTransports_onUnknownUser_doesNotPropagateCall()
/frameworks/base/services/backup/java/com/android/server/backup/internal/
DRunInitializeReceiver.java55 String[] transports = pendingInits.toArray(new String[pendingInits.size()]); in onReceive() local
67 transports, in onReceive()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTransportTestUtils.java57 ShadowPackageManager shadowPackageManager, TransportData... transports) in setUpTransportsForTransportManager() argument
59 for (TransportData transport : transports) { in setUpTransportsForTransportManager()
108 TransportManager transportManager, TransportData... transports) throws Exception { in setUpTransports() argument
109 return Stream.of(transports) in setUpTransports()
/frameworks/base/tests/net/java/com/android/server/connectivity/
DIpConnectivityEventBuilderTest.java85 ev.transports = 3; // transports have priority for inferrence of link layer in testLinkLayerInferrence()
103 ev.transports = 1; in testLinkLayerInferrence()
121 ev.transports = 0; in testLinkLayerInferrence()
195 ev.transports = 2; in testDefaultNetworkEventSerialization()
DIpConnectivityMetricsTest.java585 NetworkAgentInfo makeNai(int netId, int score, boolean ipv4, boolean ipv6, long transports) { in makeNai() argument
592 for (int t : BitUtils.unpackBits(transports)) { in makeNai()
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
DBmgr.java617 ArraySet<String> transports = new ArraySet<>(); in doInit() local
620 transports.add(transport); in doInit()
622 if (transports.size() == 0) { in doInit()
629 System.out.println("Initializing transports: " + transports); in doInit()
631 userId, transports.toArray(new String[transports.size()]), observer); in doInit()
678 String[] transports = mBmgr.listAllTransportsForUser(userId); in doListTransports() local
679 if (transports == null || transports.length == 0) { in doListTransports()
684 for (String t : transports) { in doListTransports()
/frameworks/base/core/proto/android/net/
Dnetworkcapabilities.proto47 repeated Transport transports = 1; field
/frameworks/base/proto/src/
Dipconnectivity.proto122 // Deprecated since version 3. Replaced by top-level transports field.
570 optional int64 transports = 18; field
/frameworks/base/services/backup/java/com/android/server/backup/
DUserBackupManagerService.java3601 final String[] transports = listAllTransports(); in dumpInternal() local
3602 if (transports != null) { in dumpInternal()
3603 for (String t : transports) { in dumpInternal()
/frameworks/base/services/core/java/com/android/server/
DConnectivityService.java7605 int[] transports = nai.networkCapabilities.getTransportTypes(); in logNetworkEvent() local
7606 mMetricsLog.log(nai.network.netId, transports, new NetworkEvent(evtype)); in logNetworkEvent()
/frameworks/base/config/
Dhiddenapi-greylist-max-o.txt42747 Landroid/net/ConnectivityMetricsEvent;->transports:J
43986 Landroid/net/metrics/ConnectStats;->transports:J
43997 Landroid/net/metrics/DefaultNetworkEvent;->transports:I
44027 Landroid/net/metrics/DnsEvent;->transports:J
44099 Landroid/net/metrics/NetworkMetrics$Summary;->transports:J
44112 Landroid/net/metrics/NetworkMetrics;->transports:J