/packages/services/Iwlan/test/com/google/android/iwlan/ |
D | ErrorPolicyManagerTest.java | 217 String apn = "ims"; in testValidCarrierConfig() local 221 + apn in testValidCarrierConfig() 253 long time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 255 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 257 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 259 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 264 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 266 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 268 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() 270 time = mErrorPolicyManager.reportIwlanError(apn, iwlanError); in testValidCarrierConfig() [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | ErrorPolicyManager.java | 204 public synchronized long reportIwlanError(String apn, IwlanError iwlanError) { in reportIwlanError() argument 206 mMostRecentError = new ApnWithIwlanError(apn, iwlanError); in reportIwlanError() 210 mRetryActionStoreByApn.remove(apn); in reportIwlanError() 213 mErrorStats.update(apn, iwlanError); in reportIwlanError() 217 .computeIfAbsent(apn, ApnRetryActionStore::new) in reportIwlanError() 237 public synchronized long reportIwlanError(String apn, IwlanError iwlanError, long backoffTime) { in reportIwlanError() argument 241 mRetryActionStoreByApn.remove(apn); in reportIwlanError() 244 mErrorStats.update(apn, iwlanError); in reportIwlanError() 248 .computeIfAbsent(apn, ApnRetryActionStore::new) in reportIwlanError() 261 public synchronized boolean canBringUpTunnel(String apn) { in canBringUpTunnel() argument [all …]
|
D | IwlanDataService.java | 562 public void reportTunnelSetupSuccess(String apn, TunnelState tunnelState) { in reportTunnelSetupSuccess() argument 573 if (!mTunnelSetupSuccessStats.containsKey(apn)) { in reportTunnelSetupSuccess() 574 mTunnelSetupSuccessStats.put(apn, new LongSummaryStatistics()); in reportTunnelSetupSuccess() 576 LongSummaryStatistics stats = mTunnelSetupSuccessStats.get(apn); in reportTunnelSetupSuccess() 578 mTunnelSetupSuccessStats.put(apn, stats); in reportTunnelSetupSuccess() 582 public void reportTunnelDown(String apn, TunnelState tunnelState) { in reportTunnelDown() argument 590 if (!mTunnelSetupFailureCounts.containsKey(apn)) { in reportTunnelDown() 591 mTunnelSetupFailureCounts.put(apn, 0L); in reportTunnelDown() 593 long count = mTunnelSetupFailureCounts.get(apn); in reportTunnelDown() 594 mTunnelSetupFailureCounts.put(apn, ++count); in reportTunnelDown() [all …]
|
/packages/apps/Messaging/src/android/support/v7/mms/ |
D | MmsRequest.java | 80 ApnSettingsLoader.Apn apn, Bundle mmsConfig, String userAgent, String uaProfUrl) in doHttp() argument 89 protected abstract String getHttpRequestUrl(ApnSettingsLoader.Apn apn); in getHttpRequestUrl() argument 162 for (ApnSettingsLoader.Apn apn : apns) { in execute() 164 + "MMSC=" + apn.getMmsc() + ", " in execute() 165 + "PROXY=" + apn.getMmsProxy() + ", " in execute() 166 + "PORT=" + apn.getMmsProxyPort() + "]"); in execute() 168 final String url = getHttpRequestUrl(apn); in execute() 170 requestRoute(networkManager.getConnectivityManager(), apn, url); in execute() local 173 context, networkManager, apn, mmsConfig, userAgent, uaProfUrl); in execute() 179 apn.setSuccess(); in execute() [all …]
|
D | SendRequest.java | 78 protected byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettingsLoader.Apn apn, in doHttp() argument 81 return httpClient.execute(getHttpRequestUrl(apn), mPduData, MmsHttpClient.METHOD_POST, in doHttp() 82 !TextUtils.isEmpty(apn.getMmsProxy()), apn.getMmsProxy(), apn.getMmsProxyPort(), in doHttp() 87 protected String getHttpRequestUrl(final ApnSettingsLoader.Apn apn) { in getHttpRequestUrl() argument 88 return !TextUtils.isEmpty(mLocationUrl) ? mLocationUrl : apn.getMmsc(); in getHttpRequestUrl()
|
D | DownloadRequest.java | 58 protected byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettingsLoader.Apn apn, in doHttp() argument 61 return httpClient.execute(getHttpRequestUrl(apn), null/*pdu*/, MmsHttpClient.METHOD_GET, in doHttp() 62 !TextUtils.isEmpty(apn.getMmsProxy()), apn.getMmsProxy(), apn.getMmsProxyPort(), in doHttp() 68 protected String getHttpRequestUrl(final ApnSettingsLoader.Apn apn) { in getHttpRequestUrl() argument
|
D | DefaultApnSettingsLoader.java | 147 for (final Apn apn : apns) { in from() 148 if (apn instanceof MemoryApn && ((MemoryApn) apn).equals(base)) { in from() 322 final Apn apn = BaseApn.from( in loadFromSystem() local 327 if (apn != null) { in loadFromSystem() 328 apns.add(apn); in loadFromSystem() 410 final String apn = trimWithNullCheck(apnValues.getAsString(APN_APN)); in loadFromResources() 414 (TextUtils.isEmpty(apnName) || apnName.equalsIgnoreCase(apn))) { in loadFromResources()
|
/packages/services/Mms/src/com/android/mms/service/ |
D | ApnSettings.java | 170 public static ApnSettings getApnSettingsFromNetworkApn(@NonNull ApnSetting apn) { in getApnSettingsFromNetworkApn() argument 174 if (apn.getMmsc() == null) return null; in getApnSettingsFromNetworkApn() 175 String mmscUrl = apn.getMmsc().toString().trim(); in getApnSettingsFromNetworkApn() 178 String proxy = trimWithNullCheck(apn.getMmsProxyAddressAsString()); in getApnSettingsFromNetworkApn() 182 if (apn.getMmsProxyPort() != -1 /*UNSPECIFIED_INT*/) proxyPort = apn.getMmsProxyPort(); in getApnSettingsFromNetworkApn() 185 return new ApnSettings(mmscUrl, proxy, proxyPort, apn.toString()); in getApnSettingsFromNetworkApn()
|
D | MmsRequest.java | 208 ApnSettings apn = null; in execute() local 215 apn = ApnSettings.getApnSettingsFromNetworkApn(networkApn); in execute() 218 if (apn == null) { in execute() 222 apn = ApnSettings.load(context, apnName, mSubId, requestId); in execute() 231 apn = ApnSettings.load(context, null, mSubId, requestId); in execute() 235 if (Flags.mmsGetApnFromPdsc() && networkApn == null && apn != null) { in execute() 240 LogUtil.d(requestId, "Using APN " + apn); in execute() 249 response = doHttp(context, networkManager, apn); in execute() 509 protected abstract byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettings apn) in doHttp() argument
|
D | DownloadRequest.java | 75 protected byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettings apn) in doHttp() argument 89 apn.isProxySet(), in doHttp() 90 apn.getProxyAddress(), in doHttp() 91 apn.getProxyPort(), in doHttp()
|
D | SendRequest.java | 77 protected byte[] doHttp(Context context, MmsNetworkManager netMgr, ApnSettings apn) in doHttp() argument 91 mLocationUrl != null ? mLocationUrl : apn.getMmscUrl(), in doHttp() 94 apn.isProxySet(), in doHttp() 95 apn.getProxyAddress(), in doHttp() 96 apn.getProxyPort(), in doHttp()
|
/packages/apps/Messaging/src/com/android/messaging/sms/ |
D | BugleApnSettingsLoader.java | 172 for (final ApnSettingsLoader.Apn apn : apns) { in from() 173 if (apn instanceof DatabaseApn && ((DatabaseApn) apn).equals(base)) { in from() 370 final Apn apn = BaseApn.from("mms", mmsc, proxy, Integer.toString(port)); in loadFromGservices() local 371 if (apn != null) { in loadFromGservices() 372 apns.add(apn); in loadFromGservices() 420 final ApnSettingsLoader.Apn apn = BaseApn.from( in loadFromSystem() local 425 if (apn != null) { in loadFromSystem() 426 apns.add(apn); in loadFromSystem() 509 final Apn apn = DatabaseApn.from(apns, in loadFromLocalDatabase() local 516 if (apn != null) { in loadFromLocalDatabase() [all …]
|
/packages/apps/Settings/src/com/android/settings/network/apn/ |
D | ApnStatus.kt | 17 package com.android.settings.network.apn 27 import com.android.settings.network.apn.ApnTypes.getPreSelectedApnType 34 val apn: String = "", constant in com.android.settings.network.apn.ApnData 59 Telephony.Carriers.APN to apn, in getContentValueMap() 181 apnData.apn.isEmpty() -> context.resources.getString(R.string.error_apn_empty) in validateApnData() 285 fun validateAPN(validEnabled: Boolean, apn: String, context: Context): String? { in validateAPN() 286 return if (validEnabled && (apn == "")) context.resources.getString(R.string.error_apn_empty) in validateAPN()
|
D | ApnTypeCheckBox.kt | 17 package com.android.settings.network.apn 27 import com.android.settings.network.apn.ApnTypes.isValid 28 import com.android.settings.network.apn.ApnTypes.toApnType
|
D | ApnSettings.java | 17 package com.android.settings.network.apn; 19 import static com.android.settings.network.apn.ApnEditPageProviderKt.INSERT_URL; 241 final String apn = cursor.getString(APN_INDEX); in fillList() local 258 pref.setSummary(apn); in fillList()
|
D | ApnEditPageProvider.kt | 17 package com.android.settings.network.apn in <lambda>() 166 value = apnData.apn, in ApnPage() 169 errorMessage = validateAPN(apnData.validEnabled, apnData.apn, context) in ApnPage() 170 ) { apnData = apnData.copy(apn = it) } in ApnPage()
|
D | ApnEditor.java | 17 package com.android.settings.network.apn; 416 for (String apn : APN_TYPES) { in hasAllApns() 417 if (!apnList.contains(apn)) { in hasAllApns() 450 for (String apn : apnTypesArray2) { in apnTypesMatch() 451 if (apnTypesList1.contains(apn.trim().toLowerCase())) { in apnTypesMatch() 452 Log.d(TAG, "apnTypesMatch: true because match found for " + apn.trim()); in apnTypesMatch() 984 final String apn = checkNotSet(mApn.getText()); in validateAndSaveApnData() local 1006 apn, in validateAndSaveApnData() 1194 final String apn = checkNotSet(mApn.getText()); in validateApnData() local 1201 } else if (TextUtils.isEmpty(apn)) { in validateApnData()
|
D | ApnPreference.java | 17 package com.android.settings.network.apn; 19 import static com.android.settings.network.apn.ApnEditPageProviderKt.EDIT_URL;
|
D | ApnRepository.kt | 17 package com.android.settings.network.apn in <lambda>() 76 apn = cursor.getString(Telephony.Carriers.APN), in <lambda>()
|
D | ApnNetworkTypeCheckBox.kt | 17 package com.android.settings.network.apn
|
D | ApnNetworkTypes.kt | 17 package com.android.settings.network.apn in <lambda>()
|
D | PreferredApnRepository.kt | 17 package com.android.settings.network.apn in <lambda>()
|
/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/apn/ |
D | ApnTypesTest.kt | 17 package com.android.settings.network.apn 22 import com.android.settings.network.apn.ApnTypes.isValid 23 import com.android.settings.network.apn.ApnTypes.toApnType
|
D | ApnNetworkTypesTest.kt | 17 package com.android.settings.network.apn
|
/packages/apps/Settings/tests/robotests/assets/ |
D | exempt_not_implementing_index_provider | 55 com.android.settings.network.apn.ApnEditor 56 com.android.settings.network.apn.ApnSettings
|