mirror of
https://github.com/PixelExperience-Devices/device_xiaomi_sm6250-common.git
synced 2025-05-08 06:47:17 +09:00
sm6250-common: power-libperfmgr: adapt and rebrand for xiaomi_sm6250
Change-Id: Ia9643f9b842849b6e9cf5a987fc84fc02dcb9c7e
This commit is contained in:
parent
291b9cadff
commit
92e0ba3049
@ -14,16 +14,16 @@
|
||||
// limitations under the License.
|
||||
|
||||
cc_library_headers {
|
||||
name: "pixel_power_headers",
|
||||
name: "xiaomi_sm6250_power_headers",
|
||||
vendor_available: true,
|
||||
export_include_dirs: ["."],
|
||||
}
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.power@1.3-service.pixel-libperfmgr",
|
||||
name: "android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr",
|
||||
relative_install_path: "hw",
|
||||
vintf_fragments: ["android.hardware.power@1.3-service.pixel.xml"],
|
||||
init_rc: ["android.hardware.power@1.3-service.pixel-libperfmgr.rc"],
|
||||
vintf_fragments: ["android.hardware.power@1.3-service.xiaomi_sm6250.xml"],
|
||||
init_rc: ["android.hardware.power@1.3-service.xiaomi_sm6250-libperfmgr.rc"],
|
||||
srcs: ["service.cpp", "Power.cpp", "InteractionHandler.cpp",
|
||||
"display-helper.cpp"],
|
||||
cflags: [
|
||||
|
@ -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_sm6250-libperfmgr"
|
||||
#define ATRACE_TAG (ATRACE_TAG_POWER | ATRACE_TAG_HAL)
|
||||
|
||||
#include <fcntl.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_sm6250-libperfmgr"
|
||||
|
||||
#include <android-base/file.h>
|
||||
#include <android-base/logging.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_sm6250-libperfmgr
|
||||
class hal
|
||||
user root
|
||||
group system
|
@ -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_sm6250-libperfmgr"
|
||||
|
||||
#include <dlfcn.h>
|
||||
#include <errno.h>
|
||||
|
@ -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_sm6250-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 SM6250 is starting.");
|
||||
|
||||
android::sp<IPower> service = new Power();
|
||||
if (service == nullptr) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user