Early "return" / continue to reduce indentation

For readbility.

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