Update NDK APIs from R DP2.

Test: build/soong/scripts/build-ndk-prebuilts.sh
Bug: None
Exempt-From-Owner-Approval: copying from DP2
Change-Id: I9b205b4c682c06d4f617911b34cb32fa817b624c
diff --git a/liblog/include/android/log.h b/liblog/include/android/log.h
index 00aafaa..c98455d 100644
--- a/liblog/include/android/log.h
+++ b/liblog/include/android/log.h
@@ -274,7 +274,14 @@
  * Gets the minimum priority that will be logged for this process.  If none has been set by a
  * previous __android_log_set_minimum_priority() call, this returns ANDROID_LOG_DEFAULT.
  */
-int __android_log_get_minimum_priority();
+int __android_log_get_minimum_priority(void);
+
+/**
+ * Sets the default tag if no tag is provided when writing a log message.  Defaults to
+ * getprogname().  This truncates tag to the maximum log message size, though appropriate tags
+ * should be much smaller.
+ */
+void __android_log_set_default_tag(const char* tag);
 
 #ifdef __cplusplus
 }
diff --git a/liblog/liblog.map.txt b/liblog/liblog.map.txt
index 62b9805..198cdae 100644
--- a/liblog/liblog.map.txt
+++ b/liblog/liblog.map.txt
@@ -73,6 +73,7 @@
     __android_log_logd_logger;
     __android_log_security_bswrite; # apex
     __android_log_set_aborter;
+    __android_log_set_default_tag;
     __android_log_set_logger;
     __android_log_set_minimum_priority;
     __android_log_stderr_logger;