Home
last modified time | relevance | path

Searched refs:apnType (Results 1 – 19 of 19) sorted by relevance

/packages/apps/Settings/tests/spa_unit/src/com/android/settings/network/apn/
DApnTypesTest.kt60 val apnType = options.toApnType() in toApnType_hasSelected() constant
62 assertThat(apnType).isEqualTo(APN_TYPE) in toApnType_hasSelected()
71 val apnType = options.toApnType() in toApnType_hasNotSelected() constant
73 assertThat(apnType).isEmpty() in toApnType_hasNotSelected()
78 val apnType = ApnTypes.getPreSelectedApnType(CustomizedConfig()) in getPreSelectedApnType_regular() constant
80 assertThat(apnType).isEqualTo("default,mms,supl,dun,hipri,fota,cbs,xcap") in getPreSelectedApnType_regular()
89 val apnType = ApnTypes.getPreSelectedApnType(customizedConfig) in getPreSelectedApnType_readOnlyApnTypes() constant
91 assertThat(apnType).isEqualTo("default,mms,supl,hipri,fota,cbs,xcap") in getPreSelectedApnType_readOnlyApnTypes()
DApnEditPageProviderTest.kt56 private val apnType = context.resources.getString(R.string.apn_type) constant in com.android.settings.network.apn.ApnEditPageProviderTest
67 apnType = apnType,
123 .performScrollToNode(hasText(apnType, true)) in apn_type_displayed()
124 composeTestRule.onNodeWithText(apnType, true).assertIsDisplayed() in apn_type_displayed()
/packages/apps/Settings/src/com/android/settings/network/apn/
DApnTypes.kt50 private fun splitToList(apnType: String): List<String> { in splitToList()
51 val types = apnType.split(',').map { it.trim().toLowerCase(Locale.current) } in splitToList()
58 fun isApnTypeReadOnly(apnType: String, readOnlyTypes: List<String>): Boolean { in isApnTypeReadOnly()
59 val apnTypes = splitToList(apnType) in isApnTypeReadOnly()
65 fun getOptions(context: Context, apnType: String, readOnlyTypes: List<String>) = buildList { in <lambda>()
66 val apnTypes = splitToList(apnType) in <lambda>()
DApnStatus.kt44 val apnType: String = "", constant in com.android.settings.network.apn.ApnData
71 Telephony.Carriers.TYPE to apnType, in getContentValueMap()
133 apnType = getPreSelectedApnType(apnDataInit.customizedConfig) in getApnDataInit()
182 apnData.apnType.isEmpty() -> context.resources.getString(R.string.error_apn_type_empty) in validateApnData()
252 ApnTypes.isApnTypeReadOnly(apnType, customizedConfig.readOnlyApnTypes) in isReadOnly()
DApnEditor.java1302 for (String apnType : apnTypeList) { in getEditableApnType()
1304 if (!readOnlyApnTypes.contains(apnType) in getEditableApnType()
1305 && !apnType.equals(APN_TYPE_IA) in getEditableApnType()
1306 && !apnType.equals(APN_TYPE_EMERGENCY) in getEditableApnType()
1307 && !apnType.equals(APN_TYPE_MCX) in getEditableApnType()
1308 && !apnType.equals(APN_TYPE_IMS)) { in getEditableApnType()
1314 editableApnTypes.append(apnType); in getEditableApnType()
DApnTypeCheckBox.kt39 ApnTypes.getOptions(context, apnData.apnType, apnData.customizedConfig.readOnlyApnTypes) in ApnTypeCheckBox()
DApnRepository.kt86 apnType = cursor.getString(Telephony.Carriers.TYPE), in <lambda>()
DApnEditPageProvider.kt198 onTypeChanged = { apnData = apnData.copy(apnType = it) }, in ApnPage()
/packages/services/Iwlan/test/com/google/android/iwlan/
DIwlanBroadcastReceiverTest.java169 private void onReceiveMethodWithArgs(int apnType, int pcoId) { in onReceiveMethodWithArgs() argument
173 mIntent.putExtra(EXTRA_APN_TYPE_INT_KEY, apnType); in onReceiveMethodWithArgs()
181 private void onReceiveMethodWithArgs(int apnType, int pcoId, byte[] pcoData) { in onReceiveMethodWithArgs() argument
185 mIntent.putExtra(EXTRA_APN_TYPE_INT_KEY, apnType); in onReceiveMethodWithArgs()
/packages/services/Iwlan/src/com/google/android/iwlan/proto/
DMetricsAtom.java57 public void setApnType(int apnType) { in setApnType() argument
58 this.mApnType = apnType; in setApnType()
/packages/modules/Telephony/services/QualifiedNetworksService/src/com/android/telephony/qns/
DQnsUtils.java471 static int getNetCapabilityFromApnType(int apnType) { in getNetCapabilityFromApnType() argument
472 switch (apnType) { in getNetCapabilityFromApnType()
484 throw new IllegalArgumentException("Unsupported apnType: " + apnType); in getNetCapabilityFromApnType()
561 for (int apnType : apnTypes) { in getNetCapabilitiesFromApnTypeBitmask()
563 netCapabilities.add(getNetCapabilityFromApnType(apnType)); in getNetCapabilitiesFromApnTypeBitmask()
DQualifiedNetworksServiceImpl.java259 int apnType = QnsUtils.getApnTypeFromNetCapability(info.getNetCapability()); in onQualifiedNetworksChanged() local
260 updateQualifiedNetworkTypes(apnType, info.getAccessNetworkTypes()); in onQualifiedNetworksChanged()
/packages/modules/Telephony/services/QualifiedNetworksService/tests/src/com/android/telephony/qns/
DQualifiedNetworksServiceImplTest.java248 private void buildThrottle(int slot, int apnType, long timer) { in buildThrottle() argument
253 .setApnType(apnType); in buildThrottle()
DQnsUtilsTest.java1267 int apnType = QnsUtils.getApnTypeFromNetCapability(netCapability); in testTransitionBtwApnTypeAndNetCapability() local
1268 int netCapabilityFromApnType = QnsUtils.getNetCapabilityFromApnType(apnType); in testTransitionBtwApnTypeAndNetCapability()
1294 int apnType = QnsUtils.getApnTypeFromNetCapability(netCapability); in testTransitionBtwApnTypeNameAndNetCapabilityName() local
1295 String apnTypeName = ApnSetting.getApnTypeString(apnType); in testTransitionBtwApnTypeNameAndNetCapabilityName()
1296 int netCapabilityFromApnType = QnsUtils.getNetCapabilityFromApnType(apnType); in testTransitionBtwApnTypeNameAndNetCapabilityName()
DDataConnectionStatusTrackerTest.java761 int accessNetwork, int apnType, int telephonyState, int currentRat) { in loadPrecisionDataConnectionStateWithApnSetting() argument
767 .setApnTypeBitmask(apnType) in loadPrecisionDataConnectionStateWithApnSetting()
/packages/services/Telephony/tests/src/com/android/services/telephony/domainselection/
DDataConnectionStateHelperTest.java357 int apnType, int state) { in getPreciseDataConnectionState() argument
364 .setApnTypeBitmask(apnType) in getPreciseDataConnectionState()
/packages/services/Iwlan/src/com/google/android/iwlan/
DIwlanDataService.java421 public boolean hasApnType(int apnType) { in hasApnType() argument
422 return (mApnTypeBitmask & apnType) != 0; in hasApnType()
1085 int apnType, in setMetricsAtom() argument
1092 metricsAtom.setApnType(apnType); in setMetricsAtom()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DTelephonyProvider.java2755 String apnType = parser.getAttributeValue(null, "type"); in getRow() local
2756 if (apnType != null) { in getRow()
2758 apnType = apnType.replaceAll("\\s+", ""); in getRow()
2759 map.put(TYPE, apnType); in getRow()
/packages/services/Telephony/src/com/android/phone/
DPhoneInterfaceManager.java10835 public boolean isDataEnabledForApn(int apnType, int subId, String callingPackage) { in isDataEnabledForApn() argument
10851 .isMeteredCapability(DataUtils.apnTypeToNetworkCapability(apnType), in isDataEnabledForApn()
10853 isDataEnabled = phone.getDataSettingsManager().isDataEnabled(apnType); in isDataEnabledForApn()
10861 public boolean isApnMetered(@ApnType int apnType, int subId) { in isApnMetered() argument
10873 DataUtils.apnTypeToNetworkCapability(apnType), in isApnMetered()