Home
last modified time | relevance | path

Searched refs:ModemActivityInfo (Results 1 – 25 of 37) sorted by relevance

12

/frameworks/base/telephony/java/android/telephony/
DModemActivityInfo.java42 public final class ModemActivityInfo implements Parcelable { class
108 public ModemActivityInfo(long timestamp, int sleepTimeMs, int idleTimeMs, in ModemActivityInfo() method in ModemActivityInfo
135 public ModemActivityInfo(long timestamp, long sleepTimeMs, long idleTimeMs, in ModemActivityInfo() method in ModemActivityInfo
141 public ModemActivityInfo(long timestamp, int sleepTimeMs, int idleTimeMs, in ModemActivityInfo() method in ModemActivityInfo
148 mTotalTxTimeMs = new int[ModemActivityInfo.TX_POWER_LEVELS]; in ModemActivityInfo()
167 public ModemActivityInfo(long timestamp, long sleepTimeMs, long idleTimeMs, in ModemActivityInfo() method in ModemActivityInfo
190 public static final @android.annotation.NonNull Parcelable.Creator<ModemActivityInfo> CREATOR =
191 new Parcelable.Creator<ModemActivityInfo>() {
192 public ModemActivityInfo createFromParcel(@NonNull Parcel in) {
205 return new ModemActivityInfo(
[all …]
DModemActivityInfo.aidl20 parcelable ModemActivityInfo;
DTelephonyManager.java12984 @NonNull OutcomeReceiver<ModemActivityInfo, ModemActivityInfoException> callback) { in requestModemActivityInfo() argument
13011 if (!(receivedResult instanceof ModemActivityInfo)) { in requestModemActivityInfo()
13017 ModemActivityInfo modemActivityInfo = (ModemActivityInfo) receivedResult; in requestModemActivityInfo()
13027 private void sendResultToListener(ModemActivityInfo info) { in requestModemActivityInfo()
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/data/
DLinkBandwidthEstimatorTest.java48 import android.telephony.ModemActivityInfo;
74 private static final ModemActivityInfo MAI_INIT =
75 new ModemActivityInfo(0, 0, 0, TX_TIME_1_MS, RX_TIME_1_MS);
76 private static final ModemActivityInfo MAI_TX_RX_TIME_HIGH =
77 new ModemActivityInfo(100L, 0, 0, TX_TIME_2_MS, RX_TIME_2_MS);
78 private static final ModemActivityInfo MAI_RX_TIME_HIGH =
79 new ModemActivityInfo(100L, 0, 0, TX_TIME_1_MS, RX_TIME_2_MS);
335 mLBE.obtainMessage(MSG_MODEM_ACTIVITY_RETURNED, new ModemActivityInfo( in testSignalLevelChangeTriggerBandwidthUpdate()
364 mLBE.obtainMessage(MSG_MODEM_ACTIVITY_RETURNED, new ModemActivityInfo( in testSignalLevelChangeTriggerBandwidthUpdate()
458 mLBE.obtainMessage(MSG_MODEM_ACTIVITY_RETURNED, new ModemActivityInfo( in testEnoughModemPollTriggerBwUpdate()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DModemResponse.java28 import android.telephony.ModemActivityInfo;
121 ModemActivityInfo ret = null; in getModemActivityInfoResponse()
131 int [] txModeTimeMs = new int[ModemActivityInfo.getNumTxPowerLevels()]; in getModemActivityInfoResponse()
133 for (int i = 0; i < ModemActivityInfo.getNumTxPowerLevels(); i++) { in getModemActivityInfoResponse()
142 ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), sleepModeTimeMs, in getModemActivityInfoResponse()
147 new int[ModemActivityInfo.getNumTxPowerLevels()], 0); in getModemActivityInfoResponse()
148 ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), 0, 0, astsi); in getModemActivityInfoResponse()
DRadioResponse.java46 import android.telephony.ModemActivityInfo;
2532 ModemActivityInfo ret = null; in responseActivityData()
2536 int [] txModeTimeMs = new int[ModemActivityInfo.getNumTxPowerLevels()]; in responseActivityData()
2537 for (int i = 0; i < ModemActivityInfo.getNumTxPowerLevels(); i++) { in responseActivityData()
2541 ret = new ModemActivityInfo(SystemClock.elapsedRealtime(), sleepModeTimeMs, in responseActivityData()
2544 ret = new ModemActivityInfo(0, 0, 0, in responseActivityData()
2545 new int[ModemActivityInfo.getNumTxPowerLevels()], 0); in responseActivityData()
DRIL.java66 import android.telephony.ModemActivityInfo;
443 timeoutResponse = new ModemActivityInfo( in getResponseForTimedOutRILRequest()
444 0, 0, 0, new int [ModemActivityInfo.getNumTxPowerLevels()], 0); in getResponseForTimedOutRILRequest()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DPhoneCallPowerStatsProcessorTest.java40 import android.telephony.ModemActivityInfo;
187 mockModemActivityInfo(new ModemActivityInfo(0L, 0L, 0L, new int[5], 0L)); in copyEstimatesFromMobileRadioPowerStats()
195 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in copyEstimatesFromMobileRadioPowerStats()
224 private void mockModemActivityInfo(ModemActivityInfo emptyMai) { in mockModemActivityInfo()
226 OutcomeReceiver<ModemActivityInfo, TelephonyManager.ModemActivityInfoException> in mockModemActivityInfo()
DMobileRadioPowerStatsProcessorTest.java51 import android.telephony.ModemActivityInfo;
198 mockModemActivityInfo(new ModemActivityInfo(0L, 0L, 0L, new int[5], 0L)); in powerProfileModel()
218 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in powerProfileModel()
437 mockModemActivityInfo(new ModemActivityInfo(0L, 0L, 0L, new int[5], 0L)); in prepareAggregatedStats_energyConsumerModel()
461 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in prepareAggregatedStats_energyConsumerModel()
486 private void mockModemActivityInfo(ModemActivityInfo emptyMai) { in mockModemActivityInfo()
488 OutcomeReceiver<ModemActivityInfo, TelephonyManager.ModemActivityInfoException> in mockModemActivityInfo()
DMobileRadioPowerCalculatorTest.java43 import android.telephony.ModemActivityInfo;
142 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in testCounterBasedModel()
287 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, ratInfos); in testCounterBasedModel_multipleDefinedRat()
419 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in testCounterBasedModel_legacyPowerProfile()
633 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in testMeasuredEnergyBasedModel_mobileRadioActiveTimeModel()
767 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, ratInfos); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel()
920 ModemActivityInfo mai = new ModemActivityInfo(10000, 2000, 3000, in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel_legacyPowerProfile()
1051 final ModemActivityInfo emptyMai = new ModemActivityInfo(0L, 0L, 0L, new int[5], 0L); in setInitialEmptyModemActivityInfo()
DMobileRadioPowerStatsCollectorTest.java46 import android.telephony.ModemActivityInfo;
412 ModemActivityInfo info = new ModemActivityInfo(timestamp, sleepTimeMs, idleTimeMs, in mockModemActivityInfo()
419 OutcomeReceiver<ModemActivityInfo, TelephonyManager.ModemActivityInfoException> in mockModemActivityInfo()
428 ModemActivityInfo info = new ModemActivityInfo(timestamp, sleepTimeMs, idleTimeMs, txTimeMs, in mockModemActivityInfo()
431 OutcomeReceiver<ModemActivityInfo, TelephonyManager.ModemActivityInfoException> in mockModemActivityInfo()
DBatteryStatsNoteTest.java53 import android.telephony.ModemActivityInfo;
1558 final ModemActivityInfo mai = new ModemActivityInfo(0L, 2002L, 3003L, specificInfos); in testGetPerStateActiveRadioDurationMs_initialModemActivity()
1648 final ModemActivityInfo mai = new ModemActivityInfo(0L, 0L, 0L, new int[txLevelCount], 0L); in testGetPerStateActiveRadioDurationMs_withModemActivity()
1932 final ModemActivityInfo mai = new ModemActivityInfo(0L, 0L, 0L, specificInfos); in testGetPerStateActiveRadioDurationMs_withSpecificInfoModemActivity()
2266 final ModemActivityInfo mai = new ModemActivityInfo(0L, 0L, 0L, new int[txLevelCount], 0L); in testNoteMobileRadioPowerStateLocked_rateLimited()
2450 public ModemActivityInfo modemActivityInfo;
2455 ModemAndBatteryState(MockBatteryStatsImpl bsi, ModemActivityInfo mai, in ModemAndBatteryState()
2536 final ModemActivityInfo copy; in noteModemControllerActivity()
2538 copy = new ModemActivityInfo( in noteModemControllerActivity()
2555 copy = new ModemActivityInfo( in noteModemControllerActivity()
/frameworks/base/core/java/android/os/connectivity/
DCellularBatteryStats.java28 import android.telephony.ModemActivityInfo;
112 Math.min(txTimeMs.length, ModemActivityInfo.getNumTxPowerLevels())); in CellularBatteryStats()
323 @IntRange(from = ModemActivityInfo.TX_POWER_LEVEL_0, in getTxTimeMillis()
324 to = ModemActivityInfo.TX_POWER_LEVEL_4) int level) { in getTxTimeMillis()
/frameworks/base/services/core/java/com/android/server/power/stats/
DMobileRadioPowerStatsCollector.java28 import android.telephony.ModemActivityInfo;
101 private ModemActivityInfo mLastModemActivityInfo;
221 CompletableFuture<ModemActivityInfo> immediateFuture = new CompletableFuture<>(); in collectModemActivityInfo()
225 public void onResult(ModemActivityInfo result) { in collectModemActivityInfo()
236 ModemActivityInfo activityInfo; in collectModemActivityInfo()
249 ModemActivityInfo deltaInfo = mLastModemActivityInfo == null in collectModemActivityInfo()
DMobileRadioPowerStatsProcessor.java20 import android.telephony.ModemActivityInfo;
50 new UsageBasedPowerEstimator[ModemActivityInfo.getNumTxPowerLevels()];
122 for (int txLevel = 0; txLevel < ModemActivityInfo.getNumTxPowerLevels(); txLevel++) { in buildRxTxPowerEstimators()
263 for (int txLevel = 0; txLevel < ModemActivityInfo.getNumTxPowerLevels(); txLevel++) { in computeDevicePowerEstimates()
DMobileRadioPowerStatsLayout.java21 import android.telephony.ModemActivityInfo;
75 mStateTxTimesCount = ModemActivityInfo.getNumTxPowerLevels(); in addStateStats()
DBatteryExternalStatsWorker.java38 import android.telephony.ModemActivityInfo;
540 CompletableFuture<ModemActivityInfo> modemFuture = CompletableFuture.completedFuture(null);
622 CompletableFuture<ModemActivityInfo> temp = new CompletableFuture<>();
624 new OutcomeReceiver<ModemActivityInfo,
627 public void onResult(ModemActivityInfo result) {
654 ModemActivityInfo modemInfo = null;
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java21 import android.telephony.ModemActivityInfo;
74 for (int i = 0; i < ModemActivityInfo.getNumTxPowerLevels(); i++) { in buildProto()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/data/
DLinkBandwidthEstimator.java46 import android.telephony.ModemActivityInfo;
180 private ModemActivityInfo mLastModemActivityInfo = null;
272 private final OutcomeReceiver<ModemActivityInfo, TelephonyManager.ModemActivityInfoException>
276 public void onResult(ModemActivityInfo result) {
339 handleModemActivityReturned((ModemActivityInfo) msg.obj); in handleMessage()
552 private void handleModemActivityReturned(ModemActivityInfo result) { in handleModemActivityReturned()
570 private void updateBandwidthTxRxSamples(ModemActivityInfo modemActivityInfo) { in updateBandwidthTxRxSamples()
583 ModemActivityInfo deltaInfo = mLastModemActivityInfo.getDelta(modemActivityInfo); in updateBandwidthTxRxSamples()
625 private long getModemTxTimeMs(ModemActivityInfo modemActivity) { in getModemTxTimeMs()
627 for (int lvl = 0; lvl < ModemActivityInfo.getNumTxPowerLevels(); lvl++) { in getModemTxTimeMs()
/frameworks/base/core/java/com/android/internal/app/
DIBatteryStats.aidl33 import android.telephony.ModemActivityInfo;
269 oneway void noteModemControllerActivity(in ModemActivityInfo info); in noteModemControllerActivity()
/frameworks/base/core/java/com/android/internal/power/
DModemPowerProfile.java21 import android.telephony.ModemActivityInfo;
/frameworks/base/ravenwood/texts/
Dravenwood-annotation-allowed-classes.txt274 android.telephony.ModemActivityInfo
/frameworks/base/services/core/java/com/android/server/stats/pull/
DStatsPullAtomService.java168 import android.telephony.ModemActivityInfo;
2265 CompletableFuture<ModemActivityInfo> modemFuture = new CompletableFuture<>();
2267 new OutcomeReceiver<ModemActivityInfo,
2270 public void onResult(ModemActivityInfo result) {
2281 ModemActivityInfo modemInfo;
/frameworks/base/telephony/java/com/android/internal/telephony/
DITelephony.aidl46 import android.telephony.ModemActivityInfo;
/frameworks/base/services/core/java/com/android/server/am/
DBatteryStatsService.java93 import android.telephony.ModemActivityInfo;
2622 public void noteModemControllerActivity(final ModemActivityInfo info) { in noteModemControllerActivity()

12