Move code inside src/ directory

Test: TH
Flag: EXEMPT mainline
Change-Id: I1f90ae18d64f4e9b0cf48e425aaf92cf07843705
38 files changed
tree: ab3d178a8fbc25032f1193be1ba0baa47239c030
  1. aidl_api/
  2. apex/
  3. binder/
  4. include/
  5. libs/
  6. rust/
  7. tests/
  8. .editorconfig
  9. Android.bp
  10. cbindgen.toml
  11. Dns64Configuration.cpp
  12. Dns64Configuration.h
  13. DnsProxy.cpp
  14. DnsProxy.h
  15. DnsProxyListener.cpp
  16. DnsProxyListener.h
  17. DnsQueryLog.cpp
  18. DnsQueryLog.h
  19. DnsQueryLogTest.cpp
  20. DnsResolver.cpp
  21. DnsResolver.h
  22. DnsResolverService.cpp
  23. DnsResolverService.h
  24. DnsStats.cpp
  25. DnsStats.h
  26. DnsStatsTest.cpp
  27. DnsTlsDispatcher.cpp
  28. DnsTlsDispatcher.h
  29. DnsTlsQueryMap.cpp
  30. DnsTlsQueryMap.h
  31. DnsTlsServer.cpp
  32. DnsTlsServer.h
  33. DnsTlsSessionCache.cpp
  34. DnsTlsSessionCache.h
  35. DnsTlsSocket.cpp
  36. DnsTlsSocket.h
  37. DnsTlsSocketFactory.h
  38. DnsTlsTransport.cpp
  39. DnsTlsTransport.h
  40. doh.h
  41. Experiments.cpp
  42. Experiments.h
  43. ExperimentsTest.cpp
  44. getaddrinfo.cpp
  45. getaddrinfo.h
  46. gethnamaddr.cpp
  47. gethnamaddr.h
  48. hostent.h
  49. IDnsTlsSocket.h
  50. IDnsTlsSocketFactory.h
  51. IDnsTlsSocketObserver.h
  52. libnetd_resolv.map.txt
  53. LockedQueue.h
  54. NOTICE
  55. OperationLimiter.h
  56. OperationLimiterTest.cpp
  57. OWNERS
  58. params.h
  59. PREUPLOAD.cfg
  60. PrivateDnsCommon.h
  61. PrivateDnsConfiguration.cpp
  62. PrivateDnsConfiguration.h
  63. PrivateDnsConfigurationTest.cpp
  64. PrivateDnsValidationObserver.h
  65. README-DoT.md
  66. README.md
  67. res_cache.cpp
  68. res_comp.cpp
  69. res_comp.h
  70. res_debug.cpp
  71. res_debug.h
  72. res_mkquery.cpp
  73. res_query.cpp
  74. res_send.cpp
  75. res_send.h
  76. res_stats.cpp
  77. resolv_cache.h
  78. resolv_private.h
  79. resolv_test_config_template.xml
  80. resolv_test_config_without_root_template.xml
  81. resolv_test_default.map
  82. ResolverController.cpp
  83. ResolverController.h
  84. ResolverEventReporter.cpp
  85. ResolverEventReporter.h
  86. ResolverStats.h
  87. sethostent.cpp
  88. stats.h
  89. stats.proto
  90. TEST_MAPPING
  91. util.cpp
  92. util.h
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.