diff options
| author | Semavi Ulusoy <doc.divxm@gmail.com> | 2022-05-12 01:40:43 +0300 |
|---|---|---|
| committer | Semavi Ulusoy <doc.divxm@gmail.com> | 2022-05-12 01:40:43 +0300 |
| commit | 28958366a128ac8a77aaff6f11299113a6fb1c7c (patch) | |
| tree | f1c85edb909f564b7d28e989489b7e904a5c7d85 | |
| parent | 3088fba43c8fe64f98fcad5314e10d4c37ee0bd7 (diff) | |
interfaces: rebrand kscope -> lineage for compatibility
Change-Id: I0ecfa9b862b918f04db20980800d59c5b4a4e8c6
| -rw-r--r-- | chgctrl/1.0/Android.bp | 4 | ||||
| -rw-r--r-- | chgctrl/1.0/IChargeControl.hal | 2 | ||||
| -rw-r--r-- | chgctrl/1.0/default/Android.bp | 8 | ||||
| -rw-r--r-- | chgctrl/1.0/default/ChargeControl.cpp | 6 | ||||
| -rw-r--r-- | chgctrl/1.0/default/ChargeControl.h | 8 | ||||
| -rw-r--r-- | chgctrl/1.0/default/service.cpp | 4 | ||||
| -rw-r--r-- | chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.rc | 4 | ||||
| -rw-r--r-- | chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.rc | 4 | ||||
| -rw-r--r-- | chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.xml (renamed from chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.xml) | 2 |
9 files changed, 21 insertions, 21 deletions
diff --git a/chgctrl/1.0/Android.bp b/chgctrl/1.0/Android.bp index 5b06496..5e0ab91 100644 --- a/chgctrl/1.0/Android.bp +++ b/chgctrl/1.0/Android.bp @@ -1,8 +1,8 @@ // This file is autogenerated by hidl-gen -Landroidbp. hidl_interface { - name: "vendor.kscope.chgctrl@1.0", - root: "vendor.kscope", + name: "vendor.lineage.chgctrl@1.0", + root: "vendor.lineage", system_ext_specific: true, srcs: [ "IChargeControl.hal", diff --git a/chgctrl/1.0/IChargeControl.hal b/chgctrl/1.0/IChargeControl.hal index 9476935..3b0907a 100644 --- a/chgctrl/1.0/IChargeControl.hal +++ b/chgctrl/1.0/IChargeControl.hal @@ -14,7 +14,7 @@ * limitations under the License. */ -package vendor.kscope.chgctrl@1.0; +package vendor.lineage.chgctrl@1.0; interface IChargeControl { getChargeEnabled() generates (bool enabled); diff --git a/chgctrl/1.0/default/Android.bp b/chgctrl/1.0/default/Android.bp index 8dcc5f0..48d61a7 100644 --- a/chgctrl/1.0/default/Android.bp +++ b/chgctrl/1.0/default/Android.bp @@ -15,9 +15,9 @@ */ cc_binary { - name: "vendor.kscope.chgctrl@1.0-service", - init_rc: ["vendor.kscope.chgctrl@1.0-service.rc"], - vintf_fragments: ["vendor.kscope.chgctrl@1.0-service.xml"], + name: "vendor.lineage.chgctrl@1.0-service", + init_rc: ["vendor.lineage.chgctrl@1.0-service.rc"], + vintf_fragments: ["vendor.lineage.chgctrl@1.0-service.xml"], defaults: ["hidl_defaults"], relative_install_path: "hw", srcs: [ @@ -29,7 +29,7 @@ cc_binary { "libbinder", "libhidlbase", "libutils", - "vendor.kscope.chgctrl@1.0", + "vendor.lineage.chgctrl@1.0", ], proprietary: true, } diff --git a/chgctrl/1.0/default/ChargeControl.cpp b/chgctrl/1.0/default/ChargeControl.cpp index d893428..3328063 100644 --- a/chgctrl/1.0/default/ChargeControl.cpp +++ b/chgctrl/1.0/default/ChargeControl.cpp @@ -28,7 +28,7 @@ #define CHARGE_ENABLED '1' #define CHARGE_DISABLED '0' -namespace vendor::kscope::chgctrl::implementation { +namespace vendor::lineage::chgctrl::implementation { static int readNode(char& ret) { int fd; @@ -64,7 +64,7 @@ static int writeNode(char value) { return 0; } -// Methods from ::vendor::kscope::chgctrl::V1_0::IChargeControl follow. +// Methods from ::vendor::lineage::chgctrl::V1_0::IChargeControl follow. Return<bool> ChargeControl::getChargeEnabled() { char status = 0; @@ -96,4 +96,4 @@ Return<bool> ChargeControl::setChargeEnabled(bool enabled) { //return new ChargeControl(); //} // -} // namespace vendor::kscope::chgctrl::implementation +} // namespace vendor::lineage::chgctrl::implementation diff --git a/chgctrl/1.0/default/ChargeControl.h b/chgctrl/1.0/default/ChargeControl.h index 3a110a2..3b7f07b 100644 --- a/chgctrl/1.0/default/ChargeControl.h +++ b/chgctrl/1.0/default/ChargeControl.h @@ -16,11 +16,11 @@ #pragma once -#include <vendor/kscope/chgctrl/1.0/IChargeControl.h> +#include <vendor/lineage/chgctrl/1.0/IChargeControl.h> #include <hidl/MQDescriptor.h> #include <hidl/Status.h> -namespace vendor::kscope::chgctrl::implementation { +namespace vendor::lineage::chgctrl::implementation { using ::android::hardware::hidl_array; using ::android::hardware::hidl_memory; @@ -31,7 +31,7 @@ using ::android::hardware::Void; using ::android::sp; struct ChargeControl : public V1_0::IChargeControl { - // Methods from ::vendor::kscope::chgctrl::V1_0::IChargeControl follow. + // Methods from ::vendor::lineage::chgctrl::V1_0::IChargeControl follow. Return<bool> getChargeEnabled() override; Return<bool> setChargeEnabled(bool enabled) override; @@ -42,4 +42,4 @@ struct ChargeControl : public V1_0::IChargeControl { // FIXME: most likely delete, this is only for passthrough implementations // extern "C" IChargeControl* HIDL_FETCH_IChargeControl(const char* name); -} // namespace vendor::kscope::chgctrl::implementation +} // namespace vendor::lineage::chgctrl::implementation diff --git a/chgctrl/1.0/default/service.cpp b/chgctrl/1.0/default/service.cpp index e758099..c81e6b4 100644 --- a/chgctrl/1.0/default/service.cpp +++ b/chgctrl/1.0/default/service.cpp @@ -22,8 +22,8 @@ #include <hidl/HidlTransportSupport.h> #include "ChargeControl.h" -using vendor::kscope::chgctrl::V1_0::IChargeControl; -using vendor::kscope::chgctrl::implementation::ChargeControl; +using vendor::lineage::chgctrl::V1_0::IChargeControl; +using vendor::lineage::chgctrl::implementation::ChargeControl; int main() { android::sp<IChargeControl> service = new ChargeControl(); diff --git a/chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.rc b/chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.rc deleted file mode 100644 index 226cdc6..0000000 --- a/chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.rc +++ /dev/null @@ -1,4 +0,0 @@ -service vendor.chgctrl-hal-1-0 /vendor/bin/hw/vendor.kscope.chgctrl@1.0-service - class hal - user system - group system diff --git a/chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.rc b/chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.rc new file mode 100644 index 0000000..c25511e --- /dev/null +++ b/chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.rc @@ -0,0 +1,4 @@ +service vendor.chgctrl-hal-1-0 /vendor/bin/hw/vendor.lineage.chgctrl@1.0-service + class hal + user system + group system diff --git a/chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.xml b/chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.xml index 63fcb8a..354b966 100644 --- a/chgctrl/1.0/default/vendor.kscope.chgctrl@1.0-service.xml +++ b/chgctrl/1.0/default/vendor.lineage.chgctrl@1.0-service.xml @@ -1,6 +1,6 @@ <manifest version="1.0" type="device"> <hal format="hidl"> - <name>vendor.kscope.chgctrl</name> + <name>vendor.lineage.chgctrl</name> <transport>hwbinder</transport> <version>1.0</version> <interface> |
