Home
last modified time | relevance | path

Searched refs:subscriberId (Results 1 – 25 of 38) sorted by relevance

12

/packages/modules/Connectivity/framework/src/android/net/
DNetworkState.java43 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()
DNetworkAgentConfig.java139 public String subscriberId; field in NetworkAgentConfig
148 return subscriberId; in getSubscriberId()
286 subscriberId = nac.subscriberId; in NetworkAgentConfig()
350 public Builder setSubscriberId(@Nullable String subscriberId) { in setSubscriberId() argument
351 mConfig.subscriberId = subscriberId; in setSubscriberId()
508 && Objects.equals(subscriberId, that.subscriberId) in equals()
519 acceptPartialConnectivity, provisioningNotificationDisabled, subscriberId, in hashCode()
532 + ", subscriberId = '" + subscriberId + '\'' in toString()
556 out.writeString(subscriberId); in writeToParcel()
577 networkAgentConfig.subscriberId = in.readString();
/packages/modules/Connectivity/framework-t/src/android/app/usage/
DNetworkStatsManager.java297 public Bucket querySummaryForDevice(int networkType, @Nullable String subscriberId, in querySummaryForDevice() argument
301 template = createTemplate(networkType, subscriberId); in querySummaryForDevice()
342 public Bucket querySummaryForUser(int networkType, @Nullable String subscriberId, in querySummaryForUser() argument
346 template = createTemplate(networkType, subscriberId); in querySummaryForUser()
391 public NetworkStats querySummary(int networkType, @Nullable String subscriberId, long startTime, in querySummary() argument
395 template = createTemplate(networkType, subscriberId); in querySummary()
538 public NetworkStats queryDetailsForUid(int networkType, @Nullable String subscriberId, in queryDetailsForUid() argument
540 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid()
594 public NetworkStats queryDetailsForUidTag(int networkType, @Nullable String subscriberId, in queryDetailsForUidTag() argument
596 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUidTag()
[all …]
/packages/modules/StatsD/statsd/src/subscriber/
DSubscriberReporter.cpp59 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()
DSubscriberReporter.h60 int64_t subscriberId,
66 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
/packages/modules/Connectivity/service-t/src/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java64 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/Connectivity/staticlibs/framework/com/android/net/module/util/
DNetworkIdentityUtils.java31 public static String scrubSubscriberId(@Nullable String subscriberId) { in scrubSubscriberId() argument
32 if (subscriberId != null) { in scrubSubscriberId()
34 return subscriberId.substring(0, Math.min(6, subscriberId.length())) + "..."; in scrubSubscriberId()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DDataUsageLib.kt72 val subscriberId = template.subscriberIds.firstOrNull() ?: return template in normalizeMobileTemplate() constant
79 return if (mergedSet.contains(subscriberId)) { in normalizeMobileTemplate()
92 val subscriberId = telephonyManager.getSubscriberId(subId) in getMobileTemplateForSubId() constant
93 return when (subscriberId) { in getMobileTemplateForSubId()
96 .setSubscriberIds(setOf(subscriberId)) in getMobileTemplateForSubId()
/packages/modules/Connectivity/framework-t/src/android/net/
DNetworkTemplate.java214 public static NetworkTemplate buildTemplateMobileAll(@NonNull String subscriberId) { in buildTemplateMobileAll() argument
216 .setSubscriberIds(setOf(subscriberId)).build(); in buildTemplateMobileAll()
308 public static NetworkTemplate buildTemplateCarrierMetered(@NonNull String subscriberId) { in buildTemplateCarrierMetered() argument
313 .setSubscriberIds(Set.of(subscriberId)) in buildTemplateCarrierMetered()
327 public static NetworkTemplate buildTemplateMobileWithRatType(@Nullable String subscriberId, in buildTemplateMobileWithRatType() argument
331 .setSubscriberIds(TextUtils.isEmpty(subscriberId) in buildTemplateMobileWithRatType()
333 : Set.of(subscriberId)) in buildTemplateMobileWithRatType()
376 @Nullable String subscriberId) { in buildTemplateWifi() argument
379 .setSubscriberIds(setOf(subscriberId)) in buildTemplateWifi()
448 public NetworkTemplate(int matchRule, String subscriberId, String wifiNetworkKey) { in NetworkTemplate() argument
[all …]
DNetworkIdentity.java107 int type, int ratType, @Nullable String subscriberId, @Nullable String wifiNetworkKey, in NetworkIdentity() argument
111 mSubscriberId = subscriberId; in NetworkIdentity()
492 public Builder setSubscriberId(@Nullable String subscriberId) { in setSubscriberId() argument
493 mSubscriberId = subscriberId; in setSubscriberId()
DNetworkStateSnapshot.java68 @Nullable String subscriberId, int legacyType) { in NetworkStateSnapshot() argument
72 mSubscriberId = subscriberId; in NetworkStateSnapshot()
DNetworkIdentitySet.java70 final String subscriberId = readOptionalString(in); in NetworkIdentitySet() local
115 add(new NetworkIdentity(type, ratType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
/packages/modules/Connectivity/tests/unit/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitorTest.java152 private void addTestSub(int subId, String subscriberId) { in addTestSub() argument
160 updateSubscriberIdForTestSub(subId, subscriberId); in addTestSub()
163 private void updateSubscriberIdForTestSub(int subId, @Nullable final String subscriberId) { in updateSubscriberIdForTestSub() argument
171 when(telephonyManagerOfSub.getSubscriberId()).thenReturn(subscriberId); in updateSubscriberIdForTestSub()
203 private void assertRatTypeChangedForSub(String subscriberId, int ratType) { in assertRatTypeChangedForSub() argument
204 assertEquals(ratType, mMonitor.getRatTypeForSubscriberId(subscriberId)); in assertRatTypeChangedForSub()
208 verify(mDelegate).onCollapsedRatTypeChanged(eq(subscriberId), typeCaptor.capture()); in assertRatTypeChangedForSub()
213 private void assertRatTypeNotChangedForSub(String subscriberId, int ratType) { in assertRatTypeNotChangedForSub() argument
214 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeNotChangedForSub()
216 verify(mDelegate, never()).onCollapsedRatTypeChanged(eq(subscriberId), anyInt()); in assertRatTypeNotChangedForSub()
/packages/apps/Car/Settings/src/com/android/car/settings/datausage/
DDataUsageUtils.java55 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()
DSummaryForAllUidLoader.java74 String subscriberId = template.getSubscriberIds().isEmpty() ? null in loadInBackground() local
77 ConnectivityManager.TYPE_MOBILE, subscriberId, start, end); in loadInBackground()
/packages/modules/Connectivity/tests/unit/java/android/net/
DNetworkTemplateTest.kt80 private fun buildMobileNetworkState(subscriberId: String): NetworkStateSnapshot = in buildMobileNetworkState()
81 buildNetworkState(TYPE_MOBILE, subscriberId = subscriberId) in buildMobileNetworkState()
82 private fun buildWifiNetworkState(subscriberId: String?, wifiKey: String?): in buildMobileNetworkState()
84 subscriberId = subscriberId, wifiKey = wifiKey) in buildMobileNetworkState()
88 subscriberId: String? = null, in buildMobileNetworkState()
112 return NetworkStateSnapshot(mock(Network::class.java), caps, lp, subscriberId, type) in buildMobileNetworkState()
571 subscriberId: String? = null, in matchOemManagedIdent()
577 if (subscriberId == null) emptyArray<String>() else arrayOf(subscriberId) in matchOemManagedIdent()
590 subscriberId, identWifiKey, identityOemManagedState), in matchOemManagedIdent()
617 matchOemManagedIdent(TYPE_MOBILE, MATCH_MOBILE, subscriberId = TEST_IMSI1) in testOemManagedMatchesIdent()
DNetworkIdentitySetTest.kt39 subscriberId: String in buildMobileNetworkStateSnapshot()
42 LinkProperties(), subscriberId, TYPE_MOBILE) in buildMobileNetworkStateSnapshot()
DNetworkIdentityTest.kt56 subscriberId: String in <lambda>()
59 LinkProperties(), subscriberId, TYPE_MOBILE) in <lambda>()
/packages/modules/StatsD/aidl/android/os/
DIStatsManagerService.aidl79 void setBroadcastSubscriber(long configKey, long subscriberId, in PendingIntent pendingIntent, in setBroadcastSubscriber() argument
89 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument
DIStatsd.aidl176 void setBroadcastSubscriber(long configId, long subscriberId, in IPendingIntentRef pir, in setBroadcastSubscriber() argument
186 void unsetBroadcastSubscriber(long configId, long subscriberId, int callingUid); in unsetBroadcastSubscriber() argument
/packages/apps/Settings/src/com/android/settings/network/
DResetNetworkOperationBuilder.java173 final AtomicReference<String> subscriberId = new AtomicReference<String>(); in resetTelephonyAndNetworkPolicyManager() local
177 subscriberId.set(subIdTm.getSubscriberId()); in resetTelephonyAndNetworkPolicyManager()
182 policyManager.factoryReset(subscriberId.get()); in resetTelephonyAndNetworkPolicyManager()
/packages/modules/StatsD/framework/java/android/app/
DStatsManager.java273 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument
279 service.setBroadcastSubscriber(configKey, subscriberId, pendingIntent, in setBroadcastSubscriber()
282 service.unsetBroadcastSubscriber(configKey, subscriberId, in setBroadcastSubscriber()
302 long configKey, long subscriberId, PendingIntent pendingIntent) { in setBroadcastSubscriber() argument
304 setBroadcastSubscriber(pendingIntent, configKey, subscriberId); in setBroadcastSubscriber()
/packages/modules/StatsD/service/java/com/android/server/stats/
DStatsManagerService.java368 public void setBroadcastSubscriber(long configId, long subscriberId, in setBroadcastSubscriber() argument
379 innerMap.put(subscriberId, pir); in setBroadcastSubscriber()
386 configId, subscriberId, pir, callingUid); in setBroadcastSubscriber()
396 public void unsetBroadcastSubscriber(long configId, long subscriberId, String packageName) { in unsetBroadcastSubscriber() argument
404 innerMap.remove(subscriberId); in unsetBroadcastSubscriber()
412 statsd.unsetBroadcastSubscriber(configId, subscriberId, callingUid); in unsetBroadcastSubscriber()
/packages/apps/Car/Settings/src/com/android/car/settings/system/
DResetNetworkConfirmFragment.java124 String subscriberId = telephonyManager.getSubscriberId(networkSubscriptionId); in resetNetwork() local
125 policyManager.factoryReset(subscriberId); in resetNetwork()
/packages/modules/Connectivity/tests/unit/java/android/app/usage/
DNetworkStatsManagerTest.java179 private void runQueryDetailsAndCheckTemplate(int networkType, String subscriberId, in runQueryDetailsAndCheckTemplate() argument
193 networkType, subscriberId, startTime, endTime); in runQueryDetailsAndCheckTemplate()

12