power-libperfmgr: adapt and rebrand for hardware/samsung

Change-Id: I8aa9a712ac7cbc6085928f7cdb9e6ada8ed5e3fe
tirimbino
Jesse Chan 4 years ago
parent 87f97d145b
commit f1e23cabb6
  1. 8
      hidl/power-libperfmgr/Android.bp
  2. 2
      hidl/power-libperfmgr/InteractionHandler.cpp
  3. 2
      hidl/power-libperfmgr/Power.cpp
  4. 2
      hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung-libperfmgr.rc
  5. 0
      hidl/power-libperfmgr/android.hardware.power@1.3-service.samsung.xml
  6. 2
      hidl/power-libperfmgr/display-helper.cpp
  7. 4
      hidl/power-libperfmgr/service.cpp

@ -14,16 +14,16 @@
// limitations under the License. // limitations under the License.
cc_library_headers { cc_library_headers {
name: "pixel_power_headers", name: "samsung_power_headers",
vendor_available: true, vendor_available: true,
export_include_dirs: ["."], export_include_dirs: ["."],
} }
cc_binary { cc_binary {
name: "android.hardware.power@1.3-service.pixel-libperfmgr", name: "android.hardware.power@1.3-service.samsung-libperfmgr",
relative_install_path: "hw", relative_install_path: "hw",
vintf_fragments: ["android.hardware.power@1.3-service.pixel.xml"], vintf_fragments: ["android.hardware.power@1.3-service.samsung.xml"],
init_rc: ["android.hardware.power@1.3-service.pixel-libperfmgr.rc"], init_rc: ["android.hardware.power@1.3-service.samsung-libperfmgr.rc"],
srcs: ["service.cpp", "Power.cpp", "InteractionHandler.cpp", srcs: ["service.cpp", "Power.cpp", "InteractionHandler.cpp",
"display-helper.cpp"], "display-helper.cpp"],
cflags: [ cflags: [

@ -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.samsung-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 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.samsung-libperfmgr"
#include <android-base/file.h> #include <android-base/file.h>
#include <android-base/logging.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.samsung-libperfmgr
class hal class hal
user root user root
group system group system

@ -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.samsung-libperfmgr"
#include <dlfcn.h> #include <dlfcn.h>
#include <errno.h> #include <errno.h>

@ -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.samsung-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 Samsung is starting.");
android::sp<IPower> service = new Power(); android::sp<IPower> service = new Power();
if (service == nullptr) { if (service == nullptr) {

Loading…
Cancel
Save