summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Keith <javelinanddart@gmail.com>2019-02-06 21:03:37 -0600
committerPaul Keith <javelinanddart@gmail.com>2019-02-07 11:25:15 -0600
commit781eb9d465e1a7c0ff78e259d8ac171a260052ff (patch)
tree1a7edd42c7137614e09f4131fa8afd11676bc404
parent8475e6cb1b48acc7ffd23623547db05ffd180e64 (diff)
downloadandroid_hardware_lineage_livedisplay-781eb9d465e1a7c0ff78e259d8ac171a260052ff.tar.gz
android_hardware_lineage_livedisplay-781eb9d465e1a7c0ff78e259d8ac171a260052ff.tar.bz2
android_hardware_lineage_livedisplay-781eb9d465e1a7c0ff78e259d8ac171a260052ff.zip
livedisplay: sysfs: Remove unused HALs
Change-Id: I599dbbda3c2367979dbe9241c3f693d90d3ee850
-rw-r--r--sysfs/Android.bp3
-rw-r--r--sysfs/ColorBalance.cpp52
-rw-r--r--sysfs/ColorBalance.h57
-rw-r--r--sysfs/DisplayModes.cpp57
-rw-r--r--sysfs/DisplayModes.h58
-rw-r--r--sysfs/PictureAdjustment.cpp77
-rw-r--r--sysfs/PictureAdjustment.h62
7 files changed, 0 insertions, 366 deletions
diff --git a/sysfs/Android.bp b/sysfs/Android.bp
index 276c386..8070a02 100644
--- a/sysfs/Android.bp
+++ b/sysfs/Android.bp
@@ -30,11 +30,8 @@ cc_library_shared {
srcs: [
"AdaptiveBacklight.cpp",
"AutoContrast.cpp",
- "ColorBalance.cpp",
"ColorEnhancement.cpp",
"DisplayColorCalibration.cpp",
- "DisplayModes.cpp",
- "PictureAdjustment.cpp",
"ReadingEnhancement.cpp",
"SunlightEnhancement.cpp",
],
diff --git a/sysfs/ColorBalance.cpp b/sysfs/ColorBalance.cpp
deleted file mode 100644
index 3e292cb..0000000
--- a/sysfs/ColorBalance.cpp
+++ /dev/null
@@ -1,52 +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 "ColorBalance.h"
-
-namespace vendor {
-namespace lineage {
-namespace livedisplay {
-namespace V2_0 {
-namespace sysfs {
-
-// 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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sysfs/ColorBalance.h b/sysfs/ColorBalance.h
deleted file mode 100644
index ca9d6c8..0000000
--- a/sysfs/ColorBalance.h
+++ /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.
- */
-
-#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 sysfs {
-
-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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_COLORBALANCE_H
diff --git a/sysfs/DisplayModes.cpp b/sysfs/DisplayModes.cpp
deleted file mode 100644
index 28c1a04..0000000
--- a/sysfs/DisplayModes.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 "DisplayModes.h"
-
-namespace vendor {
-namespace lineage {
-namespace livedisplay {
-namespace V2_0 {
-namespace sysfs {
-
-// 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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sysfs/DisplayModes.h b/sysfs/DisplayModes.h
deleted file mode 100644
index 93396af..0000000
--- a/sysfs/DisplayModes.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_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 sysfs {
-
-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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_DISPLAYMODES_H
diff --git a/sysfs/PictureAdjustment.cpp b/sysfs/PictureAdjustment.cpp
deleted file mode 100644
index 558d736..0000000
--- a/sysfs/PictureAdjustment.cpp
+++ /dev/null
@@ -1,77 +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 "PictureAdjustment.h"
-
-namespace vendor {
-namespace lineage {
-namespace livedisplay {
-namespace V2_0 {
-namespace sysfs {
-
-// 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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
diff --git a/sysfs/PictureAdjustment.h b/sysfs/PictureAdjustment.h
deleted file mode 100644
index 1fcfb04..0000000
--- a/sysfs/PictureAdjustment.h
+++ /dev/null
@@ -1,62 +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_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 sysfs {
-
-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 sysfs
-} // namespace V2_0
-} // namespace livedisplay
-} // namespace lineage
-} // namespace vendor
-
-#endif // VENDOR_LINEAGE_LIVEDISPLAY_V2_0_PICTUREADJUSTMENT_H