Searched refs:ratType (Results 1 – 6 of 6) sorted by relevance
/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/ |
D | NetworkStatsExt.java | 39 public final int ratType; field in NetworkStatsExt 49 boolean slicedByTag, boolean slicedByMetered, int ratType, in NetworkStatsExt() argument 60 this.ratType = ratType; in NetworkStatsExt() 70 && ratType == other.ratType && Objects.equals(subInfo, other.subInfo); in hasSameSlicing()
|
/frameworks/base/core/java/android/net/ |
D | NetworkTemplate.java | 149 @NetworkType int ratType) { in buildTemplateMobileWithRatType() argument 152 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, ratType); in buildTemplateMobileWithRatType() 155 METERED_ALL, ROAMING_ALL, DEFAULT_NETWORK_ALL, ratType); in buildTemplateMobileWithRatType() 462 public static int getCollapsedRatType(int ratType) { in getCollapsedRatType() argument 463 switch (ratType) { in getCollapsedRatType() 503 for (final int ratType : ratTypes) { in getAllCollapsedRatTypes() 504 collapsedRatTypes.add(NetworkTemplate.getCollapsedRatType(ratType)); in getAllCollapsedRatTypes()
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 146 private void assertRatTypeChangedForSub(String subscriberId, int ratType) { in assertRatTypeChangedForSub() argument 147 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeChangedForSub() local 153 assertEquals(ratType, type); in assertRatTypeChangedForSub() 156 private void assertRatTypeNotChangedForSub(String subscriberId, int ratType) { in assertRatTypeNotChangedForSub() argument 157 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeNotChangedForSub() local
|
D | NetworkStatsServiceTest.java | 679 private void setMobileRatTypeAndWaitForIdle(int ratType) { 681 .thenReturn(ratType);
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 153 for (ratType in TelephonyManager.getAllNetworkTypes()) { in testNetworkTypeConstants() method 154 assertNotEquals(NETWORK_TYPE_ALL, ratType) in testNetworkTypeConstants() 155 assertNotEquals(NETWORK_TYPE_5G_NSA, ratType) in testNetworkTypeConstants()
|
/frameworks/base/services/core/java/com/android/server/stats/pull/ |
D | StatsPullAtomService.java | 1077 item.slicedByFgbg, item.slicedByTag, item.slicedByMetered, item.ratType, in pullDataBytesTransferLocked() 1153 final boolean is5GNsa = statsExt.ratType == NetworkTemplate.NETWORK_TYPE_5G_NSA; in addDataUsageBytesTransferAtoms() 1155 final boolean isNR = is5GNsa || statsExt.ratType == TelephonyManager.NETWORK_TYPE_NR; in addDataUsageBytesTransferAtoms() 1168 .writeInt(is5GNsa ? TelephonyManager.NETWORK_TYPE_LTE : statsExt.ratType) in addDataUsageBytesTransferAtoms() 1227 for (final int ratType : getAllCollapsedRatTypes()) { in getDataUsageBytesTransferSnapshotForSub() 1229 buildTemplateMobileWithRatType(subInfo.subscriberId, ratType); in getDataUsageBytesTransferSnapshotForSub() 1235 /*slicedByTag=*/false, /*slicedByMetered=*/false, ratType, subInfo)); in getDataUsageBytesTransferSnapshotForSub()
|