/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/data/ |
D | EuiccRulesAuthTableTest.java | 37 EuiccRulesAuthTable rat = in testFindIndex() local 86 assertEquals(1, rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DELETE, opA)); in testFindIndex() 87 assertEquals(3, rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DELETE, opB)); in testFindIndex() 88 assertEquals(2, rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DISABLE, opA)); in testFindIndex() 89 assertEquals(2, rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DISABLE, opB)); in testFindIndex() 90 assertTrue(rat.hasPolicyRuleFlag(1, EuiccRulesAuthTable.POLICY_RULE_FLAG_CONSENT_REQUIRED)); in testFindIndex() 91 assertFalse(rat.hasPolicyRuleFlag( in testFindIndex() 93 assertTrue(rat.hasPolicyRuleFlag(3, EuiccRulesAuthTable.POLICY_RULE_FLAG_CONSENT_REQUIRED)); in testFindIndex() 101 EuiccRulesAuthTable rat = in testFindIndex_AllowAllWithUserConsent() local 115 assertEquals(0, rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DELETE, opA)); in testFindIndex_AllowAllWithUserConsent() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
D | ModemInfoTest.java | 33 int rat = 2; in basicTests() local 36 ModemInfo modemInfo = new ModemInfo(modemId, rat, isVoiceSupported, isDataSupported); in basicTests() 39 assertEquals(rat, modemInfo.rat); in basicTests() 43 modemId + 1, rat, isVoiceSupported, isDataSupported)); in basicTests() 45 modemId, rat + 1, isVoiceSupported, isDataSupported)); in basicTests() 46 assertNotEquals(modemInfo, new ModemInfo(modemId, rat, !isVoiceSupported, isDataSupported)); in basicTests() 47 assertNotEquals(modemInfo, new ModemInfo(modemId, rat, isVoiceSupported, !isDataSupported)); in basicTests() 54 int rat = 2; in parcelReadWrite() local 57 ModemInfo modemInfo = new ModemInfo(modemId, rat, isVoiceSupported, isDataSupported); in parcelReadWrite() 65 assertEquals(rat, toCompare.rat); in parcelReadWrite()
|
D | ServiceStateTest.java | 170 for (Pair<Integer, Boolean> rat : rats) { in testRAT() 171 boolean isCdma = rat.second; in testRAT() 174 assertTrue("RAT " + rat + " should be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 175 assertFalse("RAT " + rat + " should not be GSM", ServiceState.isGsm(rat.first)); in testRAT() 177 assertFalse("RAT " + rat + " should not be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 178 assertTrue("RAT " + rat + " should be GSM", ServiceState.isGsm(rat.first)); in testRAT()
|
D | CellularNetworkServiceTest.java | 213 regResult.rat = radioTech; in testGetNetworkRegistrationInfoV1_5() 306 regResult.rat = radioTech; in testGetNetworkRegistrationInfoV1_6WithLte() 396 regResult.rat = radioTech; in testGetNetworkRegistrationInfoV1_6WithNr()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ModemInfo.java | 31 public final int rat; /* bitset */ field in ModemInfo 40 public ModemInfo(int modemId, int rat, boolean isVoiceSupported, boolean isDataSupported) { in ModemInfo() argument 42 this.rat = rat; in ModemInfo() 49 rat = in.readInt(); in ModemInfo() 56 return "modemId=" + modemId + " rat=" + rat + " isVoiceSupported:" + isVoiceSupported in toString() 62 return Objects.hash(modemId, rat, isVoiceSupported, isDataSupported); in hashCode() 78 && rat == s.rat in equals() 95 dest.writeInt(rat); in writeToParcel()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/ |
D | VoiceCallRatTracker.java | 80 public void add(int carrierId, int rat, long timestampMillis, Set<Integer> connectionIds) { in add() argument 93 Key key = new Key(carrierId, rat); in add() 152 usage.rat = key.rat; in entryToProto() 168 public final int rat; field in VoiceCallRatTracker.Key 170 Key(int carrierId, int rat) { in Key() argument 172 this.rat = rat; in Key() 176 return new Key(usage.carrierId, usage.rat); in fromProto() 180 return Objects.hash(carrierId, rat); in hashCode() 188 return thatKey.carrierId == this.carrierId && thatKey.rat == this.rat; in equals()
|
D | DataStallRecoveryStats.java | 45 int rat = getRat(phone); in onDataStallEvent() local 46 int band = ServiceStateStats.getBand(phone, rat); in onDataStallEvent() 52 TelephonyStatsLog.write(TelephonyStatsLog.DATA_STALL_RECOVERY_REPORTED, carrierId, rat, in onDataStallEvent()
|
D | ImsStats.java | 244 stats.rat == TelephonyManager.NETWORK_TYPE_IWLAN in conclude() 269 mLastRegistrationStats.rat = convertRegistrationTechToNetworkType(radioTech); in onImsCapabilitiesChanged() 293 mLastRegistrationStats.rat = convertTransportTypeToNetworkType(imsRadioTech); in onImsRegistering() 305 mLastRegistrationStats.rat = convertTransportTypeToNetworkType(imsRadioTech); in onImsRegistered() 318 termination.ratAtEnd = getRatAtEnd(mLastRegistrationStats.rat); in onImsUnregistered() 409 dest.rat = source.rat; in copyOf()
|
D | ServiceStateStats.java | 138 static int getBand(Phone phone, @NetworkType int rat) { in getBand() argument 140 return getBand(serviceState, rat); in getBand() 147 static int getBand(@Nullable ServiceState serviceState, @NetworkType int rat) { in getBand() argument 153 switch (rat) { in getBand()
|
D | VoiceCallSessionStats.java | 385 @NetworkType int rat = getRat(serviceState); in addCall() local 397 proto.ratAtStart = rat; in addCall() 399 proto.ratAtEnd = rat; in addCall() 521 @NetworkType int rat = getRat(state); in updateRatTracker() local 522 int band = ServiceStateStats.getBand(state, rat); in updateRatTracker() 524 mRatUsage.add(mPhone.getCarrierId(), rat, getTimeMillis(), getConnectionIds()); in updateRatTracker() local 527 if (proto.ratAtEnd != rat) { in updateRatTracker() 529 proto.ratAtEnd = rat; in updateRatTracker() 582 private int getSignalStrength(@NetworkType int rat) { in getSignalStrength() argument 583 if (rat == TelephonyManager.NETWORK_TYPE_IWLAN) { in getSignalStrength()
|
D | MetricsCollector.java | 240 usage -> ((long) usage.carrierId << 32) | usage.rat)) in pullVoiceCallRatUsages() 417 usage.rat, in buildStatsEvent() 466 sms.rat, in buildStatsEvent() 485 sms.rat, in buildStatsEvent() 527 stats.rat, in buildStatsEvent()
|
D | SmsStats.java | 93 proto.rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onDroppedIncomingMultipartSms() 201 proto.rat = getRat(smsSource); in getIncomingDefaultProto() 224 proto.rat = getRat(isOverIms); in getOutgoingDefaultProto()
|
D | PersistAtomsStorage.java | 668 && stats.rat == key.rat) { in find()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NetworkTypeController.java | 587 int rat = getDataNetworkType(); in processMessage() local 590 if (rat == TelephonyManager.NETWORK_TYPE_NR || isLte(rat) && isNrConnected()) { in processMessage() 592 } else if (isLte(rat) && isNrNotRestricted()) { in processMessage() 596 if (!isLte(rat)) { in processMessage() 607 } else if (isLte(rat) && isNrNotRestricted()) { in processMessage() 610 } else if (isLte(rat) && isNrRestricted()) { in processMessage() 673 int rat = getDataNetworkType(); in processMessage() local 674 if (rat == TelephonyManager.NETWORK_TYPE_NR) { in processMessage() 676 } else if (!isLte(rat) || !isNrNotRestricted()) { in processMessage() 757 int rat = getDataNetworkType(); in processMessage() local [all …]
|
D | HardwareConfig.java | 98 public BitSet rat; field in HardwareConfig 155 rat = new BitSet(bits.length); in assignModem() 157 rat.set(i, (bits[i] == '1' ? true : false)); in assignModem() 180 builder.append(", rat=" + rat.toString()); in toString()
|
D | CellularNetworkService.java | 239 int networkType = ServiceState.rilRadioTechnologyToNetworkType(voiceRegState.rat); in createRegistrationStateFromVoiceRegState() 259 int networkType = ServiceState.rilRadioTechnologyToNetworkType(voiceRegState.rat); in createRegistrationStateFromVoiceRegState() 314 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.rat); in createRegistrationStateFromDataRegState() 323 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.rat); in createRegistrationStateFromDataRegState() 332 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.base.rat); in createRegistrationStateFromDataRegState() 342 && ServiceState.rilRadioTechnologyToAccessNetworkType(dataRegState.base.rat) in createRegistrationStateFromDataRegState() 386 int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat); in getNetworkRegistrationInfo() 466 int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat); in getNetworkRegistrationInfo1_6()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | ImsStatsTest.java | 171 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registered() 218 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registeredPartialFeatures() 265 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, stats.rat); in conclude_registeredVoiceOnly() 330 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_sameTech() 365 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onSetFeatureResponse_sameTech() 395 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, statsLte.rat); in onImsRegistered_differentTech() 408 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, statsWifi.rat); in onImsRegistered_differentTech() 480 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsUnregistered_afterRegistered() 702 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsUnregistered_multiSim()
|
D | PersistAtomsStorageTest.java | 251 mCarrier1LteUsageProto.rat = TelephonyManager.NETWORK_TYPE_LTE; in makeTestData() 257 mCarrier1UmtsUsageProto.rat = TelephonyManager.NETWORK_TYPE_UMTS; in makeTestData() 263 mCarrier2LteUsageProto.rat = TelephonyManager.NETWORK_TYPE_LTE; in makeTestData() 269 mCarrier3LteUsageProto.rat = TelephonyManager.NETWORK_TYPE_LTE; in makeTestData() 275 mCarrier3GsmUsageProto.rat = TelephonyManager.NETWORK_TYPE_GSM; in makeTestData() 370 mImsRegistrationStatsLte0.rat = TelephonyManager.NETWORK_TYPE_LTE; in makeTestData() 385 mImsRegistrationStatsWifi0.rat = TelephonyManager.NETWORK_TYPE_IWLAN; in makeTestData() 394 mImsRegistrationStatsLte1.rat = TelephonyManager.NETWORK_TYPE_LTE; in makeTestData() 1086 stats.rat = i; in addImsRegistrationStats_tooManyRegistrationStats() 1329 multipliedUsages[i].rat = usages[i].rat; in multiplyVoiceCallRatUsage()
|
D | VoiceCallSessionStatsTest.java | 2015 int bearer, int direction, int rat, int reason) { in makeSlot0CallProto() argument 2026 call.ratAtStart = rat; in makeSlot0CallProto() 2027 call.ratAtConnected = rat; in makeSlot0CallProto() 2028 call.ratAtEnd = rat; in makeSlot0CallProto() 2049 int bearer, int direction, int rat, int reason) { in makeSlot1CallProto() argument 2060 call.ratAtStart = rat; in makeSlot1CallProto() 2061 call.ratAtConnected = rat; in makeSlot1CallProto() 2062 call.ratAtEnd = rat; in makeSlot1CallProto() 2083 int carrierId, int rat, long beginMillis, long endMillis, long callCount) { in makeRatUsageProto() argument 2086 usage.rat = rat; in makeRatUsageProto()
|
/frameworks/base/telephony/java/com/android/internal/telephony/euicc/ |
D | IGetRulesAuthTableCallback.aidl | 22 void onComplete(int resultCode, in EuiccRulesAuthTable rat); in onComplete() argument
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/dataconnection/ |
D | LinkBandwidthEstimator.java | 837 public String getDataRatName(int rat) { in getDataRatName() argument 838 return getDataRatName(rat, getNrMode(rat)); in getDataRatName() 841 private int getNrMode(int rat) { in getNrMode() argument 842 if (rat == TelephonyManager.NETWORK_TYPE_LTE && isNrNsaConnected()) { in getNrMode() 846 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getNrMode() 857 public static String getDataRatName(int rat, int nrMode) { in getDataRatName() argument 858 if (rat == TelephonyManager.NETWORK_TYPE_LTE in getDataRatName() 862 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getDataRatName() 864 ? TelephonyManager.getNetworkTypeName(rat) : DctConstants.RAT_NAME_NR_SA_MMWAVE; in getDataRatName() 866 return TelephonyManager.getNetworkTypeName(rat); in getDataRatName()
|
/frameworks/opt/telephony/proto/src/ |
D | persist_atoms.proto | 144 optional int32 rat = 2; field 152 optional int32 rat = 3; field 169 optional int32 rat = 3; field 255 optional int32 rat = 3; field
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/imsphone/ |
D | ImsPhoneTest.java | 979 private ServiceState getServiceStateDataAndVoice(int rat, int regState, boolean isRoaming) { in getServiceStateDataAndVoice() argument 984 ss.setRilDataRadioTechnology(rat); in getServiceStateDataAndVoice() 987 ss.setRilVoiceRadioTechnology(rat); in getServiceStateDataAndVoice() 991 private ServiceState getServiceStateDataOnly(int rat, int regState, boolean isRoaming) { in getServiceStateDataOnly() argument 996 ss.setRilDataRadioTechnology(rat); in getServiceStateDataOnly() 1000 private ServiceState modifyServiceStateData(ServiceState ss, int rat, int regState, in modifyServiceStateData() argument 1005 ss.setRilDataRadioTechnology(rat); in modifyServiceStateData()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/uicc/euicc/ |
D | EuiccCardTest.java | 453 EuiccRulesAuthTable rat = resultCaptor.result; in testGetRulesAuthTable() local 455 rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DELETE, in testGetRulesAuthTable() 458 rat.findIndex(EuiccProfileInfo.POLICY_RULE_DO_NOT_DISABLE, in testGetRulesAuthTable() 460 assertFalse(rat.hasPolicyRuleFlag(0, in testGetRulesAuthTable() 462 assertTrue(rat.hasPolicyRuleFlag(1, in testGetRulesAuthTable()
|
/frameworks/base/telephony/java/android/telephony/euicc/ |
D | EuiccCardManager.java | 464 public void onComplete(int resultCode, EuiccRulesAuthTable rat) { in requestRulesAuthTable() argument 467 executor.execute(() -> callback.onComplete(resultCode, rat)); in requestRulesAuthTable()
|