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.
|
// 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,
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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>
|
||||||
|
|
|
@ -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"
|
||||||
|
|
||||||
|
|
|
@ -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
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue