diff options
author | Paul Keith <javelinanddart@gmail.com> | 2019-02-06 21:04:23 -0600 |
---|---|---|
committer | Paul Keith <javelinanddart@gmail.com> | 2019-02-07 11:25:15 -0600 |
commit | 8475e6cb1b48acc7ffd23623547db05ffd180e64 (patch) | |
tree | a559432086b152be9cc712d0410eb0d09a95b84d | |
parent | 733de0bea2977526888204917cf54362b6a45cb8 (diff) | |
download | hardware_lineage_livedisplay-8475e6cb1b48acc7ffd23623547db05ffd180e64.tar.gz hardware_lineage_livedisplay-8475e6cb1b48acc7ffd23623547db05ffd180e64.tar.bz2 hardware_lineage_livedisplay-8475e6cb1b48acc7ffd23623547db05ffd180e64.zip |
livedisplay: sysfs: Add LineageOS copyrights
* Change namespace to sysfs while we're at it
Change-Id: Ibc5879dbbca8320e8b6f90e7a9568aef4d7ca4d6
-rw-r--r-- | sysfs/AdaptiveBacklight.cpp | 20 | ||||
-rw-r--r-- | sysfs/AdaptiveBacklight.h | 20 | ||||
-rw-r--r-- | sysfs/Android.bp | 14 | ||||
-rw-r--r-- | sysfs/AutoContrast.cpp | 20 | ||||
-rw-r--r-- | sysfs/AutoContrast.h | 20 | ||||
-rw-r--r-- | sysfs/ColorBalance.cpp | 20 | ||||
-rw-r--r-- | sysfs/ColorBalance.h | 20 | ||||
-rw-r--r-- | sysfs/ColorEnhancement.cpp | 20 | ||||
-rw-r--r-- | sysfs/ColorEnhancement.h | 20 | ||||
-rw-r--r-- | sysfs/DisplayColorCalibration.cpp | 20 | ||||
-rw-r--r-- | sysfs/DisplayColorCalibration.h | 20 | ||||
-rw-r--r-- | sysfs/DisplayModes.cpp | 20 | ||||
-rw-r--r-- | sysfs/DisplayModes.h | 20 | ||||
-rw-r--r-- | sysfs/PictureAdjustment.cpp | 20 | ||||
-rw-r--r-- | sysfs/PictureAdjustment.h | 20 | ||||
-rw-r--r-- | sysfs/ReadingEnhancement.cpp | 20 | ||||
-rw-r--r-- | sysfs/ReadingEnhancement.h | 20 | ||||
-rw-r--r-- | sysfs/SunlightEnhancement.cpp | 20 | ||||
-rw-r--r-- | sysfs/SunlightEnhancement.h | 20 |
19 files changed, 338 insertions, 36 deletions
diff --git a/sysfs/AdaptiveBacklight.cpp b/sysfs/AdaptiveBacklight.cpp index c32a14e..f6804f1 100644 --- a/sysfs/AdaptiveBacklight.cpp +++ b/sysfs/AdaptiveBacklight.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IAdaptiveBacklight follow. Return<bool> AdaptiveBacklight::isEnabled() { @@ -24,7 +40,7 @@ Return<bool> AdaptiveBacklight::setEnabled(bool enabled) { //return new AdaptiveBacklight(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/AdaptiveBacklight.h b/sysfs/AdaptiveBacklight.h index 58bd74d..64af3c7 100644 --- a/sysfs/AdaptiveBacklight.h +++ b/sysfs/AdaptiveBacklight.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/Android.bp b/sysfs/Android.bp index bea960b..276c386 100644 --- a/sysfs/Android.bp +++ b/sysfs/Android.bp @@ -1,3 +1,17 @@ +// 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: diff --git a/sysfs/AutoContrast.cpp b/sysfs/AutoContrast.cpp index f02896a..522014c 100644 --- a/sysfs/AutoContrast.cpp +++ b/sysfs/AutoContrast.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IAutoContrast follow. Return<bool> AutoContrast::isEnabled() { @@ -24,7 +40,7 @@ Return<bool> AutoContrast::setEnabled(bool enabled) { //return new AutoContrast(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/AutoContrast.h b/sysfs/AutoContrast.h index 50d949b..3967979 100644 --- a/sysfs/AutoContrast.h +++ b/sysfs/AutoContrast.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ColorBalance.cpp b/sysfs/ColorBalance.cpp index 2382070..3e292cb 100644 --- a/sysfs/ColorBalance.cpp +++ b/sysfs/ColorBalance.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IColorBalance follow. Return<void> ColorBalance::getColorBalanceRange(getColorBalanceRange_cb _hidl_cb) { @@ -29,7 +45,7 @@ Return<bool> ColorBalance::setColorBalance(int32_t value) { //return new ColorBalance(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ColorBalance.h b/sysfs/ColorBalance.h index 542f1ed..ca9d6c8 100644 --- a/sysfs/ColorBalance.h +++ b/sysfs/ColorBalance.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -32,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ColorEnhancement.cpp b/sysfs/ColorEnhancement.cpp index 0f186d3..364f348 100644 --- a/sysfs/ColorEnhancement.cpp +++ b/sysfs/ColorEnhancement.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IColorEnhancement follow. Return<bool> ColorEnhancement::isEnabled() { @@ -24,7 +40,7 @@ Return<bool> ColorEnhancement::setEnabled(bool enabled) { //return new ColorEnhancement(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ColorEnhancement.h b/sysfs/ColorEnhancement.h index dc43726..8b22907 100644 --- a/sysfs/ColorEnhancement.h +++ b/sysfs/ColorEnhancement.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/DisplayColorCalibration.cpp b/sysfs/DisplayColorCalibration.cpp index e5b1169..3331796 100644 --- a/sysfs/DisplayColorCalibration.cpp +++ b/sysfs/DisplayColorCalibration.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayColorCalibration follow. Return<int32_t> DisplayColorCalibration::getMaxValue() { @@ -34,7 +50,7 @@ Return<bool> DisplayColorCalibration::setCalibration(const hidl_vec<int32_t>& rg //return new DisplayColorCalibration(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/DisplayColorCalibration.h b/sysfs/DisplayColorCalibration.h index 644ca9d..d31ee08 100644 --- a/sysfs/DisplayColorCalibration.h +++ b/sysfs/DisplayColorCalibration.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -33,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/DisplayModes.cpp b/sysfs/DisplayModes.cpp index ecac41b..28c1a04 100644 --- a/sysfs/DisplayModes.cpp +++ b/sysfs/DisplayModes.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IDisplayModes follow. Return<void> DisplayModes::getDisplayModes(getDisplayModes_cb _hidl_cb) { @@ -34,7 +50,7 @@ Return<bool> DisplayModes::setDisplayMode(int32_t modeID, bool makeDefault) { //return new DisplayModes(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/DisplayModes.h b/sysfs/DisplayModes.h index d83caf8..93396af 100644 --- a/sysfs/DisplayModes.h +++ b/sysfs/DisplayModes.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -33,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/PictureAdjustment.cpp b/sysfs/PictureAdjustment.cpp index 99881bb..558d736 100644 --- a/sysfs/PictureAdjustment.cpp +++ b/sysfs/PictureAdjustment.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IPictureAdjustment follow. Return<void> PictureAdjustment::getHueRange(getHueRange_cb _hidl_cb) { @@ -54,7 +70,7 @@ Return<bool> PictureAdjustment::setPictureAdjustment(const ::vendor::lineage::li //return new PictureAdjustment(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/PictureAdjustment.h b/sysfs/PictureAdjustment.h index 0d8d998..1fcfb04 100644 --- a/sysfs/PictureAdjustment.h +++ b/sysfs/PictureAdjustment.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -37,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ReadingEnhancement.cpp b/sysfs/ReadingEnhancement.cpp index bf71df9..af366da 100644 --- a/sysfs/ReadingEnhancement.cpp +++ b/sysfs/ReadingEnhancement.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::IReadingEnhancement follow. Return<bool> ReadingEnhancement::isEnabled() { @@ -24,7 +40,7 @@ Return<bool> ReadingEnhancement::setEnabled(bool enabled) { //return new ReadingEnhancement(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/ReadingEnhancement.h b/sysfs/ReadingEnhancement.h index ee996d5..595eb67 100644 --- a/sysfs/ReadingEnhancement.h +++ b/sysfs/ReadingEnhancement.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/SunlightEnhancement.cpp b/sysfs/SunlightEnhancement.cpp index 8516a53..92ba793 100644 --- a/sysfs/SunlightEnhancement.cpp +++ b/sysfs/SunlightEnhancement.cpp @@ -1,10 +1,26 @@ +/* + * 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 implementation { +namespace sysfs { // Methods from ::vendor::lineage::livedisplay::V2_0::ISunlightEnhancement follow. Return<bool> SunlightEnhancement::isEnabled() { @@ -24,7 +40,7 @@ Return<bool> SunlightEnhancement::setEnabled(bool enabled) { //return new SunlightEnhancement(); //} // -} // namespace implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage diff --git a/sysfs/SunlightEnhancement.h b/sysfs/SunlightEnhancement.h index 98848d9..da94126 100644 --- a/sysfs/SunlightEnhancement.h +++ b/sysfs/SunlightEnhancement.h @@ -1,3 +1,19 @@ +/* + * 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 @@ -9,7 +25,7 @@ namespace vendor { namespace lineage { namespace livedisplay { namespace V2_0 { -namespace implementation { +namespace sysfs { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,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 implementation +} // namespace sysfs } // namespace V2_0 } // namespace livedisplay } // namespace lineage |