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

Commit 08ededb0 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "btaa: update hardware include file to be gd ready"

parents f69349ad 6ab99c27
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -22,22 +22,21 @@
namespace bluetooth {
namespace activity_attribution {

enum class Activity { UNKNOWN = 0, ADVERTISE, CONNECT, SCAN };

class ActivityAttributionCallbacks {
 public:
  enum class Activity { UNKNOWN = 0, ADVERTISE, CONNECT, SCAN };
  virtual ~ActivityAttributionCallbacks() = default;

  /** Callback when Blutooth woke up the system */
  virtual void OnWakeup(Activity activity, const RawAddress& address) = 0;
  virtual void OnWakeup(const Activity activity, const RawAddress& address) = 0;
};

class ActivityAttributionInterface {
 public:
  virtual ~ActivityAttributionInterface() = default;

  /** Register the Activity Attribution callbacks */
  virtual void Init(ActivityAttributionCallbacks* callbacks) = 0;
  /** Register JNI callbacks with the interface. */
  virtual void RegisterCallbacks(ActivityAttributionCallbacks* callbacks) = 0;

  /** Closes the interface. */
  virtual void Cleanup(void) = 0;