diff options
author | Paul Keith <javelinanddart@gmail.com> | 2019-01-19 16:35:57 +0100 |
---|---|---|
committer | Bruno Martins <bgcngm@gmail.com> | 2019-01-26 19:45:26 +0000 |
commit | 986bd645db55b7042e39d5f3bb2c9847ca82f856 (patch) | |
tree | de9f396c37c095598e255a15bc16ebc3aa34e08f | |
parent | 7193ce23f53c2ad0c368050066bd22378baa43a0 (diff) | |
download | android_hardware_lineage_livedisplay-986bd645db55b7042e39d5f3bb2c9847ca82f856.tar.gz android_hardware_lineage_livedisplay-986bd645db55b7042e39d5f3bb2c9847ca82f856.tar.bz2 android_hardware_lineage_livedisplay-986bd645db55b7042e39d5f3bb2c9847ca82f856.zip |
livedisplay: Split impls into legacymm and sdm
* Since we're no longer approaching this as a @1.0
wrapper, we need separate impls for sdm and legacymm
Change-Id: I413349de5d2331cf9cf60199999c34614224fe42
-rw-r--r-- | legacymm/AdaptiveBacklight.cpp | 47 | ||||
-rw-r--r-- | legacymm/AdaptiveBacklight.h | 56 | ||||
-rw-r--r-- | legacymm/Android.bp (renamed from qti/Android.bp) | 0 | ||||
-rw-r--r-- | legacymm/AutoContrast.cpp | 47 | ||||
-rw-r--r-- | legacymm/AutoContrast.h | 56 | ||||
-rw-r--r-- | legacymm/ColorBalance.cpp | 52 | ||||
-rw-r--r-- | legacymm/ColorBalance.h | 57 | ||||
-rw-r--r-- | legacymm/ColorEnhancement.cpp | 47 | ||||
-rw-r--r-- | legacymm/ColorEnhancement.h | 56 | ||||
-rw-r--r-- | legacymm/DisplayColorCalibration.cpp | 57 | ||||
-rw-r--r-- | legacymm/DisplayColorCalibration.h | 58 | ||||
-rw-r--r-- | legacymm/DisplayModes.cpp | 57 | ||||
-rw-r--r-- | legacymm/DisplayModes.h | 58 | ||||
-rw-r--r-- | legacymm/PictureAdjustment.cpp | 77 | ||||
-rw-r--r-- | legacymm/PictureAdjustment.h | 62 | ||||
-rw-r--r-- | legacymm/ReadingEnhancement.cpp | 47 | ||||
-rw-r--r-- | legacymm/ReadingEnhancement.h | 56 | ||||
-rw-r--r-- | legacymm/SunlightEnhancement.cpp | 47 | ||||
-rw-r--r-- | legacymm/SunlightEnhancement.h | 56 | ||||
-rw-r--r-- | sdm/AdaptiveBacklight.cpp (renamed from qti/AdaptiveBacklight.cpp) | 4 | ||||
-rw-r--r-- | sdm/AdaptiveBacklight.h (renamed from qti/AdaptiveBacklight.h) | 4 | ||||
-rw-r--r-- | sdm/Android.bp | 47 | ||||
-rw-r--r-- | sdm/AutoContrast.cpp (renamed from qti/AutoContrast.cpp) | 4 | ||||
-rw-r--r-- | sdm/AutoContrast.h (renamed from qti/AutoContrast.h) | 4 | ||||
-rw-r--r-- | sdm/ColorBalance.cpp (renamed from qti/ColorBalance.cpp) | 4 | ||||
-rw-r--r-- | sdm/ColorBalance.h (renamed from qti/ColorBalance.h) | 4 | ||||
-rw-r--r-- | sdm/ColorEnhancement.cpp (renamed from qti/ColorEnhancement.cpp) | 4 | ||||
-rw-r--r-- | sdm/ColorEnhancement.h (renamed from qti/ColorEnhancement.h) | 4 | ||||
-rw-r--r-- | sdm/DisplayColorCalibration.cpp (renamed from qti/DisplayColorCalibration.cpp) | 4 | ||||
-rw-r--r-- | sdm/DisplayColorCalibration.h (renamed from qti/DisplayColorCalibration.h) | 4 | ||||
-rw-r--r-- | sdm/DisplayModes.cpp (renamed from qti/DisplayModes.cpp) | 4 | ||||
-rw-r--r-- | sdm/DisplayModes.h (renamed from qti/DisplayModes.h) | 4 | ||||
-rw-r--r-- | sdm/PictureAdjustment.cpp (renamed from qti/PictureAdjustment.cpp) | 4 | ||||
-rw-r--r-- | sdm/PictureAdjustment.h (renamed from qti/PictureAdjustment.h) | 4 | ||||
-rw-r--r-- | sdm/ReadingEnhancement.cpp (renamed from qti/ReadingEnhancement.cpp) | 4 | ||||
-rw-r--r-- | sdm/ReadingEnhancement.h (renamed from qti/ReadingEnhancement.h) | 4 | ||||
-rw-r--r-- | sdm/SunlightEnhancement.cpp (renamed from qti/SunlightEnhancement.cpp) | 4 | ||||
-rw-r--r-- | sdm/SunlightEnhancement.h (renamed from qti/SunlightEnhancement.h) | 4 |
38 files changed, 1076 insertions, 36 deletions
diff --git a/legacymm/AdaptiveBacklight.cpp b/legacymm/AdaptiveBacklight.cpp new file mode 100644 index 0000000..20f05cf --- /dev/null +++ b/legacymm/AdaptiveBacklight.cpp @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "AdaptiveBacklight.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow. +Return<bool> AdaptiveBacklight::isEnabled() { + // TODO implement + return bool {}; +} + +Return<bool> AdaptiveBacklight::setEnabled(bool enabled) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IAdaptiveBacklight* HIDL_FETCH_IAdaptiveBacklight(const char* /* name */) { + //return new AdaptiveBacklight(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/AdaptiveBacklight.h b/legacymm/AdaptiveBacklight.h new file mode 100644 index 0000000..7fead9a --- /dev/null +++ b/legacymm/AdaptiveBacklight.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H + +#include <vendor/lineage/livedisplay/2.0/IAdaptiveBacklight.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct AdaptiveBacklight : public IAdaptiveBacklight { + // Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow. + Return<bool> isEnabled() override; + Return<bool> setEnabled(bool enabled) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IAdaptiveBacklight* HIDL_FETCH_IAdaptiveBacklight(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_ADAPTIVEBACKLIGHT_H diff --git a/qti/Android.bp b/legacymm/Android.bp index 276c386..276c386 100644 --- a/qti/Android.bp +++ b/legacymm/Android.bp diff --git a/legacymm/AutoContrast.cpp b/legacymm/AutoContrast.cpp new file mode 100644 index 0000000..25dff24 --- /dev/null +++ b/legacymm/AutoContrast.cpp @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "AutoContrast.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast follow. +Return<bool> AutoContrast::isEnabled() { + // TODO implement + return bool {}; +} + +Return<bool> AutoContrast::setEnabled(bool enabled) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IAutoContrast* HIDL_FETCH_IAutoContrast(const char* /* name */) { + //return new AutoContrast(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/AutoContrast.h b/legacymm/AutoContrast.h new file mode 100644 index 0000000..12a5546 --- /dev/null +++ b/legacymm/AutoContrast.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H + +#include <vendor/lineage/livedisplay/2.0/IAutoContrast.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct AutoContrast : public IAutoContrast { + // Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast follow. + Return<bool> isEnabled() override; + Return<bool> setEnabled(bool enabled) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IAutoContrast* HIDL_FETCH_IAutoContrast(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H diff --git a/legacymm/ColorBalance.cpp b/legacymm/ColorBalance.cpp new file mode 100644 index 0000000..62ca8c3 --- /dev/null +++ b/legacymm/ColorBalance.cpp @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "ColorBalance.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow. +Return<void> ColorBalance::getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<int32_t> ColorBalance::getColorBalance() { + // TODO implement + return int32_t {}; +} + +Return<bool> ColorBalance::setColorBalance(int32_t value) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IColorBalance* HIDL_FETCH_IColorBalance(const char* /* name */) { + //return new ColorBalance(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/ColorBalance.h b/legacymm/ColorBalance.h new file mode 100644 index 0000000..7c637dc --- /dev/null +++ b/legacymm/ColorBalance.h @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H + +#include <vendor/lineage/livedisplay/2.0/IColorBalance.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct ColorBalance : public IColorBalance { + // Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow. + Return<void> getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) override; + Return<int32_t> getColorBalance() override; + Return<bool> setColorBalance(int32_t value) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IColorBalance* HIDL_FETCH_IColorBalance(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H diff --git a/legacymm/ColorEnhancement.cpp b/legacymm/ColorEnhancement.cpp new file mode 100644 index 0000000..723025b --- /dev/null +++ b/legacymm/ColorEnhancement.cpp @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "ColorEnhancement.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement follow. +Return<bool> ColorEnhancement::isEnabled() { + // TODO implement + return bool {}; +} + +Return<bool> ColorEnhancement::setEnabled(bool enabled) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IColorEnhancement* HIDL_FETCH_IColorEnhancement(const char* /* name */) { + //return new ColorEnhancement(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/ColorEnhancement.h b/legacymm/ColorEnhancement.h new file mode 100644 index 0000000..e560a9c --- /dev/null +++ b/legacymm/ColorEnhancement.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H + +#include <vendor/lineage/livedisplay/2.0/IColorEnhancement.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct ColorEnhancement : public IColorEnhancement { + // Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement follow. + Return<bool> isEnabled() override; + Return<bool> setEnabled(bool enabled) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IColorEnhancement* HIDL_FETCH_IColorEnhancement(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H diff --git a/legacymm/DisplayColorCalibration.cpp b/legacymm/DisplayColorCalibration.cpp new file mode 100644 index 0000000..197f2fd --- /dev/null +++ b/legacymm/DisplayColorCalibration.cpp @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "DisplayColorCalibration.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow. +Return<int32_t> DisplayColorCalibration::getMaxValue() { + // TODO implement + return int32_t {}; +} + +Return<int32_t> DisplayColorCalibration::getMinValue() { + // TODO implement + return int32_t {}; +} + +Return<void> DisplayColorCalibration::getCalibration(getCalibration_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<bool> DisplayColorCalibration::setCalibration(const hidl_vec<int32_t>& rgb) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IDisplayColorCalibration* HIDL_FETCH_IDisplayColorCalibration(const char* /* name */) { + //return new DisplayColorCalibration(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/DisplayColorCalibration.h b/legacymm/DisplayColorCalibration.h new file mode 100644 index 0000000..00bd2eb --- /dev/null +++ b/legacymm/DisplayColorCalibration.h @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H + +#include <vendor/lineage/livedisplay/2.0/IDisplayColorCalibration.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct DisplayColorCalibration : public IDisplayColorCalibration { + // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow. + Return<int32_t> getMaxValue() override; + Return<int32_t> getMinValue() override; + Return<void> getCalibration(getCalibration_cb _hidl_cb) override; + Return<bool> setCalibration(const hidl_vec<int32_t>& rgb) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IDisplayColorCalibration* HIDL_FETCH_IDisplayColorCalibration(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H diff --git a/legacymm/DisplayModes.cpp b/legacymm/DisplayModes.cpp new file mode 100644 index 0000000..9449ceb --- /dev/null +++ b/legacymm/DisplayModes.cpp @@ -0,0 +1,57 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "DisplayModes.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow. +Return<void> DisplayModes::getDisplayModes(getDisplayModes_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> DisplayModes::getCurrentDisplayMode(getCurrentDisplayMode_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> DisplayModes::getDefaultDisplayMode(getDefaultDisplayMode_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<bool> DisplayModes::setDisplayMode(int32_t modeID, bool makeDefault) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IDisplayModes* HIDL_FETCH_IDisplayModes(const char* /* name */) { + //return new DisplayModes(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/DisplayModes.h b/legacymm/DisplayModes.h new file mode 100644 index 0000000..c77b3ef --- /dev/null +++ b/legacymm/DisplayModes.h @@ -0,0 +1,58 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H + +#include <vendor/lineage/livedisplay/2.0/IDisplayModes.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct DisplayModes : public IDisplayModes { + // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow. + Return<void> getDisplayModes(getDisplayModes_cb _hidl_cb) override; + Return<void> getCurrentDisplayMode(getCurrentDisplayMode_cb _hidl_cb) override; + Return<void> getDefaultDisplayMode(getDefaultDisplayMode_cb _hidl_cb) override; + Return<bool> setDisplayMode(int32_t modeID, bool makeDefault) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IDisplayModes* HIDL_FETCH_IDisplayModes(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H diff --git a/legacymm/PictureAdjustment.cpp b/legacymm/PictureAdjustment.cpp new file mode 100644 index 0000000..bd9f4ad --- /dev/null +++ b/legacymm/PictureAdjustment.cpp @@ -0,0 +1,77 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "PictureAdjustment.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow. +Return<void> PictureAdjustment::getHueRange(getHueRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getSaturationRange(getSaturationRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getIntensityRange(getIntensityRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getContrastRange(getContrastRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getSaturationThresholdRange(getSaturationThresholdRange_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getPictureAdjustment(getPictureAdjustment_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<void> PictureAdjustment::getDefaultPictureAdjustment(getDefaultPictureAdjustment_cb _hidl_cb) { + // TODO implement + return Void(); +} + +Return<bool> PictureAdjustment::setPictureAdjustment(const ::vendor::lineage::livedisplay::V2_0::HSIC& hsic) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* /* name */) { + //return new PictureAdjustment(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/PictureAdjustment.h b/legacymm/PictureAdjustment.h new file mode 100644 index 0000000..60a3b63 --- /dev/null +++ b/legacymm/PictureAdjustment.h @@ -0,0 +1,62 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H + +#include <vendor/lineage/livedisplay/2.0/IPictureAdjustment.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct PictureAdjustment : public IPictureAdjustment { + // Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow. + Return<void> getHueRange(getHueRange_cb _hidl_cb) override; + Return<void> getSaturationRange(getSaturationRange_cb _hidl_cb) override; + Return<void> getIntensityRange(getIntensityRange_cb _hidl_cb) override; + Return<void> getContrastRange(getContrastRange_cb _hidl_cb) override; + Return<void> getSaturationThresholdRange(getSaturationThresholdRange_cb _hidl_cb) override; + Return<void> getPictureAdjustment(getPictureAdjustment_cb _hidl_cb) override; + Return<void> getDefaultPictureAdjustment(getDefaultPictureAdjustment_cb _hidl_cb) override; + Return<bool> setPictureAdjustment(const ::vendor::lineage::livedisplay::V2_0::HSIC& hsic) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H diff --git a/legacymm/ReadingEnhancement.cpp b/legacymm/ReadingEnhancement.cpp new file mode 100644 index 0000000..6d897c8 --- /dev/null +++ b/legacymm/ReadingEnhancement.cpp @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "ReadingEnhancement.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow. +Return<bool> ReadingEnhancement::isEnabled() { + // TODO implement + return bool {}; +} + +Return<bool> ReadingEnhancement::setEnabled(bool enabled) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//IReadingEnhancement* HIDL_FETCH_IReadingEnhancement(const char* /* name */) { + //return new ReadingEnhancement(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/ReadingEnhancement.h b/legacymm/ReadingEnhancement.h new file mode 100644 index 0000000..91fc88c --- /dev/null +++ b/legacymm/ReadingEnhancement.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H + +#include <vendor/lineage/livedisplay/2.0/IReadingEnhancement.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct ReadingEnhancement : public IReadingEnhancement { + // Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow. + Return<bool> isEnabled() override; + Return<bool> setEnabled(bool enabled) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" IReadingEnhancement* HIDL_FETCH_IReadingEnhancement(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H diff --git a/legacymm/SunlightEnhancement.cpp b/legacymm/SunlightEnhancement.cpp new file mode 100644 index 0000000..de609b6 --- /dev/null +++ b/legacymm/SunlightEnhancement.cpp @@ -0,0 +1,47 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include "SunlightEnhancement.h" + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +// Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow. +Return<bool> SunlightEnhancement::isEnabled() { + // TODO implement + return bool {}; +} + +Return<bool> SunlightEnhancement::setEnabled(bool enabled) { + // TODO implement + return bool {}; +} + + +// Methods from ::android::hidl::base::V1_0::IBase follow. + +//ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* /* name */) { + //return new SunlightEnhancement(); +//} +// +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor diff --git a/legacymm/SunlightEnhancement.h b/legacymm/SunlightEnhancement.h new file mode 100644 index 0000000..27e34af --- /dev/null +++ b/legacymm/SunlightEnhancement.h @@ -0,0 +1,56 @@ +/* + * Copyright (C) 2019 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H +#define VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H + +#include <vendor/lineage/livedisplay/2.0/ISunlightEnhancement.h> +#include <hidl/MQDescriptor.h> +#include <hidl/Status.h> + +namespace vendor { +namespace lineage { +namespace livedisplay { +namespace V2_0 { +namespace legacymm { + +using ::android::hardware::hidl_array; +using ::android::hardware::hidl_memory; +using ::android::hardware::hidl_string; +using ::android::hardware::hidl_vec; +using ::android::hardware::Return; +using ::android::hardware::Void; +using ::android::sp; + +struct SunlightEnhancement : public ISunlightEnhancement { + // Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow. + Return<bool> isEnabled() override; + Return<bool> setEnabled(bool enabled) override; + + // Methods from ::android::hidl::base::V1_0::IBase follow. + +}; + +// FIXME: most likely delete, this is only for passthrough implementations +// extern "C" ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* name); + +} // namespace legacymm +} // namespace V2_0 +} // namespace livedisplay +} // namespace lineage +} // namespace vendor + +#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H diff --git a/qti/AdaptiveBacklight.cpp b/sdm/AdaptiveBacklight.cpp index 1385a25..a1e75cc 100644 --- a/qti/AdaptiveBacklight.cpp +++ b/sdm/AdaptiveBacklight.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow. Return<bool> AdaptiveBacklight::isEnabled() { @@ -40,7 +40,7 @@ Return<bool> AdaptiveBacklight::setEnabled(bool enabled) { //return new AdaptiveBacklight(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/AdaptiveBacklight.h b/sdm/AdaptiveBacklight.h index da4cbd9..544083c 100644 --- a/qti/AdaptiveBacklight.h +++ b/sdm/AdaptiveBacklight.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -47,7 +47,7 @@ struct AdaptiveBacklight : public IAdaptiveBacklight { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IAdaptiveBacklight* HIDL_FETCH_IAdaptiveBacklight(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sdm/Android.bp b/sdm/Android.bp new file mode 100644 index 0000000..276c386 --- /dev/null +++ b/sdm/Android.bp @@ -0,0 +1,47 @@ +// Copyright (C) 2019 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. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + +cc_library_shared { + // FIXME: this should only be -impl for a passthrough hal. + // In most cases, to convert this to a binderized implementation, you should: + // - change '-impl' to '-service' here and make it a cc_binary instead of a + // cc_library_shared. + // - add a *.rc file for this module. + // - delete HIDL_FETCH_I* functions. + // - call configureRpcThreadpool and registerAsService on the instance. + // You may also want to append '-impl/-service' with a specific identifier like + // '-vendor' or '-<hardware identifier>' etc to distinguish it. + name: "vendor.lineage.livedisplay@2.0-impl", + relative_install_path: "hw", + // FIXME: this should be 'vendor: true' for modules that will eventually be + // on AOSP. + proprietary: true, + srcs: [ + "AdaptiveBacklight.cpp", + "AutoContrast.cpp", + "ColorBalance.cpp", + "ColorEnhancement.cpp", + "DisplayColorCalibration.cpp", + "DisplayModes.cpp", + "PictureAdjustment.cpp", + "ReadingEnhancement.cpp", + "SunlightEnhancement.cpp", + ], + shared_libs: [ + "libhidlbase", + "libhidltransport", + "libutils", + "vendor.lineage.livedisplay@2.0", + ], +} diff --git a/qti/AutoContrast.cpp b/sdm/AutoContrast.cpp index 131205e..3d1b61b 100644 --- a/qti/AutoContrast.cpp +++ b/sdm/AutoContrast.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast follow. Return<bool> AutoContrast::isEnabled() { @@ -40,7 +40,7 @@ Return<bool> AutoContrast::setEnabled(bool enabled) { //return new AutoContrast(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/AutoContrast.h b/sdm/AutoContrast.h index 6f1785e..fd65149 100644 --- a/qti/AutoContrast.h +++ b/sdm/AutoContrast.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -47,7 +47,7 @@ struct AutoContrast : public IAutoContrast { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IAutoContrast* HIDL_FETCH_IAutoContrast(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ColorBalance.cpp b/sdm/ColorBalance.cpp index 0b0843f..b7477a6 100644 --- a/qti/ColorBalance.cpp +++ b/sdm/ColorBalance.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow. Return<void> ColorBalance::getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) { @@ -45,7 +45,7 @@ Return<bool> ColorBalance::setColorBalance(int32_t value) { //return new ColorBalance(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ColorBalance.h b/sdm/ColorBalance.h index bfb42c9..6b5a6fe 100644 --- a/qti/ColorBalance.h +++ b/sdm/ColorBalance.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -48,7 +48,7 @@ struct ColorBalance : public IColorBalance { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IColorBalance* HIDL_FETCH_IColorBalance(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ColorEnhancement.cpp b/sdm/ColorEnhancement.cpp index 077f66c..1e72c39 100644 --- a/qti/ColorEnhancement.cpp +++ b/sdm/ColorEnhancement.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement follow. Return<bool> ColorEnhancement::isEnabled() { @@ -40,7 +40,7 @@ Return<bool> ColorEnhancement::setEnabled(bool enabled) { //return new ColorEnhancement(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ColorEnhancement.h b/sdm/ColorEnhancement.h index fe14cfd..0f82b25 100644 --- a/qti/ColorEnhancement.h +++ b/sdm/ColorEnhancement.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -47,7 +47,7 @@ struct ColorEnhancement : public IColorEnhancement { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IColorEnhancement* HIDL_FETCH_IColorEnhancement(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/DisplayColorCalibration.cpp b/sdm/DisplayColorCalibration.cpp index dd800cb..23c513e 100644 --- a/qti/DisplayColorCalibration.cpp +++ b/sdm/DisplayColorCalibration.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow. Return<int32_t> DisplayColorCalibration::getMaxValue() { @@ -50,7 +50,7 @@ Return<bool> DisplayColorCalibration::setCalibration(const hidl_vec<int32_t>& rg //return new DisplayColorCalibration(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/DisplayColorCalibration.h b/sdm/DisplayColorCalibration.h index 8ea592c..2aaa88c 100644 --- a/qti/DisplayColorCalibration.h +++ b/sdm/DisplayColorCalibration.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -49,7 +49,7 @@ struct DisplayColorCalibration : public IDisplayColorCalibration { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IDisplayColorCalibration* HIDL_FETCH_IDisplayColorCalibration(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/DisplayModes.cpp b/sdm/DisplayModes.cpp index 044778c..5eec1d8 100644 --- a/qti/DisplayModes.cpp +++ b/sdm/DisplayModes.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow. Return<void> DisplayModes::getDisplayModes(getDisplayModes_cb _hidl_cb) { @@ -50,7 +50,7 @@ Return<bool> DisplayModes::setDisplayMode(int32_t modeID, bool makeDefault) { //return new DisplayModes(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/DisplayModes.h b/sdm/DisplayModes.h index 98940ee..4c2d601 100644 --- a/qti/DisplayModes.h +++ b/sdm/DisplayModes.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -49,7 +49,7 @@ struct DisplayModes : public IDisplayModes { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IDisplayModes* HIDL_FETCH_IDisplayModes(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/PictureAdjustment.cpp b/sdm/PictureAdjustment.cpp index 0312055..e12573e 100644 --- a/qti/PictureAdjustment.cpp +++ b/sdm/PictureAdjustment.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow. Return<void> PictureAdjustment::getHueRange(getHueRange_cb _hidl_cb) { @@ -70,7 +70,7 @@ Return<bool> PictureAdjustment::setPictureAdjustment(const ::vendor::lineage::li //return new PictureAdjustment(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/PictureAdjustment.h b/sdm/PictureAdjustment.h index 500e7a6..d35893e 100644 --- a/qti/PictureAdjustment.h +++ b/sdm/PictureAdjustment.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -53,7 +53,7 @@ struct PictureAdjustment : public IPictureAdjustment { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IPictureAdjustment* HIDL_FETCH_IPictureAdjustment(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ReadingEnhancement.cpp b/sdm/ReadingEnhancement.cpp index 35e0e28..7567567 100644 --- a/qti/ReadingEnhancement.cpp +++ b/sdm/ReadingEnhancement.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow. Return<bool> ReadingEnhancement::isEnabled() { @@ -40,7 +40,7 @@ Return<bool> ReadingEnhancement::setEnabled(bool enabled) { //return new ReadingEnhancement(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/ReadingEnhancement.h b/sdm/ReadingEnhancement.h index b302360..8acb7a9 100644 --- a/qti/ReadingEnhancement.h +++ b/sdm/ReadingEnhancement.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -47,7 +47,7 @@ struct ReadingEnhancement : public IReadingEnhancement { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IReadingEnhancement* HIDL_FETCH_IReadingEnhancement(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/SunlightEnhancement.cpp b/sdm/SunlightEnhancement.cpp index 7794204..d8c64c5 100644 --- a/qti/SunlightEnhancement.cpp +++ b/sdm/SunlightEnhancement.cpp @@ -20,7 +20,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { // Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow. Return<bool> SunlightEnhancement::isEnabled() { @@ -40,7 +40,7 @@ Return<bool> SunlightEnhancement::setEnabled(bool enabled) { //return new SunlightEnhancement(); //} // -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/qti/SunlightEnhancement.h b/sdm/SunlightEnhancement.h index 78e7c38..b0dbb4c 100644 --- a/qti/SunlightEnhancement.h +++ b/sdm/SunlightEnhancement.h @@ -25,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace qti { +namespace sdm { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -47,7 +47,7 @@ struct SunlightEnhancement : public ISunlightEnhancement { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" ISunlightEnhancement* HIDL_FETCH_ISunlightEnhancement(const char* name); -} // namespace qti +} // namespace sdm } // namespace V2_0 } // namespace livedisplay } // namespace lineage |