/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | TransportManager.java | 210 public final @ApnType int apnType; field in TransportManager.HandoverParams 215 public HandoverParams(int apnType, int targetTransport, HandoverCallback callback) { in HandoverParams() argument 216 this.apnType = apnType; in HandoverParams() 264 int apnType = newNetworks.apnType; in isHandoverNeeded() local 266 int[] currentNetworkList = mCurrentAvailableNetworks.get(apnType); in isHandoverNeeded() 288 if (mPendingHandoverApns.get(newNetworks.apnType) in isHandoverNeeded() 298 .equals(getCurrentTransport(newNetworks.apnType)); in isHandoverNeeded() 319 private synchronized void setCurrentTransport(@ApnType int apnType, int transport) { in setCurrentTransport() argument 320 mCurrentTransports.put(apnType, transport); in setCurrentTransport() 321 logl("setCurrentTransport: apnType=" + ApnSetting.getApnTypeString(apnType) in setCurrentTransport() [all …]
|
D | ApnContext.java | 115 public ApnContext(Phone phone, String apnType, String logTag, DcTracker tracker, in ApnContext() argument 118 mApnType = apnType; in ApnContext() 125 mRetryManager = new RetryManager(phone, apnType); in ApnContext() 554 int apnType = ApnSetting.TYPE_NONE; in getApnTypeFromNetworkRequest() local 558 apnType = ApnSetting.TYPE_DEFAULT; in getApnTypeFromNetworkRequest() 561 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest() 562 apnType = ApnSetting.TYPE_MMS; in getApnTypeFromNetworkRequest() 565 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest() 566 apnType = ApnSetting.TYPE_SUPL; in getApnTypeFromNetworkRequest() 569 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest() [all …]
|
D | DcRequest.java | 36 public final @ApnType int apnType; field in DcRequest 42 apnType = type; in DcRequest() 56 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in create() local 57 final ApnConfigType apnConfigType = apnConfigTypeRepository.getByType(apnType); in create() 64 return new DcRequest(networkRequest, apnType, apnConfigType.getPriority()); in create() 85 return networkRequest.toString() + ", priority=" + priority + ", apnType=" + apnType; in toString()
|
D | ApnSettingUtils.java | 119 public static boolean isMeteredApnType(@ApnType int apnType, Phone phone) { in isMeteredApnType() argument 165 if (meteredApnSet.contains(ApnSetting.getApnTypeString(apnType))) { in isMeteredApnType() 166 if (DBG) Rlog.d(LOG_TAG, ApnSetting.getApnTypeString(apnType) + " is metered."); in isMeteredApnType() 168 } else if (apnType == ApnSetting.TYPE_ALL) { in isMeteredApnType() 177 if (DBG) Rlog.d(LOG_TAG, ApnSetting.getApnTypeString(apnType) + " is not metered."); in isMeteredApnType() 193 for (int apnType : apn.getApnTypes()) { in isMetered() 195 if (isMeteredApnType(apnType, phone)) { in isMetered()
|
D | DataEnabledOverride.java | 115 private OverrideRule(int apnType, int requiredConditions) { in OverrideRule() argument 116 mApnType = apnType; in OverrideRule() 127 boolean isSatisfiedByConditions(@ApnType int apnType, @Condition int providedConditions) { in isSatisfiedByConditions() argument 128 return (mApnType == apnType || mApnType == ApnSetting.TYPE_ALL) in isSatisfiedByConditions() 368 private boolean canSatisfyAnyRule(@ApnType int apnType, in canSatisfyAnyRule() argument 371 if (rule.isSatisfiedByConditions(apnType, providedConditions)) { in canSatisfyAnyRule() 421 public boolean shouldOverrideDataEnabledSettings(Phone phone, @ApnType int apnType) { in shouldOverrideDataEnabledSettings() argument 422 return canSatisfyAnyRule(apnType, getCurrentConditions(phone)); in shouldOverrideDataEnabledSettings()
|
D | TelephonyNetworkFactory.java | 180 onDataHandoverNeeded(handoverParams.apnType, handoverParams.targetTransport, in handleMessage() 211 int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in getTransportTypeFromNetworkRequest() local 212 return mTransportManager.getCurrentTransport(apnType); in getTransportTypeFromNetworkRequest() 328 private void onDataHandoverNeeded(@ApnType int apnType, int targetTransport, in onDataHandoverNeeded() argument 330 log("onDataHandoverNeeded: apnType=" + ApnSetting.getApnTypeString(apnType) in onDataHandoverNeeded() 333 if (mTransportManager.getCurrentTransport(apnType) == targetTransport) { in onDataHandoverNeeded() 334 log("APN type " + ApnSetting.getApnTypeString(apnType) + " is already on " in onDataHandoverNeeded() 344 if (ApnContext.getApnTypeFromNetworkRequest(networkRequest) == apnType in onDataHandoverNeeded() 350 ApnSetting.getApnTypeString(apnType)); in onDataHandoverNeeded() 359 log("Requested handover " + ApnSetting.getApnTypeString(apnType) + " to " in onDataHandoverNeeded()
|
D | DcTracker.java | 490 String apnType = apnContextforRetry.getApnType(); in onDataReconnect() local 498 ApnContext apnContext = mApnContexts.get(apnType); in onDataReconnect() 501 log("onDataReconnect: mState=" + mState + " reason=" + reason + " apnType=" + apnType in onDataReconnect() 895 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in requestNetwork() local 896 final ApnContext apnContext = mApnContextsByType.get(apnType); in requestNetwork() 903 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in releaseNetwork() local 904 final ApnContext apnContext = mApnContextsByType.get(apnType); in releaseNetwork() 1052 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument 1053 ApnContext apnContext = mApnContexts.get(apnType); in getLinkProperties() 1057 if (DBG) log("return link properties for " + apnType); in getLinkProperties() [all …]
|
D | AccessNetworksManager.java | 113 public final @ApnType int apnType; field in AccessNetworksManager.QualifiedNetworks 116 public QualifiedNetworks(@ApnType int apnType, int[] qualifiedNetworks) { in QualifiedNetworks() argument 117 this.apnType = apnType; in QualifiedNetworks() 128 + ApnSetting.getApnTypeString(apnType) in toString()
|
D | DataEnabledSettings.java | 462 public synchronized boolean isDataEnabled(int apnType) { in isDataEnabled() argument 469 .shouldOverrideDataEnabledSettings(mPhone, apnType); in isDataEnabled()
|
/frameworks/base/core/java/com/android/internal/telephony/ |
D | ITelephonyRegistry.aidl | 68 int phoneId, int subId, String apnType, in PreciseDataConnectionState preciseState); in notifyDataConnectionForSubscriber() argument 70 void notifyDataConnectionFailed(String apnType); in notifyDataConnectionFailed() argument 71 void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType); in notifyDataConnectionFailedForSubscriber() argument 81 void notifyPreciseDataConnectionFailed(int phoneId, int subId, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TestPhoneNotifier.java.broken | 51 public void notifyDataConnection(Phone sender, String reason, String apnType) { 54 public void notifyDataConnection(Phone sender, String reason, String apnType, 58 public void notifyDataConnectionFailed(Phone sender, String reason, String apnType) {
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RetryManager.java | 234 public RetryManager(Phone phone, String apnType) { in RetryManager() argument 236 mApnType = apnType; in RetryManager() 367 String apnType = splitStr[0].trim(); in configureRetry() local 369 if (apnType.equals(mApnType)) { in configureRetry() 374 } else if (apnType.equals(OTHERS_APN_TYPE)) { in configureRetry()
|
D | PhoneNotifier.java | 62 Phone sender, String apnType, PreciseDataConnectionState preciseState); in notifyDataConnection() argument 75 void notifyDataConnectionFailed(Phone sender, String apnType, String apn, in notifyDataConnectionFailed() argument
|
D | Phone.java | 2524 public void notifyDataConnection(String apnType) { in notifyDataConnection() argument 2525 mNotifier.notifyDataConnection(this, apnType, getPreciseDataConnectionState(apnType)); in notifyDataConnection() 2534 for (String apnType : dct.getConnectedApnTypes()) { in notifyAllActiveDataConnections() 2536 this, apnType, getPreciseDataConnectionState(apnType)); in notifyAllActiveDataConnections() 2569 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() argument 2574 public @Nullable PreciseDataConnectionState getPreciseDataConnectionState(String apnType) { in getPreciseDataConnectionState() argument 3332 public String getActiveApnHost(String apnType) { in getActiveApnHost() argument 3335 ApnSetting.getApnTypesBitmaskFromString(apnType)); in getActiveApnHost() 3337 return getDcTracker(transportType).getActiveApnString(apnType); in getActiveApnHost() 3347 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument [all …]
|
D | DefaultPhoneNotifier.java | 136 Phone sender, String apnType, PreciseDataConnectionState preciseState) { in notifyDataConnection() argument 142 phoneId, subId, apnType, preciseState); in notifyDataConnection() 181 public void notifyDataConnectionFailed(Phone sender, String apnType, in notifyDataConnectionFailed() argument 184 sender.getPhoneId(), apnType, apn, failCause); in notifyDataConnectionFailed() local
|
D | PhoneInternalInterface.java | 243 DataState getDataConnectionState(String apnType); in getDataConnectionState() argument 253 PreciseDataConnectionState getPreciseDataConnectionState(String apnType); in getPreciseDataConnectionState() argument
|
D | GsmCdmaPhone.java | 625 private @NonNull DcTracker getActiveDcTrackerForApn(@NonNull String apnType) { in getActiveDcTrackerForApn() argument 627 ApnSetting.getApnTypesBitmaskFromString(apnType)); in getActiveDcTrackerForApn() 632 public PreciseDataConnectionState getPreciseDataConnectionState(String apnType) { in getPreciseDataConnectionState() argument 638 && apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY); in getPreciseDataConnectionState() 645 ApnSetting.getApnTypesBitmaskFromString(apnType), in getPreciseDataConnectionState() 646 apnType, null, DataFailCause.NONE, null); in getPreciseDataConnectionState() 650 final DcTracker dctForApn = getActiveDcTrackerForApn(apnType); in getPreciseDataConnectionState() 659 return dctForApn.getPreciseDataConnectionState(apnType, isDataSuspended(), networkType); in getPreciseDataConnectionState() 667 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() argument 677 (isPhoneTypeGsm() && !apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY)))) { in getDataConnectionState() [all …]
|
/frameworks/base/core/java/android/telephony/ |
D | TelephonyRegistryManager.java | 353 String apnType, @Nullable PreciseDataConnectionState preciseState) { in notifyDataConnectionForSubscriber() argument 356 slotIndex, subId, apnType, preciseState); in notifyDataConnectionForSubscriber() 535 public void notifyPreciseDataConnectionFailed(int subId, int slotIndex, String apnType, in notifyPreciseDataConnectionFailed() argument 538 sRegistry.notifyPreciseDataConnectionFailed(slotIndex, subId, apnType, apn, failCause); in notifyPreciseDataConnectionFailed()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | TransportManagerTest.java | 112 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded() 138 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded() 221 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testBackToBackHandoverNeeded()
|
/frameworks/base/services/core/java/com/android/server/ |
D | TelephonyRegistry.java | 1690 int phoneId, int subId, String apnType, PreciseDataConnectionState preciseState) { in notifyDataConnectionForSubscriber() argument 1709 + "' apnType=" + apnType + " networkType=" + networkType in notifyDataConnectionForSubscriber() 1716 if (PhoneConstants.APN_TYPE_DEFAULT.equals(apnType) in notifyDataConnectionForSubscriber() 1749 needsNotify = mPreciseDataConnectionStates.get(phoneId).remove(apnType) != null; in notifyDataConnectionForSubscriber() 1753 mPreciseDataConnectionStates.get(phoneId).put(apnType, preciseState); in notifyDataConnectionForSubscriber() 1774 broadcastDataConnectionStateChanged(state, apn, apnType, subId); in notifyDataConnectionForSubscriber() 1781 public void notifyDataConnectionFailed(String apnType) { in notifyDataConnectionFailed() argument 1785 public void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType) { in notifyDataConnectionFailedForSubscriber() argument 1791 + " apnType=" + apnType); in notifyDataConnectionFailedForSubscriber() 1796 apnType, in notifyDataConnectionFailedForSubscriber() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/vendor/ |
D | VendorPhoneSwitcher.java | 337 dcRequest.apnType); in onEvaluate() 382 protected int phoneIdForRequest(NetworkRequest netRequest, int apnType) { in phoneIdForRequest() argument 403 if ((ApnSetting.TYPE_IMS == apnType) && mManualDdsSwitch in phoneIdForRequest() 638 dcRequest.apnType); in isPhoneIdValidForRetry()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/ |
D | SipPhoneBase.java | 439 public boolean isDataAllowed(int apnType) { in isDataAllowed() argument 480 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
D | ImsPhoneBase.java | 475 public boolean isDataAllowed(int apnType) { in isDataAllowed() argument 513 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | ITelephony.aidl | 1036 String[] getPcscfAddress(String apnType, String callingPackage, String callingFeatureId); in getPcscfAddress() argument 2218 boolean isDataEnabledForApn(int apnType, int subId, String callingPackage); in isDataEnabledForApn() argument 2220 boolean isApnMetered(int apnType, int subId); in isApnMetered() argument
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | ApnSetting.java | 1372 String apnType = getApnTypesStringFromBitmask(mApnTypeBitmask); in toContentValues() local 1373 apnValue.put(Telephony.Carriers.TYPE, nullToEmpty(apnType)); in toContentValues() 1426 public static String getApnTypeString(int apnType) { in getApnTypeString() argument 1427 if (apnType == TYPE_ALL) { in getApnTypeString() 1430 String apnTypeString = APN_TYPE_INT_MAP.get(apnType); in getApnTypeString()
|