Home
last modified time | relevance | path

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

/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DTransportManager.java206 public final @ApnType int apnType; field in TransportManager.HandoverParams
209 HandoverParams(int apnType, int targetTransport, HandoverCallback callback) { in HandoverParams() argument
210 this.apnType = apnType; in HandoverParams()
258 int apnType = newNetworks.apnType; in isHandoverNeeded() local
260 int[] currentNetworkList = mCurrentAvailableNetworks.get(apnType); in isHandoverNeeded()
282 if (mPendingHandoverApns.get(newNetworks.apnType) in isHandoverNeeded()
292 .equals(getCurrentTransport(newNetworks.apnType)); in isHandoverNeeded()
313 private synchronized void setCurrentTransport(@ApnType int apnType, int transport) { in setCurrentTransport() argument
314 mCurrentTransports.put(apnType, transport); in setCurrentTransport()
315 logl("setCurrentTransport: apnType=" + ApnSetting.getApnTypeString(apnType) in setCurrentTransport()
[all …]
DDcRequest.java30 public final @ApnType int apnType; field in DcRequest
35 apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in DcRequest()
36 priority = priorityForApnType(apnType); in DcRequest()
40 return networkRequest.toString() + ", priority=" + priority + ", apnType=" + apnType; in toString()
68 final int apnType = ApnContext.getApnTypeFromNetworkType(networkConfig.type); in initApnPriorities() local
69 sApnPriorityMap.put(apnType, networkConfig.priority); in initApnPriorities()
75 private int priorityForApnType(int apnType) { in priorityForApnType() argument
76 Integer priority = sApnPriorityMap.get(apnType); in priorityForApnType()
DApnContext.java113 public ApnContext(Phone phone, String apnType, String logTag, NetworkConfig config, in ApnContext() argument
116 mApnType = apnType; in ApnContext()
124 mRetryManager = new RetryManager(phone, apnType); in ApnContext()
571 int apnType = ApnSetting.TYPE_NONE; in getApnTypeFromNetworkRequest() local
575 apnType = ApnSetting.TYPE_DEFAULT; in getApnTypeFromNetworkRequest()
578 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest()
579 apnType = ApnSetting.TYPE_MMS; in getApnTypeFromNetworkRequest()
582 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest()
583 apnType = ApnSetting.TYPE_SUPL; in getApnTypeFromNetworkRequest()
586 if (apnType != ApnSetting.TYPE_NONE) error = true; in getApnTypeFromNetworkRequest()
[all …]
DApnSettingUtils.java119 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()
DDataEnabledOverride.java109 private OverrideRule(int apnType, int requiredConditions) { in OverrideRule() argument
110 mApnType = apnType; in OverrideRule()
121 boolean isSatisfiedByConditions(@ApnType int apnType, @Condition int providedConditions) { in isSatisfiedByConditions() argument
122 return (mApnType == apnType || mApnType == ApnSetting.TYPE_ALL) in isSatisfiedByConditions()
337 private boolean canSatisfyAnyRule(@ApnType int apnType, in canSatisfyAnyRule() argument
340 if (rule.isSatisfiedByConditions(apnType, providedConditions)) { in canSatisfyAnyRule()
371 public boolean shouldOverrideDataEnabledSettings(Phone phone, @ApnType int apnType) { in shouldOverrideDataEnabledSettings() argument
372 return canSatisfyAnyRule(apnType, getCurrentConditions(phone)); in shouldOverrideDataEnabledSettings()
DTelephonyNetworkFactory.java170 onDataHandoverNeeded(handoverParams.apnType, handoverParams.targetTransport, in handleMessage()
198 int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in getTransportTypeFromNetworkRequest() local
199 return mTransportManager.getCurrentTransport(apnType); in getTransportTypeFromNetworkRequest()
315 private void onDataHandoverNeeded(@ApnType int apnType, int targetTransport, in onDataHandoverNeeded() argument
317 log("onDataHandoverNeeded: apnType=" + ApnSetting.getApnTypeString(apnType) in onDataHandoverNeeded()
320 if (mTransportManager.getCurrentTransport(apnType) == targetTransport) { in onDataHandoverNeeded()
321 log("APN type " + ApnSetting.getApnTypeString(apnType) + " is already on " in onDataHandoverNeeded()
331 if (ApnContext.getApnTypeFromNetworkRequest(networkRequest) == apnType in onDataHandoverNeeded()
337 ApnSetting.getApnTypeString(apnType)); in onDataHandoverNeeded()
DDcTracker.java486 String apnType = bundle.getString(INTENT_RECONNECT_ALARM_EXTRA_TYPE); in onDataReconnect() local
503 ApnContext apnContext = mApnContexts.get(apnType); in onDataReconnect()
506 log("onDataReconnect: mState=" + mState + " reason=" + reason + " apnType=" + apnType in onDataReconnect()
908 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in requestNetwork() local
909 final ApnContext apnContext = mApnContextsByType.get(apnType); in requestNetwork()
916 final int apnType = ApnContext.getApnTypeFromNetworkRequest(networkRequest); in releaseNetwork() local
917 final ApnContext apnContext = mApnContextsByType.get(apnType); in releaseNetwork()
1051 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
1052 ApnContext apnContext = mApnContexts.get(apnType); in getLinkProperties()
1056 if (DBG) log("return link properties for " + apnType); in getLinkProperties()
[all …]
DAccessNetworksManager.java112 public final @ApnType int apnType; field in AccessNetworksManager.QualifiedNetworks
115 public QualifiedNetworks(@ApnType int apnType, int[] qualifiedNetworks) { in QualifiedNetworks() argument
116 this.apnType = apnType; in QualifiedNetworks()
127 + ApnSetting.getApnTypeString(apnType) in toString()
DDataEnabledSettings.java441 public synchronized boolean isDataEnabled(int apnType) { in isDataEnabled() argument
448 .shouldOverrideDataEnabledSettings(mPhone, apnType); in isDataEnabled()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DDefaultPhoneNotifier.java162 public void notifyDataConnection(Phone sender, String apnType, in notifyDataConnection() argument
164 doNotifyDataConnection(sender, apnType, state); in notifyDataConnection()
167 private void doNotifyDataConnection(Phone sender, String apnType, in doNotifyDataConnection() argument
183 linkProperties = sender.getLinkProperties(apnType); in doNotifyDataConnection()
184 networkCapabilities = sender.getNetworkCapabilities(apnType); in doNotifyDataConnection()
193 sender.isDataAllowed(ApnSetting.getApnTypesBitmaskFromString(apnType)), in doNotifyDataConnection()
194 sender.getActiveApnHost(apnType), in doNotifyDataConnection()
195 apnType, in doNotifyDataConnection()
207 public void notifyDataConnectionFailed(Phone sender, String apnType) { in notifyDataConnectionFailed() argument
211 sender.getSubId(), apnType); in notifyDataConnectionFailed() local
[all …]
DPhoneNotifier.java51 void notifyDataConnection(Phone sender, String apnType, PhoneConstants.DataState state); in notifyDataConnection() argument
53 void notifyDataConnectionFailed(Phone sender, String apnType); in notifyDataConnectionFailed() argument
70 public void notifyPreciseDataConnectionFailed(Phone sender, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
DRetryManager.java233 public RetryManager(Phone phone, String apnType) { in RetryManager() argument
235 mApnType = apnType; in RetryManager()
366 String apnType = splitStr[0].trim(); in configureRetry() local
368 if (apnType.equals(mApnType)) { in configureRetry()
373 } else if (apnType.equals(OTHERS_APN_TYPE)) { in configureRetry()
DPhone.java2334 public void notifyDataConnection(String apnType) { in notifyDataConnection() argument
2335 mNotifier.notifyDataConnection(this, apnType, getDataConnectionState(apnType)); in notifyDataConnection()
2341 for (String apnType : types) { in notifyDataConnection()
2342 mNotifier.notifyDataConnection(this, apnType, in notifyDataConnection()
2343 getDataConnectionState(apnType)); in notifyDataConnection()
2369 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() argument
3032 public String getActiveApnHost(String apnType) { in getActiveApnHost() argument
3035 ApnSetting.getApnTypesBitmaskFromString(apnType)); in getActiveApnHost()
3037 return getDcTracker(transportType).getActiveApnString(apnType); in getActiveApnHost()
3047 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
[all …]
DPhoneInternalInterface.java237 DataState getDataConnectionState(String apnType); in getDataConnectionState() argument
DGsmCdmaPhone.java590 public PhoneConstants.DataState getDataConnectionState(String apnType) { in getDataConnectionState() argument
600 (isPhoneTypeGsm() && !apnType.equals(PhoneConstants.APN_TYPE_EMERGENCY)))) { in getDataConnectionState()
610 ApnSetting.getApnTypesBitmaskFromString(apnType)); in getDataConnectionState()
612 switch (getDcTracker(currentTransport).getState(apnType)) { in getDataConnectionState()
631 logd("getDataConnectionState apnType=" + apnType + " ret=" + ret); in getDataConnectionState()
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephonyRegistry.aidl57 String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnection() argument
61 String apn, String apnType, in LinkProperties linkProperties, in notifyDataConnectionForSubscriber() argument
64 void notifyDataConnectionFailed(String apnType); in notifyDataConnectionFailed() argument
65 void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType); in notifyDataConnectionFailedForSubscriber() argument
78 void notifyPreciseDataConnectionFailed(int phoneId, int subId, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
DITelephony.aidl944 String[] getPcscfAddress(String apnType, String callingPackage); in getPcscfAddress() argument
1980 boolean isDataEnabledForApn(int apnType, int subId, String callingPackage); in isDataEnabledForApn() argument
1982 boolean isApnMetered(int apnType, int subId); in isApnMetered() argument
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DTestPhoneNotifier.java.broken51 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/tests/telephonytests/src/com/android/internal/telephony/mocks/
DTelephonyRegistryMock.java312 String apn, String apnType, LinkProperties linkProperties, in notifyDataConnection() argument
319 boolean isDataConnectivityPossible, String apn, String apnType, in notifyDataConnectionForSubscriber() argument
326 public void notifyDataConnectionFailed(String apnType) { in notifyDataConnectionFailed() argument
331 public void notifyDataConnectionFailedForSubscriber(int phoneId, int subId, String apnType) { in notifyDataConnectionFailedForSubscriber() argument
391 String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
DPhoneMock.java558 public void notifyDataConnection(String reason, String apnType, in notifyDataConnection() argument
563 public void notifyDataConnection(String reason, String apnType) { in notifyDataConnection() argument
791 public String getActiveApnHost(String apnType) { in getActiveApnHost() argument
795 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
799 public NetworkCapabilities getNetworkCapabilities(String apnType) { in getNetworkCapabilities() argument
839 public void notifyDataConnectionFailed(String reason, String apnType) { in notifyDataConnectionFailed() argument
843 public void notifyPreciseDataConnectionFailed(String reason, String apnType, String apn, in notifyPreciseDataConnectionFailed() argument
864 public String[] getPcscfAddress(String apnType) { in getPcscfAddress() argument
/frameworks/base/services/core/java/com/android/server/
DTelephonyRegistry.java1412 public void notifyDataConnection(int state, boolean isDataAllowed, String apn, String apnType, in notifyDataConnection() argument
1418 isDataAllowed, apn, apnType, linkProperties, in notifyDataConnection()
1424 String apn, String apnType, in notifyDataConnectionForSubscriber() argument
1433 + "' apn='" + apn + "' apnType=" + apnType + " networkType=" + networkType in notifyDataConnectionForSubscriber()
1439 if (PhoneConstants.APN_TYPE_DEFAULT.equals(apnType) in notifyDataConnectionForSubscriber()
1469 ApnSetting.getApnTypesBitmaskFromString(apnType), apn, in notifyDataConnectionForSubscriber()
1486 broadcastDataConnectionStateChanged(state, isDataAllowed, apn, apnType, linkProperties, in notifyDataConnectionForSubscriber()
1488 broadcastPreciseDataConnectionStateChanged(state, networkType, apnType, apn, in notifyDataConnectionForSubscriber()
1492 public void notifyDataConnectionFailed(String apnType) { in notifyDataConnectionFailed() argument
1495 apnType); in notifyDataConnectionFailed()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DTransportManagerTest.java128 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded()
154 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded()
237 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testBackToBackHandoverNeeded()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/sip/
DSipPhoneBase.java430 public boolean isDataAllowed(int apnType) { in isDataAllowed() argument
471 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneBase.java476 public boolean isDataAllowed(int apnType) { in isDataAllowed() argument
514 public LinkProperties getLinkProperties(String apnType) { in getLinkProperties() argument
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java1260 String apnType = getApnTypesStringFromBitmask(mApnTypeBitmask); in toContentValues() local
1261 apnValue.put(Telephony.Carriers.TYPE, nullToEmpty(apnType)); in toContentValues()
1312 public static String getApnTypeString(int apnType) { in getApnTypeString() argument
1313 if (apnType == TYPE_ALL) { in getApnTypeString()
1316 String apnTypeString = APN_TYPE_INT_MAP.get(apnType); in getApnTypeString()