Emit getDefaultTransactionName for GenTraces()

getDefaultTransactionName converts a binder txn id to a string
This was previously only enabled with the GenTransactionNames
which was primarily used for logging binder stats.

Now, we emit the method for GenTraces as well so that we can
cheaply trace binder transaction names across Java aidl backends.

We don't actually emit the traceBegin/End code in the aidl itself
to keep code size increase minimal, especially for frameworks.jar.
The actual traceBegin/End code will happen in Binder.java

Additionally, we removed the traceBegin/End for 'client' aidl tracing
as well. The 'server' side should be sufficient and if we do need
client side tracing, we can add the traceBegin/End in a central location
like we do for 'server'.

Test: Manual
Bug: 161393989
Change-Id: I090678b4a85b4b57a91cf984d124b0147edfd72f
2 files changed
tree: 675cb8408bb5a4cd851d677ae0897d24c5919add
  1. aidl_api/
  2. analyzer/
  3. build/
  4. metadata/
  5. scripts/
  6. tests/
  7. trace/
  8. aidl-format.sh
  9. aidl.cpp
  10. aidl.h
  11. aidl_checkapi.cpp
  12. aidl_checkapi.h
  13. aidl_const_expressions.cpp
  14. aidl_dumpapi.cpp
  15. aidl_dumpapi.h
  16. aidl_language.cpp
  17. aidl_language.h
  18. aidl_language_l.ll
  19. aidl_language_y.yy
  20. aidl_to_cpp.cpp
  21. aidl_to_cpp.h
  22. aidl_to_cpp_common.cpp
  23. aidl_to_cpp_common.h
  24. aidl_to_java.cpp
  25. aidl_to_java.h
  26. aidl_to_ndk.cpp
  27. aidl_to_ndk.h
  28. aidl_to_rust.cpp
  29. aidl_to_rust.h
  30. aidl_typenames.cpp
  31. aidl_typenames.h
  32. aidl_unittest.cpp
  33. Android.bp
  34. ast_java.cpp
  35. ast_java.h
  36. ast_java_unittest.cpp
  37. check_valid.cpp
  38. check_valid.h
  39. code_writer.cpp
  40. code_writer.h
  41. code_writer_unittest.cpp
  42. comments.cpp
  43. comments.h
  44. diagnostics.cpp
  45. diagnostics.h
  46. diagnostics.inc
  47. diagnostics_unittest.cpp
  48. generate_aidl_mappings.cpp
  49. generate_aidl_mappings.h
  50. generate_cpp.cpp
  51. generate_cpp.h
  52. generate_cpp_analyzer.cpp
  53. generate_cpp_analyzer.h
  54. generate_cpp_unittest.cpp
  55. generate_java.cpp
  56. generate_java.h
  57. generate_java_binder.cpp
  58. generate_ndk.cpp
  59. generate_ndk.h
  60. generate_rust.cpp
  61. generate_rust.h
  62. hiddenapi-greylist
  63. import_resolver.cpp
  64. import_resolver.h
  65. io_delegate.cpp
  66. io_delegate.h
  67. io_delegate_unittest.cpp
  68. location.cpp
  69. location.h
  70. logging.cpp
  71. logging.h
  72. main.cpp
  73. NOTICE
  74. options.cpp
  75. options.h
  76. options_unittest.cpp
  77. os.h
  78. OWNERS
  79. parser.cpp
  80. parser.h
  81. permission.cpp
  82. permission.h
  83. preprocess.cpp
  84. preprocess.h
  85. PREUPLOAD.cfg
  86. README.md
  87. run_integration_tests.sh
  88. TEST_MAPPING
README.md

Documentation for this project is currently maintained here:

https://source.android.com/devices/architecture/aidl/overview