Loading telephony/java/android/telephony/satellite/ISatelliteStateCallback.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -21,13 +21,6 @@ package android.telephony.satellite; * @hide */ oneway interface ISatelliteStateCallback { /** * Indicates that the satellite has pending datagrams for the device to be pulled. * * @param count Number of pending datagrams. */ void onPendingDatagramCount(in int count); /** * Indicates that the satellite modem state has changed. * Loading telephony/java/android/telephony/satellite/ISatellitePositionUpdateCallback.aidl→telephony/java/android/telephony/satellite/ISatelliteTransmissionUpdateCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.telephony.satellite.PointingInfo; * Interface for position update and datagram transfer state change callback. * @hide */ oneway interface ISatellitePositionUpdateCallback { oneway interface ISatelliteTransmissionUpdateCallback { /** * Called when satellite datagram transfer state changed. * Loading telephony/java/android/telephony/satellite/PointingInfo.java +1 −50 Original line number Diff line number Diff line Loading @@ -30,31 +30,12 @@ public final class PointingInfo implements Parcelable { /** Satellite elevation in degrees */ private float mSatelliteElevationDegrees; /** Antenna azimuth in degrees */ private float mAntennaAzimuthDegrees; /** * Angle of rotation about the x axis. This value represents the angle between a plane * parallel to the device's screen and a plane parallel to the ground. */ private float mAntennaPitchDegrees; /** * Angle of rotation about the y axis. This value represents the angle between a plane * perpendicular to the device's screen and a plane parallel to the ground. */ private float mAntennaRollDegrees; /** * @hide */ public PointingInfo(float satelliteAzimuthDegrees, float satelliteElevationDegrees, float antennaAzimuthDegrees, float antennaPitchDegrees, float antennaRollDegrees) { public PointingInfo(float satelliteAzimuthDegrees, float satelliteElevationDegrees) { mSatelliteAzimuthDegrees = satelliteAzimuthDegrees; mSatelliteElevationDegrees = satelliteElevationDegrees; mAntennaAzimuthDegrees = antennaAzimuthDegrees; mAntennaPitchDegrees = antennaPitchDegrees; mAntennaRollDegrees = antennaRollDegrees; } private PointingInfo(Parcel in) { Loading @@ -70,9 +51,6 @@ public final class PointingInfo implements Parcelable { public void writeToParcel(@NonNull Parcel out, int flags) { out.writeFloat(mSatelliteAzimuthDegrees); out.writeFloat(mSatelliteElevationDegrees); out.writeFloat(mAntennaAzimuthDegrees); out.writeFloat(mAntennaPitchDegrees); out.writeFloat(mAntennaRollDegrees); } public static final @android.annotation.NonNull Creator<PointingInfo> CREATOR = Loading @@ -99,18 +77,6 @@ public final class PointingInfo implements Parcelable { sb.append("SatelliteElevationDegrees:"); sb.append(mSatelliteElevationDegrees); sb.append(","); sb.append("AntennaAzimuthDegrees:"); sb.append(mAntennaAzimuthDegrees); sb.append(","); sb.append("AntennaPitchDegrees:"); sb.append(mAntennaPitchDegrees); sb.append(","); sb.append("AntennaRollDegrees:"); sb.append(mAntennaRollDegrees); return sb.toString(); } Loading @@ -122,23 +88,8 @@ public final class PointingInfo implements Parcelable { return mSatelliteElevationDegrees; } public float getAntennaAzimuthDegrees() { return mAntennaAzimuthDegrees; } public float getAntennaPitchDegrees() { return mAntennaPitchDegrees; } public float getAntennaRollDegrees() { return mAntennaRollDegrees; } private void readFromParcel(Parcel in) { mSatelliteAzimuthDegrees = in.readFloat(); mSatelliteElevationDegrees = in.readFloat(); mAntennaAzimuthDegrees = in.readFloat(); mAntennaPitchDegrees = in.readFloat(); mAntennaRollDegrees = in.readFloat(); } } telephony/java/android/telephony/satellite/SatelliteCapabilities.java +22 −46 Original line number Diff line number Diff line Loading @@ -32,32 +32,25 @@ public final class SatelliteCapabilities implements Parcelable { */ @NonNull @SatelliteManager.NTRadioTechnology private Set<Integer> mSupportedRadioTechnologies; /** * Whether satellite modem is always on. * This indicates the power impact of keeping it on is very minimal. */ private boolean mIsAlwaysOn; /** * Whether UE needs to point to a satellite to send and receive data. */ private boolean mNeedsPointingToSatellite; private boolean mIsPointingRequired; /** * Whether UE needs a separate SIM profile to communicate with the satellite network. * The maximum number of bytes per datagram that can be sent over satellite. */ private boolean mNeedsSeparateSimProfile; private int mMaxBytesPerOutgoingDatagram; /** * @hide */ public SatelliteCapabilities(Set<Integer> supportedRadioTechnologies, boolean isAlwaysOn, boolean needsPointingToSatellite, boolean needsSeparateSimProfile) { public SatelliteCapabilities(Set<Integer> supportedRadioTechnologies, boolean isPointingRequired, int maxBytesPerOutgoingDatagram) { mSupportedRadioTechnologies = supportedRadioTechnologies == null ? new HashSet<>() : supportedRadioTechnologies; mIsAlwaysOn = isAlwaysOn; mNeedsPointingToSatellite = needsPointingToSatellite; mNeedsSeparateSimProfile = needsSeparateSimProfile; mIsPointingRequired = isPointingRequired; mMaxBytesPerOutgoingDatagram = maxBytesPerOutgoingDatagram; } private SatelliteCapabilities(Parcel in) { Loading @@ -80,9 +73,8 @@ public final class SatelliteCapabilities implements Parcelable { out.writeInt(0); } out.writeBoolean(mIsAlwaysOn); out.writeBoolean(mNeedsPointingToSatellite); out.writeBoolean(mNeedsSeparateSimProfile); out.writeBoolean(mIsPointingRequired); out.writeInt(mMaxBytesPerOutgoingDatagram); } @NonNull public static final Creator<SatelliteCapabilities> CREATOR = new Creator<>() { Loading Loading @@ -111,16 +103,12 @@ public final class SatelliteCapabilities implements Parcelable { sb.append("none,"); } sb.append("isAlwaysOn:"); sb.append(mIsAlwaysOn); sb.append(","); sb.append("needsPointingToSatellite:"); sb.append(mNeedsPointingToSatellite); sb.append("isPointingRequired:"); sb.append(mIsPointingRequired); sb.append(","); sb.append("needsSeparateSimProfile:"); sb.append(mNeedsSeparateSimProfile); sb.append("maxBytesPerOutgoingDatagram"); sb.append(mMaxBytesPerOutgoingDatagram); return sb.toString(); } Loading @@ -132,34 +120,23 @@ public final class SatelliteCapabilities implements Parcelable { return mSupportedRadioTechnologies; } /** * Get whether the satellite modem is always on. * This indicates the power impact of keeping it on is very minimal. * * @return {@code true} if the satellite modem is always on and {@code false} otherwise. */ public boolean isAlwaysOn() { return mIsAlwaysOn; } /** * Get whether UE needs to point to a satellite to send and receive data. * * @return {@code true} if UE needs to pointing to a satellite to send and receive data and * @return {@code true} if UE needs to point to a satellite to send and receive data and * {@code false} otherwise. */ public boolean needsPointingToSatellite() { return mNeedsPointingToSatellite; public boolean isPointingRequired() { return mIsPointingRequired; } /** * Get whether UE needs a separate SIM profile to communicate with the satellite network. * The maximum number of bytes per datagram that can be sent over satellite. * * @return {@code true} if UE needs a separate SIM profile to comunicate with the satellite * network and {@code false} otherwise. * @return The maximum number of bytes per datagram that can be sent over satellite. */ public boolean needsSeparateSimProfile() { return mNeedsSeparateSimProfile; public int getMaxBytesPerOutgoingDatagram() { return mMaxBytesPerOutgoingDatagram; } private void readFromParcel(Parcel in) { Loading @@ -171,8 +148,7 @@ public final class SatelliteCapabilities implements Parcelable { } } mIsAlwaysOn = in.readBoolean(); mNeedsPointingToSatellite = in.readBoolean(); mNeedsSeparateSimProfile = in.readBoolean(); mIsPointingRequired = in.readBoolean(); mMaxBytesPerOutgoingDatagram = in.readInt(); } } telephony/java/android/telephony/satellite/SatelliteDatagram.java +4 −6 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.telephony.satellite; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.Parcel; import android.os.Parcelable; Loading @@ -28,7 +27,7 @@ public final class SatelliteDatagram implements Parcelable { /** * Datagram to be sent or received over satellite. */ private byte[] mData; @NonNull private byte[] mData; /** * @hide Loading @@ -51,8 +50,8 @@ public final class SatelliteDatagram implements Parcelable { out.writeByteArray(mData); } public static final @android.annotation.NonNull Creator<SatelliteDatagram> CREATOR = new Creator<SatelliteDatagram>() { @NonNull public static final Creator<SatelliteDatagram> CREATOR = new Creator<>() { @Override public SatelliteDatagram createFromParcel(Parcel in) { return new SatelliteDatagram(in); Loading @@ -64,8 +63,7 @@ public final class SatelliteDatagram implements Parcelable { } }; @Nullable public byte[] getSatelliteDatagram() { @NonNull public byte[] getSatelliteDatagram() { return mData; } Loading Loading
telephony/java/android/telephony/satellite/ISatelliteStateCallback.aidl +0 −7 Original line number Diff line number Diff line Loading @@ -21,13 +21,6 @@ package android.telephony.satellite; * @hide */ oneway interface ISatelliteStateCallback { /** * Indicates that the satellite has pending datagrams for the device to be pulled. * * @param count Number of pending datagrams. */ void onPendingDatagramCount(in int count); /** * Indicates that the satellite modem state has changed. * Loading
telephony/java/android/telephony/satellite/ISatellitePositionUpdateCallback.aidl→telephony/java/android/telephony/satellite/ISatelliteTransmissionUpdateCallback.aidl +1 −1 Original line number Diff line number Diff line Loading @@ -22,7 +22,7 @@ import android.telephony.satellite.PointingInfo; * Interface for position update and datagram transfer state change callback. * @hide */ oneway interface ISatellitePositionUpdateCallback { oneway interface ISatelliteTransmissionUpdateCallback { /** * Called when satellite datagram transfer state changed. * Loading
telephony/java/android/telephony/satellite/PointingInfo.java +1 −50 Original line number Diff line number Diff line Loading @@ -30,31 +30,12 @@ public final class PointingInfo implements Parcelable { /** Satellite elevation in degrees */ private float mSatelliteElevationDegrees; /** Antenna azimuth in degrees */ private float mAntennaAzimuthDegrees; /** * Angle of rotation about the x axis. This value represents the angle between a plane * parallel to the device's screen and a plane parallel to the ground. */ private float mAntennaPitchDegrees; /** * Angle of rotation about the y axis. This value represents the angle between a plane * perpendicular to the device's screen and a plane parallel to the ground. */ private float mAntennaRollDegrees; /** * @hide */ public PointingInfo(float satelliteAzimuthDegrees, float satelliteElevationDegrees, float antennaAzimuthDegrees, float antennaPitchDegrees, float antennaRollDegrees) { public PointingInfo(float satelliteAzimuthDegrees, float satelliteElevationDegrees) { mSatelliteAzimuthDegrees = satelliteAzimuthDegrees; mSatelliteElevationDegrees = satelliteElevationDegrees; mAntennaAzimuthDegrees = antennaAzimuthDegrees; mAntennaPitchDegrees = antennaPitchDegrees; mAntennaRollDegrees = antennaRollDegrees; } private PointingInfo(Parcel in) { Loading @@ -70,9 +51,6 @@ public final class PointingInfo implements Parcelable { public void writeToParcel(@NonNull Parcel out, int flags) { out.writeFloat(mSatelliteAzimuthDegrees); out.writeFloat(mSatelliteElevationDegrees); out.writeFloat(mAntennaAzimuthDegrees); out.writeFloat(mAntennaPitchDegrees); out.writeFloat(mAntennaRollDegrees); } public static final @android.annotation.NonNull Creator<PointingInfo> CREATOR = Loading @@ -99,18 +77,6 @@ public final class PointingInfo implements Parcelable { sb.append("SatelliteElevationDegrees:"); sb.append(mSatelliteElevationDegrees); sb.append(","); sb.append("AntennaAzimuthDegrees:"); sb.append(mAntennaAzimuthDegrees); sb.append(","); sb.append("AntennaPitchDegrees:"); sb.append(mAntennaPitchDegrees); sb.append(","); sb.append("AntennaRollDegrees:"); sb.append(mAntennaRollDegrees); return sb.toString(); } Loading @@ -122,23 +88,8 @@ public final class PointingInfo implements Parcelable { return mSatelliteElevationDegrees; } public float getAntennaAzimuthDegrees() { return mAntennaAzimuthDegrees; } public float getAntennaPitchDegrees() { return mAntennaPitchDegrees; } public float getAntennaRollDegrees() { return mAntennaRollDegrees; } private void readFromParcel(Parcel in) { mSatelliteAzimuthDegrees = in.readFloat(); mSatelliteElevationDegrees = in.readFloat(); mAntennaAzimuthDegrees = in.readFloat(); mAntennaPitchDegrees = in.readFloat(); mAntennaRollDegrees = in.readFloat(); } }
telephony/java/android/telephony/satellite/SatelliteCapabilities.java +22 −46 Original line number Diff line number Diff line Loading @@ -32,32 +32,25 @@ public final class SatelliteCapabilities implements Parcelable { */ @NonNull @SatelliteManager.NTRadioTechnology private Set<Integer> mSupportedRadioTechnologies; /** * Whether satellite modem is always on. * This indicates the power impact of keeping it on is very minimal. */ private boolean mIsAlwaysOn; /** * Whether UE needs to point to a satellite to send and receive data. */ private boolean mNeedsPointingToSatellite; private boolean mIsPointingRequired; /** * Whether UE needs a separate SIM profile to communicate with the satellite network. * The maximum number of bytes per datagram that can be sent over satellite. */ private boolean mNeedsSeparateSimProfile; private int mMaxBytesPerOutgoingDatagram; /** * @hide */ public SatelliteCapabilities(Set<Integer> supportedRadioTechnologies, boolean isAlwaysOn, boolean needsPointingToSatellite, boolean needsSeparateSimProfile) { public SatelliteCapabilities(Set<Integer> supportedRadioTechnologies, boolean isPointingRequired, int maxBytesPerOutgoingDatagram) { mSupportedRadioTechnologies = supportedRadioTechnologies == null ? new HashSet<>() : supportedRadioTechnologies; mIsAlwaysOn = isAlwaysOn; mNeedsPointingToSatellite = needsPointingToSatellite; mNeedsSeparateSimProfile = needsSeparateSimProfile; mIsPointingRequired = isPointingRequired; mMaxBytesPerOutgoingDatagram = maxBytesPerOutgoingDatagram; } private SatelliteCapabilities(Parcel in) { Loading @@ -80,9 +73,8 @@ public final class SatelliteCapabilities implements Parcelable { out.writeInt(0); } out.writeBoolean(mIsAlwaysOn); out.writeBoolean(mNeedsPointingToSatellite); out.writeBoolean(mNeedsSeparateSimProfile); out.writeBoolean(mIsPointingRequired); out.writeInt(mMaxBytesPerOutgoingDatagram); } @NonNull public static final Creator<SatelliteCapabilities> CREATOR = new Creator<>() { Loading Loading @@ -111,16 +103,12 @@ public final class SatelliteCapabilities implements Parcelable { sb.append("none,"); } sb.append("isAlwaysOn:"); sb.append(mIsAlwaysOn); sb.append(","); sb.append("needsPointingToSatellite:"); sb.append(mNeedsPointingToSatellite); sb.append("isPointingRequired:"); sb.append(mIsPointingRequired); sb.append(","); sb.append("needsSeparateSimProfile:"); sb.append(mNeedsSeparateSimProfile); sb.append("maxBytesPerOutgoingDatagram"); sb.append(mMaxBytesPerOutgoingDatagram); return sb.toString(); } Loading @@ -132,34 +120,23 @@ public final class SatelliteCapabilities implements Parcelable { return mSupportedRadioTechnologies; } /** * Get whether the satellite modem is always on. * This indicates the power impact of keeping it on is very minimal. * * @return {@code true} if the satellite modem is always on and {@code false} otherwise. */ public boolean isAlwaysOn() { return mIsAlwaysOn; } /** * Get whether UE needs to point to a satellite to send and receive data. * * @return {@code true} if UE needs to pointing to a satellite to send and receive data and * @return {@code true} if UE needs to point to a satellite to send and receive data and * {@code false} otherwise. */ public boolean needsPointingToSatellite() { return mNeedsPointingToSatellite; public boolean isPointingRequired() { return mIsPointingRequired; } /** * Get whether UE needs a separate SIM profile to communicate with the satellite network. * The maximum number of bytes per datagram that can be sent over satellite. * * @return {@code true} if UE needs a separate SIM profile to comunicate with the satellite * network and {@code false} otherwise. * @return The maximum number of bytes per datagram that can be sent over satellite. */ public boolean needsSeparateSimProfile() { return mNeedsSeparateSimProfile; public int getMaxBytesPerOutgoingDatagram() { return mMaxBytesPerOutgoingDatagram; } private void readFromParcel(Parcel in) { Loading @@ -171,8 +148,7 @@ public final class SatelliteCapabilities implements Parcelable { } } mIsAlwaysOn = in.readBoolean(); mNeedsPointingToSatellite = in.readBoolean(); mNeedsSeparateSimProfile = in.readBoolean(); mIsPointingRequired = in.readBoolean(); mMaxBytesPerOutgoingDatagram = in.readInt(); } }
telephony/java/android/telephony/satellite/SatelliteDatagram.java +4 −6 Original line number Diff line number Diff line Loading @@ -17,7 +17,6 @@ package android.telephony.satellite; import android.annotation.NonNull; import android.annotation.Nullable; import android.os.Parcel; import android.os.Parcelable; Loading @@ -28,7 +27,7 @@ public final class SatelliteDatagram implements Parcelable { /** * Datagram to be sent or received over satellite. */ private byte[] mData; @NonNull private byte[] mData; /** * @hide Loading @@ -51,8 +50,8 @@ public final class SatelliteDatagram implements Parcelable { out.writeByteArray(mData); } public static final @android.annotation.NonNull Creator<SatelliteDatagram> CREATOR = new Creator<SatelliteDatagram>() { @NonNull public static final Creator<SatelliteDatagram> CREATOR = new Creator<>() { @Override public SatelliteDatagram createFromParcel(Parcel in) { return new SatelliteDatagram(in); Loading @@ -64,8 +63,7 @@ public final class SatelliteDatagram implements Parcelable { } }; @Nullable public byte[] getSatelliteDatagram() { @NonNull public byte[] getSatelliteDatagram() { return mData; } Loading