violet: Split PowerHAL into HIDL impl and library

Bug: 147840817
Test: boot
Change-Id: Ieb394e0433c4775e84e11e881898933ef93fd08d
(cherry picked from commit 2bcf2514fd608493f4d7c6306bb933f7fec6ee24)
This commit is contained in:
Wei Wang
2020-02-21 10:25:38 -08:00
committed by Shubham Das
parent 397e1ea0d4
commit 76a64ca3a3
8 changed files with 21 additions and 6 deletions

View File

@@ -13,15 +13,29 @@
// See the License for the specific language governing permissions and
// limitations under the License.
cc_library {
name: "libdisppower",
proprietary: true,
srcs: [
"disp-power/InteractionHandler.cpp",
],
shared_libs: [
"libbase",
"libcutils",
"liblog",
"libperfmgr",
"libutils",
],
}
cc_binary {
name: "android.hardware.power@1.3-service.sm6150-libperfmgr",
relative_install_path: "hw",
vintf_fragments: ["android.hardware.power@1.3-service.sm6150.xml"],
init_rc: ["android.hardware.power@1.3-service.sm6150-libperfmgr.rc"],
vintf_fragments: ["hidl/android.hardware.power@1.3-service.sm6150.xml"],
init_rc: ["hidl/android.hardware.power@1.3-service.sm6150-libperfmgr.rc"],
srcs: [
"service.cpp",
"Power.cpp",
"InteractionHandler.cpp",
"hidl/service.cpp",
"hidl/Power.cpp",
],
cflags: [
"-Wall",
@@ -37,6 +51,7 @@ cc_binary {
"android.hardware.power@1.1",
"android.hardware.power@1.2",
"android.hardware.power@1.3",
"libdisppower",
"libperfmgr",
],
header_libs: [

View File

@@ -25,7 +25,7 @@
#include <hidl/Status.h>
#include <perfmgr/HintManager.h>
#include "InteractionHandler.h"
#include "disp-power/InteractionHandler.h"
namespace android {
namespace hardware {