Home
last modified time | relevance | path

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

12

/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;
122 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
132 verify(mDcTracker, times(2)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
136 verify(mDcTracker, never()).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
140 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestNormal()
149 verify(mDcTracker, times(1)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach()
159 verify(mDcTracker, times(2)).enableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach()
163 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach()
167 verify(mDcTracker, times(1)).disableApn(eq(ApnSetting.TYPE_DEFAULT), in testNetworkRequestDetach()
[all …]
DTransportManagerTest.java34 import android.telephony.data.ApnSetting;
98 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded()
108 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded()
112 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded()
128 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded()
134 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded()
138 new QualifiedNetworks(ApnSetting.TYPE_IMS, in testHandoverNeeded()
154 assertEquals(ApnSetting.TYPE_IMS, params.apnType); in testHandoverNeeded()
159 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded()
163 mTransportManager.getCurrentTransport(ApnSetting.TYPE_IMS)); in testHandoverNeeded()
[all …]
DDataConnectionTest.java58 import android.telephony.data.ApnSetting;
105 private ApnSetting mApn1 = ApnSetting.makeApnSetting(
118 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_SUPL, // types
119 ApnSetting.PROTOCOL_IP, // protocol
120 ApnSetting.PROTOCOL_IP, // roaming_protocol
132 private ApnSetting mApn2 = ApnSetting.makeApnSetting(
145 ApnSetting.TYPE_DEFAULT | ApnSetting.TYPE_DUN, // types
146 ApnSetting.PROTOCOL_IP, // protocol
147 ApnSetting.PROTOCOL_IP, // roaming_protocol
159 private ApnSetting mApn3 = ApnSetting.makeApnSetting(
[all …]
DDataCallResponseTest.java28 import android.telephony.data.ApnSetting;
40 ApnSetting.PROTOCOL_IP, FAKE_IFNAME, in testParcel()
58 ApnSetting.PROTOCOL_IP, FAKE_IFNAME, in testEquals()
66 ApnSetting.PROTOCOL_IP, FAKE_IFNAME, in testEquals()
77 ApnSetting.PROTOCOL_IP, FAKE_IFNAME, 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()
DDcTrackerTest.java72 import android.telephony.data.ApnSetting;
564 assertEquals(ApnSetting.PROTOCOL_IP, dp.getProtocolType()); in verifyDataProfile()
572 assertEquals(ApnSetting.PROTOCOL_IP, dp.getRoamingProtocolType()); in verifyDataProfile()
633 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataSetup()
681 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testDataRetry()
734 mDct.enableApn(ApnSetting.TYPE_IMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData()
735 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testUserDisableData()
775 mDct.enableApn(ApnSetting.TYPE_MMS, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled()
776 mDct.enableApn(ApnSetting.TYPE_DEFAULT, DcTracker.REQUEST_TYPE_NORMAL, null); in testTrySetupDataMmsAllowedDataDisabled()
807 doReturn(true).when(mDataEnabledSettings).isDataEnabled(ApnSetting.TYPE_MMS); in testTrySetupDataMmsAllowedDataDisabled()
[all …]
DDcControllerTest.java40 import android.telephony.data.ApnSetting;
134 DATA_CONNECTION_ACTIVE_PH_LINK_DORMANT, ApnSetting.PROTOCOL_IP, FAKE_IFNAME, in testDataDormant()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/
DApnContext.java26 import android.telephony.data.ApnSetting;
27 import android.telephony.data.ApnSetting.ApnType;
65 private ApnSetting mApnSetting;
140 return ApnSetting.getApnTypesBitmaskFromString(mApnType); in getApnTypeBitmask()
192 public synchronized ApnSetting getApnSetting() { in getApnSetting()
201 public synchronized void setApnSetting(ApnSetting apnSetting) { in setApnSetting()
210 public synchronized void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns()
219 public ApnSetting getNextApnSetting() { in getNextApnSetting()
246 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed()
254 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns()
[all …]
DApnSettingUtils.java23 import android.telephony.data.ApnSetting;
24 import android.telephony.data.ApnSetting.ApnType;
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()
[all …]
DAccessNetworksManager.java37 import android.telephony.data.ApnSetting;
38 import android.telephony.data.ApnSetting.ApnType;
64 ApnSetting.TYPE_DEFAULT,
65 ApnSetting.TYPE_MMS,
66 ApnSetting.TYPE_FOTA,
67 ApnSetting.TYPE_IMS,
68 ApnSetting.TYPE_CBS,
69 ApnSetting.TYPE_SUPL,
70 ApnSetting.TYPE_EMERGENCY
127 + ApnSetting.getApnTypeString(apnType) in toString()
[all …]
DDcTracker.java81 import android.telephony.data.ApnSetting;
82 import android.telephony.data.ApnSetting.ApnType;
225 private int mRequestedApnType = ApnSetting.TYPE_DEFAULT;
278 private ArrayList<ApnSetting> mAllApnSettings = new ArrayList<>();
281 private ApnSetting mPreferredApn = null;
287 private ApnSetting mEmergencyApn = null;
993 mApnContextsByType.put(ApnSetting.getApnTypesBitmaskFromString(type), apnContext); in addApnContext()
1098 ApnSetting apnSetting = apnContext.getApnSetting(); in getActiveApnString()
1114 final int apnTypeBitmask = ApnSetting.getApnTypesBitmaskFromString(apnType); in getState()
1116 ApnSetting apnSetting = dc.getApnSetting(); in getState()
[all …]
DDataEnabledOverride.java21 import android.telephony.data.ApnSetting;
22 import android.telephony.data.ApnSetting.ApnType;
54 new OverrideRule(ApnSetting.TYPE_ALL, OverrideConditions.CONDITION_IN_VOICE_CALL
62 new OverrideRule(ApnSetting.TYPE_MMS, OverrideConditions.CONDITION_UNCONDITIONALLY);
95 mApnType = ApnSetting.getApnTypesBitmaskFromString(tokens[0]); in OverrideRule()
96 if (mApnType == ApnSetting.TYPE_NONE) { in OverrideRule()
122 return (mApnType == apnType || mApnType == ApnSetting.TYPE_ALL) in isSatisfiedByConditions()
128 return ApnSetting.getApnTypeString(mApnType) + "=" + mRequiredConditions; in toString()
DTransportManager.java31 import android.telephony.data.ApnSetting;
32 import android.telephony.data.ApnSetting.ApnType;
315 logl("setCurrentTransport: apnType=" + ApnSetting.getApnTypeString(apnType) in setCurrentTransport()
346 + ApnSetting.getApnTypeString(networks.apnType) + ", target transport: " in updateAvailableNetworks()
356 + ApnSetting.getApnTypeString(networks.apnType) in updateAvailableNetworks()
DTelephonyNetworkFactory.java32 import android.telephony.data.ApnSetting;
33 import android.telephony.data.ApnSetting.ApnType;
317 log("onDataHandoverNeeded: apnType=" + ApnSetting.getApnTypeString(apnType) in onDataHandoverNeeded()
321 log("APN type " + ApnSetting.getApnTypeString(apnType) + " is already on " in onDataHandoverNeeded()
337 ApnSetting.getApnTypeString(apnType)); in onDataHandoverNeeded()
DDcRequest.java21 import android.telephony.data.ApnSetting.ApnType;
DDataEnabledSettings.java36 import android.telephony.data.ApnSetting;
332 .shouldOverrideDataEnabledSettings(mPhone, ApnSetting.TYPE_ALL)) in updateDataEnabled()
/frameworks/base/telephony/java/android/telephony/
DPreciseDataConnectionState.java26 import android.telephony.data.ApnSetting;
53 private @ApnSetting.ApnType int mAPNTypes = ApnSetting.TYPE_NONE;
65 @ApnSetting.ApnType int apnTypes, String apn, in PreciseDataConnectionState()
118 public @ApnSetting.ApnType int getDataConnectionApnTypeBitMask() { in getDataConnectionApnTypeBitMask()
200 sb.append(", APN types: " + ApnSetting.getApnTypesStringFromBitmask(mAPNTypes)); in toString()
/frameworks/base/telephony/java/android/telephony/data/
DApnSetting.java55 public class ApnSetting implements Parcelable { class
642 private ApnSetting(Builder builder) { in ApnSetting() method in ApnSetting
676 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting()
718 public static ApnSetting makeApnSetting(int id, String operatorNumeric, String entryName, in makeApnSetting()
736 public static ApnSetting makeApnSetting(Cursor cursor) { in makeApnSetting()
796 public static ApnSetting makeApnSetting(ApnSetting apn) { in makeApnSetting()
866 public static ApnSetting fromString(String data) { in fromString()
1001 public static List<ApnSetting> arrayFromString(String data) { in arrayFromString()
1002 List<ApnSetting> retVal = new ArrayList<ApnSetting>(); in arrayFromString()
1008 ApnSetting apn = fromString(apnString); in arrayFromString()
[all …]
DApnSetting.aidl18 parcelable ApnSetting;
DDataProfile.java19 import static android.telephony.data.ApnSetting.ProtocolType;
29 import android.telephony.data.ApnSetting.ApnType;
30 import android.telephony.data.ApnSetting.AuthType;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DRetryManager.java26 import android.telephony.data.ApnSetting;
215 private ArrayList<ApnSetting> mWaitingApns = null;
491 public ApnSetting getNextApnSetting() { in getNextApnSetting()
605 public void markApnPermanentFailed(ApnSetting apn) { in markApnPermanentFailed()
627 public void setWaitingApns(ArrayList<ApnSetting> waitingApns) { in setWaitingApns()
639 for (ApnSetting apn : mWaitingApns) { in setWaitingApns()
656 public ArrayList<ApnSetting> getWaitingApns() { in getWaitingApns()

12