/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 | 174 for (Pair<Integer, Boolean> rat : rats) { in testRAT() 175 boolean isCdma = rat.second; in testRAT() 178 assertTrue("RAT " + rat + " should be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 179 assertFalse("RAT " + rat + " should not be GSM", ServiceState.isGsm(rat.first)); in testRAT() 181 assertFalse("RAT " + rat + " should not be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 182 assertTrue("RAT " + rat + " should be GSM", ServiceState.isGsm(rat.first)); in testRAT()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ModemActivityInfo.java | 258 @TxPowerLevel int powerLevel, int rat) { in getTransmitDurationMillisAtPowerLevel() argument 260 if (mActivityStatsTechSpecificInfo[i].getRat() == rat) { in getTransmitDurationMillisAtPowerLevel() 269 @TxPowerLevel int powerLevel, int rat, @FrequencyRange int freq) { in getTransmitDurationMillisAtPowerLevel() argument 271 if (mActivityStatsTechSpecificInfo[i].getRat() == rat in getTransmitDurationMillisAtPowerLevel() 303 public void setTransmitTimeMillis(int rat, int[] txTimeMs) { in setTransmitTimeMillis() argument 305 if (mActivityStatsTechSpecificInfo[i].getRat() == rat) { in setTransmitTimeMillis() 311 public void setTransmitTimeMillis(int rat, int freq, int[] txTimeMs) { in setTransmitTimeMillis() argument 313 if (mActivityStatsTechSpecificInfo[i].getRat() == rat in setTransmitTimeMillis() 329 public int[] getTransmitTimeMillis(@AccessNetworkConstants.RadioAccessNetworkType int rat) { in getTransmitTimeMillis() argument 331 if (mActivityStatsTechSpecificInfo[i].getRat() == rat) { in getTransmitTimeMillis() [all …]
|
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()
|
D | ActivityStatsTechSpecificInfo.java | 45 int rat, @FrequencyRange int frequencyRange, @NonNull int[] txTimeMs, int rxTimeMs) { in ActivityStatsTechSpecificInfo() argument 50 mRat = rat; in ActivityStatsTechSpecificInfo() 105 public void setRat(int rat) { in setRat() argument 106 mRat = rat; in setRat() 224 int rat = in.readInt(); 230 rat, frequencyRange, txTimeMs, rxTimeMs);
|
/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 | 59 int rat = getRat(phone); in onDataStallEvent() local 61 (rat == TelephonyManager.NETWORK_TYPE_IWLAN) ? 0 : ServiceStateStats.getBand(phone); in onDataStallEvent() 80 rat, in onDataStallEvent() 120 int rat = getRat(phone); in onDataStallEvent() local 122 (rat == TelephonyManager.NETWORK_TYPE_IWLAN) ? 0 : ServiceStateStats.getBand(phone); in onDataStallEvent() 156 rat, in onDataStallEvent()
|
D | ImsStats.java | 244 stats.rat == TelephonyManager.NETWORK_TYPE_IWLAN in conclude() 274 if (mLastRegistrationStats != null && mLastRegistrationStats.rat != newRat) { in onImsCapabilitiesChanged() 275 mLastRegistrationStats.rat = newRat; in onImsCapabilitiesChanged() 312 mLastRegistrationStats.rat = convertTransportTypeToNetworkType(imsRadioTech); in onImsRegistering() 325 mLastRegistrationStats.rat = convertTransportTypeToNetworkType(imsRadioTech); in onImsRegistered() 338 termination.ratAtEnd = getRatAtEnd(mLastRegistrationStats.rat); in onImsUnregistered() 362 mLastRegistrationStats.rat = in onServiceStateChanged() 377 return mLastRegistrationStats.rat; in getImsVoiceRadioTech() 446 dest.rat = source.rat; in copyOf()
|
D | VoiceCallSessionStats.java | 440 @NetworkType int rat = getVoiceRatWithVoNRFix(mPhone, serviceState, bearer); in addCall() local 451 proto.ratAtStart = rat; in addCall() 453 proto.ratAtEnd = rat; in addCall() 467 proto.lastKnownRat = rat; in addCall() 603 @NetworkType int rat = getVoiceRatWithVoNRFix(mPhone, state, in updateRatTracker() local 605 mRatUsage.add(mPhone.getCarrierId(), rat, getTimeMillis(), getConnectionIds()); in updateRatTracker() local 609 rat = getVoiceRatWithVoNRFix(mPhone, state, proto.bearerAtEnd); in updateRatTracker() 610 updateRatAtEnd(proto, rat); in updateRatTracker() 611 proto.bandAtEnd = (rat == TelephonyManager.NETWORK_TYPE_IWLAN) in updateRatTracker() 618 private void updateRatAtEnd(VoiceCallSession proto, @NetworkType int rat) { in updateRatAtEnd() argument [all …]
|
D | ServiceStateStats.java | 177 @NetworkType int rat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in getBand() local 178 if (rat == TelephonyManager.NETWORK_TYPE_UNKNOWN) { in getBand() 179 rat = serviceState.getVoiceNetworkType(); in getBand() 181 switch (rat) { in getBand() 202 Rlog.w(TAG, "getBand: unknown WWAN RAT " + rat); in getBand() 207 Rlog.w(TAG, "getBand: band invalid for rat=" + rat + " ch=" + chNumber); in getBand()
|
D | SmsStats.java | 94 proto.rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onDroppedIncomingMultipartSms() 204 proto.rat = getRat(smsSource); in getIncomingDefaultProto() 228 proto.rat = getRat(isOverIms); in getOutgoingDefaultProto() 315 return Objects.hash(sms.smsFormat, sms.smsTech, sms.rat, sms.sendResult, sms.errorCode, in getSmsHashCode() 325 return Objects.hash(sms.smsFormat, sms.smsTech, sms.rat, sms.smsType, in getSmsHashCode()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
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 | NetworkTypeController.java | 674 int rat = getDataNetworkType(); in processMessage() local 677 if (rat == TelephonyManager.NETWORK_TYPE_NR || isLte(rat) && isNrConnected()) { in processMessage() 679 } else if (isLte(rat) && isNrNotRestricted()) { in processMessage() 683 if (!isLte(rat)) { in processMessage() 694 } else if (isLte(rat) && isNrNotRestricted()) { in processMessage() 697 } else if (isLte(rat) && isNrRestricted()) { in processMessage() 762 int rat = getDataNetworkType(); in processMessage() local 763 if (rat == TelephonyManager.NETWORK_TYPE_NR) { in processMessage() 765 } else if (!isLte(rat) || !isNrNotRestricted()) { in processMessage() 846 int rat = getDataNetworkType(); in processMessage() local [all …]
|
D | CellularNetworkService.java | 282 int networkType = ServiceState.rilRadioTechnologyToNetworkType(voiceRegState.rat); in createRegistrationStateFromVoiceRegState() 303 int networkType = ServiceState.rilRadioTechnologyToNetworkType(voiceRegState.rat); in createRegistrationStateFromVoiceRegState() 356 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.rat); in createRegistrationStateFromDataRegState() 365 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.rat); in createRegistrationStateFromDataRegState() 374 networkType = ServiceState.rilRadioTechnologyToNetworkType(dataRegState.base.rat); in createRegistrationStateFromDataRegState() 384 && ServiceState.rilRadioTechnologyToAccessNetworkType(dataRegState.base.rat) in createRegistrationStateFromDataRegState() 428 int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat); in getNetworkRegistrationInfo() 511 int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat); in getNetworkRegistrationInfoAidl() 589 int networkType = ServiceState.rilRadioTechnologyToNetworkType(regResult.rat); in getNetworkRegistrationInfo1_6()
|
D | ModemResponse.java | 112 int rat = activityInfo.techSpecificInfo[s].rat; in getModemActivityInfoResponse() local 120 rat, in getModemActivityInfoResponse()
|
D | NetworkIndication.java | 170 .setNetworkType(ServiceState.rilRadioTechnologyToNetworkType(config.rat)) in currentPhysicalChannelConfigs() 370 public void voiceRadioTechChanged(int indicationType, int rat) { in voiceRadioTechChanged() argument 373 int[] response = new int[] {rat}; in voiceRadioTechChanged()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsNoteTest.java | 1323 for (int rat = 0; rat < ratCount; rat++) { in testGetPerStateActiveRadioDurationMs_noModemActivity() 1326 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1328 expectedDurationsMs[rat][freq][txLvl] = 0; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1330 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1480 for (int rat = 0; rat < ratCount; rat++) { in testGetPerStateActiveRadioDurationMs_withModemActivity() 1482 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withModemActivity() 1485 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_withModemActivity() 1578 for (int rat = 0; rat < ratCount; rat++) { in testGetPerStateActiveRadioDurationMs_withModemActivity() 1580 if (rat == RADIO_ACCESS_TECHNOLOGY_NR in testGetPerStateActiveRadioDurationMs_withModemActivity() 1583 expectedRxDurationsMs[rat][freq] = 0; in testGetPerStateActiveRadioDurationMs_withModemActivity() [all …]
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | ImsStatsTest.java | 181 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registered() 228 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registeredPartialFeatures() 275 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, stats.rat); in conclude_registeredVoiceOnly() 340 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_sameTech() 379 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_differentTech() 418 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_differentTechNoVoice() 455 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onSetFeatureResponse_sameTech() 485 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, statsLte.rat); in onImsRegistered_differentTech() 498 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, statsWifi.rat); in onImsRegistered_differentTech() 570 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsUnregistered_afterRegistered() [all …]
|
D | ServiceStateStatsTest.java | 914 private void mockWwanPsRat(@NetworkType int rat) { in mockWwanPsRat() argument 917 rat, in mockWwanPsRat() 918 rat == TelephonyManager.NETWORK_TYPE_UNKNOWN in mockWwanPsRat() 923 private void mockWwanCsRat(@NetworkType int rat) { in mockWwanCsRat() argument 926 rat, in mockWwanCsRat() 927 rat == TelephonyManager.NETWORK_TYPE_UNKNOWN in mockWwanCsRat() 934 @NetworkType int rat, in mockWwanRat() argument 938 .setAccessNetworkTechnology(rat) in mockWwanRat() 945 private void mockLimitedService(@NetworkType int rat) { in mockLimitedService() argument 946 doReturn(rat).when(mServiceState).getVoiceNetworkType(); in mockLimitedService() [all …]
|
D | VoiceCallSessionStatsTest.java | 2321 private static void setServiceState(ServiceState mock, @NetworkType int rat) { in setServiceState() argument 2322 doReturn(rat).when(mock).getVoiceNetworkType(); in setServiceState() 2323 doReturn(rat).when(mock).getDataNetworkType(); in setServiceState() 2326 .setAccessNetworkTechnology(rat) in setServiceState() 2328 rat == TelephonyManager.NETWORK_TYPE_UNKNOWN in setServiceState() 2338 private static void setServiceStateWithWifiCalling(ServiceState mock, @NetworkType int rat) { in setServiceStateWithWifiCalling() argument 2339 doReturn(rat).when(mock).getVoiceNetworkType(); in setServiceStateWithWifiCalling() 2343 .setAccessNetworkTechnology(rat) in setServiceStateWithWifiCalling() 2345 rat == TelephonyManager.NETWORK_TYPE_UNKNOWN in setServiceStateWithWifiCalling() 2363 int bearer, int direction, int rat, int reason) { in makeSlot0CallProto() argument [all …]
|
D | RcsStatsTest.java | 943 final int rat = TelephonyProtoEnums.NETWORK_TYPE_LTE; in onImsDedicatedBearerListenerEvent_bearerEstablished() local 947 mRcsStats.onImsDedicatedBearerListenerUpdateSession(listenerId, SLOT_ID, rat, qci, true); in onImsDedicatedBearerListenerEvent_bearerEstablished() 951 mRcsStats.onImsDedicatedBearerListenerAdded(listenerId, SLOT_ID, rat, qci); in onImsDedicatedBearerListenerEvent_bearerEstablished() 953 mRcsStats.onImsDedicatedBearerListenerUpdateSession(listenerId, SLOT_ID, rat, qci, true); in onImsDedicatedBearerListenerEvent_bearerEstablished() 966 final int rat = TelephonyProtoEnums.NETWORK_TYPE_LTE; in onImsDedicatedBearerListenerEvent_Removed() local 973 mRcsStats.onImsDedicatedBearerListenerAdded(listenerId, SLOT_ID, rat, qci); in onImsDedicatedBearerListenerEvent_Removed() 974 mRcsStats.onImsDedicatedBearerListenerUpdateSession(listenerId, SLOT_ID, rat, qci, true); in onImsDedicatedBearerListenerEvent_Removed() 985 assertEquals(rat, stats.ratAtEnd); in onImsDedicatedBearerListenerEvent_Removed()
|
/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/data/ |
D | LinkBandwidthEstimator.java | 974 public String getDataRatName(int rat) { in getDataRatName() argument 975 return getDataRatName(rat, getNrMode(rat)); in getDataRatName() 978 private int getNrMode(int rat) { in getNrMode() argument 979 if (rat == TelephonyManager.NETWORK_TYPE_LTE && isNrNsaConnected()) { in getNrMode() 983 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getNrMode() 994 public static String getDataRatName(int rat, int nrMode) { in getDataRatName() argument 995 if (rat == TelephonyManager.NETWORK_TYPE_LTE in getDataRatName() 999 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getDataRatName() 1001 ? TelephonyManager.getNetworkTypeName(rat) : DctConstants.RAT_NAME_NR_SA_MMWAVE; in getDataRatName() 1003 return TelephonyManager.getNetworkTypeName(rat); in getDataRatName()
|
/frameworks/opt/telephony/proto/src/ |
D | persist_atoms.proto | 232 optional int32 rat = 2; field 240 optional int32 rat = 3; field 261 optional int32 rat = 3; field 355 optional int32 rat = 3; field
|