sm8450-common: sensors: Introduce LightNotifier and use libssccalapi@2.0
Change-Id: Iec11aa1a8ccc13db5d30cc6fa52e4b10d255c706
This commit is contained in:
@@ -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();
|
||||
|
مرجع در شماره جدید
Block a user