Skip to content
This repository was archived by the owner on Oct 8, 2023. It is now read-only.

Commit

Permalink
hardware/sony: Initial commit
Browse files Browse the repository at this point in the history
Signed-off-by: Luofan Chen <clfbbn@gmail.com>
  • Loading branch information
hellobbn committed Aug 10, 2022
0 parents commit 218dd0c
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
soong_namespace {
}
21 changes: 21 additions & 0 deletions Android.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#
# Copyright (C) 2021 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.
#

ifeq ($(BOARD_VENDOR),sony)

include $(call all-subdir-makefiles)

endif
4 changes: 4 additions & 0 deletions interfaces/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
hidl_package_root {
name: "vendor.semc",
path: "hardware/sony/interfaces/semc",
}
13 changes: 13 additions & 0 deletions interfaces/semc/hardware/charger/1.0/Android.bp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
// This file is autogenerated by hidl-gen -Landroidbp.
hidl_interface {
name: "vendor.semc.hardware.charger@1.0",
root: "vendor.semc",
system_ext_specific: true,
srcs: [
"ICharger.hal",
],
interfaces: [
"android.hidl.base@1.0",
],
gen_java: true,
}
12 changes: 12 additions & 0 deletions interfaces/semc/hardware/charger/1.0/ICharger.hal
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Copyright (C) 2022 The LineageOS Project
*
* SPDX-License-Identifier: Apache-2.0
*/

package vendor.semc.hardware.charger@1.0;

interface ICharger {
oneway setSmartChargeAction(int32_t i);
oneway setLrcMode(int32_t mode);
};

0 comments on commit 218dd0c

Please sign in to comment.