sdm660-common: power-libperfmgr: Adapt and rebrand for xiaomi_sdm660
Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
This commit is contained in:
parent
d1ab8cd588
commit
2d3b5e315a
7 changed files with 12 additions and 12 deletions
|
@ -14,7 +14,7 @@
|
|||
// limitations under the License.
|
||||
|
||||
cc_library {
|
||||
name: "libdisppower-pixel",
|
||||
name: "libdisppower-xiaomi_sdm660",
|
||||
proprietary: true,
|
||||
srcs: [
|
||||
"disp-power/display-helper.cpp",
|
||||
|
@ -30,16 +30,16 @@ cc_library {
|
|||
}
|
||||
|
||||
cc_library_headers {
|
||||
name: "pixel_power_headers",
|
||||
name: "xiaomi_sdm660_power_headers",
|
||||
vendor: true,
|
||||
export_include_dirs: ["hidl"],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.power@1.3-service.pixel-libperfmgr",
|
||||
name: "android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr",
|
||||
relative_install_path: "hw",
|
||||
vintf_fragments: ["hidl/android.hardware.power@1.3-service.pixel.xml"],
|
||||
init_rc: ["hidl/android.hardware.power@1.3-service.pixel-libperfmgr.rc"],
|
||||
vintf_fragments: ["hidl/android.hardware.power@1.3-service.xiaomi_sdm660.xml"],
|
||||
init_rc: ["hidl/android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr.rc"],
|
||||
srcs: ["hidl/service.cpp", "hidl/Power.cpp"],
|
||||
cflags: [
|
||||
"-Wall",
|
||||
|
@ -55,7 +55,7 @@ cc_binary {
|
|||
"android.hardware.power@1.1",
|
||||
"android.hardware.power@1.2",
|
||||
"android.hardware.power@1.3",
|
||||
"libdisppower-pixel",
|
||||
"libdisppower-xiaomi_sdm660",
|
||||
"libperfmgr",
|
||||
],
|
||||
proprietary: true,
|
||||
|
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.pixel-libperfmgr"
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr"
|
||||
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
|
||||
|
||||
#include <fcntl.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
#define LOG_NIDEBUG 0
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.pixel-libperfmgr"
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr"
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.pixel-libperfmgr"
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr"
|
||||
|
||||
#include "Power.h"
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
service vendor.power-hal-1-3 /vendor/bin/hw/android.hardware.power@1.3-service.pixel-libperfmgr
|
||||
service vendor.power-hal-1-3 /vendor/bin/hw/android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr
|
||||
class hal
|
||||
user root
|
||||
group system
|
|
@ -14,7 +14,7 @@
|
|||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.pixel-libperfmgr"
|
||||
#define LOG_TAG "android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr"
|
||||
|
||||
#include <android/log.h>
|
||||
#include <hidl/HidlTransportSupport.h>
|
||||
|
@ -34,7 +34,7 @@ using android::hardware::power::V1_3::IPower;
|
|||
using android::hardware::power::V1_3::implementation::Power;
|
||||
|
||||
int main(int /* argc */, char ** /* argv */) {
|
||||
ALOGI("Power HAL Service 1.3 for Pixel is starting.");
|
||||
ALOGI("Power HAL Service 1.3 for Xiaomi SDM660 is starting.");
|
||||
|
||||
android::sp<IPower> service = new Power();
|
||||
if (service == nullptr) {
|
||||
|
|
Loading…
Reference in a new issue