Loading telephony/java/android/telephony/satellite/ISatelliteTransmissionUpdateCallback.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,11 @@ oneway interface ISatelliteTransmissionUpdateCallback { * Satellite location is based on magnetic north direction. */ void onSatellitePositionChanged(in PointingInfo pointingInfo); /** * Called when framework receives a request to send a datagram. * * @param datagramType The type of the requested datagram. */ void onSendDatagramRequested(int datagramType); } telephony/java/android/telephony/satellite/SatelliteManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -1220,6 +1220,12 @@ public final class SatelliteManager { () -> callback.onReceiveDatagramStateChanged( state, receivePendingCount, errorCode))); } @Override public void onSendDatagramRequested(int datagramType) { executor.execute(() -> Binder.withCleanCallingIdentity( () -> callback.onSendDatagramRequested(datagramType))); } }; sSatelliteTransmissionUpdateCallbackMap.put(callback, internalCallback); telephony.startSatelliteTransmissionUpdates(errorCallback, internalCallback); Loading telephony/java/android/telephony/satellite/SatelliteTransmissionUpdateCallback.java +9 −0 Original line number Diff line number Diff line Loading @@ -75,4 +75,13 @@ public interface SatelliteTransmissionUpdateCallback { void onReceiveDatagramStateChanged( @SatelliteManager.SatelliteDatagramTransferState int state, int receivePendingCount, @SatelliteManager.SatelliteResult int errorCode); /** * Called when framework receives a request to send a datagram. * * @param datagramType The type of the requested datagram. * * @hide */ default void onSendDatagramRequested(@SatelliteManager.DatagramType int datagramType) {} } Loading
telephony/java/android/telephony/satellite/ISatelliteTransmissionUpdateCallback.aidl +7 −0 Original line number Diff line number Diff line Loading @@ -50,4 +50,11 @@ oneway interface ISatelliteTransmissionUpdateCallback { * Satellite location is based on magnetic north direction. */ void onSatellitePositionChanged(in PointingInfo pointingInfo); /** * Called when framework receives a request to send a datagram. * * @param datagramType The type of the requested datagram. */ void onSendDatagramRequested(int datagramType); }
telephony/java/android/telephony/satellite/SatelliteManager.java +6 −0 Original line number Diff line number Diff line Loading @@ -1220,6 +1220,12 @@ public final class SatelliteManager { () -> callback.onReceiveDatagramStateChanged( state, receivePendingCount, errorCode))); } @Override public void onSendDatagramRequested(int datagramType) { executor.execute(() -> Binder.withCleanCallingIdentity( () -> callback.onSendDatagramRequested(datagramType))); } }; sSatelliteTransmissionUpdateCallbackMap.put(callback, internalCallback); telephony.startSatelliteTransmissionUpdates(errorCallback, internalCallback); Loading
telephony/java/android/telephony/satellite/SatelliteTransmissionUpdateCallback.java +9 −0 Original line number Diff line number Diff line Loading @@ -75,4 +75,13 @@ public interface SatelliteTransmissionUpdateCallback { void onReceiveDatagramStateChanged( @SatelliteManager.SatelliteDatagramTransferState int state, int receivePendingCount, @SatelliteManager.SatelliteResult int errorCode); /** * Called when framework receives a request to send a datagram. * * @param datagramType The type of the requested datagram. * * @hide */ default void onSendDatagramRequested(@SatelliteManager.DatagramType int datagramType) {} }