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

Commit e4c63c9d 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 am:...

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

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

Change-Id: Iab7fc9460409a2a0339a872589dcc5552853d3e4
parents ad465e91 e52c1cea
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;