/packages/modules/Connectivity/framework-t/src/android/app/usage/ |
D | NetworkStatsManager.java | 293 public Bucket querySummaryForDevice(int networkType, @Nullable String subscriberId, in querySummaryForDevice() argument 297 template = createTemplate(networkType, subscriberId); in querySummaryForDevice() 338 public Bucket querySummaryForUser(int networkType, @Nullable String subscriberId, in querySummaryForUser() argument 342 template = createTemplate(networkType, subscriberId); in querySummaryForUser() 387 public NetworkStats querySummary(int networkType, @Nullable String subscriberId, long startTime, in querySummary() argument 391 template = createTemplate(networkType, subscriberId); in querySummary() 513 public NetworkStats queryDetailsForUid(int networkType, @Nullable String subscriberId, in queryDetailsForUid() argument 515 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid() 569 public NetworkStats queryDetailsForUidTag(int networkType, @Nullable String subscriberId, in queryDetailsForUidTag() argument 571 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUidTag() [all …]
|
/packages/modules/Connectivity/framework/src/android/net/ |
D | NetworkState.java | 43 public final String subscriberId; field in NetworkState 51 subscriberId = null; in NetworkState() 57 @Nullable String subscriberId) { in NetworkState() argument 59 networkCapabilities, network, subscriberId); in NetworkState() 65 @Nullable String subscriberId) { in NetworkState() argument 67 networkCapabilities, network, subscriberId); in NetworkState() 73 @Nullable String subscriberId) { in NetworkState() argument 78 this.subscriberId = subscriberId; in NetworkState() 98 subscriberId = in.readString(); in NetworkState() 113 out.writeString(subscriberId); in writeToParcel()
|
D | NetworkAgentConfig.java | 139 public String subscriberId; field in NetworkAgentConfig 148 return subscriberId; in getSubscriberId() 285 subscriberId = nac.subscriberId; in NetworkAgentConfig() 349 public Builder setSubscriberId(@Nullable String subscriberId) { in setSubscriberId() argument 350 mConfig.subscriberId = subscriberId; in setSubscriberId() 506 && Objects.equals(subscriberId, that.subscriberId) in equals() 516 acceptPartialConnectivity, provisioningNotificationDisabled, subscriberId, in hashCode() 529 + ", subscriberId = '" + subscriberId + '\'' in toString() 551 out.writeString(subscriberId); in writeToParcel() 572 networkAgentConfig.subscriberId = in.readString();
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkTemplate.java | 193 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll() argument 194 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll() 204 public static NetworkTemplate buildTemplateMobileWithRatType(@Nullable String subscriberId, in buildTemplateMobileWithRatType() argument 206 if (TextUtils.isEmpty(subscriberId)) { in buildTemplateMobileWithRatType() 213 return new NetworkTemplate(MATCH_MOBILE, subscriberId, new String[] { subscriberId }, in buildTemplateMobileWithRatType() 281 @Nullable String subscriberId) { in buildTemplateWifi() argument 282 return new NetworkTemplate(MATCH_WIFI, subscriberId, new String[] { subscriberId }, in buildTemplateWifi() 325 public static NetworkTemplate buildTemplateCarrierMetered(@NonNull String subscriberId) { in buildTemplateCarrierMetered() argument 326 Objects.requireNonNull(subscriberId); in buildTemplateCarrierMetered() 327 return new NetworkTemplate(MATCH_CARRIER, subscriberId, in buildTemplateCarrierMetered() [all …]
|
D | NetworkIdentity.java | 100 int type, int ratType, @Nullable String subscriberId, @Nullable String wifiNetworkKey, in NetworkIdentity() argument 104 mSubscriberId = subscriberId; in NetworkIdentity() 478 public Builder setSubscriberId(@Nullable String subscriberId) { in setSubscriberId() argument 479 mSubscriberId = subscriberId; in setSubscriberId()
|
D | NetworkStateSnapshot.java | 68 @Nullable String subscriberId, int legacyType) { in NetworkStateSnapshot() argument 72 mSubscriberId = subscriberId; in NetworkStateSnapshot()
|
D | NetworkIdentitySet.java | 70 final String subscriberId = readOptionalString(in); in NetworkIdentitySet() local 115 add(new NetworkIdentity(type, ratType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 64 void onCollapsedRatTypeChanged(@NonNull String subscriberId, int collapsedRatType); in onCollapsedRatTypeChanged() argument 106 final String subscriberId = in onSubscriptionsChanged() local 108 if (!TextUtils.isEmpty(subscriberId)) { in onSubscriptionsChanged() 109 filteredNewSubs.add(new Pair(subId, subscriberId)); in onSubscriptionsChanged() 153 public int getRatTypeForSubscriberId(@NonNull String subscriberId) { in getRatTypeForSubscriberId() argument 155 it -> TextUtils.equals(subscriberId, it.mSubscriberId)); in getRatTypeForSubscriberId() 206 @NonNull String subscriberId) { in RatTypeListener() argument 208 mSubscriberId = subscriberId; in RatTypeListener() 242 boolean equalsKey(int subId, @NonNull String subscriberId) { in equalsKey() argument 243 return mSubId == subId && TextUtils.equals(mSubscriberId, subscriberId); in equalsKey()
|
/packages/modules/StatsD/statsd/src/subscriber/ |
D | SubscriberReporter.cpp | 59 int64_t subscriberId, in setBroadcastSubscriber() argument 63 configKey.ToString().c_str(), (long long)subscriberId); in setBroadcastSubscriber() 66 mIntentMap[configKey][subscriberId] = pir; in setBroadcastSubscriber() 79 int64_t subscriberId) { in unsetBroadcastSubscriber() argument 84 subscriberMapIt->second.erase(subscriberId); in unsetBroadcastSubscriber() 110 int64_t subscriberId = subscription.broadcast_subscriber_details().subscriber_id(); in alertBroadcastSubscriber() local 123 auto it2 = it1->second.find(subscriberId); in alertBroadcastSubscriber() 126 configKey.ToString().c_str(), (long long)subscriberId); in alertBroadcastSubscriber()
|
D | SubscriberReporter.h | 60 int64_t subscriberId, 66 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
|
/packages/modules/Connectivity/tests/unit/java/android/net/ |
D | NetworkTemplateTest.kt | 78 private fun buildMobileNetworkState(subscriberId: String): NetworkStateSnapshot = in buildMobileNetworkState() 79 buildNetworkState(TYPE_MOBILE, subscriberId = subscriberId) in buildMobileNetworkState() 80 private fun buildWifiNetworkState(subscriberId: String?, wifiKey: String?): in buildMobileNetworkState() 82 subscriberId = subscriberId, wifiKey = wifiKey) in buildMobileNetworkState() 86 subscriberId: String? = null, in buildMobileNetworkState() 102 return NetworkStateSnapshot(mock(Network::class.java), caps, lp, subscriberId, type) in buildMobileNetworkState() 456 subscriberId: String? = null, in matchOemManagedIdent() 461 val matchSubscriberIds = arrayOf(subscriberId) in matchOemManagedIdent() 464 val templateOemYes = NetworkTemplate(matchType, subscriberId, matchSubscriberIds, in matchOemManagedIdent() 468 val templateOemAll = NetworkTemplate(matchType, subscriberId, matchSubscriberIds, in matchOemManagedIdent() [all …]
|
D | NetworkIdentitySetTest.kt | 39 subscriberId: String in buildMobileNetworkStateSnapshot() 42 LinkProperties(), subscriberId, TYPE_MOBILE) in buildMobileNetworkStateSnapshot()
|
D | NetworkIdentityTest.kt | 56 subscriberId: String in <lambda>() 59 LinkProperties(), subscriberId, TYPE_MOBILE) in <lambda>()
|
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 151 private void addTestSub(int subId, String subscriberId) { in addTestSub() argument 159 updateSubscriberIdForTestSub(subId, subscriberId); in addTestSub() 162 private void updateSubscriberIdForTestSub(int subId, @Nullable final String subscriberId) { in updateSubscriberIdForTestSub() argument 170 when(telephonyManagerOfSub.getSubscriberId()).thenReturn(subscriberId); in updateSubscriberIdForTestSub() 202 private void assertRatTypeChangedForSub(String subscriberId, int ratType) { in assertRatTypeChangedForSub() argument 203 assertEquals(ratType, mMonitor.getRatTypeForSubscriberId(subscriberId)); in assertRatTypeChangedForSub() 207 verify(mDelegate).onCollapsedRatTypeChanged(eq(subscriberId), typeCaptor.capture()); in assertRatTypeChangedForSub() 212 private void assertRatTypeNotChangedForSub(String subscriberId, int ratType) { in assertRatTypeNotChangedForSub() argument 213 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeNotChangedForSub() 215 verify(mDelegate, never()).onCollapsedRatTypeChanged(eq(subscriberId), anyInt()); in assertRatTypeNotChangedForSub()
|
D | NetworkStatsServiceTest.java | 2175 String subscriberId) { 2183 return new NetworkStateSnapshot(WIFI_NETWORK, capabilities, prop, subscriberId, TYPE_WIFI); 2186 private static NetworkStateSnapshot buildMobileState(String subscriberId) { 2187 return buildMobileState(TEST_IFACE, subscriberId, false /* isTemporarilyNotMetered */, 2191 private static NetworkStateSnapshot buildMobileState(String iface, String subscriberId, 2204 MOBILE_NETWORK, capabilities, prop, subscriberId, TYPE_MOBILE); 2212 String subscriberId, boolean isRoaming, int[] oemNetCapabilities) { 2222 return new NetworkStateSnapshot(MOBILE_NETWORK, capabilities, prop, subscriberId, 2227 String subscriberId, int subId, String ifaceName) { 2237 MOBILE_NETWORK, capabilities, prop, subscriberId, TYPE_MOBILE);
|
/packages/apps/Settings/src/com/android/settings/datausage/lib/ |
D | DataUsageLib.java | 82 final String subscriberId = template.getSubscriberIds().iterator().next(); in normalizeMobileTemplate() 84 if (Set.of(mergedSet).contains(subscriberId)) { in normalizeMobileTemplate() 98 String subscriberId = telephonyManager.getSubscriberId(subId); in getMobileTemplateForSubId() local 99 return subscriberId != null in getMobileTemplateForSubId() 101 .setSubscriberIds(Set.of(subscriberId)) in getMobileTemplateForSubId()
|
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/ |
D | DataUsageUtils.java | 55 String subscriberId = telephonyManager.getSubscriberId(subscriptionId); in getMobileNetworkTemplate() local 59 if (subscriberId != null) { in getMobileNetworkTemplate() 60 builder.setSubscriberIds(Set.of(subscriberId)); in getMobileNetworkTemplate() 69 String subscriberId = template.getSubscriberIds().iterator().next(); in normalizeMobileTemplate() 71 if (Set.of(mergedSet).contains(subscriberId)) { in normalizeMobileTemplate()
|
D | SummaryForAllUidLoader.java | 74 String subscriberId = template.getSubscriberIds().isEmpty() ? null in loadInBackground() local 77 ConnectivityManager.TYPE_MOBILE, subscriberId, start, end); in loadInBackground()
|
/packages/modules/StatsD/framework/java/android/app/ |
D | StatsManager.java | 252 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument 258 service.setBroadcastSubscriber(configKey, subscriberId, pendingIntent, in setBroadcastSubscriber() 261 service.unsetBroadcastSubscriber(configKey, subscriberId, in setBroadcastSubscriber() 281 long configKey, long subscriberId, PendingIntent pendingIntent) { in setBroadcastSubscriber() argument 283 setBroadcastSubscriber(pendingIntent, configKey, subscriberId); in setBroadcastSubscriber()
|
/packages/modules/StatsD/service/java/com/android/server/stats/ |
D | StatsManagerService.java | 324 public void setBroadcastSubscriber(long configId, long subscriberId, in setBroadcastSubscriber() argument 335 innerMap.put(subscriberId, pir); in setBroadcastSubscriber() 342 configId, subscriberId, pir, callingUid); in setBroadcastSubscriber() 352 public void unsetBroadcastSubscriber(long configId, long subscriberId, String packageName) { in unsetBroadcastSubscriber() argument 360 innerMap.remove(subscriberId); in unsetBroadcastSubscriber() 368 statsd.unsetBroadcastSubscriber(configId, subscriberId, callingUid); in unsetBroadcastSubscriber()
|
/packages/modules/StatsD/aidl/android/os/ |
D | IStatsManagerService.aidl | 78 void setBroadcastSubscriber(long configKey, long subscriberId, in PendingIntent pendingIntent, in setBroadcastSubscriber() argument 88 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument
|
D | IStatsd.aidl | 173 void setBroadcastSubscriber(long configId, long subscriberId, in IPendingIntentRef pir, in setBroadcastSubscriber() argument 183 void unsetBroadcastSubscriber(long configId, long subscriberId, int callingUid); in unsetBroadcastSubscriber() argument
|
/packages/apps/Car/Settings/src/com/android/car/settings/system/ |
D | ResetNetworkConfirmFragment.java | 124 String subscriberId = telephonyManager.getSubscriberId(networkSubscriptionId); in resetNetwork() local 125 policyManager.factoryReset(subscriberId); in resetNetwork()
|
/packages/modules/StatsD/statsd/src/ |
D | StatsService.h | 153 int64_t subscriberId, 161 int64_t subscriberId,
|
/packages/apps/Settings/src/com/android/settings/ |
D | ResetNetworkConfirm.java | 132 String subscriberId = telephonyManager.getSubscriberId(); in doInBackground() local 133 policyManager.factoryReset(subscriberId); in doInBackground()
|