Merge "Resolv: Enable clang-tidy and fix all warnings"
tree: 73408c68235ddf7f697a2de328454e27d55740a5
  1. .editorconfig
  2. Android.bp
  3. Dns64Configuration.cpp
  4. Dns64Configuration.h
  5. DnsProxyListener.cpp
  6. DnsProxyListener.h
  7. DnsResolver.cpp
  8. DnsResolver.h
  9. DnsResolverService.cpp
  10. DnsResolverService.h
  11. DnsTlsDispatcher.cpp
  12. DnsTlsDispatcher.h
  13. DnsTlsQueryMap.cpp
  14. DnsTlsQueryMap.h
  15. DnsTlsServer.cpp
  16. DnsTlsServer.h
  17. DnsTlsSessionCache.cpp
  18. DnsTlsSessionCache.h
  19. DnsTlsSocket.cpp
  20. DnsTlsSocket.h
  21. DnsTlsSocketFactory.h
  22. DnsTlsTransport.cpp
  23. DnsTlsTransport.h
  24. IDnsTlsSocket.h
  25. IDnsTlsSocketFactory.h
  26. IDnsTlsSocketObserver.h
  27. LockedQueue.h
  28. NOTICE
  29. OWNERS
  30. PREUPLOAD.cfg
  31. PrivateDnsConfiguration.cpp
  32. PrivateDnsConfiguration.h
  33. README-DoT.md
  34. README.md
  35. ResolverController.cpp
  36. ResolverController.h
  37. ResolverEventReporter.cpp
  38. ResolverEventReporter.h
  39. ResolverStats.h
  40. TEST_MAPPING
  41. aidl/
  42. apex/
  43. binder/
  44. dnsresolver_binder_test.cpp
  45. getaddrinfo.cpp
  46. getaddrinfo.h
  47. gethnamaddr.cpp
  48. gethnamaddr.h
  49. hostent.h
  50. include/
  51. libnetd_resolv.map.txt
  52. res_cache.cpp
  53. res_comp.cpp
  54. res_debug.cpp
  55. res_debug.h
  56. res_init.cpp
  57. res_mkquery.cpp
  58. res_query.cpp
  59. res_send.cpp
  60. res_send.h
  61. res_state.cpp
  62. res_state_ext.h
  63. res_stats.cpp
  64. resolv_cache.h
  65. resolv_cache_unit_test.cpp
  66. resolv_integration_test.cpp
  67. resolv_private.h
  68. resolv_static.h
  69. resolv_tls_unit_test.cpp
  70. resolv_unit_test.cpp
  71. sethostent.cpp
  72. stats.proto
  73. tests/
README.md

Logging

This code uses LOG(X) for logging. Log levels are VERBOSE,DEBUG,INFO,WARNING and ERROR. The default setting is WARNING and logs relate to WARNING and ERROR will be shown. If you want to enable the DEBUG level logs, using following command. adb shell service call dnsresolver 10 i32 1 VERBOSE 0 DEBUG 1 INFO 2 WARNING 3 ERROR 4 Verbose resolver logs could contain PII -- do NOT enable in production builds.