/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/ |
D | ApnSettingTest.java | 19 import static android.telephony.data.ApnSetting.INFRASTRUCTURE_CELLULAR; 20 import static android.telephony.data.ApnSetting.INFRASTRUCTURE_SATELLITE; 34 import android.telephony.data.ApnSetting; 64 static ApnSetting createApnSetting(int apnTypesBitmask) { in createApnSetting() 68 private static ApnSetting createDisabledApnSetting(int apnTypesBitmask) { in createDisabledApnSetting() 72 private static ApnSetting createApnSettingInternal(int apnTypeBitmask, boolean carrierEnabled) { in createApnSettingInternal() 73 return new ApnSetting.Builder() in createApnSettingInternal() 79 .setProtocol(ApnSetting.PROTOCOL_IP) in createApnSettingInternal() 80 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) in createApnSettingInternal() 85 private static void assertApnSettingsEqual(List<ApnSetting> a1, List<ApnSetting> a2) { in assertApnSettingsEqual() [all …]
|
D | DataProfileTest.java | 23 import android.telephony.data.ApnSetting; 31 private ApnSetting mApn1 = new ApnSetting.Builder() 38 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL) 39 .setProtocol(ApnSetting.PROTOCOL_IPV6) 40 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 49 private ApnSetting mApn2 = new ApnSetting.Builder() 56 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL) 57 .setProtocol(ApnSetting.PROTOCOL_IP) 58 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 67 private ApnSetting mApn3 = new ApnSetting.Builder() [all …]
|
D | TelephonyNetworkRequestTest.java | 28 import android.telephony.data.ApnSetting; 40 private static final ApnSetting INTERNET_APN_SETTING = new ApnSetting.Builder() 47 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL) 48 .setProtocol(ApnSetting.PROTOCOL_IPV6) 49 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 58 private static final ApnSetting MMS_APN_SETTING = new ApnSetting.Builder() 65 .setApnTypeBitmask(ApnSetting.TYPE_MMS) 66 .setProtocol(ApnSetting.PROTOCOL_IPV6) 67 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 75 private static final ApnSetting ENTERPRISE_APN_SETTING = new ApnSetting.Builder() [all …]
|
D | AccessNetworksManagerTest.java | 44 import android.telephony.data.ApnSetting; 182 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_IMS)) in testQualifiedNetworkTypesChanged() 184 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_MMS)) in testQualifiedNetworkTypesChanged() 188 mQnsCallback.onQualifiedNetworkTypesChanged(ApnSetting.TYPE_IMS | ApnSetting.TYPE_MMS, in testQualifiedNetworkTypesChanged() 192 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_IMS)) in testQualifiedNetworkTypesChanged() 194 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_MMS)) in testQualifiedNetworkTypesChanged() 209 mQnsCallback.onQualifiedNetworkTypesChanged(ApnSetting.TYPE_EMERGENCY, in testGuideTransportTypeForEmergencyDataNetwork() 221 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_EMERGENCY)) in testGuideTransportTypeForEmergencyDataNetwork() 229 mQnsCallback.onQualifiedNetworkTypesChanged(ApnSetting.TYPE_IMS | ApnSetting.TYPE_MMS, in testEmptyNetworkTypes() 233 assertThat(mAccessNetworksManager.getPreferredTransport(ApnSetting.TYPE_IMS)) in testEmptyNetworkTypes() [all …]
|
D | DataProfileManagerTest.java | 44 import android.telephony.data.ApnSetting; 854 doReturn(List.of(ApnSetting.TYPE_IA, ApnSetting.TYPE_DEFAULT)) in setUp() 1365 doReturn(List.of(ApnSetting.TYPE_IMS)) in testSimInsertedAgain() 1405 .setApnSetting(new ApnSetting.Builder() in testDedupeDataProfiles2() 1409 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_MMS in testDedupeDataProfiles2() 1410 | ApnSetting.TYPE_SUPL | ApnSetting.TYPE_HIPRI) in testDedupeDataProfiles2() 1413 .setAuthType(ApnSetting.AUTH_TYPE_CHAP) in testDedupeDataProfiles2() 1417 .setProtocol(ApnSetting.PROTOCOL_IPV4V6) in testDedupeDataProfiles2() 1418 .setRoamingProtocol(ApnSetting.PROTOCOL_IPV4V6) in testDedupeDataProfiles2() 1426 .setApnSetting(new ApnSetting.Builder() in testDedupeDataProfiles2() [all …]
|
D | DataRetryManagerTest.java | 41 import android.telephony.data.ApnSetting; 72 .setApnSetting(new ApnSetting.Builder() 79 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL) 80 .setProtocol(ApnSetting.PROTOCOL_IPV6) 81 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 93 .setApnSetting(new ApnSetting.Builder() 100 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL 101 | ApnSetting.TYPE_FOTA) 102 .setProtocol(ApnSetting.PROTOCOL_IPV6) 103 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) [all …]
|
D | DataCallResponseTest.java | 25 import android.telephony.data.ApnSetting; 63 .setProtocolType(ApnSetting.PROTOCOL_IP) in testParcel() 97 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEqualsAndHashCode() 118 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEqualsAndHashCode() 143 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEqualsAndHashCode() 173 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEqualsAndHashCode()
|
D | DataConfigManagerTest.java | 31 import android.telephony.data.ApnSetting; 151 new String[] {ApnSetting.TYPE_MMS_STRING, ApnSetting.TYPE_DEFAULT_STRING}); in testMeteredNetworkCapabilities() 153 new String[] {ApnSetting.TYPE_SUPL_STRING, ApnSetting.TYPE_MCX_STRING}); in testMeteredNetworkCapabilities()
|
D | DataServiceManagerTest.java | 39 import android.telephony.data.ApnSetting; 62 .setApnSetting(new ApnSetting.Builder() 69 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL 70 | ApnSetting.TYPE_MMS) 71 .setProtocol(ApnSetting.PROTOCOL_IPV6) 72 .setRoamingProtocol(ApnSetting.PROTOCOL_IP)
|
D | DataNetworkTest.java | 65 import android.telephony.data.ApnSetting; 124 private final ApnSetting mInternetApnSetting = new ApnSetting.Builder() 131 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL | ApnSetting.TYPE_MMS) 132 .setProtocol(ApnSetting.PROTOCOL_IPV6) 133 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 142 private final ApnSetting mMmsApnSetting = new ApnSetting.Builder() 147 .setApnTypeBitmask(ApnSetting.TYPE_MMS) 148 .setProtocol(ApnSetting.PROTOCOL_IPV6) 149 .setRoamingProtocol(ApnSetting.PROTOCOL_IP) 154 private final ApnSetting mImsApnSetting = new ApnSetting.Builder() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | DataCallSessionStatsTest.java | 35 import android.telephony.data.ApnSetting; 101 mDataCallSessionStats.onSetupDataCall(ApnSetting.TYPE_IMS, false); in testSetupDataCallOnCellularIms_success() 105 ApnSetting.TYPE_IMS, in testSetupDataCallOnCellularIms_success() 106 ApnSetting.PROTOCOL_IP, in testSetupDataCallOnCellularIms_success() 118 assertEquals(ApnSetting.TYPE_IMS, stats.apnTypeBitmask); in testSetupDataCallOnCellularIms_success() 127 mDataCallSessionStats.onSetupDataCall(ApnSetting.TYPE_IMS, false); in testSetupDataCallOnIwlan_success() 131 ApnSetting.TYPE_IMS, in testSetupDataCallOnIwlan_success() 132 ApnSetting.PROTOCOL_IP, in testSetupDataCallOnIwlan_success() 144 assertEquals(ApnSetting.TYPE_IMS, stats.apnTypeBitmask); in testSetupDataCallOnIwlan_success() 156 mDataCallSessionStats.onSetupDataCall(ApnSetting.TYPE_IMS, false); in testSetupDataCallOnCrossSimCalling_success() [all …]
|
D | DataNetworkValidationStatsTest.java | 30 import android.telephony.data.ApnSetting; 84 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_IMS); in testRequestDataNetworkValidation() 92 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_IMS); in testOnUpdateNetworkValidationStateWithSuccessStatus() 109 assertEquals(ApnSetting.TYPE_IMS, proto.apnTypeBitmask); in testOnUpdateNetworkValidationStateWithSuccessStatus() 125 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_EMERGENCY); in testOnUpdateNetworkValidationStateWithFailureStatus() 144 assertEquals(ApnSetting.TYPE_EMERGENCY, proto.apnTypeBitmask); in testOnUpdateNetworkValidationStateWithFailureStatus() 160 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_IMS); in testOnUpdateNetworkValidationStateWithInProgressStatus() 174 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_IMS); in testOnUpdateNetworkValidationStateWithNotRequestedStatus() 191 mDataNetworkValidationStats.onRequestNetworkValidation(ApnSetting.TYPE_IMS); in testOnUpdateNetworkValidationStateWithUnsupportedStatus() 208 assertEquals(ApnSetting.TYPE_IMS, proto.apnTypeBitmask); in testOnUpdateNetworkValidationStateWithUnsupportedStatus() [all …]
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | PhoneConstants.java | 19 import android.telephony.data.ApnSetting; 132 public static final String APN_TYPE_ALL = ApnSetting.TYPE_ALL_STRING; 134 public static final String APN_TYPE_DEFAULT = ApnSetting.TYPE_DEFAULT_STRING; 136 public static final String APN_TYPE_MMS = ApnSetting.TYPE_MMS_STRING; 138 public static final String APN_TYPE_SUPL = ApnSetting.TYPE_SUPL_STRING; 140 public static final String APN_TYPE_DUN = ApnSetting.TYPE_DUN_STRING; 142 public static final String APN_TYPE_HIPRI = ApnSetting.TYPE_HIPRI_STRING; 144 public static final String APN_TYPE_FOTA = ApnSetting.TYPE_FOTA_STRING; 146 public static final String APN_TYPE_IMS = ApnSetting.TYPE_IMS_STRING; 148 public static final String APN_TYPE_CBS = ApnSetting.TYPE_CBS_STRING; [all …]
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | DataProfile.java | 19 import static android.telephony.data.ApnSetting.ProtocolType; 32 import android.telephony.data.ApnSetting.ApnType; 33 import android.telephony.data.ApnSetting.AuthType; 70 private final @Nullable ApnSetting mApnSetting; 110 …mApnSetting = source.readParcelable(ApnSetting.class.getClassLoader(), android.telephony.data.ApnS… in DataProfile() 150 return ApnSetting.PROTOCOL_IPV4V6; in getProtocolType() 162 return ApnSetting.AUTH_TYPE_NONE; in getAuthType() 253 return ApnSetting.TYPE_NONE; in getSupportedApnTypesBitmask() 265 return ApnSetting.PROTOCOL_IP; in getRoamingProtocolType() 351 public @Nullable ApnSetting getApnSetting() { in getApnSetting() [all …]
|
D | ApnSetting.java | 64 public class ApnSetting implements Parcelable { class 1020 private ApnSetting(Builder builder) { in ApnSetting() method in ApnSetting 1064 public static ApnSetting makeApnSetting(Cursor cursor) { in makeApnSetting() 1150 public static ApnSetting makeApnSetting(ApnSetting apn) { in makeApnSetting() 1266 private boolean typeSameAny(ApnSetting first, ApnSetting second) { in typeSameAny() 1303 if (o instanceof ApnSetting == false) { in equals() 1307 ApnSetting other = (ApnSetting) o; in equals() 1357 if (!(o instanceof ApnSetting)) { in equals() 1361 ApnSetting other = (ApnSetting) o; in equals() 1403 public boolean similar(ApnSetting other) { in similar() [all …]
|
D | ApnSetting.aidl | 18 parcelable ApnSetting;
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/ |
D | DataUtils.java | 36 import android.telephony.data.ApnSetting; 37 import android.telephony.data.ApnSetting.ApnType; 275 case NetworkCapabilities.NET_CAPABILITY_MMS -> ApnSetting.TYPE_MMS; 276 case NetworkCapabilities.NET_CAPABILITY_SUPL -> ApnSetting.TYPE_SUPL; 277 case NetworkCapabilities.NET_CAPABILITY_DUN -> ApnSetting.TYPE_DUN; 278 case NetworkCapabilities.NET_CAPABILITY_FOTA -> ApnSetting.TYPE_FOTA; 279 case NetworkCapabilities.NET_CAPABILITY_IMS -> ApnSetting.TYPE_IMS; 280 case NetworkCapabilities.NET_CAPABILITY_CBS -> ApnSetting.TYPE_CBS; 281 case NetworkCapabilities.NET_CAPABILITY_XCAP -> ApnSetting.TYPE_XCAP; 282 case NetworkCapabilities.NET_CAPABILITY_EIMS -> ApnSetting.TYPE_EMERGENCY; [all …]
|
D | AccessNetworksManager.java | 43 import android.telephony.data.ApnSetting; 97 ApnSetting.TYPE_DEFAULT, 98 ApnSetting.TYPE_MMS, 99 ApnSetting.TYPE_FOTA, 100 ApnSetting.TYPE_IMS, 101 ApnSetting.TYPE_CBS, 102 ApnSetting.TYPE_SUPL, 103 ApnSetting.TYPE_EMERGENCY, 104 ApnSetting.TYPE_XCAP, 105 ApnSetting.TYPE_DUN [all …]
|
D | DataProfileManager.java | 41 import android.telephony.data.ApnSetting; 254 ApnSetting apn = ApnSetting.makeApnSetting(cursor); in getEnterpriseDataProfile() 289 ApnSetting apn = ApnSetting.makeApnSetting(cursor); in updateDataProfiles() 299 isInternetSupported |= apn.canHandleType(ApnSetting.TYPE_DEFAULT); in updateDataProfiles() 327 ApnSetting.TYPE_IMS)) in updateDataProfiles() 356 ApnSetting.TYPE_EMERGENCY)) in updateDataProfiles() 656 private ApnSetting buildDefaultApnSetting(@NonNull String entry, in buildDefaultApnSetting() 658 return new ApnSetting.Builder() in buildDefaultApnSetting() 660 .setProtocol(ApnSetting.PROTOCOL_IPV4V6) in buildDefaultApnSetting() 661 .setRoamingProtocol(ApnSetting.PROTOCOL_IPV4V6) in buildDefaultApnSetting() [all …]
|
D | TelephonyNetworkRequest.java | 29 import android.telephony.data.ApnSetting; 323 ApnSetting.INFRASTRUCTURE_CELLULAR)) { in canBeSatisfiedBy() 334 ApnSetting.INFRASTRUCTURE_SATELLITE)) { in canBeSatisfiedBy() 342 .filter(apnType -> apnType != ApnSetting.TYPE_NONE) in canBeSatisfiedBy() 352 if (apnTypes.contains(ApnSetting.TYPE_ENTERPRISE)) { in canBeSatisfiedBy() 353 apnTypes.remove((Integer) ApnSetting.TYPE_DEFAULT); in canBeSatisfiedBy() 391 .filter(cap -> DataUtils.networkCapabilityToApnType(cap) != ApnSetting.TYPE_NONE) in getApnTypeNetworkCapability()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | TelephonyRegistryTest.java | 68 import android.telephony.data.ApnSetting; 575 .setApnSetting(new ApnSetting.Builder() in testDataConnectionStateChanged() 576 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT) in testDataConnectionStateChanged() 596 .setApnSetting(new ApnSetting.Builder() in testDataConnectionStateChanged() 597 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT) in testDataConnectionStateChanged() 615 .setApnSetting(new ApnSetting.Builder() in testDataConnectionStateChanged() 616 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT) in testDataConnectionStateChanged() 652 .setApnSetting(new ApnSetting.Builder() in testDataConnectionStateChangedMultipleInternet() 653 .setApnTypeBitmask(ApnSetting.TYPE_DEFAULT) in testDataConnectionStateChangedMultipleInternet() 671 .setApnSetting(new ApnSetting.Builder() in testDataConnectionStateChangedMultipleInternet() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | PreciseDataConnectionState.java | 38 import android.telephony.data.ApnSetting; 73 private final ApnSetting mApnSetting; 139 linkProperties, failCause, new ApnSetting.Builder() in PreciseDataConnectionState() 165 @Nullable ApnSetting apnSetting, @Nullable Qos defaultQos, in PreciseDataConnectionState() 195 ApnSetting.class.getClassLoader(), in PreciseDataConnectionState() 196 android.telephony.data.ApnSetting.class); in PreciseDataConnectionState() 287 return (mApnSetting != null) ? mApnSetting.getApnTypeBitmask() : ApnSetting.TYPE_NONE; in getDataConnectionApnTypeBitMask() 340 public @Nullable ApnSetting getApnSetting() { in getApnSetting() 501 private @Nullable ApnSetting mApnSetting; 594 public @NonNull Builder setApnSetting(@NonNull ApnSetting apnSetting) { in setApnSetting()
|
D | Annotation.java | 7 import android.telephony.data.ApnSetting; 119 ApnSetting.TYPE_DEFAULT, 120 ApnSetting.TYPE_MMS, 121 ApnSetting.TYPE_SUPL, 122 ApnSetting.TYPE_DUN, 123 ApnSetting.TYPE_HIPRI, 124 ApnSetting.TYPE_FOTA, 125 ApnSetting.TYPE_IMS, 126 ApnSetting.TYPE_CBS, 127 ApnSetting.TYPE_IA, [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/domainselection/ |
D | EmergencySmsDomainSelectionConnection.java | 26 import android.telephony.data.ApnSetting; 79 if (anm.getPreferredTransport(ApnSetting.TYPE_EMERGENCY) in onWlanSelected() 117 if (anm.getPreferredTransport(ApnSetting.TYPE_EMERGENCY) in onDomainSelected() 146 int preferredTransportType = getPreferredTransport(ApnSetting.TYPE_EMERGENCY, networksList); in onQualifiedNetworksChanged()
|
D | EmergencyCallDomainSelectionConnection.java | 41 import android.telephony.data.ApnSetting; 99 int transportType = anm.getPreferredTransport(ApnSetting.TYPE_EMERGENCY); in onWlanSelected() 130 int transportType = anm.getPreferredTransport(ApnSetting.TYPE_EMERGENCY); in onDomainSelected() 175 int preferredTransport = getPreferredTransport(ApnSetting.TYPE_EMERGENCY, networksList); in onQualifiedNetworksChanged()
|