/frameworks/base/core/java/android/net/ |
H A D | NetworkMisc.java | 66 public String subscriberId; field in class:NetworkMisc 76 subscriberId = nm.subscriberId; 91 out.writeString(subscriberId); 102 networkMisc.subscriberId = in.readString();
|
H A D | NetworkState.java | 37 public final String subscriberId; field in class:NetworkState 41 NetworkCapabilities networkCapabilities, Network network, String subscriberId, 47 this.subscriberId = subscriberId; 66 subscriberId = in.readString(); 81 out.writeString(subscriberId); 40 NetworkState(NetworkInfo networkInfo, LinkProperties linkProperties, NetworkCapabilities networkCapabilities, Network network, String subscriberId, String networkId) argument
|
H A D | NetworkIdentity.java | 64 int type, int subType, String subscriberId, String networkId, boolean roaming, 68 mSubscriberId = subscriberId; 107 builder.append(", subscriberId=").append(scrubSubscriberId(mSubscriberId)); 169 public static String scrubSubscriberId(String subscriberId) { argument 171 return subscriberId; 172 } else if (subscriberId != null) { 174 return subscriberId.substring(0, Math.min(6, subscriberId.length())) + "..."; 183 public static String[] scrubSubscriberId(String[] subscriberId) { argument 184 if (subscriberId 63 NetworkIdentity( int type, int subType, String subscriberId, String networkId, boolean roaming, boolean metered, boolean defaultNetwork) argument [all...] |
H A D | NetworkTemplate.java | 99 public static NetworkTemplate buildTemplateMobileAll(String subscriberId) { argument 100 return new NetworkTemplate(MATCH_MOBILE, subscriberId, null); 176 public NetworkTemplate(int matchRule, String subscriberId, String networkId) { argument 177 this(matchRule, subscriberId, new String[] { subscriberId }, networkId); 180 public NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, argument 182 this(matchRule, subscriberId, matchSubscriberIds, networkId, METERED_ALL, ROAMING_ALL, 186 public NetworkTemplate(int matchRule, String subscriberId, String[] matchSubscriberIds, argument 189 mSubscriberId = subscriberId; 233 builder.append(", subscriberId 356 matchesSubscriberId(String subscriberId) argument [all...] |
/frameworks/base/core/java/android/app/usage/ |
H A D | NetworkStatsManager.java | 191 * @param subscriberId If applicable, the subscriber id of the network interface. 199 public Bucket querySummaryForDevice(int networkType, String subscriberId, argument 203 template = createTemplate(networkType, subscriberId); 224 * @param subscriberId If applicable, the subscriber id of the network interface. 232 public Bucket querySummaryForUser(int networkType, String subscriberId, long startTime, argument 236 template = createTemplate(networkType, subscriberId); 261 * @param subscriberId If applicable, the subscriber id of the network interface. 269 public NetworkStats querySummary(int networkType, String subscriberId, long startTime, argument 273 template = createTemplate(networkType, subscriberId); 291 public NetworkStats queryDetailsForUid(int networkType, String subscriberId, argument 302 queryDetailsForUidTag(int networkType, String subscriberId, long startTime, long endTime, int uid, int tag) argument 336 queryDetailsForUidTagState(int networkType, String subscriberId, long startTime, long endTime, int uid, int tag, int state) argument 379 queryDetails(int networkType, String subscriberId, long startTime, long endTime) argument 431 registerUsageCallback(int networkType, String subscriberId, long thresholdBytes, UsageCallback callback) argument 452 registerUsageCallback(int networkType, String subscriberId, long thresholdBytes, UsageCallback callback, @Nullable Handler handler) argument 491 onThresholdReached(int networkType, String subscriberId) argument 499 createTemplate(int networkType, String subscriberId) argument 523 CallbackHandler(Looper looper, int networkType, String subscriberId, UsageCallback callback) argument [all...] |
/frameworks/base/cmds/statsd/src/subscriber/ |
H A D | SubscriberReporter.cpp | 33 int64_t subscriberId, 37 mIntentMap[configKey][subscriberId] = intentSender; 41 int64_t subscriberId) { 46 subscriberMapIt->second.erase(subscriberId); 78 int64_t subscriberId = subscription.broadcast_subscriber_details().subscriber_id(); local 91 auto it2 = it1->second.find(subscriberId); 93 ALOGW("Cannot inform subscriber of config %s for missing subscriberId %lld ", 94 configKey.ToString().c_str(), (long long)subscriberId); 32 setBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId, const sp<IBinder>& intentSender) argument 40 unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId) argument
|
H A D | SubscriberReporter.h | 61 * Stores the given intentSender, associating it with the given (configKey, subscriberId) pair. 65 int64_t subscriberId, 69 * Erases any intentSender information from the given (configKey, subscriberId) pair. 71 void unsetBroadcastSubscriber(const ConfigKey& configKey, int64_t subscriberId); 78 * given (configKey, subscriberId) pair by setBroadcastSubscriber.
|
/frameworks/base/core/java/android/os/ |
H A D | IStatsManager.aidl | 128 * information to the given subscriberId within the given config. 132 * a BroadcastSubscriber with id subscriberId. This function links the given intentSender with 133 * that subscriberId (for that config), so that this intentSender is used to send the broadcast 144 void setBroadcastSubscriber(long configKey, long subscriberId, in IBinder intentSender, 148 * Undoes setBroadcastSubscriber() for the (configKey, subscriberId) pair. 149 * Any broadcasts associated with subscriberId will henceforth not be sent. 154 void unsetBroadcastSubscriber(long configKey, long subscriberId, in String packageName);
|
/frameworks/base/core/java/android/app/ |
H A D | StatsManager.java | 169 * subscriberId within the given config. 173 * a BroadcastSubscriber with id subscriberId. This function links the given pendingIntent with 174 * that subscriberId (for that config), so that this pendingIntent is used to send the broadcast 190 * associated with the given subscriberId. May be null, in which case 191 * it undoes any previous setting of this subscriberId. 193 * @param subscriberId ID of the subscriber, as used in the config. 198 PendingIntent pendingIntent, long configKey, long subscriberId) 206 service.setBroadcastSubscriber(configKey, subscriberId, intentSender, 209 service.unsetBroadcastSubscriber(configKey, subscriberId, 227 long configKey, long subscriberId, PendingInten 197 setBroadcastSubscriber( PendingIntent pendingIntent, long configKey, long subscriberId) argument 226 setBroadcastSubscriber( long configKey, long subscriberId, PendingIntent pendingIntent) argument [all...] |
/frameworks/base/tests/DataIdleTest/src/com/android/tests/dataidle/ |
H A D | DataIdleTest.java | 64 String subscriberId = mTelephonyManager.getSubscriberId(); 65 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId);
|
/frameworks/base/services/core/java/com/android/server/net/ |
H A D | NetworkIdentitySet.java | 56 final String subscriberId = readOptionalString(in); 87 add(new NetworkIdentity(type, subType, subscriberId, networkId, roaming, metered,
|
H A D | NetworkPolicyManagerService.java | 335 private static final String ATTR_SUBSCRIBER_ID = "subscriberId"; 524 /** Map from subId to subscriberId as of last update */ 527 /** Set of all merged subscriberId as of last update */ 1270 final String subscriberId = mSubIdToSubscriberId.valueAt(i); 1272 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, 1462 private boolean maybeUpdateMobilePolicyCycleAL(int subId, String subscriberId) { argument 1468 TelephonyManager.NETWORK_TYPE_UNKNOWN, subscriberId, null, false, true, true); 1596 final String subscriberId = mSubIdToSubscriberId.get(subId, null); 1597 if (subscriberId != null) { 1598 ensureActiveMobilePolicyAL(subId, subscriberId); 1977 ensureActiveMobilePolicyAL(int subId, String subscriberId) argument 2014 buildDefaultMobilePolicy(int subId, String subscriberId) argument [all...] |
/frameworks/base/tests/net/java/android/app/usage/ |
H A D | NetworkStatsManagerTest.java | 72 final String subscriberId = "subid"; 116 assertEquals(subscriberId, template.getSubscriberId()); 127 assertEquals(subscriberId, template.getSubscriberId()); 133 ConnectivityManager.TYPE_MOBILE, subscriberId, startTime, endTime); 188 // No subscriberId: MATCH_MOBILE_WILDCARD template 196 // No subscriberId: MATCH_MOBILE_WILDCARD template
|
/frameworks/base/services/core/java/com/android/server/connectivity/ |
H A D | MultipathPolicyTracker.java | 189 final String subscriberId; field in class:MultipathPolicyTracker.MultipathTracker 220 subscriberId = tele.getSubscriberId(); 222 NetworkTemplate.MATCH_MOBILE, subscriberId, new String[] { subscriberId }, 227 public void onThresholdReached(int networkType, String subscriberId) { 268 subscriberId,
|
H A D | NetworkAgentInfo.java | 475 final String subscriberId = (networkMisc != null) ? networkMisc.subscriberId : null; 478 new NetworkCapabilities(networkCapabilities), network, subscriberId, null);
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/net/ |
H A D | DataUsageController.java | 112 final String subscriberId = getActiveSubscriberId(mContext); 113 if (subscriberId == null) { 116 NetworkTemplate template = NetworkTemplate.buildTemplateMobileAll(subscriberId);
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | GsmCdmaPhoneTest.java | 186 final String subscriberId = "123456789"; 188 doReturn(subscriberId).when(iccRecords).getIMSI(); 198 assertEquals(subscriberId, spyPhone.getSubscriberId()); 204 final String subscriberId = "abcdefghijk"; 206 doReturn(subscriberId).when(iccRecords).getIMSI(); 216 assertEquals(subscriberId, spyPhone.getSubscriberId()); 222 final String subscriberId = "987654321"; 223 doReturn(subscriberId).when(mSST).getImsi(); 231 assertEquals(subscriberId, spyPhone.getSubscriberId());
|
/frameworks/base/cmds/statsd/src/ |
H A D | StatsService.h | 124 * Binder call to associate the given config's subscriberId with the given intentSender. 128 int64_t subscriberId, 133 * Binder call to unassociate the given config's subscriberId with any intentSender. 136 int64_t subscriberId,
|
H A D | StatsService.cpp | 971 int64_t subscriberId, 980 .setBroadcastSubscriber(configKey, subscriberId, intentSender); 985 int64_t subscriberId, 993 .unsetBroadcastSubscriber(configKey, subscriberId); 970 setBroadcastSubscriber(int64_t configId, int64_t subscriberId, const sp<android::IBinder>& intentSender, const String16& packageName) argument 984 unsetBroadcastSubscriber(int64_t configId, int64_t subscriberId, const String16& packageName) argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
H A D | Phone.java | 1773 String subscriberId = sp.getString(CF_ID, null); 1774 if (subscriberId != null) { 1777 if (subscriberId.equals(currentSubscriberId)) { 1785 "DISABLED as status for matching subscriberId not found"); 2326 String subscriberId = sp.getString(VM_ID, null); 2327 if (subscriberId != null) { 2330 if (currentSubscriberId != null && currentSubscriberId.equals(subscriberId)) { 2338 "matching subscriberId not found");
|
H A D | GsmCdmaPhone.java | 1516 String subscriberId = null; 1518 subscriberId = mSST.getImsi(); 1524 subscriberId = iccRecords.getIMSI(); 1527 return subscriberId;
|
/frameworks/base/tests/net/java/com/android/server/net/ |
H A D | NetworkStatsServiceTest.java | 1242 private static NetworkState buildMobile3gState(String subscriberId) { argument 1243 return buildMobile3gState(subscriberId, false /* isRoaming */); 1246 private static NetworkState buildMobile3gState(String subscriberId, boolean isRoaming) { argument 1256 return new NetworkState(info, prop, capabilities, MOBILE_NETWORK, subscriberId, null);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
H A D | DataConnection.java | 1718 misc.subscriberId = mPhone.getSubscriberId();
|