summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2019-01-20 04:16:44 +0100
committerdianlujitao <dianlujitao@lineageos.org>2019-02-04 11:35:35 +0800
commit2667bbdb798cf4089706d5308c53950dddc1e337 (patch)
tree16c6c5ce205669e2e816f0ecb7c47e1b5e537c1a
parentce53d14f0645b6050c2b6358cf5488701ec3d0f4 (diff)
downloadandroid_hardware_lineage_livedisplay-2667bbdb798cf4089706d5308c53950dddc1e337.tar.gz
android_hardware_lineage_livedisplay-2667bbdb798cf4089706d5308c53950dddc1e337.tar.bz2
android_hardware_lineage_livedisplay-2667bbdb798cf4089706d5308c53950dddc1e337.zip
livedisplay: sdm: Remove unused HALs
Change-Id: I60cd6eee2dfae77be3e6e013582da8ccd3e4cfab
-rw-r--r--sdm/Android.bp5
-rw-r--r--sdm/AutoContrast.cpp47
-rw-r--r--sdm/AutoContrast.h56
-rw-r--r--sdm/ColorEnhancement.cpp47
-rw-r--r--sdm/ColorEnhancement.h56
-rw-r--r--sdm/DisplayColorCalibration.cpp57
-rw-r--r--sdm/DisplayColorCalibration.h58
-rw-r--r--sdm/ReadingEnhancement.cpp47
-rw-r--r--sdm/ReadingEnhancement.h56
-rw-r--r--sdm/SunlightEnhancement.cpp47
-rw-r--r--sdm/SunlightEnhancement.h56
11 files changed, 0 insertions, 532 deletions
diff --git a/sdm/Android.bp b/sdm/Android.bp
index 276c386..bc2eaea 100644
--- a/sdm/Android.bp
+++ b/sdm/Android.bp
@@ -29,14 +29,9 @@ cc_library_shared {
proprietary: true,
srcs: [
"AdaptiveBacklight.cpp",
- "AutoContrast.cpp",
"ColorBalance.cpp",
- "ColorEnhancement.cpp",
- "DisplayColorCalibration.cpp",
"DisplayModes.cpp",
"PictureAdjustment.cpp",
- "ReadingEnhancement.cpp",
- "SunlightEnhancement.cpp",
],
shared_libs: [
"libhidlbase",
diff --git a/sdm/AutoContrast.cpp b/sdm/AutoContrast.cpp
deleted file mode 100644
index 3d1b61b..0000000
--- a/sdm/AutoContrast.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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 sdm {
-
-// 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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sdm/AutoContrast.h b/sdm/AutoContrast.h
deleted file mode 100644
index fd65149..0000000
--- a/sdm/AutoContrast.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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 sdm {
-
-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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_AUTOCONTRAST_H
diff --git a/sdm/ColorEnhancement.cpp b/sdm/ColorEnhancement.cpp
deleted file mode 100644
index 1e72c39..0000000
--- a/sdm/ColorEnhancement.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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 sdm {
-
-// 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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sdm/ColorEnhancement.h b/sdm/ColorEnhancement.h
deleted file mode 100644
index 0f82b25..0000000
--- a/sdm/ColorEnhancement.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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 sdm {
-
-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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORENHANCEMENT_H
diff --git a/sdm/DisplayColorCalibration.cpp b/sdm/DisplayColorCalibration.cpp
deleted file mode 100644
index 23c513e..0000000
--- a/sdm/DisplayColorCalibration.cpp
+++ /dev/null
@@ -1,57 +0,0 @@
-/*
- * 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 sdm {
-
-// 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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sdm/DisplayColorCalibration.h b/sdm/DisplayColorCalibration.h
deleted file mode 100644
index 2aaa88c..0000000
--- a/sdm/DisplayColorCalibration.h
+++ /dev/null
@@ -1,58 +0,0 @@
-/*
- * 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 sdm {
-
-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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYCOLORCALIBRATION_H
diff --git a/sdm/ReadingEnhancement.cpp b/sdm/ReadingEnhancement.cpp
deleted file mode 100644
index 7567567..0000000
--- a/sdm/ReadingEnhancement.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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 sdm {
-
-// 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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sdm/ReadingEnhancement.h b/sdm/ReadingEnhancement.h
deleted file mode 100644
index 8acb7a9..0000000
--- a/sdm/ReadingEnhancement.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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 sdm {
-
-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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_READINGENHANCEMENT_H
diff --git a/sdm/SunlightEnhancement.cpp b/sdm/SunlightEnhancement.cpp
deleted file mode 100644
index d8c64c5..0000000
--- a/sdm/SunlightEnhancement.cpp
+++ /dev/null
@@ -1,47 +0,0 @@
-/*
- * 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 sdm {
-
-// 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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sdm/SunlightEnhancement.h b/sdm/SunlightEnhancement.h
deleted file mode 100644
index b0dbb4c..0000000
--- a/sdm/SunlightEnhancement.h
+++ /dev/null
@@ -1,56 +0,0 @@
-/*
- * 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 sdm {
-
-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 sdm
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_SUNLIGHTENHANCEMENT_H