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:
@@ -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: [
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
#include <hidl/Status.h>
|
||||
#include <perfmgr/HintManager.h>
|
||||
|
||||
#include "InteractionHandler.h"
|
||||
#include "disp-power/InteractionHandler.h"
|
||||
|
||||
namespace android {
|
||||
namespace hardware {
|
||||
Reference in New Issue
Block a user