LightNotifier.h 435 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2024 The LineageOS Project
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. */
  6. #pragma once
  7. #include <android-base/unique_fd.h>
  8. #include "SensorNotifier.h"
  9. class LightNotifier : public SensorNotifier {
  10. public:
  11. LightNotifier(sp<ISensorManager> manager);
  12. ~LightNotifier();
  13. protected:
  14. void notify();
  15. private:
  16. std::vector<int> mLightSensorsPrimary;
  17. std::vector<int> mLightSensorsSecondary;
  18. };