/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 31 import android.telephony.data.ApnSetting; 62 static ApnSetting createApnSetting(int apnTypesBitmask) { in createApnSetting() 66 private static ApnSetting createDisabledApnSetting(int apnTypesBitmask) { in createDisabledApnSetting() 70 private static ApnSetting createApnSettingInternal(int apnTypeBitmask, boolean carrierEnabled) { in createApnSettingInternal() 71 return ApnSetting.makeApnSetting( in createApnSettingInternal() 85 ApnSetting.PROTOCOL_IP, // protocol in createApnSettingInternal() 86 ApnSetting.PROTOCOL_IP, // roaming_protocol in createApnSettingInternal() 99 private static void assertApnSettingsEqual(List<ApnSetting> a1, List<ApnSetting> a2) { in assertApnSettingsEqual() 106 private static void assertApnSettingEqual(ApnSetting a1, ApnSetting a2) { in assertApnSettingEqual() 139 final int dunTypesBitmask = ApnSetting.TYPE_DUN; in testFromString() [all …]
|
D | RetryManagerTest.java | 24 import android.telephony.data.ApnSetting; 44 private ApnSetting mApn1 = ApnSetting.makeApnSetting( 57 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types 58 ApnSetting.PROTOCOL_IP, // protocol 59 ApnSetting.PROTOCOL_IP, // roaming_protocol 71 private ApnSetting mApn2 = ApnSetting.makeApnSetting( 84 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types 85 ApnSetting.PROTOCOL_IP, // protocol 86 ApnSetting.PROTOCOL_IP, // roaming_protocol 98 private ApnSetting mApn3 = ApnSetting.makeApnSetting( [all …]
|
D | DataProfileTest.java | 19 import android.telephony.data.ApnSetting; 29 private ApnSetting mApn1 = ApnSetting.makeApnSetting( 42 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types 43 ApnSetting.PROTOCOL_IPV6, // protocol 44 ApnSetting.PROTOCOL_IP, // roaming_protocol 56 private ApnSetting mApn2 = ApnSetting.makeApnSetting( 69 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types 70 ApnSetting.PROTOCOL_IP, // protocol 71 ApnSetting.PROTOCOL_IP, // roaming_protocol 83 private ApnSetting mApn3 = ApnSetting.makeApnSetting( [all …]
|
D | DataEnabledOverrideTest.java | 26 import android.telephony.data.ApnSetting; 69 mPhone, ApnSetting.TYPE_MMS)); in testOverrideEnabled() 74 mPhone, ApnSetting.TYPE_DEFAULT)); in testOverrideEnabled() 79 mPhone, ApnSetting.TYPE_DEFAULT)); in testOverrideEnabled() 99 mPhone, ApnSetting.TYPE_MMS)); in testUpdateRules() 104 mPhone, ApnSetting.TYPE_DEFAULT)); in testUpdateRules() 109 mPhone, ApnSetting.TYPE_DEFAULT)); in testUpdateRules() 114 mPhone, ApnSetting.TYPE_MMS)); in testUpdateRules() 116 mPhone, ApnSetting.TYPE_DEFAULT)); in testUpdateRules() 125 mPhone, ApnSetting.TYPE_MMS)); in testAlwaysEnabled() [all …]
|
D | ApnContextTest.java | 31 import android.telephony.data.ApnSetting; 49 ApnSetting mApnSetting; 57 mApnContext = new ApnContext(mPhone, ApnSetting.TYPE_DEFAULT, TAG, mDcTracker, 1); in setUp() 121 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal() 131 verify(mDcTracker, times(2)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal() 135 verify(mDcTracker, never()).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal() 139 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal() 148 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach() 158 verify(mDcTracker, times(2)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach() 162 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach() [all …]
|
D | TransportManagerTest.java | 31 import android.telephony.data.ApnSetting; 82 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded() 92 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded() 96 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded() 112 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded() 118 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded() 122 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded() 138 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded() 143 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded() 147 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded() [all …]
|
D | ApnConfigTypeRepositoryTest.java | 23 import android.telephony.data.ApnSetting; 85 assertEquals(10, repository.getByType(ApnSetting.TYPE_FOTA).getPriority()); in testReturnsCarrierConfigOverride() 90 assertEquals(0, repository.getByType(ApnSetting.TYPE_DEFAULT).getPriority()); in checkDefaults() 91 assertEquals(2, repository.getByType(ApnSetting.TYPE_SUPL).getPriority()); in checkDefaults() 92 assertEquals(3, repository.getByType(ApnSetting.TYPE_HIPRI).getPriority()); in checkDefaults() 93 assertEquals(2, repository.getByType(ApnSetting.TYPE_CBS).getPriority()); in checkDefaults() 94 assertEquals(2, repository.getByType(ApnSetting.TYPE_EMERGENCY).getPriority()); in checkDefaults() 95 assertEquals(3, repository.getByType(ApnSetting.TYPE_XCAP).getPriority()); in checkDefaults()
|
D | DcRequestTest.java | 26 import android.telephony.data.ApnSetting; 59 when(mApnConfigTypeRepo.getByType(ApnSetting.TYPE_DEFAULT)) in whenNetworkRequestInternetThenPriorityZero() 60 .thenReturn(new ApnConfigType(ApnSetting.TYPE_DEFAULT, 0)); in whenNetworkRequestInternetThenPriorityZero() 76 when(mApnConfigTypeRepo.getByType(ApnSetting.TYPE_MCX)) in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned() 77 .thenReturn(new ApnConfigType(ApnSetting.TYPE_MCX, 21)); in whenNetworkRequestMcxThenApnConfigTypeMcxPriorityReturned() 89 when(mApnConfigTypeRepo.getByType(ApnSetting.TYPE_NONE)) in whenNetworkRequestNotCellularThenDcRequestIsNull() 103 when(mApnConfigTypeRepo.getByType(ApnSetting.TYPE_MCX)) in whenNetworkRequestHasNoTransportThenPriorityStays() 104 .thenReturn(new ApnConfigType(ApnSetting.TYPE_MCX, 11)); in whenNetworkRequestHasNoTransportThenPriorityStays() 121 when(mApnConfigTypeRepo.getByType(ApnSetting.TYPE_NONE)) in whenNetworkRequestNotCellularWithTelephonySpecifierThenDcRequestIsNull()
|
D | DataConnectionTest.java | 59 import android.telephony.data.ApnSetting; 107 private ApnSetting mApn1 = ApnSetting.makeApnSetting( 120 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types 121 ApnSetting.PROTOCOL_IP, // protocol 122 ApnSetting.PROTOCOL_IP, // roaming_protocol 134 private ApnSetting mApn2 = ApnSetting.makeApnSetting( 147 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_DUN, // types 148 ApnSetting.PROTOCOL_IP, // protocol 149 ApnSetting.PROTOCOL_IP, // roaming_protocol 161 private ApnSetting mApn3 = ApnSetting.makeApnSetting( [all …]
|
D | DcTrackerTest.java | 77 import android.telephony.data.ApnSetting; 577 assertEquals(ApnSetting.PROTOCOL_IP, dp.getProtocolType()); in verifyDataProfile() 585 assertEquals(ApnSetting.PROTOCOL_IP, dp.getRoamingProtocolType()); in verifyDataProfile() 655 mDct.enableApn(ApnSetting.TYPE_XCAP, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataUnmeteredDefaultNotSelected() 678 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataSetup() 720 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataRetry() 770 mDct.enableApn(ApnSetting.TYPE_IMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData() 771 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData() 806 mDct.enableApn(ApnSetting.TYPE_MMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled() 807 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled() [all …]
|
D | DataCallResponseTest.java | 28 import android.telephony.data.ApnSetting; 44 .setProtocolType(ApnSetting.PROTOCOL_IP) in testParcel() 71 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEquals() 88 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEquals() 108 .setProtocolType(ApnSetting.PROTOCOL_IP) in testEquals()
|
D | DataEnabledSettingsTest.java | 30 import android.telephony.data.ApnSetting; 113 assertTrue(mDataEnabledSettingsUT.isDataEnabled(ApnSetting.TYPE_MMS)); in testSetAlwaysAllowMmsData() 121 assertFalse(mDataEnabledSettingsUT.isDataEnabled(ApnSetting.TYPE_MMS)); in testSetAlwaysAllowMmsData() 124 assertTrue(mDataEnabledSettingsUT.isDataEnabled(ApnSetting.TYPE_MMS)); in testSetAlwaysAllowMmsData()
|
/frameworks/base/telephony/java/com/android/internal/telephony/ |
D | PhoneConstants.java | 19 import android.telephony.data.ApnSetting; 133 public static final String APN_TYPE_ALL = ApnSetting.TYPE_ALL_STRING; 135 public static final String APN_TYPE_DEFAULT = ApnSetting.TYPE_DEFAULT_STRING; 137 public static final String APN_TYPE_MMS = ApnSetting.TYPE_MMS_STRING; 139 public static final String APN_TYPE_SUPL = ApnSetting.TYPE_SUPL_STRING; 141 public static final String APN_TYPE_DUN = ApnSetting.TYPE_DUN_STRING; 143 public static final String APN_TYPE_HIPRI = ApnSetting.TYPE_HIPRI_STRING; 145 public static final String APN_TYPE_FOTA = ApnSetting.TYPE_FOTA_STRING; 147 public static final String APN_TYPE_IMS = ApnSetting.TYPE_IMS_STRING; 149 public static final String APN_TYPE_CBS = ApnSetting.TYPE_CBS_STRING; [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | ApnContext.java | 23 import android.telephony.data.ApnSetting; 62 private ApnSetting mApnSetting; 104 this(phone, ApnSetting.getApnTypeString(typeId), logTag, tracker, priority); in ApnContext() 143 return ApnSetting.getApnTypesBitmaskFromString(mApnType); in getApnTypeBitmask() 204 public synchronized ApnSetting getApnSetting() { in getApnSetting() 213 public synchronized void setApnSetting(ApnSetting apnSetting) { in setApnSetting() 222 public synchronized void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns() 231 public ApnSetting getNextApnSetting() { in getNextApnSetting() 258 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed() 266 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns() [all …]
|
D | ApnConfigTypeRepository.java | 25 import android.telephony.data.ApnSetting; 71 add(ApnSetting.TYPE_DEFAULT, apnTypeMap); in addApns() 72 add(ApnSetting.TYPE_MMS, apnTypeMap); in addApns() 73 add(ApnSetting.TYPE_SUPL, apnTypeMap); in addApns() 74 add(ApnSetting.TYPE_DUN, apnTypeMap); in addApns() 75 add(ApnSetting.TYPE_HIPRI, apnTypeMap); in addApns() 76 add(ApnSetting.TYPE_FOTA, apnTypeMap); in addApns() 77 add(ApnSetting.TYPE_IMS, apnTypeMap); in addApns() 78 add(ApnSetting.TYPE_CBS, apnTypeMap); in addApns() 79 add(ApnSetting.TYPE_IA, apnTypeMap); in addApns() [all …]
|
D | ApnSettingUtils.java | 23 import android.telephony.data.ApnSetting; 85 if (mvnoType == ApnSetting.MVNO_TYPE_SPN) { in mvnoMatches() 90 } else if (mvnoType == ApnSetting.MVNO_TYPE_IMSI) { in mvnoMatches() 95 } else if (mvnoType == ApnSetting.MVNO_TYPE_GID) { in mvnoMatches() 102 } else if (mvnoType == ApnSetting.MVNO_TYPE_ICCID) { in mvnoMatches() 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() 188 public static boolean isMetered(ApnSetting apn, Phone phone) { in isMetered()
|
D | AccessNetworksManager.java | 38 import android.telephony.data.ApnSetting; 65 ApnSetting.TYPE_DEFAULT, 66 ApnSetting.TYPE_MMS, 67 ApnSetting.TYPE_FOTA, 68 ApnSetting.TYPE_IMS, 69 ApnSetting.TYPE_CBS, 70 ApnSetting.TYPE_SUPL, 71 ApnSetting.TYPE_EMERGENCY 128 + ApnSetting.getApnTypeString(apnType) in toString() 173 + ApnSetting.getApnTypesStringFromBitmask(apnTypes) in onQualifiedNetworkTypesChanged() [all …]
|
D | DcTracker.java | 22 import static android.telephony.data.ApnSetting.PROTOCOL_IPV4V6; 23 import static android.telephony.data.ApnSetting.TYPE_DEFAULT; 24 import static android.telephony.data.ApnSetting.TYPE_IA; 87 import android.telephony.data.ApnSetting; 220 private int mRequestedApnType = ApnSetting.TYPE_DEFAULT; 267 private ArrayList<ApnSetting> mAllApnSettings = new ArrayList<>(); 270 private ApnSetting mPreferredApn = null; 276 private ApnSetting mEmergencyApn = null; 1008 mApnContextsByType.put(ApnSetting.getApnTypesBitmaskFromString(apnContext.getApnType()), in initApnContexts() 1011 log("initApnContexts: apnContext=" + ApnSetting.getApnTypeString( in initApnContexts() [all …]
|
D | DataEnabledOverride.java | 24 import android.telephony.data.ApnSetting; 58 new OverrideRule(ApnSetting.TYPE_ALL, OverrideConditions.CONDITION_IN_VOICE_CALL 68 new OverrideRule(ApnSetting.TYPE_MMS, OverrideConditions.CONDITION_UNCONDITIONALLY); 101 mApnType = ApnSetting.getApnTypesBitmaskFromString(tokens[0]); in OverrideRule() 102 if (mApnType == ApnSetting.TYPE_NONE) { in OverrideRule() 128 return (mApnType == apnType || mApnType == ApnSetting.TYPE_ALL) in isSatisfiedByConditions() 134 return ApnSetting.getApnTypeString(mApnType) + "=" + mRequiredConditions; in toString()
|
D | TelephonyNetworkFactory.java | 33 import android.telephony.data.ApnSetting; 330 log("onDataHandoverNeeded: apnType=" + ApnSetting.getApnTypeString(apnType) in onDataHandoverNeeded() 334 log("APN type " + ApnSetting.getApnTypeString(apnType) + " is already on " in onDataHandoverNeeded() 350 ApnSetting.getApnTypeString(apnType)); in onDataHandoverNeeded() 359 log("Requested handover " + ApnSetting.getApnTypeString(apnType) + " to " in onDataHandoverNeeded()
|
D | TransportManager.java | 31 import android.telephony.data.ApnSetting; 321 logl("setCurrentTransport: apnType=" + ApnSetting.getApnTypeString(apnType) in setCurrentTransport() 352 + ApnSetting.getApnTypeString(networks.apnType) + ", target transport: " in updateAvailableNetworks() 363 + ApnSetting.getApnTypeString(networks.apnType) in updateAvailableNetworks()
|
/frameworks/base/telephony/java/android/telephony/ |
D | PreciseDataConnectionState.java | 35 import android.telephony.data.ApnSetting; 60 private @ApnType int mApnTypes = ApnSetting.TYPE_NONE; 63 private ApnSetting mApnSetting = null; 103 @Nullable ApnSetting apnSetting) { in PreciseDataConnectionState() 133 mApnSetting = (ApnSetting) in.readParcelable(null); in PreciseDataConnectionState() 269 public @Nullable ApnSetting getApnSetting() { in getApnSetting() 330 sb.append(", APN types: " + ApnSetting.getApnTypesStringFromBitmask(mApnTypes)); in toString()
|
D | Annotation.java | 5 import android.telephony.data.ApnSetting; 115 ApnSetting.TYPE_DEFAULT, 116 ApnSetting.TYPE_MMS, 117 ApnSetting.TYPE_SUPL, 118 ApnSetting.TYPE_DUN, 119 ApnSetting.TYPE_HIPRI, 120 ApnSetting.TYPE_FOTA, 121 ApnSetting.TYPE_IMS, 122 ApnSetting.TYPE_CBS, 123 ApnSetting.TYPE_IA, [all …]
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | ApnSetting.java | 58 public class ApnSetting implements Parcelable { class 744 private ApnSetting(Builder builder) { in ApnSetting() method in ApnSetting 778 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting() 820 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting() 838 public static ApnSetting makeApnSetting(Cursor cursor) { in makeApnSetting() 898 public static ApnSetting makeApnSetting(ApnSetting apn) { in makeApnSetting() 968 public static ApnSetting fromString(String data) { in fromString() 1103 public static List<ApnSetting> arrayFromString(String data) { in arrayFromString() 1104 List<ApnSetting> retVal = new ArrayList<ApnSetting>(); in arrayFromString() 1110 ApnSetting apn = fromString(apnString); in arrayFromString() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RetryManager.java | 24 import android.telephony.data.ApnSetting; 216 private ArrayList<ApnSetting> mWaitingApns = null; 492 public ApnSetting getNextApnSetting() { in getNextApnSetting() 606 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed() 628 public void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns() 640 for (ApnSetting apn : mWaitingApns) { in setWaitingApns() 657 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns()
|