sm6375-common: power-libperfmgr: Adapt and rebrand to moto_sm6375
Change-Id: I6732e0076564ada7078c9334b62fb865d473accd
This commit is contained in:
parent
c40ef4df34
commit
544a50cef7
6 changed files with 10 additions and 10 deletions
|
@ -14,10 +14,10 @@
|
||||||
// limitations under the License.
|
// limitations under the License.
|
||||||
|
|
||||||
cc_binary {
|
cc_binary {
|
||||||
name: "android.hardware.power-service.pixel-libperfmgr",
|
name: "android.hardware.power-service.moto_sm6375-libperfmgr",
|
||||||
relative_install_path: "hw",
|
relative_install_path: "hw",
|
||||||
init_rc: ["android.hardware.power-service.pixel-libperfmgr.rc"],
|
init_rc: ["android.hardware.power-service.moto_sm6375-libperfmgr.rc"],
|
||||||
vintf_fragments: ["android.hardware.power-service.pixel.xml"],
|
vintf_fragments: ["android.hardware.power-service.moto_sm6375.xml"],
|
||||||
vendor: true,
|
vendor: true,
|
||||||
shared_libs: [
|
shared_libs: [
|
||||||
"android.hardware.power-ndk_platform",
|
"android.hardware.power-ndk_platform",
|
||||||
|
|
|
@ -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-service.pixel-libperfmgr"
|
#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr"
|
||||||
|
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <poll.h>
|
#include <poll.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-service.pixel-libperfmgr"
|
#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr"
|
||||||
|
|
||||||
#include "Power.h"
|
#include "Power.h"
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.pixel-libperfmgr
|
service vendor.power-hal-aidl /vendor/bin/hw/android.hardware.power-service.moto_sm6375-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-service.pixel-libperfmgr"
|
#define LOG_TAG "android.hardware.power-service.moto_sm6375-libperfmgr"
|
||||||
|
|
||||||
#include "Power.h"
|
#include "Power.h"
|
||||||
|
|
||||||
|
@ -25,16 +25,16 @@
|
||||||
using aidl::android::hardware::power::impl::pixel::Power;
|
using aidl::android::hardware::power::impl::pixel::Power;
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
LOG(INFO) << "Power HAL AIDL Service for Pixel is starting.";
|
LOG(INFO) << "Power HAL AIDL Service for moto_sm6375 is starting.";
|
||||||
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
ABinderProcess_setThreadPoolMaxThreadCount(0);
|
||||||
std::shared_ptr<Power> pw = ndk::SharedRefBase::make<Power>();
|
std::shared_ptr<Power> pw = ndk::SharedRefBase::make<Power>();
|
||||||
|
|
||||||
const std::string instance = std::string() + Power::descriptor + "/default";
|
const std::string instance = std::string() + Power::descriptor + "/default";
|
||||||
binder_status_t status = AServiceManager_addService(pw->asBinder().get(), instance.c_str());
|
binder_status_t status = AServiceManager_addService(pw->asBinder().get(), instance.c_str());
|
||||||
CHECK(status == STATUS_OK);
|
CHECK(status == STATUS_OK);
|
||||||
LOG(INFO) << "Power HAL AIDL Service for Pixel is started.";
|
LOG(INFO) << "Power HAL AIDL Service for moto_sm6375 is started.";
|
||||||
|
|
||||||
ABinderProcess_joinThreadPool();
|
ABinderProcess_joinThreadPool();
|
||||||
LOG(ERROR) << "Power HAL AIDL Service for Pixel died.";
|
LOG(ERROR) << "Power HAL AIDL Service for moto_sm6375 died.";
|
||||||
return EXIT_FAILURE; // should not reach
|
return EXIT_FAILURE; // should not reach
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue