Home
last modified time | relevance | path

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

123

/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/
DApnSettingTest.java31 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 …]
DRetryManagerTest.java24 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 …]
DDataProfileTest.java19 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 …]
DDataEnabledOverrideTest.java26 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 …]
DApnContextTest.java31 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 …]
DTransportManagerTest.java31 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 …]
DApnConfigTypeRepositoryTest.java23 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()
DDcRequestTest.java26 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()
DDataConnectionTest.java59 import android.telephony.data.ApnSetting;
104 private ApnSetting mApn1 = ApnSetting.makeApnSetting(
117 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types
118 ApnSetting.PROTOCOL_IP, // protocol
119 ApnSetting.PROTOCOL_IP, // roaming_protocol
131 private ApnSetting mApn2 = ApnSetting.makeApnSetting(
144 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_DUN, // types
145 ApnSetting.PROTOCOL_IP, // protocol
146 ApnSetting.PROTOCOL_IP, // roaming_protocol
158 private ApnSetting mApn3 = ApnSetting.makeApnSetting(
[all …]
DDcTrackerTest.java77 import android.telephony.data.ApnSetting;
574 assertEquals(ApnSetting.PROTOCOL_IP, dp.getProtocolType()); in verifyDataProfile()
582 assertEquals(ApnSetting.PROTOCOL_IP, dp.getRoamingProtocolType()); in verifyDataProfile()
652 mDct.enableApn(ApnSetting.TYPE_XCAP, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataUnmeteredDefaultNotSelected()
675 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataSetup()
717 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataRetry()
767 mDct.enableApn(ApnSetting.TYPE_IMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData()
768 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData()
803 mDct.enableApn(ApnSetting.TYPE_MMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled()
804 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled()
[all …]
DDataCallResponseTest.java28 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()
DDataEnabledSettingsTest.java30 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/
DPhoneConstants.java19 import android.telephony.data.ApnSetting;
129 public static final String APN_TYPE_ALL = ApnSetting.TYPE_ALL_STRING;
131 public static final String APN_TYPE_DEFAULT = ApnSetting.TYPE_DEFAULT_STRING;
133 public static final String APN_TYPE_MMS = ApnSetting.TYPE_MMS_STRING;
135 public static final String APN_TYPE_SUPL = ApnSetting.TYPE_SUPL_STRING;
137 public static final String APN_TYPE_DUN = ApnSetting.TYPE_DUN_STRING;
139 public static final String APN_TYPE_HIPRI = ApnSetting.TYPE_HIPRI_STRING;
141 public static final String APN_TYPE_FOTA = ApnSetting.TYPE_FOTA_STRING;
143 public static final String APN_TYPE_IMS = ApnSetting.TYPE_IMS_STRING;
145 public static final String APN_TYPE_CBS = ApnSetting.TYPE_CBS_STRING;
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java24 import android.telephony.data.ApnSetting;
63 private ApnSetting mApnSetting;
105 this(phone, ApnSetting.getApnTypeString(typeId), logTag, tracker, priority); in ApnContext()
144 return ApnSetting.getApnTypesBitmaskFromString(mApnType); in getApnTypeBitmask()
205 public synchronized ApnSetting getApnSetting() { in getApnSetting()
214 public synchronized void setApnSetting(ApnSetting apnSetting) { in setApnSetting()
223 public synchronized void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns()
232 public @Nullable ApnSetting getNextApnSetting() { in getNextApnSetting()
259 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed()
267 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns()
[all …]
DApnConfigTypeRepository.java25 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 …]
DApnSettingUtils.java23 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()
DAccessNetworksManager.java38 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 …]
DDcTracker.java22 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;
88 import android.telephony.data.ApnSetting;
221 private int mRequestedApnType = ApnSetting.TYPE_DEFAULT;
268 private ArrayList<ApnSetting> mAllApnSettings = new ArrayList<>();
271 private ApnSetting mPreferredApn = null;
277 private ApnSetting mEmergencyApn = null;
1013 mApnContextsByType.put(ApnSetting.getApnTypesBitmaskFromString(apnContext.getApnType()), in initApnContexts()
1016 log("initApnContexts: apnContext=" + ApnSetting.getApnTypeString( in initApnContexts()
[all …]
DDataEnabledOverride.java24 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()
DTelephonyNetworkFactory.java33 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()
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java35 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()
270 public @Nullable ApnSetting getApnSetting() { in getApnSetting()
331 sb.append(", APN types: " + ApnSetting.getApnTypesStringFromBitmask(mApnTypes)); in toString()
DAnnotation.java5 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/opt/telephony/src/java/com/android/internal/telephony/
DRetryManager.java25 import android.telephony.data.ApnSetting;
217 private ArrayList<ApnSetting> mWaitingApns = null;
493 public @Nullable ApnSetting getNextApnSetting() { in getNextApnSetting()
522 if (mWaitingApns.stream().allMatch(ApnSetting::getPermanentFailed)) { in getNextApnSetting()
573 if (mWaitingApns.stream().allMatch(ApnSetting::getPermanentFailed)) { in getDelayForNextApn()
608 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed()
630 public void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns()
642 for (ApnSetting apn : mWaitingApns) { in setWaitingApns()
659 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns()
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java58 public class ApnSetting implements Parcelable { class
747 private ApnSetting(Builder builder) { in ApnSetting() method in ApnSetting
781 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting()
823 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting()
841 public static ApnSetting makeApnSetting(Cursor cursor) { in makeApnSetting()
901 public static ApnSetting makeApnSetting(ApnSetting apn) { in makeApnSetting()
971 public static ApnSetting fromString(String data) { in fromString()
1106 public static List<ApnSetting> arrayFromString(String data) { in arrayFromString()
1107 List<ApnSetting> retVal = new ArrayList<ApnSetting>(); in arrayFromString()
1113 ApnSetting apn = fromString(apnString); in arrayFromString()
[all …]
DApnSetting.aidl18 parcelable ApnSetting;

123