Turn off logspam

For more information, see https://source.android.com/source/code-style#log-sparingly

Bug: 37252687
Test: development/tools/logblame/medium_idle_test
Change-Id: I09ed7d92b99c3e7505983d7e07b38e2fb9d7fcc8
diff --git a/power/power-8996.c b/power/power-8996.c
index 8c03b67..e68d82f 100644
--- a/power/power-8996.c
+++ b/power/power-8996.c
@@ -26,7 +26,7 @@
  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#define LOG_NIDEBUG 0
+#define LOG_NDEBUG 1
 
 #include <errno.h>
 #include <string.h>
@@ -194,7 +194,7 @@
     if (video_encode_metadata.state == 1) {
         int duration = 2000; // boosts 2s for starting encoding
         boost_handle = process_boost(boost_handle, duration);
-        ALOGD("LAUNCH ENCODER-ON: %d MS", duration);
+        ALOGV("LAUNCH ENCODER-ON: %d MS", duration);
         if ((strncmp(governor, INTERACTIVE_GOVERNOR, strlen(INTERACTIVE_GOVERNOR)) == 0) &&
                 (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) {
             /* 1. cpufreq params
@@ -221,7 +221,7 @@
 
             perform_hint_action(video_encode_metadata.hint_id,
                     resource_values, sizeof(resource_values)/sizeof(resource_values[0]));
-            ALOGI("Video Encode hint start");
+            ALOGV("Video Encode hint start");
             return HINT_HANDLED;
         } else if ((strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) &&
                 (strlen(governor) == strlen(SCHED_GOVERNOR))) {
@@ -238,7 +238,7 @@
 
             perform_hint_action(video_encode_metadata.hint_id,
                     resource_values, sizeof(resource_values)/sizeof(resource_values[0]));
-            ALOGI("Video Encode hint start");
+            ALOGV("Video Encode hint start");
             return HINT_HANDLED;
         }
     } else if (video_encode_metadata.state == 0) {
@@ -248,7 +248,7 @@
             ((strncmp(governor, SCHED_GOVERNOR, strlen(SCHED_GOVERNOR)) == 0) &&
                 (strlen(governor) == strlen(SCHED_GOVERNOR)))) {
             undo_hint_action(video_encode_metadata.hint_id);
-            ALOGI("Video Encode hint stop");
+            ALOGV("Video Encode hint stop");
             return HINT_HANDLED;
         }
     }
@@ -263,12 +263,12 @@
         return HINT_HANDLED;
     }
 
-    ALOGD("LAUNCH HINT: %s", data ? "ON" : "OFF");
+    ALOGV("LAUNCH HINT: %s", data ? "ON" : "OFF");
     if (data && launch_mode == 0) {
         launch_handle = process_boost(launch_handle, duration);
         if (launch_handle > 0) {
             launch_mode = 1;
-            ALOGI("Activity launch hint handled");
+            ALOGV("Activity launch hint handled");
             return HINT_HANDLED;
         } else {
             return HINT_NONE;
@@ -322,7 +322,7 @@
                 perform_hint_action(DISPLAY_STATE_HINT_ID,
                 resource_values, sizeof(resource_values)/sizeof(resource_values[0]));
                 display_hint_sent = 1;
-                ALOGI("Display Off hint start");
+                ALOGV("Display Off hint start");
                 return HINT_HANDLED;
             }
         }
@@ -332,7 +332,7 @@
             (strlen(governor) == strlen(INTERACTIVE_GOVERNOR))) {
             undo_hint_action(DISPLAY_STATE_HINT_ID);
             display_hint_sent = 0;
-            ALOGI("Display Off hint stop");
+            ALOGV("Display Off hint stop");
             return HINT_HANDLED;
         }
     }
diff --git a/power/power.c b/power/power.c
index 23f826e..29f169e 100644
--- a/power/power.c
+++ b/power/power.c
@@ -27,7 +27,7 @@
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
 
-#define LOG_NIDEBUG 0
+#define LOG_NDEBUG 1
 
 #include <errno.h>
 #include <inttypes.h>
@@ -106,7 +106,7 @@
 
 static void power_init(struct power_module *module)
 {
-    ALOGI("QCOM power HAL initing.");
+    ALOGV("QCOM power HAL initing.");
 
     int fd;
     char buf[10] = {0};
@@ -137,7 +137,7 @@
     }
 
     if (metadata) {
-        ALOGI("Processing video decode hint. Metadata: %s", (char *)metadata);
+        ALOGV("Processing video decode hint. Metadata: %s", (char *)metadata);
     }
 
     /* Initialize encode metadata struct fields. */
@@ -480,7 +480,7 @@
         return;
     }
 
-    ALOGI("Got set_interactive hint");
+    ALOGV("Got set_interactive hint");
 
     if (get_scaling_governor(governor, sizeof(governor)) == -1) {
         ALOGE("Can't obtain scaling governor.");
@@ -797,7 +797,7 @@
 static int power_open(const hw_module_t* module, const char* name,
                     hw_device_t** device)
 {
-    ALOGD("%s: enter; name=%s", __FUNCTION__, name);
+    ALOGV("%s: enter; name=%s", __FUNCTION__, name);
     int retval = 0; /* 0 is ok; -1 is error */
 
     if (strcmp(name, POWER_HARDWARE_MODULE_ID) == 0) {
@@ -824,7 +824,7 @@
         retval = -EINVAL;
     }
 
-    ALOGD("%s: exit %d", __FUNCTION__, retval);
+    ALOGV("%s: exit %d", __FUNCTION__, retval);
     return retval;
 }
 
diff --git a/power/utils.c b/power/utils.c
index 631eaac..ce5d369 100644
--- a/power/utils.c
+++ b/power/utils.c
@@ -26,7 +26,7 @@
  * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
  * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  */
-#define LOG_NIDEBUG 0
+#define LOG_NDEBUG 1
 
 #include <dlfcn.h>
 #include <fcntl.h>