sm6375-common: power-libperfmgr: Adapt and rebrand to moto_sm6375
Change-Id: I6732e0076564ada7078c9334b62fb865d473accd
This commit is contained in:
parent
92e3a94e24
commit
800979852e
6 changed files with 10 additions and 10 deletions
|
@ -14,10 +14,10 @@
|
|||
// limitations under the License.
|
||||
|
||||
cc_binary {
|
||||
name: "android.hardware.power-service.pixel-libperfmgr",
|
||||
name: "android.hardware.power-service.moto_sm6375-libperfmgr",
|
||||
relative_install_path: "hw",
|
||||
init_rc: ["android.hardware.power-service.pixel-libperfmgr.rc"],
|
||||
vintf_fragments: ["android.hardware.power-service.pixel.xml"],
|
||||
init_rc: ["android.hardware.power-service.moto_sm6375-libperfmgr.rc"],
|
||||
vintf_fragments: ["android.hardware.power-service.moto_sm6375.xml"],
|
||||
vendor: true,
|
||||
shared_libs: [
|
||||
"android.hardware.power-ndk_platform",
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
#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 <poll.h>
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
*/
|
||||
|
||||
#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"
|
||||
|
||||
|
|
|
@ -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
|
||||
user root
|
||||
group system
|
|
@ -14,7 +14,7 @@
|
|||
* 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"
|
||||
|
||||
|
@ -25,16 +25,16 @@
|
|||
using aidl::android::hardware::power::impl::pixel::Power;
|
||||
|
||||
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);
|
||||
std::shared_ptr<Power> pw = ndk::SharedRefBase::make<Power>();
|
||||
|
||||
const std::string instance = std::string() + Power::descriptor + "/default";
|
||||
binder_status_t status = AServiceManager_addService(pw->asBinder().get(), instance.c_str());
|
||||
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();
|
||||
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
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue