Home
last modified time | relevance | path

Searched refs:carrierId (Results 1 – 25 of 88) sorted by relevance

1234

/packages/modules/Wifi/service/java/com/android/server/wifi/
DWifiPseudonymManager.java160 public Optional<PseudonymInfo> getValidPseudonymInfo(int carrierId) { in getValidPseudonymInfo() argument
161 Optional<PseudonymInfo> optionalPseudonymInfo = getPseudonymInfo(carrierId); in getValidPseudonymInfo()
174 wifiCarrierInfoManager.getMatchingSubId(carrierId)); in getValidPseudonymInfo()
177 Log.e(TAG, "Matched IMSI is null for carrierId " + carrierId); in getValidPseudonymInfo()
181 Log.e(TAG, "IMSI doesn't match for carrierId " + carrierId); in getValidPseudonymInfo()
187 private Optional<PseudonymInfo> getPseudonymInfo(int carrierId) { in getPseudonymInfo() argument
189 pseudonymInfo = mPseudonymInfoArray.get(carrierId); in getPseudonymInfo()
190 vlogd("getPseudonymInfo(" + carrierId + ") = " + pseudonymInfo); in getPseudonymInfo()
210 retrievePseudonymOnFailureTimeoutExpired(wifiConfiguration.carrierId); in retrievePseudonymOnFailureTimeoutExpired()
218 public void retrievePseudonymOnFailureTimeoutExpired(int carrierId) { in retrievePseudonymOnFailureTimeoutExpired() argument
[all …]
DSavedNetworkNominator.java228 int carrierId = network.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID in isSimBasedNetworkAbleToAutoJoin() local
229 ? mWifiCarrierInfoManager.getDefaultDataSimCarrierId() : network.carrierId; in isSimBasedNetworkAbleToAutoJoin()
230 int subId = mWifiCarrierInfoManager.getMatchingSubId(carrierId); in isSimBasedNetworkAbleToAutoJoin()
246 if (mWifiCarrierInfoManager.isOobPseudonymFeatureEnabled(carrierId)) { in isSimBasedNetworkAbleToAutoJoin()
248 if (mWifiPseudonymManager.getValidPseudonymInfo(carrierId).isEmpty()) { in isSimBasedNetworkAbleToAutoJoin()
250 + "subId: " + subId + " carrierId: " + carrierId); in isSimBasedNetworkAbleToAutoJoin()
254 if (!imsiProtected && isImsiProtectionApprovalNeeded(network.creatorUid, carrierId)) { in isSimBasedNetworkAbleToAutoJoin()
274 private boolean isImsiProtectionApprovalNeeded(int creatorUid, int carrierId) { in isImsiProtectionApprovalNeeded() argument
280 if (mWifiCarrierInfoManager.hasUserApprovedImsiPrivacyExemptionForCarrier(carrierId)) { in isImsiProtectionApprovalNeeded()
283 mWifiCarrierInfoManager.sendImsiProtectionExemptionNotificationIfRequired(carrierId); in isImsiProtectionApprovalNeeded()
DWifiCarrierInfoManager.java334 void onImsiProtectedOrUserApprovalChanged(int carrierId, boolean allowAutoJoin); in onImsiProtectedOrUserApprovalChanged() argument
447 int carrierId = intent.getIntExtra(EXTRA_CARRIER_ID, -1);
448 if (carrierName == null || carrierId == -1) {
455 handleUserAllowCarrierExemptionAction(carrierName, carrierId);
458 handleUserDisallowCarrierExemptionAction(carrierName, carrierId);
461 sendImsiPrivacyConfirmationDialog(carrierName, carrierId);
493 private void handleUserAllowCarrierExemptionAction(String carrierName, int carrierId) { in handleUserAllowCarrierExemptionAction() argument
495 setHasUserApprovedImsiPrivacyExemptionForCarrier(true, carrierId); in handleUserAllowCarrierExemptionAction()
502 private void handleUserDisallowCarrierExemptionAction(String carrierName, int carrierId) { in handleUserDisallowCarrierExemptionAction() argument
504 setHasUserApprovedImsiPrivacyExemptionForCarrier(false, carrierId); in handleUserDisallowCarrierExemptionAction()
[all …]
DWifiNetworkSuggestionsManager.java236 public int carrierId = TelephonyManager.UNKNOWN_CARRIER_ID; field in WifiNetworkSuggestionsManager.PerAppInfo
260 public void setCarrierId(int carrierId) { in setCarrierId() argument
261 if (this.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in setCarrierId()
262 this.carrierId = carrierId; in setCarrierId()
271 return hasUserApproved || carrierId != TelephonyManager.UNKNOWN_CARRIER_ID; in isApproved()
328 if (perAppInfo.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in ExtendedWifiNetworkSuggestion()
332 this.wns.wifiConfiguration.carrierId = perAppInfo.carrierId; in ExtendedWifiNetworkSuggestion()
334 this.wns.passpointConfiguration.setCarrierId(perAppInfo.carrierId); in ExtendedWifiNetworkSuggestion()
393 config.carrierId, config.subscriptionId)) { in createInternalWifiConfiguration()
658 public void onImsiProtectedOrUserApprovalChanged(int carrierId, boolean allowAutoJoin) { in onImsiProtectedOrUserApprovalChanged() argument
[all …]
DEapFailureNotifier.java93 int carrierId = config.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID in onEapFailure() local
95 : config.carrierId; in onEapFailure()
98 carrierId); in onEapFailure()
117 mWifiGlobals.getCarrierSpecificEapFailureConfig(carrierId, errorCode); in onEapFailure()
DWifiGlobals.java197 int carrierId, int eapFailureReason) { in getCarrierSpecificEapFailureConfig() argument
198 if (!mCarrierSpecificEapFailureConfigMapPerCarrierId.contains(carrierId)) { in getCarrierSpecificEapFailureConfig()
201 return mCarrierSpecificEapFailureConfigMapPerCarrierId.get(carrierId).get(eapFailureReason); in getCarrierSpecificEapFailureConfig()
228 int carrierId = Integer.parseInt(items[0].trim()); in loadCarrierSpecificEapFailureConfigMap() local
233 if (!mCarrierSpecificEapFailureConfigMapPerCarrierId.contains(carrierId)) { in loadCarrierSpecificEapFailureConfigMap()
234 mCarrierSpecificEapFailureConfigMapPerCarrierId.put(carrierId, in loadCarrierSpecificEapFailureConfigMap()
238 mCarrierSpecificEapFailureConfigMapPerCarrierId.get(carrierId); in loadCarrierSpecificEapFailureConfigMap()
720 int carrierId = mCarrierSpecificEapFailureConfigMapPerCarrierId.keyAt(i); in dump() local
725 pw.println("carrierId=" + carrierId in dump()
DNetworkSuggestionStoreData.java176 int carrierId = entry.getValue().carrierId; in serializeNetworkSuggestionsMap() local
185 XmlUtil.writeNextValue(out, XML_TAG_SUGGESTOR_CARRIER_ID, carrierId); in serializeNetworkSuggestionsMap()
281 int carrierId = TelephonyManager.UNKNOWN_CARRIER_ID; in parseNetworkSuggestionsMap() local
305 carrierId = (int) value; in parseNetworkSuggestionsMap()
327 perAppInfo.carrierId = carrierId; in parseNetworkSuggestionsMap()
DNetworkSuggestionNominator.java319 if (config.carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in isCarrierNetworkAvailableToAutoConnect()
349 int carrierId = config.carrierId; in isSimBasedNetworkAvailableToAutoConnect() local
356 if (mWifiCarrierInfoManager.isOobPseudonymFeatureEnabled(carrierId)) { in isSimBasedNetworkAvailableToAutoConnect()
358 mWifiPseudonymManager.getValidPseudonymInfo(carrierId); in isSimBasedNetworkAvailableToAutoConnect()
363 + "subId: " + subId + " carrierId: " + carrierId); in isSimBasedNetworkAvailableToAutoConnect()
/packages/modules/Wifi/service/java/com/android/server/wifi/entitlement/
DCarrierSpecificServiceEntitlement.java123 public void getImsiPseudonym(int carrierId, @NonNull Handler callbackHandler, in getImsiPseudonym() argument
129 callbackHandler.post(() -> callback.onSuccess(carrierId, in getImsiPseudonym()
132 callbackHandler.post(() -> callback.onFailure(carrierId, in getImsiPseudonym()
136 callbackHandler.post(() -> callback.onFailure(carrierId, in getImsiPseudonym()
139 callbackHandler.post(() -> callback.onFailure(carrierId, REASON_TRANSIENT_FAILURE, in getImsiPseudonym()
142 callbackHandler.post(() -> callback.onFailure(carrierId, in getImsiPseudonym()
275 void onSuccess(int carrierId, PseudonymInfo pseudonymInfo); in onSuccess() argument
283 void onFailure(int carrierId, @FailureReasonCode int reasonCode, String description); in onFailure() argument
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsMetrics.java166 int netCapability, int slotId, DataConnectionChangedInfo info, int carrierId) { in reportAtomForDataConnectionChanged() argument
169 netCapability, slotId, info, carrierId)); in reportAtomForDataConnectionChanged()
171 netCapability, slotId, info, carrierId)); in reportAtomForDataConnectionChanged()
188 int carrierId) { in reportAtomForRestrictions() argument
190 netCapability, slotId, wlanRestrictions, wwanRestrictions, carrierId)); in reportAtomForRestrictions()
325 DataConnectionChangedInfo info, int carrierId) { in procDataConnectionChangedForHandoverPingPong() argument
375 writeQnsHandoverPingPong(slotId, pingpongCount, carrierId); in procDataConnectionChangedForHandoverPingPong()
381 netCapability, slotId, info, carrierId); in procDataConnectionChangedForHandoverPingPong()
392 List<Integer> wlanRestrictions, List<Integer> wwanRestrictions, int carrierId) { in procRestrictionsForFallback() argument
420 carrierId, in procRestrictionsForFallback()
[all …]
/packages/modules/Connectivity/service/src/com/android/server/connectivity/
DKeepaliveStatsTracker.java102 public final int carrierId; field in KeepaliveStatsTracker.KeepaliveStats
156 int carrierId, in KeepaliveStats() argument
162 this.carrierId = carrierId; in KeepaliveStats()
230 public final int carrierId; field in KeepaliveStatsTracker.LifetimeKey
234 LifetimeKey(int carrierId, int transportTypes, int intervalMs) { in LifetimeKey() argument
235 this.carrierId = carrierId; in LifetimeKey()
247 return carrierId == that.carrierId && transportTypes == that.transportTypes in equals()
253 return carrierId + 3 * transportTypes + 5 * intervalMs; in hashCode()
588 keepaliveStats.carrierId, in addToAggregateKeepaliveLifetime()
598 .setCarrierId(keepaliveStats.carrierId) in addToAggregateKeepaliveLifetime()
/packages/apps/Settings/src/com/android/settings/datausage/lib/
DAppDataUsageRepository.kt45 fun getAppPercent(carrierId: Int?, startTime: Long, endTime: Long): List<Pair<AppItem, Int>> { in <lambda>()
47 return getAppPercent(carrierId, buckets) in <lambda>()
51 fun getAppPercent(carrierId: Int?, buckets: List<Bucket>): List<Pair<AppItem, Int>> { in <lambda>()
78 val filteredItems = filterItems(carrierId, items).sorted() in <lambda>()
86 private fun filterItems(carrierId: Int?, items: List<AppItem>): List<AppItem> { in <lambda>()
89 if (carrierId != null && carrierId !in context.resources.getIntArray( in <lambda>()
/packages/apps/Settings/src/com/android/settings/network/telephony/
DDeleteSimProfilePreferenceController.kt34 private var carrierId: Int = TelephonyManager.UNKNOWN_CARRIER_ID variable
43 carrierId = it.carrierId in init()
74 carrierId) in deleteSim()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/atoms/
DAtomsQnsHandoverPingPongInfo.java51 public AtomsQnsHandoverPingPongInfo(int countHandoverPingPong, int carrierId, int slotIndex) { in AtomsQnsHandoverPingPongInfo() argument
53 mCarrierId = carrierId; in AtomsQnsHandoverPingPongInfo()
119 public void setCarrierId(int carrierId) { in setCarrierId() argument
120 mCarrierId = carrierId; in setCarrierId()
DAtomsQnsFallbackRestrictionChangedInfo.java69 int carrierId, in AtomsQnsFallbackRestrictionChangedInfo() argument
75 mCarrierId = carrierId; in AtomsQnsFallbackRestrictionChangedInfo()
160 public void setCarrierId(int carrierId) { in setCarrierId() argument
161 mCarrierId = carrierId; in setCarrierId()
DAtomsQnsRatPreferenceMismatchInfo.java63 int carrierId, in AtomsQnsRatPreferenceMismatchInfo() argument
68 mCarrierId = carrierId; in AtomsQnsRatPreferenceMismatchInfo()
155 public void setCarrierId(int carrierId) { in setCarrierId() argument
156 mCarrierId = carrierId; in setCarrierId()
/packages/services/Telephony/src/com/android/phone/
DCarrierConfigLoader.java343 final CarrierIdentifier carrierId = getCarrierIdentifierForPhoneId(phoneId); in handleMessage() local
366 carrierId, config); in handleMessage()
377 carrierService.getCarrierConfig(phoneId, carrierId, resultReceiver); in handleMessage()
380 + ", carrierId=" + carrierId.getSpecificCarrierId()); in handleMessage()
468 final CarrierIdentifier carrierId = getCarrierIdentifierForPhoneId(phoneId); in handleMessage() local
493 phoneId, carrierId, config); in handleMessage()
512 carrierService.getCarrierConfig(phoneId, carrierId, resultReceiver); in handleMessage()
515 + ", carrierId=" + carrierId.getSpecificCarrierId()); in handleMessage()
804 int carrierId = getSpecificCarrierIdForPhoneId(phoneId); in updateSubscriptionDatabase() local
838 int carrierId = TelephonyManager.UNKNOWN_CARRIER_ID; in broadcastConfigChangedIntent() local
[all …]
/packages/services/Telephony/src/com/android/services/telephony/domainselection/
DDataConnectionStateHelper.java117 (slotIndex, subId, carrierId, specificCarrierId) -> onCarrierConfigChanged(
118 slotIndex, subId, carrierId);
212 private void onCarrierConfigChanged(int slotIndex, int subId, int carrierId) { in onCarrierConfigChanged() argument
214 + ", subId=" + subId + ", carrierId=" + carrierId); in onCarrierConfigChanged()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnRepository.kt183 val carrierId = subInfo.carrierId in Context() constant
184 return if (carrierId != TelephonyManager.UNKNOWN_CARRIER_ID) { in Context()
185 mapOf(Telephony.Carriers.CARRIER_ID to carrierId) in Context()
/packages/modules/Wifi/framework/java/android/net/wifi/
DWifiNetworkSuggestion.java535 public @NonNull Builder setCarrierId(int carrierId) { in setCarrierId() argument
536 mCarrierId = carrierId; in setCarrierId()
1090 wifiConfiguration.carrierId = mCarrierId; in buildWifiConfiguration()
1134 wifiConfiguration.carrierId = mCarrierId; in buildWifiConfigurationForPasspoint()
1426 wifiConfiguration.subscriptionId, wifiConfiguration.carrierId, in hashCode()
1449 && this.wifiConfiguration.carrierId == lhs.wifiConfiguration.carrierId in equals()
1480 .append(", carrierId=").append(wifiConfiguration.carrierId) in toString()
1707 return wifiConfiguration.carrierId; in getCarrierId()
/packages/modules/Connectivity/tests/unit/java/com/android/server/connectivity/
DKeepaliveStatsTrackerTest.java156 public final int carrierId; field in KeepaliveStatsTrackerTest.KeepaliveCarrierStats
163 int carrierId, in KeepaliveCarrierStats() argument
168 this.carrierId = carrierId; in KeepaliveCarrierStats()
183 return carrierId == that.carrierId && transportTypes == that.transportTypes in equals()
189 return carrierId + 3 * transportTypes + 5 * intervalMs; in hashCode()
212 private SubscriptionInfo makeSubInfoMock(int subId, int carrierId) { in makeSubInfoMock() argument
215 doReturn(carrierId).when(subInfo).getCarrierId(); in makeSubInfoMock()
389 if (expectKeepaliveCarrierStats.carrierId == keepaliveLifetimeForCarrier.getCarrierId() in findAndAssertCarrierLifetimeMetrics()
/packages/apps/CellBroadcastReceiver/src/com/android/cellbroadcastreceiver/
DCellBroadcastReceiver.java395 int carrierId = tm.createForSubscriptionId(subId).getSimCarrierId(); in resetSettingsAsNeeded() local
396 if (carrierId == TelephonyManager.UNKNOWN_CARRIER_ID) { in resetSettingsAsNeeded()
406 saveCarrierIdForDefaultSub(carrierId); in resetSettingsAsNeeded()
423 if (carrierId != previousCarrierId) { in resetSettingsAsNeeded()
424 saveCarrierIdForDefaultSub(carrierId); in resetSettingsAsNeeded()
428 Log.d(TAG, "reset settings as needed for subId=" + subId + ", carrierId=" + carrierId); in resetSettingsAsNeeded()
446 public void saveCarrierIdForDefaultSub(int carrierId) { in saveCarrierIdForDefaultSub() argument
447 getDefaultSharedPreferences().edit().putInt(CARRIER_ID_FOR_DEFAULT_SUB_PREF, carrierId) in saveCarrierIdForDefaultSub()
/packages/modules/Wifi/service/tests/wifitests/src/com/android/server/wifi/
DWifiCarrierInfoManagerTest.java669 simConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapSim()
676 peapSimConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapSim()
693 akaConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapAka()
700 peapAkaConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapAka()
717 akaPConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapAkaPrime()
724 peapAkaPConfig.carrierId = DATA_CARRIER_ID; in getSimIdentityEapAkaPrime()
765 config.carrierId = DATA_CARRIER_ID; in getEncryptedIdentity_WithRfc4648()
787 config.carrierId = DATA_CARRIER_ID; in getEncryptedIdentityWithOobPseudonymEnabled()
825 config.carrierId = DATA_CARRIER_ID; in getEncryptedIdentityFailed()
844 config.carrierId = DATA_CARRIER_ID; in getSimIdentity2DigitMnc()
[all …]
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanCarrierConfigChangeListener.java84 int logicalSlotIndex, int subscriptionId, int carrierId, int specificCarrierId) { in onCarrierConfigChanged() argument
88 context, logicalSlotIndex, subscriptionId, carrierId); in onCarrierConfigChanged()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DCarrierIdProviderTest.java349 int carrierId = -1; in testUpdateCurrentSubscription() local
357 carrierId = c.getInt(0); in testUpdateCurrentSubscription()
362 assertEquals(test_cid, carrierId); in testUpdateCurrentSubscription()
382 carrierId = c.getInt(0); in testUpdateCurrentSubscription()
387 assertEquals(test_cid, carrierId); in testUpdateCurrentSubscription()

1234