Logging private DNS validation state

Log the validation state whenever it's changed, and output the
result to dumpsys.

Bug: 79727473
Test: cd packages/modules/DnsResolver && atest
Change-Id: I3afe28f546562228e1a0dfc2a8a55de5b5f08a7e
diff --git a/util.h b/util.h
index 39f1aee..bb4a598 100644
--- a/util.h
+++ b/util.h
@@ -17,6 +17,7 @@
 
 #pragma once
 
+#include <chrono>
 #include <string>
 
 #include <netinet/in.h>
@@ -30,6 +31,9 @@
 // TODO: Migrate it to DnsResolverExperiments.cpp
 int getExperimentFlagInt(const std::string& flagName, int defaultValue);
 
+// Convert time_point to readable string format "hr:min:sec.ms".
+std::string timestampToString(const std::chrono::system_clock::time_point& ts);
+
 // When sdk X release branch is created, aosp's sdk version would still be X-1,
 // internal would be X. Also there might be some different setting between real devices and
 // CF. Below is the example for the sdk related properties in later R development stage. (internal