sm8450-common: sensors: Introduce LightNotifier and use libssccalapi@2.0
Change-Id: Iec11aa1a8ccc13db5d30cc6fa52e4b10d255c706
This commit is contained in:
24
sensors/notifiers/LightNotifier.h
Normal file
24
sensors/notifiers/LightNotifier.h
Normal file
@@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (C) 2024 The LineageOS Project
|
||||
*
|
||||
* SPDX-License-Identifier: Apache-2.0
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <android-base/unique_fd.h>
|
||||
|
||||
#include "SensorNotifier.h"
|
||||
|
||||
class LightNotifier : public SensorNotifier {
|
||||
public:
|
||||
LightNotifier(sp<ISensorManager> manager);
|
||||
~LightNotifier();
|
||||
|
||||
protected:
|
||||
void notify();
|
||||
|
||||
private:
|
||||
std::vector<int> mLightSensorsPrimary;
|
||||
std::vector<int> mLightSensorsSecondary;
|
||||
};
|
Fai riferimento in un nuovo problema
Block a user