sm8450-common: sensors: Introduce LightNotifier and use libssccalapi@2.0

Change-Id: Iec11aa1a8ccc13db5d30cc6fa52e4b10d255c706
This commit is contained in:
Arian
2024-07-28 17:37:41 +02:00
والد 9148fcdc2c
کامیت 1452dd82ea
7فایلهای تغییر یافته به همراه287 افزوده شده و 0 حذف شده

مشاهده پرونده

@@ -10,7 +10,9 @@
#include <android-base/properties.h>
#include "SensorNotifierExt.h"
#include "SscCalApi.h"
#include "notifiers/AodNotifier.h"
#include "notifiers/LightNotifier.h"
#include "notifiers/NonUiNotifier.h"
int main() {
@@ -20,8 +22,12 @@ int main() {
return EXIT_FAILURE;
}
SscCalApiWrapper::getInstance().initCurrentSensors(
android::base::GetBoolProperty("persist.vendor.debug.ssccalapi", false));
std::vector<std::unique_ptr<SensorNotifier>> notifiers;
notifiers.push_back(std::make_unique<AodNotifier>(manager));
notifiers.push_back(std::make_unique<LightNotifier>(manager));
notifiers.push_back(std::make_unique<NonUiNotifier>(manager));
for (const auto& notifier : notifiers) {
notifier->activate();