Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8e3ca63b authored by Dmitri Plotnikov's avatar Dmitri Plotnikov Committed by Android (Google) Code Review
Browse files

Merge "Make some telephony methods available under Ravenwood" into main

parents 8aaa01fb 2832957d
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -155,6 +155,11 @@ android.view.Display$HdrCapabilities
android.view.Display$Mode
android.view.DisplayInfo

android.telephony.ActivityStatsTechSpecificInfo
android.telephony.CellSignalStrength
android.telephony.ModemActivityInfo
android.telephony.ServiceState

com.android.server.LocalServices
com.android.server.power.stats.BatteryStatsImpl

+1 −0
Original line number Diff line number Diff line
@@ -32,6 +32,7 @@ import java.util.Objects;
 *
 * @hide
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public final class ActivityStatsTechSpecificInfo implements Parcelable {
    private static final int TX_POWER_LEVELS = 5;

+1 −0
Original line number Diff line number Diff line
@@ -23,6 +23,7 @@ import android.os.PersistableBundle;
/**
 * Abstract base class for cell phone signal strength related information.
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
public abstract class CellSignalStrength {

    public static final int SIGNAL_STRENGTH_NONE_OR_UNKNOWN =
+1 −0
Original line number Diff line number Diff line
@@ -37,6 +37,7 @@ import java.util.Objects;
 * Contains information about the modem's activity. May be useful for power stats reporting.
 * @hide
 */
@android.ravenwood.annotation.RavenwoodKeepWholeClass
@SystemApi
public final class ModemActivityInfo implements Parcelable {
    private static final int TX_POWER_LEVELS = 5;
+2 −0
Original line number Diff line number Diff line
@@ -63,6 +63,7 @@ import java.util.stream.Collectors;
 * For historical reasons this class is not declared as final; however,
 * it should be treated as though it were final.
 */
@android.ravenwood.annotation.RavenwoodKeepPartialClass
public class ServiceState implements Parcelable {

    static final String LOG_TAG = "PHONE";
@@ -1140,6 +1141,7 @@ public class ServiceState implements Parcelable {
     *
     * @hide
     */
    @android.ravenwood.annotation.RavenwoodKeep
    public static @NonNull String frequencyRangeToString(@FrequencyRange int range) {
        switch (range) {
            case FREQUENCY_RANGE_UNKNOWN: return "UNKNOWN";