sdm660-common: power-libperfmgr: Adapt and rebrand for xiaomi_sdm660

Signed-off-by: Subhajeet Muhuri <subhajeet.muhuri@gmail.com>
This commit is contained in:
Subhajeet Muhuri 2020-09-11 15:26:28 +05:30 committed by OdSazib
parent d1ab8cd588
commit 2d3b5e315a
No known key found for this signature in database
GPG key ID: 0954440B60470871
7 changed files with 12 additions and 12 deletions

View file

@ -14,7 +14,7 @@
// limitations under the License. // limitations under the License.
cc_library { cc_library {
name: "libdisppower-pixel", name: "libdisppower-xiaomi_sdm660",
proprietary: true, proprietary: true,
srcs: [ srcs: [
"disp-power/display-helper.cpp", "disp-power/display-helper.cpp",
@ -30,16 +30,16 @@ cc_library {
} }
cc_library_headers { cc_library_headers {
name: "pixel_power_headers", name: "xiaomi_sdm660_power_headers",
vendor: true, vendor: true,
export_include_dirs: ["hidl"], export_include_dirs: ["hidl"],
} }
cc_binary { 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", relative_install_path: "hw",
vintf_fragments: ["hidl/android.hardware.power@1.3-service.pixel.xml"], vintf_fragments: ["hidl/android.hardware.power@1.3-service.xiaomi_sdm660.xml"],
init_rc: ["hidl/android.hardware.power@1.3-service.pixel-libperfmgr.rc"], init_rc: ["hidl/android.hardware.power@1.3-service.xiaomi_sdm660-libperfmgr.rc"],
srcs: ["hidl/service.cpp", "hidl/Power.cpp"], srcs: ["hidl/service.cpp", "hidl/Power.cpp"],
cflags: [ cflags: [
"-Wall", "-Wall",
@ -55,7 +55,7 @@ cc_binary {
"android.hardware.power@1.1", "android.hardware.power@1.1",
"android.hardware.power@1.2", "android.hardware.power@1.2",
"android.hardware.power@1.3", "android.hardware.power@1.3",
"libdisppower-pixel", "libdisppower-xiaomi_sdm660",
"libperfmgr", "libperfmgr",
], ],
proprietary: true, proprietary: true,

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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) #define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
#include <fcntl.h> #include <fcntl.h>

View file

@ -15,7 +15,7 @@
*/ */
#define LOG_NIDEBUG 0 #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 <dlfcn.h>
#include <errno.h> #include <errno.h>

View file

@ -15,7 +15,7 @@
*/ */
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL) #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" #include "Power.h"

View file

@ -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 class hal
user root user root
group system group system

View file

@ -14,7 +14,7 @@
* limitations under the License. * 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 <android/log.h>
#include <hidl/HidlTransportSupport.h> #include <hidl/HidlTransportSupport.h>
@ -34,7 +34,7 @@ using android::hardware::power::V1_3::IPower;
using android::hardware::power::V1_3::implementation::Power; using android::hardware::power::V1_3::implementation::Power;
int main(int /* argc */, char ** /* argv */) { 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(); android::sp<IPower> service = new Power();
if (service == nullptr) { if (service == nullptr) {