sm8250-common: livedisplay: uprev to 2.1
This commit is contained in:
parent
969edb23b4
commit
3c0cba0748
14 changed files with 193 additions and 35 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2019-2020 The LineageOS Project
|
||||
* Copyright (C) 2019-2022 The LineageOS Project
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -34,8 +34,8 @@ namespace {
|
|||
namespace vendor {
|
||||
namespace lineage {
|
||||
namespace livedisplay {
|
||||
namespace V2_0 {
|
||||
namespace sysfs {
|
||||
namespace V2_1 {
|
||||
namespace implementation {
|
||||
|
||||
AdaptiveBacklight::AdaptiveBacklight() {
|
||||
if (!access(kFileAcl, R_OK | W_OK)) {
|
||||
|
|
@ -54,7 +54,7 @@ bool AdaptiveBacklight::isSupported() {
|
|||
return true;
|
||||
}
|
||||
|
||||
// Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow.
|
||||
// Methods from ::vendor::lineage::livedisplay::V2_1::IAdaptiveBacklight follow.
|
||||
Return<bool> AdaptiveBacklight::isEnabled() {
|
||||
std::string tmp;
|
||||
int32_t contents = 0;
|
||||
|
|
@ -70,8 +70,8 @@ Return<bool> AdaptiveBacklight::setEnabled(bool enabled) {
|
|||
return WriteStringToFile(std::to_string(enabled), file_, true);
|
||||
}
|
||||
|
||||
} // namespace sysfs
|
||||
} // namespace V2_0
|
||||
} // namespace implementation
|
||||
} // namespace V2_1
|
||||
} // namespace livedisplay
|
||||
} // namespace lineage
|
||||
} // namespace vendor
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue