Home
last modified time | relevance | path

Searched refs:CellSignalStrength (Results 1 – 25 of 51) sorted by relevance

123

/frameworks/base/telephony/java/android/telephony/
DCellSignalStrength.java27 public abstract class CellSignalStrength { class
51 protected CellSignalStrength() { in CellSignalStrength() method in CellSignalStrength
85 public abstract CellSignalStrength copy(); in copy()
DSignalStrength.java46 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; // = 0
50 CellSignalStrength.SIGNAL_STRENGTH_POOR; // = 1
54 CellSignalStrength.SIGNAL_STRENGTH_MODERATE; // = 2
58 CellSignalStrength.SIGNAL_STRENGTH_GOOD; // = 3
62 CellSignalStrength.SIGNAL_STRENGTH_GREAT; // = 4
121 private CellSignalStrength getPrimary() { in getPrimary()
156 @NonNull public List<CellSignalStrength> getCellSignalStrengths() { in getCellSignalStrengths()
157 return getCellSignalStrengths(CellSignalStrength.class); in getCellSignalStrengths()
182 @NonNull public <T extends CellSignalStrength> List<T> getCellSignalStrengths( in getCellSignalStrengths()
DCellInfoNr.java84 public CellSignalStrength getCellSignalStrength() { in getCellSignalStrength()
DCellSignalStrengthTdscdma.java35 public final class CellSignalStrengthTdscdma extends CellSignalStrength implements Parcelable {
DCellSignalStrengthGsm.java33 public final class CellSignalStrengthGsm extends CellSignalStrength implements Parcelable {
DCellInfo.java222 public abstract CellSignalStrength getCellSignalStrength(); in getCellSignalStrength()
DCellSignalStrengthWcdma.java36 public final class CellSignalStrengthWcdma extends CellSignalStrength implements Parcelable {
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/
DSignalStrengthControllerTest.java51 import android.telephony.CellSignalStrength;
513 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_POOR, mSsc.getSignalStrength().getLevel()); in testLteSignalStrengthReportingCriteria()
529 CellSignalStrength.SIGNAL_STRENGTH_MODERATE); in testLteSignalStrengthReportingCriteria()
766 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, in testLteSignalStrengthReportingCriteria_convertRssnrUnitFromTenDbToDB()
783 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_GOOD, mSsc.getSignalStrength().getLevel()); in testLteSignalStrengthReportingCriteria_convertRssnrUnitFromTenDbToDB()
810 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_GREAT, mSsc.getSignalStrength().getLevel()); in test5gNrSignalStrengthReportingCriteria_UseSsRsrp()
837 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, in test5gNrSignalStrengthReportingCriteria_UseSsRsrpAndSsRsrq()
865 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_GREAT, mSsc.getSignalStrength().getLevel()); in test5gNrSignalStrengthReportingCriteria_ConfiguredThresholds()
881 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_POOR, in test5gNrSignalStrengthReportingCriteria_ConfiguredThresholds()
898 assertEquals(mSsc.getSignalStrength().getLevel(), CellSignalStrength.SIGNAL_STRENGTH_GOOD); in testWcdmaSignalStrengthReportingCriteria()
[all …]
DCellSignalStrengthNrTest.java30 import android.telephony.CellSignalStrength;
214 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, BoundType.CLOSED, in testSignalLevel_validValue()
215 CellSignalStrength.SIGNAL_STRENGTH_GREAT, BoundType.CLOSED)); in testSignalLevel_validValue()
226 assertThat(css.getLevel()).isEqualTo(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in testSignalLevel_invalidValue()
288 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_POOR, css.getLevel()); in testSignalLevel_thresholdBoundaries()
293 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_MODERATE, css.getLevel()); in testSignalLevel_thresholdBoundaries()
298 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_GOOD, css.getLevel()); in testSignalLevel_thresholdBoundaries()
303 assertEquals(CellSignalStrength.SIGNAL_STRENGTH_GREAT, css.getLevel()); in testSignalLevel_thresholdBoundaries()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/connectivity/
DNetworkControllerSignalTest.java30 import android.telephony.CellSignalStrength;
308 testStrength < CellSignalStrength.getNumSignalStrengthLevels(); testStrength++) { in testSignalStrength()
326 testStrength < CellSignalStrength.getNumSignalStrengthLevels(); testStrength++) { in testCdmaSignalStrength()
340 testStrength < CellSignalStrength.getNumSignalStrengthLevels(); testStrength++) { in testSignalRoaming()
353 for (int testStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in testCdmaSignalRoaming()
376 for (int testStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in testQsSignalStrength()
389 for (int testStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in testCdmaQsSignalStrength()
670 CellSignalStrength.getNumSignalStrengthLevels()), in testCarrierNetworkChange_carrierNetworkChange()
702 CellSignalStrength.getNumSignalStrengthLevels()), in testCarrierNetworkChange_roamingBeforeNetworkChange()
735 CellSignalStrength.getNumSignalStrengthLevels()), in testCarrierNetworkChange_roamingAfterNetworkChange()
[all …]
DNetworkControllerBaseTest.java51 import android.telephony.CellSignalStrength;
545 int state = SignalDrawable.getState(icon, CellSignalStrength.getNumSignalStrengthLevels(), in verifyLastQsMobileDataIndicators()
575 : SignalDrawable.getState(icon, CellSignalStrength.getNumSignalStrengthLevels(), in verifyLastMobileDataIndicators()
592 level, CellSignalStrength.getNumSignalStrengthLevels(), !inet); in verifyLastMobileDataIndicatorsForVcn()
634 int numSignalStrengthBins = CellSignalStrength.getNumSignalStrengthLevels(); in verifyLastMobileDataIndicators()
/frameworks/base/services/tests/powerstatstests/src/com/android/server/power/stats/
DMobileRadioPowerCalculatorTest.java41 import android.telephony.CellSignalStrength;
97 ArrayList<CellSignalStrength> perRatCellStrength = new ArrayList(); in testCounterBasedModel()
98 CellSignalStrength gsmSignalStrength = mock(CellSignalStrength.class); in testCounterBasedModel()
217 ArrayList<CellSignalStrength> perRatCellStrength = new ArrayList(); in testCounterBasedModel_multipleDefinedRat()
218 CellSignalStrength gsmSignalStrength = mock(CellSignalStrength.class); in testCounterBasedModel_multipleDefinedRat()
374 ArrayList<CellSignalStrength> perRatCellStrength = new ArrayList(); in testCounterBasedModel_legacyPowerProfile()
375 CellSignalStrength gsmSignalStrength = mock(CellSignalStrength.class); in testCounterBasedModel_legacyPowerProfile()
492 ArrayList<CellSignalStrength> perRatCellStrength = new ArrayList(); in testTimerBasedModel_byProcessState()
493 CellSignalStrength gsmSignalStrength = mock(CellSignalStrength.class); in testTimerBasedModel_byProcessState()
694 ArrayList<CellSignalStrength> perRatCellStrength = new ArrayList(); in testMeasuredEnergyBasedModel_modemActivityInfoRxTxModel()
[all …]
DBatteryStatsNoteTest.java51 import android.telephony.CellSignalStrength;
1334 final int txLevelCount = CellSignalStrength.getNumSignalStrengthLevels(); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1376 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1392 CellSignalStrength.SIGNAL_STRENGTH_GOOD); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1409 CellSignalStrength.SIGNAL_STRENGTH_MODERATE); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1422 CellSignalStrength.SIGNAL_STRENGTH_POOR); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1428 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1434 CellSignalStrength.SIGNAL_STRENGTH_GOOD); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1440 CellSignalStrength.SIGNAL_STRENGTH_GREAT); in testGetPerStateActiveRadioDurationMs_noModemActivity()
1447 CellSignalStrength.SIGNAL_STRENGTH_POOR); in testGetPerStateActiveRadioDurationMs_noModemActivity()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DModemPowerMetrics.java20 import android.telephony.CellSignalStrength;
64 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in buildProto()
95 for (int i = 0; i < CellSignalStrength.getNumSignalStrengthLevels(); i++) { in buildProto()
DDataStallRecoveryStats.java42 import android.telephony.CellSignalStrength;
104 private int mSignalStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
113 private int mOtherSignalStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN;
389 mOtherSignalStrength = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in updateDsdsInfo()
/frameworks/base/core/java/android/os/connectivity/
DCellularBatteryStats.java27 import android.telephony.CellSignalStrength;
109 CellSignalStrength.getNumSignalStrengthLevels())); in CellularBatteryStats()
295 @IntRange(from = CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN, in getTimeInRxSignalStrengthLevelMicros()
296 to = CellSignalStrength.SIGNAL_STRENGTH_GREAT) int signalStrengthBin) { in getTimeInRxSignalStrengthLevelMicros()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/
DMobileConnectionRepository.kt19 import android.telephony.CellSignalStrength
170 val DEFAULT_NUM_LEVELS = CellSignalStrength.getNumSignalStrengthLevels() in isInEcmMode()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/satellite/metrics/
DCarrierRoamingSatelliteSessionStats.java21 import android.telephony.CellSignalStrength;
217 List<CellSignalStrength> cellSignalStrengths = signalStrength.getCellSignalStrengths(); in getCellSignalStrengthLte()
218 for (CellSignalStrength cellSignalStrength : cellSignalStrengths) { in getCellSignalStrengthLte()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/demo/
DDemoMobileConnectionRepository.kt19 import android.telephony.CellSignalStrength in <lambda>()
151 private val _cdmaLevel = MutableStateFlow(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN) in <lambda>()
162 private val _primaryLevel = MutableStateFlow(CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/connectivity/
DMobileSignalController.java27 import android.telephony.CellSignalStrength;
222 return CellSignalStrength.getNumSignalStrengthLevels() + 1; in getNumLevels()
224 return CellSignalStrength.getNumSignalStrengthLevels(); in getNumLevels()
451 return CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN; in getCdmaLevel()
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/graph/
DSignalDrawable.java35 import android.telephony.CellSignalStrength;
156 int levelOffset = numBins == (CellSignalStrength.getNumSignalStrengthLevels() + 1) ? 10 : 0; in unpackLevel()
/frameworks/base/services/tests/mockingservicestests/src/com/android/server/job/controllers/
DConnectivityControllerTest.java83 import android.telephony.CellSignalStrength;
523 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in testStrongEnough_Cellular()
535 CellSignalStrength.SIGNAL_STRENGTH_POOR); in testStrongEnough_Cellular()
571 CellSignalStrength.SIGNAL_STRENGTH_MODERATE); in testStrongEnough_Cellular()
607 CellSignalStrength.SIGNAL_STRENGTH_GOOD); in testStrongEnough_Cellular()
621 CellSignalStrength.SIGNAL_STRENGTH_GREAT); in testStrongEnough_Cellular()
697 CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN); in testStrongEnough_Cellular_CheckDisabled()
709 CellSignalStrength.SIGNAL_STRENGTH_POOR); in testStrongEnough_Cellular_CheckDisabled()
745 CellSignalStrength.SIGNAL_STRENGTH_MODERATE); in testStrongEnough_Cellular_CheckDisabled()
781 CellSignalStrength.SIGNAL_STRENGTH_GOOD); in testStrongEnough_Cellular_CheckDisabled()
[all …]
/frameworks/base/services/core/java/com/android/server/power/stats/
DMobileRadioPowerStatsProcessor.java19 import android.telephony.CellSignalStrength;
39 CellSignalStrength.getNumSignalStrengthLevels();
DMobileRadioPowerCalculator.java24 import android.telephony.CellSignalStrength;
42 CellSignalStrength.getNumSignalStrengthLevels();
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/pipeline/mobile/data/repository/prod/
DCarrierMergedConnectionRepository.kt19 import android.telephony.CellSignalStrength.SIGNAL_STRENGTH_NONE_OR_UNKNOWN in <lambda>()

123