/frameworks/base/core/java/android/app/usage/ |
D | NetworkStatsManager.java | 208 public Bucket querySummaryForDevice(int networkType, String subscriberId, in querySummaryForDevice() argument 212 template = createTemplate(networkType, subscriberId); in querySummaryForDevice() 241 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, in querySummaryForUser() argument 245 template = createTemplate(networkType, subscriberId); in querySummaryForUser() 278 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument 282 template = createTemplate(networkType, subscriberId); in querySummary() 306 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, in queryDetailsForUid() argument 308 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid() 324 public NetworkStats queryDetailsForUidTag(int networkType, String subscriberId, in queryDetailsForUidTag() argument 326 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUidTag() [all …]
|
/frameworks/base/core/java/android/net/ |
D | NetworkIdentity.java | 54 int type, int subType, String subscriberId, String networkId, boolean roaming, in NetworkIdentity() argument 58 mSubscriberId = subscriberId; in NetworkIdentity() 157 public static String scrubSubscriberId(String subscriberId) { in scrubSubscriberId() argument 159 return subscriberId; in scrubSubscriberId() 160 } else if (subscriberId != null) { in scrubSubscriberId() 162 return subscriberId.substring(0, Math.min(6, subscriberId.length())) + "..."; in scrubSubscriberId() 171 public static String[] scrubSubscriberId(String[] subscriberId) { in scrubSubscriberId() argument 172 if (subscriberId == null) return null; in scrubSubscriberId() 173 final String[] res = new String[subscriberId.length]; in scrubSubscriberId() 175 res[i] = NetworkIdentity.scrubSubscriberId(subscriberId[i]); in scrubSubscriberId() [all …]
|
D | NetworkAgentConfig.java | 122 public String subscriberId; field in NetworkAgentConfig 130 return subscriberId; in getSubscriberId() 219 subscriberId = nac.subscriberId; in NetworkAgentConfig() 278 public Builder setSubscriberId(@Nullable String subscriberId) { in setSubscriberId() argument 279 mConfig.subscriberId = subscriberId; in setSubscriberId() 365 && Objects.equals(subscriberId, that.subscriberId) in equals() 373 acceptPartialConnectivity, provisioningNotificationDisabled, subscriberId, in hashCode() 385 + ", subscriberId = '" + subscriberId + '\'' in toString() 405 out.writeString(subscriberId); in writeToParcel() 422 networkAgentConfig.subscriberId = in.readString();
|
D | NetworkState.java | 40 public final String subscriberId; field in NetworkState 44 NetworkCapabilities networkCapabilities, Network network, String subscriberId, in NetworkState() argument 50 this.subscriberId = subscriberId; in NetworkState() 70 subscriberId = in.readString(); in NetworkState() 85 out.writeString(subscriberId); in writeToParcel()
|
D | NetworkTemplate.java | 136 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll() argument 137 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll() 145 public static NetworkTemplate buildTemplateMobileWithRatType(@Nullable String subscriberId, in buildTemplateMobileWithRatType() argument 147 if (TextUtils.isEmpty(subscriberId)) { in buildTemplateMobileWithRatType() 151 return new NetworkTemplate(MATCH_MOBILE, subscriberId, new String[]{subscriberId}, null, in buildTemplateMobileWithRatType() 234 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { in NetworkTemplate() argument 235 this(matchRule, subscriberId, new String[] { subscriberId }, networkId); in NetworkTemplate() 238 public NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, in NetworkTemplate() argument 240 this(matchRule, subscriberId, matchSubscriberIds, networkId, METERED_ALL, ROAMING_ALL, in NetworkTemplate() 244 public NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, in NetworkTemplate() argument [all …]
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitor.java | 60 void onCollapsedRatTypeChanged(@NonNull String subscriberId, in onCollapsedRatTypeChanged() argument 104 final String subscriberId = mTeleManager.getSubscriberId(subId); in onSubscriptionsChanged() local 105 if (TextUtils.isEmpty(subscriberId)) { in onSubscriptionsChanged() 110 new RatTypeListener(mExecutor, this, subId, subscriberId); in onSubscriptionsChanged() 141 public int getRatTypeForSubscriberId(@NonNull String subscriberId) { in getRatTypeForSubscriberId() argument 143 it -> TextUtils.equals(subscriberId, it.mSubscriberId)); in getRatTypeForSubscriberId() 192 @NonNull String subscriberId) { in RatTypeListener() argument 195 mSubscriberId = subscriberId; in RatTypeListener()
|
D | NetworkIdentitySet.java | 56 final String subscriberId = readOptionalString(in); in NetworkIdentitySet() local 87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
|
D | NetworkPolicyManagerService.java | 1306 final String subscriberId = mSubIdToSubscriberId.valueAt(i); in findRelevantSubIdNL() local 1308 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, in findRelevantSubIdNL() 1533 private boolean maybeUpdateMobilePolicyCycleAL(int subId, String subscriberId) { in maybeUpdateMobilePolicyCycleAL() argument 1539 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, true); in maybeUpdateMobilePolicyCycleAL() 1667 final String subscriberId = mSubIdToSubscriberId.get(subId, null); 1668 if (subscriberId != null) { 1669 ensureActiveMobilePolicyAL(subId, subscriberId); 1670 maybeUpdateMobilePolicyCycleAL(subId, subscriberId); 1764 final String subscriberId = mSubIdToSubscriberId.valueAt(i); 1767 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, [all …]
|
/frameworks/base/cmds/statsd/src/subscriber/ |
D | SubscriberReporter.cpp | 32 int64_t subscriberId, in setBroadcastSubscriber() argument 36 mIntentMap[configKey][subscriberId] = intentSender; in setBroadcastSubscriber() 40 int64_t subscriberId) { in unsetBroadcastSubscriber() argument 45 subscriberMapIt->second.erase(subscriberId); in unsetBroadcastSubscriber() 77 int64_t subscriberId = subscription.broadcast_subscriber_details().subscriber_id(); in alertBroadcastSubscriber() local 90 auto it2 = it1->second.find(subscriberId); in alertBroadcastSubscriber() 93 configKey.ToString().c_str(), (long long)subscriberId); in alertBroadcastSubscriber()
|
D | SubscriberReporter.h | 65 int64_t subscriberId, 71 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId);
|
/frameworks/base/tests/net/java/com/android/server/net/ |
D | NetworkStatsSubscriptionsMonitorTest.java | 126 private void addTestSub(int subId, String subscriberId) { in addTestSub() argument 134 when(mTelephonyManager.getSubscriberId(subId)).thenReturn(subscriberId); in addTestSub() 146 private void assertRatTypeChangedForSub(String subscriberId, int ratType) { in assertRatTypeChangedForSub() argument 147 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeChangedForSub() 151 verify(mDelegate).onCollapsedRatTypeChanged(eq(subscriberId), typeCaptor.capture()); in assertRatTypeChangedForSub() 156 private void assertRatTypeNotChangedForSub(String subscriberId, int ratType) { in assertRatTypeNotChangedForSub() argument 157 assertEquals(mMonitor.getRatTypeForSubscriberId(subscriberId), ratType); in assertRatTypeNotChangedForSub() 159 verify(mDelegate, never()).onCollapsedRatTypeChanged(eq(subscriberId), anyInt()); in assertRatTypeNotChangedForSub()
|
D | NetworkStatsServiceTest.java | 1460 private static NetworkState buildMobile3gState(String subscriberId) { 1461 return buildMobile3gState(subscriberId, false /* isRoaming */); 1464 private static NetworkState buildMobile3gState(String subscriberId, boolean isRoaming) { 1475 return new NetworkState(info, prop, capabilities, MOBILE_NETWORK, subscriberId, null);
|
/frameworks/base/tests/net/java/android/net/ |
D | NetworkTemplateTest.kt | 53 private fun buildMobileNetworkState(subscriberId: String): NetworkState = in buildMobileNetworkState() 54 buildNetworkState(TYPE_MOBILE, subscriberId = subscriberId) in buildMobileNetworkState() 60 subscriberId: String? = null, in buildMobileNetworkState() 71 return NetworkState(info, lp, caps, mock(Network::class.java), subscriberId, ssid) in buildMobileNetworkState()
|
/frameworks/base/core/java/android/app/ |
D | StatsManager.java | 207 PendingIntent pendingIntent, long configKey, long subscriberId) in setBroadcastSubscriber() argument 215 service.setBroadcastSubscriber(configKey, subscriberId, intentSender, in setBroadcastSubscriber() 218 service.unsetBroadcastSubscriber(configKey, subscriberId, in setBroadcastSubscriber() 237 long configKey, long subscriberId, PendingIntent pendingIntent) { in setBroadcastSubscriber() argument 239 setBroadcastSubscriber(pendingIntent, configKey, subscriberId); in setBroadcastSubscriber()
|
/frameworks/base/tests/net/java/android/app/usage/ |
D | NetworkStatsManagerTest.java | 72 final String subscriberId = "subid"; in testQueryDetails() local 116 assertEquals(subscriberId, template.getSubscriberId()); in testQueryDetails() 127 assertEquals(subscriberId, template.getSubscriberId()); in testQueryDetails() 133 ConnectivityManager.TYPE_MOBILE, subscriberId, startTime, endTime); in testQueryDetails()
|
/frameworks/base/core/java/android/os/ |
D | IStatsManager.aidl | 168 void setBroadcastSubscriber(long configKey, long subscriberId, in IBinder intentSender, in setBroadcastSubscriber() argument 178 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName); in unsetBroadcastSubscriber() argument
|
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
D | DataIdleTest.java | 64 String subscriberId = mTelephonyManager.getSubscriberId(); in testMobile() local 65 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); in testMobile()
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
D | MultipathPolicyTracker.java | 188 final String subscriberId; field in MultipathPolicyTracker.MultipathTracker 220 subscriberId = tele.getSubscriberId(); in MultipathTracker() 222 NetworkTemplate.MATCH_MOBILE, subscriberId, new String[] { subscriberId }, in MultipathTracker() 227 public void onThresholdReached(int networkType, String subscriberId) { in MultipathTracker() 268 subscriberId, in getTemplateMatchingNetworkIdentity()
|
D | NetworkAgentInfo.java | 534 final String subscriberId = (networkAgentConfig != null) in getNetworkState() local 535 ? networkAgentConfig.subscriberId : null; in getNetworkState() 538 new NetworkCapabilities(networkCapabilities), network, subscriberId, null); in getNetworkState()
|
/frameworks/base/cmds/statsd/src/ |
D | StatsService.h | 152 int64_t subscriberId, 160 int64_t subscriberId,
|
D | StatsService.cpp | 1242 int64_t subscriberId, in setBroadcastSubscriber() argument 1251 .setBroadcastSubscriber(configKey, subscriberId, intentSender); in setBroadcastSubscriber() 1256 int64_t subscriberId, in unsetBroadcastSubscriber() argument 1264 .unsetBroadcastSubscriber(configKey, subscriberId); in unsetBroadcastSubscriber()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | GsmCdmaPhoneTest.java | 331 final String subscriberId = "123456789"; in testGetSubscriberIdForGsmPhone() local 333 doReturn(subscriberId).when(iccRecords).getIMSI(); in testGetSubscriberIdForGsmPhone() 343 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForGsmPhone() 349 final String subscriberId = "abcdefghijk"; in testGetSubscriberIdForCdmaLtePhone() local 351 doReturn(subscriberId).when(iccRecords).getIMSI(); in testGetSubscriberIdForCdmaLtePhone() 361 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForCdmaLtePhone() 367 final String subscriberId = "987654321"; in testGetSubscriberIdForCdmaPhone() local 368 doReturn(subscriberId).when(mSST).getImsi(); in testGetSubscriberIdForCdmaPhone() 376 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForCdmaPhone()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | Phone.java | 2000 String subscriberId = sp.getString(CF_ID, null); in getCallForwardingIndicatorFromSharedPref() local 2001 if (subscriberId != null) { in getCallForwardingIndicatorFromSharedPref() 2004 if (subscriberId.equals(currentSubscriberId)) { in getCallForwardingIndicatorFromSharedPref() 2793 String subscriberId = sp.getString(VM_ID, null); in getStoredVoiceMessageCount() local 2794 if (subscriberId != null) { in getStoredVoiceMessageCount() 2797 if (currentSubscriberId != null && currentSubscriberId.equals(subscriberId)) { in getStoredVoiceMessageCount()
|
D | GsmCdmaPhone.java | 1811 String subscriberId = null; in getSubscriberId() local 1813 subscriberId = mSST.getImsi(); in getSubscriberId() 1819 subscriberId = iccRecords.getIMSI(); in getSubscriberId() 1822 return subscriberId; in getSubscriberId()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DataConnection.java | 2159 final String subscriberId = mPhone.getSubscriberId(); in enter() local 2160 if (!TextUtils.isEmpty(subscriberId)) { in enter() 2161 configBuilder.setSubscriberId(subscriberId); in enter()
|