// limitations under the License.
cc_library_headers {
- name: "pixel_power_headers",
+ name: "samsung_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.samsung-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.samsung.xml"],
+ init_rc: ["android.hardware.power@1.3-service.samsung-libperfmgr.rc"],
srcs: ["service.cpp", "Power.cpp", "InteractionHandler.cpp",
"display-helper.cpp"],
cflags: [
* 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)
#include <fcntl.h>
*/
#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/logging.h>
+++ /dev/null
-service vendor.power-hal-1-3 /vendor/bin/hw/android.hardware.power@1.3-service.pixel-libperfmgr
- class hal
- user root
- group system
- priority -20
- interface android.hardware.power@1.0::IPower default
- interface android.hardware.power@1.1::IPower default
- interface android.hardware.power@1.2::IPower default
- interface android.hardware.power@1.3::IPower default
-
-# restart powerHAL when framework died
-on property:init.svc.zygote=restarting && property:vendor.powerhal.state=*
- setprop vendor.powerhal.state ""
- setprop vendor.powerhal.audio ""
- setprop vendor.powerhal.rendering ""
- restart vendor.power-hal-1-3
-
-# restart powerHAL when cameraHAL died
-on property:init.svc.vendor.camera-provider-2-4=restarting && property:vendor.powerhal.state=CAMERA_STREAMING
- setprop vendor.powerhal.state ""
- restart vendor.power-hal-1-3
-
-# restart powerHAL when audioHAL died
-on property:init.svc.vendor.audio-hal-2-0=restarting && property:vendor.powerhal.audio=AUDIO_LOW_LATENCY
- setprop vendor.powerhal.audio ""
- restart vendor.power-hal-1-3
+++ /dev/null
-<manifest version="1.0" type="device">
- <hal format="hidl">
- <name>android.hardware.power</name>
- <transport>hwbinder</transport>
- <version>1.3</version>
- <interface>
- <name>IPower</name>
- <instance>default</instance>
- </interface>
- </hal>
-</manifest>
--- /dev/null
+service vendor.power-hal-1-3 /vendor/bin/hw/android.hardware.power@1.3-service.samsung-libperfmgr
+ class hal
+ user root
+ group system
+ priority -20
+ interface android.hardware.power@1.0::IPower default
+ interface android.hardware.power@1.1::IPower default
+ interface android.hardware.power@1.2::IPower default
+ interface android.hardware.power@1.3::IPower default
+
+# restart powerHAL when framework died
+on property:init.svc.zygote=restarting && property:vendor.powerhal.state=*
+ setprop vendor.powerhal.state ""
+ setprop vendor.powerhal.audio ""
+ setprop vendor.powerhal.rendering ""
+ restart vendor.power-hal-1-3
+
+# restart powerHAL when cameraHAL died
+on property:init.svc.vendor.camera-provider-2-4=restarting && property:vendor.powerhal.state=CAMERA_STREAMING
+ setprop vendor.powerhal.state ""
+ restart vendor.power-hal-1-3
+
+# restart powerHAL when audioHAL died
+on property:init.svc.vendor.audio-hal-2-0=restarting && property:vendor.powerhal.audio=AUDIO_LOW_LATENCY
+ setprop vendor.powerhal.audio ""
+ restart vendor.power-hal-1-3
--- /dev/null
+<manifest version="1.0" type="device">
+ <hal format="hidl">
+ <name>android.hardware.power</name>
+ <transport>hwbinder</transport>
+ <version>1.3</version>
+ <interface>
+ <name>IPower</name>
+ <instance>default</instance>
+ </interface>
+ </hal>
+</manifest>
*/
#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 <errno.h>
* 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 <hidl/HidlTransportSupport.h>
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 Samsung is starting.");
android::sp<IPower> service = new Power();
if (service == nullptr) {