/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ServiceStateTest.java | 78 int networkTypeBitmask = 1 << (4 - 1) | 1 << (7 - 1) | 1 << (5 - 1) | 1 << (6 - 1) in testBitmaskFromString() local 80 assertEquals(networkTypeBitmask, in testBitmaskFromString() 84 networkTypeBitmask = 1 << (13 - 1); in testBitmaskFromString() 85 assertEquals(networkTypeBitmask, in testBitmaskFromString() 89 networkTypeBitmask = 0; in testBitmaskFromString() 90 assertEquals(networkTypeBitmask, in testBitmaskFromString() 97 int networkTypeBitmask = 276600; in testConvertNetworkTypeBitmaskToBearerBitmask() local 101 ServiceState.convertNetworkTypeBitmaskToBearerBitmask(networkTypeBitmask)); in testConvertNetworkTypeBitmaskToBearerBitmask() 103 networkTypeBitmask = 0; in testConvertNetworkTypeBitmaskToBearerBitmask() 106 ServiceState.convertNetworkTypeBitmaskToBearerBitmask(networkTypeBitmask)); in testConvertNetworkTypeBitmaskToBearerBitmask() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/dataconnection/ |
D | ApnSettingTest.java | 155 int networkTypeBitmask = 1 << (13 - 1); in testFromString() local 159 networkTypeBitmask, 0, false, 0, 0, 0, 0, -1, ""); in testFromString() 167 networkTypeBitmask, 0, false, 0, 0, 0, 0, -1, ""); in testFromString() 175 networkTypeBitmask, 0, false, 0, 0, 0, 0, ApnSetting.MVNO_TYPE_SPN, "testspn"); in testFromString() 181 networkTypeBitmask = 1 << (6 - 1); in testFromString() 185 networkTypeBitmask, 0, false, 0, 0, 0, 0, ApnSetting.MVNO_TYPE_SPN, "testspn"); in testFromString() 192 networkTypeBitmask = 276728; in testFromString() 196 networkTypeBitmask, 0, false, 0, 0, 0, 0, ApnSetting.MVNO_TYPE_SPN, "testspn"); in testFromString() 202 networkTypeBitmask = 1 << (6 - 1); in testFromString() 206 networkTypeBitmask, 0, false, 0, 0, 0, 0, ApnSetting.MVNO_TYPE_SPN, "testspn"); in testFromString() [all …]
|
/frameworks/base/telephony/java/android/telephony/data/ |
D | ApnSetting.java | 782 boolean carrierEnabled, int networkTypeBitmask, int profileId, in makeApnSetting() argument 802 .setNetworkTypeBitmask(networkTypeBitmask) in makeApnSetting() 824 boolean carrierEnabled, int networkTypeBitmask, int profileId, boolean modemCognitive, in makeApnSetting() argument 829 protocol, roamingProtocol, carrierEnabled, networkTypeBitmask, profileId, in makeApnSetting() 841 int networkTypeBitmask = cursor.getInt( in makeApnSetting() local 843 if (networkTypeBitmask == 0) { in makeApnSetting() 846 networkTypeBitmask = in makeApnSetting() 876 networkTypeBitmask, in makeApnSetting() 1011 int networkTypeBitmask = 0; in fromString() local 1061 networkTypeBitmask = ServiceState.getBitmaskFromString(a[26]); in fromString() [all …]
|
/frameworks/base/telephony/java/android/telephony/ |
D | ServiceState.java | 1761 public static boolean bearerBitmapHasCdma(int networkTypeBitmask) { in bearerBitmapHasCdma() argument 1763 & convertNetworkTypeBitmaskToBearerBitmask(networkTypeBitmask)) != 0; in bearerBitmapHasCdma() 1814 public static int convertNetworkTypeBitmaskToBearerBitmask(int networkTypeBitmask) { in convertNetworkTypeBitmaskToBearerBitmask() argument 1815 if (networkTypeBitmask == 0) { in convertNetworkTypeBitmaskToBearerBitmask() 1820 if (bitmaskHasTech(networkTypeBitmask, rilRadioTechnologyToNetworkType(bearerInt))) { in convertNetworkTypeBitmaskToBearerBitmask() 1839 int networkTypeBitmask = 0; in convertBearerBitmaskToNetworkTypeBitmask() local 1842 networkTypeBitmask |= getBitmaskForTech(rilRadioTechnologyToNetworkType(bearerInt)); in convertBearerBitmaskToNetworkTypeBitmask() 1845 return networkTypeBitmask; in convertBearerBitmaskToNetworkTypeBitmask()
|
D | TelephonyManager.java | 7941 public boolean setPreferredNetworkTypeBitmask(@NetworkTypeBitMask long networkTypeBitmask) { in setPreferredNetworkTypeBitmask() argument 7947 (int) networkTypeBitmask)); in setPreferredNetworkTypeBitmask()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | RIL.java | 3195 @TelephonyManager.NetworkTypeBitMask int networkTypeBitmask) { in convertToHalRadioAccessFamily() 3198 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_GSM) != 0) { in convertToHalRadioAccessFamily() 3201 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_GPRS) != 0) { in convertToHalRadioAccessFamily() 3204 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_EDGE) != 0) { in convertToHalRadioAccessFamily() 3208 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_CDMA) != 0) { in convertToHalRadioAccessFamily() 3211 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_1xRTT) != 0) { in convertToHalRadioAccessFamily() 3214 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_0) != 0) { in convertToHalRadioAccessFamily() 3217 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_A) != 0) { in convertToHalRadioAccessFamily() 3220 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_EVDO_B) != 0) { in convertToHalRadioAccessFamily() 3223 if ((networkTypeBitmask & TelephonyManager.NETWORK_TYPE_BITMASK_EHRPD) != 0) { in convertToHalRadioAccessFamily() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | DcTracker.java | 3262 int networkTypeBitmask = (dest.getNetworkTypeBitmask() == 0 in mergeApns() local 3269 dest.isEnabled(), networkTypeBitmask, dest.getProfileId(), in mergeApns() 4993 int networkTypeBitmask = apn.getNetworkTypeBitmask(); in createDataProfile() local 4995 if (networkTypeBitmask == 0) { in createDataProfile() 4997 } else if (ServiceState.bearerBitmapHasCdma(networkTypeBitmask)) { in createDataProfile() 5017 .setBearerBitmask(networkTypeBitmask) in createDataProfile()
|