remove cameraHAL to perfd interface

This CL removed cameraHAL to perfd interface
Also changed some powerHAL logging level

Bug: 63589458
Test: Build
Change-Id: I4725f45b22bf3a3787dc5d77fc9c6b22a66a21aa
This commit is contained in:
Wei Wang
2017-07-11 14:48:38 -07:00
parent 2bcf425fd5
commit 5e53c868af
4 changed files with 7 additions and 16 deletions

View File

@@ -210,11 +210,11 @@ static int process_video_encode_hint(void *data)
resource_values = getPowerhint(DEFAULT_VIDEO_ENCODE_HINT_ID, &resources);
if (resource_values != NULL)
perform_hint_action(DEFAULT_VIDEO_ENCODE_HINT_ID, resource_values, resources);
ALOGI("Video Encode hint start");
ALOGD("Video Encode hint start");
return HINT_HANDLED;
} else {
undo_hint_action(DEFAULT_VIDEO_ENCODE_HINT_ID);
ALOGI("Video Encode hint stop");
ALOGD("Video Encode hint stop");
return HINT_HANDLED;
}
return HINT_NONE;
@@ -233,7 +233,7 @@ static int process_activity_launch_hint(void *data)
launch_handle = process_boost(launch_handle, duration);
if (launch_handle > 0) {
launch_mode = 1;
ALOGI("Activity launch hint handled");
ALOGD("Activity launch hint handled");
return HINT_HANDLED;
} else {
return HINT_NONE;

View File

@@ -125,10 +125,10 @@ void power_hint(power_hint_t hint, void *data)
case POWER_HINT_VSYNC:
break;
case POWER_HINT_SUSTAINED_PERFORMANCE:
ALOGI("Sustained perf power hint not handled in power_hint_override");
ALOGD("Sustained perf power hint not handled in power_hint_override");
break;
case POWER_HINT_VR_MODE:
ALOGI("VR mode power hint not handled in power_hint_override");
ALOGD("VR mode power hint not handled in power_hint_override");
break;
case POWER_HINT_INTERACTION:
{
@@ -164,7 +164,7 @@ void power_set_interactive(int on)
return;
}
ALOGI("Got set_interactive hint");
ALOGD("Got set_interactive hint");
if (get_scaling_governor(governor, sizeof(governor)) == -1) {
ALOGE("Can't obtain scaling governor.");

View File

@@ -169,8 +169,5 @@ int* getPowerhint(int hint_id, int *params) {
}
}
/*for (int j = 0; j < *params; j++)
ALOGI("Powerhal resource again%x = \n", result[j]);*/
return result;
return result;
}

View File

@@ -1,7 +1,3 @@
# communicate with perfd
allow hal_camera perfd:unix_stream_socket connectto;
allow hal_camera perfd_socket:sock_file write;
allow hal_camera self:capability sys_nice;
# communicate with camera
@@ -11,8 +7,6 @@ allow hal_camera self:capability sys_nice;
allow hal_camera gpu_device:chr_file rw_file_perms;
allow hal_camera perfd_socket:sock_file w_file_perms;
# access to /dev/input/event{5,10}
allow hal_camera input_device:dir r_dir_perms;
allow hal_camera input_device:chr_file r_file_perms;