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

Commit 8fde7a3f authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Add IGnssPowerIndication AIDL HAL (hardware/interfaces)"

parents 9ef650a4 2475361d
Loading
Loading
Loading
Loading
+24 −0
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
// edit this file. It looks like you are doing that because you have modified
// an AIDL interface in a backward-incompatible way, e.g., deleting a function
// from an interface or a field from a parcelable and it broke the build. That
// breakage is intended.
//
// You must not make a backward incompatible changes to the AIDL files built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.gnss;
@VintfStability
parcelable ElapsedRealtime {
  int flags;
  long timestampNs;
  double timeUncertaintyNs;
}
+28 −0
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
// edit this file. It looks like you are doing that because you have modified
// an AIDL interface in a backward-incompatible way, e.g., deleting a function
// from an interface or a field from a parcelable and it broke the build. That
// breakage is intended.
//
// You must not make a backward incompatible changes to the AIDL files built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.gnss;
@VintfStability
parcelable GnssPowerStats {
  android.hardware.gnss.ElapsedRealtime elapsedRealtime;
  double totalEnergyMilliJoule;
  double singlebandTrackingModeEnergyMilliJoule;
  double multibandTrackingModeEnergyMilliJoule;
  double singlebandAcquisitionModeEnergyMilliJoule;
  double multibandAcquisitionModeEnergyMilliJoule;
  double[] otherModesEnergyMilliJoule;
}
+3 −0
Original line number Diff line number Diff line
@@ -22,5 +22,8 @@ interface IGnss {
  void close();
  android.hardware.gnss.IGnssPsds getExtensionPsds();
  android.hardware.gnss.IGnssConfiguration getExtensionGnssConfiguration();
  android.hardware.gnss.IGnssPowerIndication getExtensionGnssPowerIndication();
  const int ERROR_INVALID_ARGUMENT = 1;
  const int ELAPSED_REALTIME_HAS_TIMESTAMP_NS = 1;
  const int ELAPSED_REALTIME_HAS_TIME_UNCERTAINTY_NS = 2;
}
+23 −0
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
// edit this file. It looks like you are doing that because you have modified
// an AIDL interface in a backward-incompatible way, e.g., deleting a function
// from an interface or a field from a parcelable and it broke the build. That
// breakage is intended.
//
// You must not make a backward incompatible changes to the AIDL files built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.gnss;
@VintfStability
interface IGnssPowerIndication {
  void setCallback(in android.hardware.gnss.IGnssPowerIndicationCallback callback);
  oneway void requestGnssPowerStats();
}
+29 −0
Original line number Diff line number Diff line
///////////////////////////////////////////////////////////////////////////////
// THIS FILE IS IMMUTABLE. DO NOT EDIT IN ANY CASE.                          //
///////////////////////////////////////////////////////////////////////////////

// This file is a snapshot of an AIDL interface (or parcelable). Do not try to
// edit this file. It looks like you are doing that because you have modified
// an AIDL interface in a backward-incompatible way, e.g., deleting a function
// from an interface or a field from a parcelable and it broke the build. That
// breakage is intended.
//
// You must not make a backward incompatible changes to the AIDL files built
// with the aidl_interface module type with versions property set. The module
// type is used to build AIDL files in a way that they can be used across
// independently updatable components of the system. If a device is shipped
// with such a backward incompatible change, it has a high risk of breaking
// later when a module using the interface is updated, e.g., Mainline modules.

package android.hardware.gnss;
@VintfStability
interface IGnssPowerIndicationCallback {
  void setCapabilitiesCb(in int capabilities);
  oneway void gnssPowerStatsCb(in android.hardware.gnss.GnssPowerStats gnssPowerStats);
  const int CAPABILITY_TOTAL = 1;
  const int CAPABILITY_SINGLEBAND_TRACKING = 2;
  const int CAPABILITY_MULTIBAND_TRACKING = 4;
  const int CAPABILITY_SINGLEBAND_ACQUISITION = 8;
  const int CAPABILITY_MULTIBAND_ACQUISITION = 16;
  const int CAPABILITY_OTHER_MODES = 32;
}
Loading