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

Commit 7fff485a authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

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

Original change: https://android-review.googlesource.com/c/platform/system/bt/+/1508616

Change-Id: I78e9b77ca860e77d9664d02ee7c5838d4bed6704
parents f2f0f39b 08ededb0
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;