/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 | 34 int rat = 2; in basicTests() local 37 ModemInfo modemInfo = new ModemInfo(modemId, rat, isVoiceSupported, isDataSupported); in basicTests() 40 assertEquals(rat, modemInfo.rat); in basicTests() 44 modemId + 1, rat, isVoiceSupported, isDataSupported)); in basicTests() 46 modemId, rat + 1, isVoiceSupported, isDataSupported)); in basicTests() 47 assertNotEquals(modemInfo, new ModemInfo(modemId, rat, !isVoiceSupported, isDataSupported)); in basicTests() 48 assertNotEquals(modemInfo, new ModemInfo(modemId, rat, isVoiceSupported, !isDataSupported)); in basicTests() 55 int rat = 2; in parcelReadWrite() local 58 ModemInfo modemInfo = new ModemInfo(modemId, rat, isVoiceSupported, isDataSupported); in parcelReadWrite() 66 assertEquals(rat, toCompare.rat); in parcelReadWrite()
|
D | ServiceStateTest.java | 177 for (Pair<Integer, Boolean> rat : rats) { in testRAT() 178 boolean isCdma = rat.second; in testRAT() 181 assertTrue("RAT " + rat + " should be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 182 assertFalse("RAT " + rat + " should not be GSM", ServiceState.isGsm(rat.first)); in testRAT() 184 assertFalse("RAT " + rat + " should not be CDMA", ServiceState.isCdma(rat.first)); in testRAT() 185 assertTrue("RAT " + rat + " should be GSM", ServiceState.isGsm(rat.first)); in testRAT()
|
/frameworks/base/telephony/java/android/telephony/ |
D | ModemActivityInfo.java | 259 @TxPowerLevel int powerLevel, int rat) { in getTransmitDurationMillisAtPowerLevel() argument 261 if (mActivityStatsTechSpecificInfo[i].getRat() == rat) { in getTransmitDurationMillisAtPowerLevel() 270 @TxPowerLevel int powerLevel, int rat, @FrequencyRange int freq) { in getTransmitDurationMillisAtPowerLevel() argument 272 if (mActivityStatsTechSpecificInfo[i].getRat() == rat in getTransmitDurationMillisAtPowerLevel() 304 public void setTransmitTimeMillis(int rat, int[] txTimeMs) { in setTransmitTimeMillis() argument 306 if (mActivityStatsTechSpecificInfo[i].getRat() == rat) { in setTransmitTimeMillis() 312 public void setTransmitTimeMillis(int rat, int freq, int[] txTimeMs) { in setTransmitTimeMillis() argument 314 if (mActivityStatsTechSpecificInfo[i].getRat() == rat in setTransmitTimeMillis() 330 public int[] getTransmitTimeMillis(@AccessNetworkConstants.RadioAccessNetworkType int rat) { in getTransmitTimeMillis() argument 332 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 | 46 int rat, @FrequencyRange int frequencyRange, @NonNull int[] txTimeMs, int rxTimeMs) { in ActivityStatsTechSpecificInfo() argument 51 mRat = rat; in ActivityStatsTechSpecificInfo() 106 public void setRat(int rat) { in setRat() argument 107 mRat = rat; in setRat() 225 int rat = in.readInt(); 231 rat, frequencyRange, txTimeMs, rxTimeMs);
|
/frameworks/base/services/core/java/com/android/server/power/stats/ |
D | MobileRadioPowerStatsCollector.java | 160 for (int rat = 0; rat < BatteryStats.RADIO_ACCESS_TECHNOLOGY_COUNT; rat++) { in ensureInitialized() 161 final int freqCount = rat == BatteryStats.RADIO_ACCESS_TECHNOLOGY_NR in ensureInitialized() 164 int stateKey = makeStateKey(rat, freq); in ensureInitialized() 166 if (rat != BatteryStats.RADIO_ACCESS_TECHNOLOGY_OTHER) { in ensureInitialized() 167 sb.append(BatteryStats.RADIO_ACCESS_TECHNOLOGY_NAMES[rat]); in ensureInitialized() 281 for (int rat = 0; rat < NETWORK_TYPES.length; rat++) { in collectModemActivityInfo() 282 if (rat == AccessNetworkConstants.AccessNetworkType.NGRAN) { in collectModemActivityInfo() 284 mLayout.addRxTxTimesForRat(stateStats, rat, freq, in collectModemActivityInfo() 285 deltaInfo.getReceiveTimeMillis(rat, freq), in collectModemActivityInfo() 286 deltaInfo.getTransmitTimeMillis(rat, freq)); in collectModemActivityInfo() [all …]
|
D | MobileRadioPowerCalculator.java | 333 for (int rat = 0; rat < BatteryStats.RADIO_ACCESS_TECHNOLOGY_COUNT; rat++) { in calculateActiveModemPowerMah() 334 final int freqCount = rat == BatteryStats.RADIO_ACCESS_TECHNOLOGY_NR in calculateActiveModemPowerMah() 338 final long txDurationMs = bs.getActiveTxRadioDurationMs(rat, freq, txLvl, in calculateActiveModemPowerMah() 343 final double txConsumptionMah = calcTxStatePowerMah(rat, freq, txLvl, in calculateActiveModemPowerMah() 352 final long rxDurationMs = bs.getActiveRxRadioDurationMs(rat, freq, in calculateActiveModemPowerMah() 357 final double rxConsumptionMah = calcRxStatePowerMah(rat, freq, rxDurationMs); in calculateActiveModemPowerMah() 394 public double calcRxStatePowerMah(@BatteryStats.RadioAccessTechnology int rat, in calcRxStatePowerMah() argument 397 ModemPowerProfile.MODEM_DRAIN_TYPE_RX, rat, freqRange, IGNORE); in calcRxStatePowerMah() 418 public double calcTxStatePowerMah(@BatteryStats.RadioAccessTechnology int rat, in calcTxStatePowerMah() argument 421 ModemPowerProfile.MODEM_DRAIN_TYPE_TX, rat, freqRange, txLevel); in calcTxStatePowerMah()
|
D | MobileRadioPowerStatsProcessor.java | 99 for (int rat = 0; rat < BatteryStats.RADIO_ACCESS_TECHNOLOGY_COUNT; rat++) { in MobileRadioPowerStatsProcessor() 100 final int freqCount = rat == BatteryStats.RADIO_ACCESS_TECHNOLOGY_NR in MobileRadioPowerStatsProcessor() 104 MobileRadioPowerStatsCollector.makeStateKey(rat, freqRange), in MobileRadioPowerStatsProcessor() 105 buildRxTxPowerEstimators(powerProfile, rat, freqRange)); in MobileRadioPowerStatsProcessor() 110 private static RxTxPowerEstimators buildRxTxPowerEstimators(PowerProfile powerProfile, int rat, in buildRxTxPowerEstimators() argument 114 ModemPowerProfile.MODEM_DRAIN_TYPE_RX, rat, freqRange, IGNORE); in buildRxTxPowerEstimators() 124 ModemPowerProfile.MODEM_DRAIN_TYPE_TX, rat, freqRange, txLevel); in buildRxTxPowerEstimators()
|
/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 | ImsStats.java | 236 if (stats.rat == TelephonyManager.NETWORK_TYPE_UNKNOWN) { in conclude() 260 stats.rat == TelephonyManager.NETWORK_TYPE_IWLAN in conclude() 296 if (mLastRegistrationStats.rat != newRat) { in onImsCapabilitiesChanged() 297 mLastRegistrationStats.rat = newRat; in onImsCapabilitiesChanged() 335 mLastRegistrationStats.rat = convertTransportTypeToNetworkType(imsRadioTech); in onImsRegistering() 356 mLastRegistrationStats.rat = in onImsRegistered() 371 termination.ratAtEnd = getRatAtEnd(mLastRegistrationStats.rat); in onImsUnregistered() 377 termination.ratAtEnd = getRatAtEnd(mLastRegistrationStats.rat); in onImsUnregistered() 399 mLastRegistrationStats.rat = newRat; in onServiceStateChanged() 401 mLastRegistrationStats.rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onServiceStateChanged() [all …]
|
D | VoiceCallSessionStats.java | 467 @NetworkType int rat = getVoiceRatWithVoNRFix(mPhone, serviceState, bearer); in addCall() local 482 proto.ratAtStart = rat; in addCall() 484 proto.ratAtEnd = rat; in addCall() 499 proto.lastKnownRat = rat; in addCall() 644 @NetworkType int rat = getVoiceRatWithVoNRFix(mPhone, serviceState, proto.bearerAtEnd); in checkCallSetup() local 645 proto.ratAtConnected = rat; in checkCallSetup() 657 @NetworkType int rat = getVoiceRatWithVoNRFix(mPhone, state, in updateRatTracker() local 659 mRatUsage.add(mPhone.getCarrierId(), rat, getTimeMillis(), getConnectionIds()); in updateRatTracker() local 663 rat = getVoiceRatWithVoNRFix(mPhone, state, proto.bearerAtEnd); in updateRatTracker() 664 updateRatAtEnd(proto, rat); in updateRatTracker() [all …]
|
D | ServiceStateStats.java | 267 @NetworkType int rat = getRat(serviceState, NetworkRegistrationInfo.DOMAIN_PS); in getBand() local 268 if (rat == TelephonyManager.NETWORK_TYPE_UNKNOWN) { in getBand() 269 rat = serviceState.getVoiceNetworkType(); in getBand() 271 switch (rat) { in getBand() 292 Rlog.w(TAG, "getBand: unknown WWAN RAT " + rat); in getBand() 297 Rlog.w(TAG, "getBand: band invalid for rat=" + rat + " ch=" + chNumber); in getBand()
|
D | SmsStats.java | 98 proto.rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onDroppedIncomingMultipartSms() 227 proto.rat = getRat(smsSource); in getIncomingDefaultProto() 254 proto.rat = getRat(isOverIms); in getOutgoingDefaultProto() 344 return Objects.hash(sms.smsFormat, sms.smsTech, sms.rat, sms.sendResult, sms.errorCode, in getSmsHashCode() 354 return Objects.hash(sms.smsFormat, sms.smsTech, sms.rat, sms.smsType, in getSmsHashCode()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/analytics/ |
D | SmsMmsAnalyticsProviderTest.java | 85 String status, String type, String rat, String failureReason) { in getContentValues() argument 91 values.put(TelephonyAnalyticsDatabase.SmsMmsAnalyticsTable.RAT, rat); in getContentValues() 127 String rat = "LTE"; in testFailureSms() local 144 ContentValues values = getContentValues(status, type, rat, failureReason); in testFailureSms() 160 mSmsMmsAnalyticsProvider.insertDataToDb(status, type, rat, failureReason); in testFailureSms() 168 String rat = "LTE"; in testSuccessSms() local 181 ContentValues values = getContentValues(status, type, rat, failureReason); in testSuccessSms() 192 mSmsMmsAnalyticsProvider.insertDataToDb(status, type, rat, failureReason); in testSuccessSms() 287 String rat = "LTE"; in testDeleteWhenDateEqualsToday() local 292 mSmsMmsAnalyticsProvider.insertDataToDb(status, type, rat, failureReason); in testDeleteWhenDateEqualsToday() [all …]
|
D | CallAnalyticsProviderTest.java | 201 String callType, String callStatus, int slotId, String rat, String failureReason) { in getContentValues() argument 208 values.put(CallAnalyticsTable.RAT, rat); in getContentValues() 249 String rat = "LTE"; in testSuccessCall() local 262 ContentValues values = getContentValues(callType, callStatus, slotId, rat, failureReason); in testSuccessCall() 272 mCallAnalyticsProvider.insertDataToDb(callType, callStatus, slotId, rat, failureReason); in testSuccessCall() 281 String rat = "LTE"; in testFailureCall() local 299 ContentValues values = getContentValues(callType, callStatus, slotId, rat, failureReason); in testFailureCall() 310 mCallAnalyticsProvider.insertDataToDb(callType, callStatus, slotId, rat, failureReason); in testFailureCall()
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
D | NetworkTypeController.java | 771 int rat = getDataNetworkType(); in processMessage() local 772 if (rat == TelephonyManager.NETWORK_TYPE_NR || isLte(rat) && isNrConnected()) { in processMessage() 780 } else if (isLte(rat) && isNrNotRestricted()) { in processMessage() 784 if (!isLte(rat)) { in processMessage() 853 int rat = getDataNetworkType(); in processMessage() local 854 if (rat == TelephonyManager.NETWORK_TYPE_NR in processMessage() 855 || (isLte(rat) && isNrConnected())) { in processMessage() 863 } else if (!isLte(rat) || !isNrNotRestricted()) { in processMessage() 937 int rat = getDataNetworkType(); in processMessage() local 938 if (rat == TelephonyManager.NETWORK_TYPE_NR in processMessage() [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 | ModemResponse.java | 129 int rat = activityInfo.techSpecificInfo[s].rat; in getModemActivityInfoResponse() local 137 rat, in getModemActivityInfoResponse()
|
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/ |
D | BatteryStatsNoteTest.java | 1339 for (int rat = 0; rat < ratCount; rat++) { in testGetPerStateActiveRadioDurationMs_noModemActivity() 1342 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1344 expectedDurationsMs[rat][freq][txLvl] = 0; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1346 expectedTxDurationsMs[rat][freq][txLvl] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_noModemActivity() 1499 for (int rat = 0; rat < ratCount; rat++) { in testGetPerStateActiveRadioDurationMs_initialModemActivity() 1501 if (rat == RADIO_ACCESS_TECHNOLOGY_NR in testGetPerStateActiveRadioDurationMs_initialModemActivity() 1504 expectedRxDurationsMs[rat][freq] = 0; in testGetPerStateActiveRadioDurationMs_initialModemActivity() 1506 expectedRxDurationsMs[rat][freq] = POWER_DATA_UNAVAILABLE; in testGetPerStateActiveRadioDurationMs_initialModemActivity() 1509 if (rat == RADIO_ACCESS_TECHNOLOGY_NR in testGetPerStateActiveRadioDurationMs_initialModemActivity() 1512 expectedTxDurationsMs[rat][freq][txLvl] = 0; in testGetPerStateActiveRadioDurationMs_initialModemActivity() [all …]
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/analytics/ |
D | TelephonyAnalytics.java | 255 int rat, in onCallTerminated() argument 286 String ratString = TelephonyManager.getNetworkTypeName(rat); in onCallTerminated() 287 sendDataToProvider(callType, status, simSlotIndex, rat, ratString, in onCallTerminated() 292 int rat, String ratString, int disconnectCause, String disconnectCauseString) { in sendDataToProvider() argument 305 "(" + rat + ")", in sendDataToProvider() 742 private void logInServiceData(String rat, long now) { in logInServiceData() argument 745 mSlotIndex, rat, DeviceStatus.IN_SERVICE.name(), now); in logInServiceData() 830 int slotIndex, String rat, String deviceStatus, long timestampStart) { in TimeStampedServiceState() argument 832 mRAT = rat; in TimeStampedServiceState() 907 int rat = TelephonyManager.NETWORK_TYPE_UNKNOWN; in onDroppedIncomingMultipartSms() local [all …]
|
D | SmsMmsAnalyticsProvider.java | 144 String status, String smsMmsType, String rat, String failureReason) { in getContentValues() argument 150 values.put(SmsMmsAnalyticsTable.RAT, rat); in getContentValues() 166 public void insertDataToDb(String status, String smsMmsType, String rat, String failureReason) { in insertDataToDb() argument 167 ContentValues values = getContentValues(status, smsMmsType, rat, failureReason); in insertDataToDb() 383 String rat = cursor.getString(ratIndex); in getSmsFailedCountByRat() local 385 failedSmsTypeCountByRat.put(rat, count); in getSmsFailedCountByRat()
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/metrics/ |
D | ImsStatsTest.java | 191 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registered() 239 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_registeredPartialFeatures() 286 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, stats.rat); in conclude_registeredVoiceOnly() 321 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, stats.rat); in conclude_registeredVoiceOnly_crossSimCalling() 378 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_notRegistered() 419 assertEquals(TelephonyManager.NETWORK_TYPE_IWLAN, stats.rat); in conclude_registering() 537 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in conclude_serviceStateChanged_afterRatLte() 562 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_sameTech() 602 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_differentTech() 642 assertEquals(TelephonyManager.NETWORK_TYPE_LTE, stats.rat); in onImsCapabilitiesChanged_differentTechNoVoice() [all …]
|
/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 | 964 public String getDataRatName(int rat) { in getDataRatName() argument 965 return getDataRatName(rat, getNrMode(rat)); in getDataRatName() 968 private int getNrMode(int rat) { in getNrMode() argument 969 if (rat == TelephonyManager.NETWORK_TYPE_LTE && isNrNsaConnected()) { in getNrMode() 973 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getNrMode() 984 public static String getDataRatName(int rat, int nrMode) { in getDataRatName() argument 985 if (rat == TelephonyManager.NETWORK_TYPE_LTE in getDataRatName() 989 } else if (rat == TelephonyManager.NETWORK_TYPE_NR) { in getDataRatName() 991 ? TelephonyManager.getNetworkTypeName(rat) : DctConstants.RAT_NAME_NR_SA_MMWAVE; in getDataRatName() 993 return TelephonyManager.getNetworkTypeName(rat); in getDataRatName()
|