Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/app/usage/
DNetworkStatsManager.java230 public Bucket querySummaryForDevice(int networkType, String subscriberId, in querySummaryForDevice() argument
234 template = createTemplate(networkType, subscriberId); in querySummaryForDevice()
275 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, in querySummaryForUser() argument
279 template = createTemplate(networkType, subscriberId); in querySummaryForUser()
324 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, in querySummary() argument
328 template = createTemplate(networkType, subscriberId); in querySummary()
354 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, in queryDetailsForUid() argument
356 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUid()
374 public NetworkStats queryDetailsForUidTag(int networkType, String subscriberId, in queryDetailsForUidTag() argument
376 return queryDetailsForUidTagState(networkType, subscriberId, startTime, endTime, uid, in queryDetailsForUidTag()
[all …]
/frameworks/base/services/core/java/com/android/server/stats/pull/netstats/
DSubInfo.java36 public final String subscriberId; field in SubInfo
40 @NonNull String subscriberId, boolean isOpportunistic) { in SubInfo() argument
45 this.subscriberId = subscriberId; in SubInfo()
59 && subscriberId.equals(other.subscriberId); in equals()
64 return Objects.hash(subId, mcc, mnc, carrierId, subscriberId, isOpportunistic); in hashCode()
/frameworks/base/core/java/android/net/
DNetworkTemplate.java177 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { in buildTemplateMobileAll() argument
178 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); in buildTemplateMobileAll()
186 public static NetworkTemplate buildTemplateMobileWithRatType(@Nullable String subscriberId, in buildTemplateMobileWithRatType() argument
188 if (TextUtils.isEmpty(subscriberId)) { in buildTemplateMobileWithRatType()
193 return new NetworkTemplate(MATCH_MOBILE, subscriberId, new String[]{subscriberId}, null, in buildTemplateMobileWithRatType()
244 @Nullable String subscriberId) { in buildTemplateWifi() argument
245 return new NetworkTemplate(MATCH_WIFI, subscriberId, new String[] { subscriberId }, in buildTemplateWifi()
279 public static NetworkTemplate buildTemplateCarrierMetered(@NonNull String subscriberId) { in buildTemplateCarrierMetered() argument
280 Objects.requireNonNull(subscriberId); in buildTemplateCarrierMetered()
281 return new NetworkTemplate(MATCH_CARRIER, subscriberId, in buildTemplateCarrierMetered()
[all …]
DNetworkIdentity.java70 int type, int subType, String subscriberId, String networkId, boolean roaming, in NetworkIdentity() argument
74 mSubscriberId = subscriberId; in NetworkIdentity()
191 final String subscriberId = snapshot.getSubscriberId(); in buildNetworkIdentity() local
209 return new NetworkIdentity(legacyType, subType, subscriberId, networkId, roaming, metered, in buildNetworkIdentity()
DNetworkStateSnapshot.java66 @Nullable String subscriberId, int legacyType) { in NetworkStateSnapshot() argument
70 mSubscriberId = subscriberId; in NetworkStateSnapshot()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsSubscriptionsMonitor.java61 void onCollapsedRatTypeChanged(@NonNull String subscriberId, in onCollapsedRatTypeChanged() argument
104 final String subscriberId = mTeleManager.getSubscriberId(subId); in onSubscriptionsChanged()
105 return TextUtils.isEmpty(subscriberId) ? null : new Pair(subId, subscriberId); in onSubscriptionsChanged()
150 public int getRatTypeForSubscriberId(@NonNull String subscriberId) { in getRatTypeForSubscriberId() argument
152 it -> TextUtils.equals(subscriberId, it.mSubscriberId)); in getRatTypeForSubscriberId()
202 @NonNull String subscriberId) { in RatTypeListener() argument
205 mSubscriberId = subscriberId; in RatTypeListener()
239 boolean equalsKey(int subId, @NonNull String subscriberId) { in equalsKey() argument
240 return mSubId == subId && TextUtils.equals(mSubscriberId, subscriberId); in equalsKey()
DNetworkIdentitySet.java57 final String subscriberId = readOptionalString(in); in NetworkIdentitySet() local
95 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered, in NetworkIdentitySet()
DNetworkPolicyManagerService.java1461 final String subscriberId = mSubIdToSubscriberId.valueAt(i); in findRelevantSubIdNL() local
1463 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, in findRelevantSubIdNL()
1696 private boolean maybeUpdateCarrierPolicyCycleAL(int subId, String subscriberId) { in maybeUpdateCarrierPolicyCycleAL() argument
1702 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, true, in maybeUpdateCarrierPolicyCycleAL()
1831 final String subscriberId = mSubIdToSubscriberId.get(subId, null);
1832 if (subscriberId != null) {
1833 ensureActiveCarrierPolicyAL(subId, subscriberId);
1834 maybeUpdateCarrierPolicyCycleAL(subId, subscriberId);
1930 final String subscriberId = mSubIdToSubscriberId.valueAt(i);
1933 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true,
[all …]
DNetworkStatsService.java479 (subscriberId, type) -> service.handleOnCollapsedRatTypeChanged()); in makeSubscriptionsMonitor()
/frameworks/libs/net/common/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()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/
DDataUsageUtils.java78 String subscriberId = telephonyManager.getSubscriberId(subId); in getMobileTemplateForSubId() local
79 return subscriberId != null ? NetworkTemplate.buildTemplateCarrierMetered(subscriberId) in getMobileTemplateForSubId()
80 : NetworkTemplate.buildTemplateMobileAll(subscriberId); in getMobileTemplateForSubId()
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/
DDataIdleTest.java64 String subscriberId = mTelephonyManager.getSubscriberId(); in testMobile() local
65 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId); in testMobile()
/frameworks/base/services/core/java/com/android/server/connectivity/
DMultipathPolicyTracker.java195 final String subscriberId; field in MultipathPolicyTracker.MultipathTracker
227 subscriberId = tele.getSubscriberId(); in MultipathTracker()
229 NetworkTemplate.MATCH_MOBILE, subscriberId, new String[] { subscriberId }, in MultipathTracker()
235 public void onThresholdReached(int networkType, String subscriberId) { in MultipathTracker()
276 subscriberId, in getTemplateMatchingNetworkIdentity()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DGsmCdmaPhoneTest.java335 final String subscriberId = "123456789"; in testGetSubscriberIdForGsmPhone() local
337 doReturn(subscriberId).when(iccRecords).getIMSI(); in testGetSubscriberIdForGsmPhone()
347 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForGsmPhone()
353 final String subscriberId = "abcdefghijk"; in testGetSubscriberIdForCdmaLtePhone() local
355 doReturn(subscriberId).when(iccRecords).getIMSI(); in testGetSubscriberIdForCdmaLtePhone()
365 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForCdmaLtePhone()
371 final String subscriberId = "987654321"; in testGetSubscriberIdForCdmaPhone() local
372 doReturn(subscriberId).when(mSST).getImsi(); in testGetSubscriberIdForCdmaPhone()
380 assertEquals(subscriberId, spyPhone.getSubscriberId()); in testGetSubscriberIdForCdmaPhone()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DPhone.java2064 String subscriberId = sp.getString(CF_ID, null); in getCallForwardingIndicatorFromSharedPref() local
2065 if (subscriberId != null) { in getCallForwardingIndicatorFromSharedPref()
2068 if (subscriberId.equals(currentSubscriberId)) { in getCallForwardingIndicatorFromSharedPref()
3035 String subscriberId = sp.getString(VM_ID, null); in getStoredVoiceMessageCount() local
3036 if (subscriberId != null) { in getStoredVoiceMessageCount()
3039 if (currentSubscriberId != null && currentSubscriberId.equals(subscriberId)) { in getStoredVoiceMessageCount()
DGsmCdmaPhone.java1880 String subscriberId = null; in getSubscriberId() local
1882 subscriberId = mSST.getImsi(); in getSubscriberId()
1888 subscriberId = iccRecords.getIMSI(); in getSubscriberId()
1891 return subscriberId; in getSubscriberId()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DDataConnection.java2849 final String subscriberId = mPhone.getSubscriberId(); in enter() local
2850 if (!TextUtils.isEmpty(subscriberId)) { in enter()
2851 configBuilder.setSubscriberId(subscriberId); in enter()
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java1383 buildTemplateMobileWithRatType(subInfo.subscriberId, ratType); in getDataUsageBytesTransferSnapshotForSub()
4392 final String subscriberId = mTelephony.getSubscriberId(subId);
4393 if (TextUtils.isEmpty(subscriberId) || TextUtils.isEmpty(mcc)
4400 subscriberId, sub.isOpportunistic());
/frameworks/base/services/tests/servicestests/src/com/android/server/net/
DNetworkPolicyManagerServiceTest.java2303 String subscriberId) { in setupTelephonySubscriptionManagers() argument
2310 when(subTelephonyManager.getSubscriberId()).thenReturn(subscriberId); in setupTelephonySubscriptionManagers()