arc: Separate preANR handling per ANR type.

Initial results show good results for preventing ContentProvider ANRs
(>80%). However for Service ANR recovery rate ~20%. This might be due to
fact that foreground service ANR timeout is 20s compare to 10s of
ContentProvider. This also separate Service ANRs to Foreground and
Background.

BUG=b:204599606
TEST=Locally + unit test

Change-Id: Ia02d3e2783039e15bd33ca9a5b85b1455a74f89e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3292245
Commit-Queue: Yury Khmel <khmel@chromium.org>
Reviewed-by: Yusuke Sato <yusukes@chromium.org>
Reviewed-by: Mattias Nissler <mnissler@chromium.org>
Cr-Commit-Position: refs/heads/main@{#944260}
NOKEYCHECK=True
GitOrigin-RevId: a46a98e71ca264323bb70f39b08a06529f1e29a6
1 file changed
tree: 6846ba2314efe89ed123bc078f6f0ff7cb9a6fe4
  1. accessibility_helper.mojom
  2. adbd.mojom
  3. anr.mojom
  4. app.mojom
  5. app_mojom_traits.h
  6. app_permissions.mojom
  7. appfuse.mojom
  8. arc_bridge.mojom
  9. arc_gfx_mojom_traits.cc
  10. arc_gfx_mojom_traits.h
  11. ARC_SECURITY_OWNERS
  12. audio.mojom
  13. auth.mojom
  14. backup_settings.mojom
  15. bitmap.mojom
  16. bluetooth.mojom
  17. boot_phase_monitor.mojom
  18. BUILD.gn
  19. camera.mojom
  20. camera_intent.mojom
  21. cast_receiver.mojom
  22. cert_store.mojom
  23. clipboard.mojom
  24. compatibility_mode.mojom
  25. crash_collector.mojom
  26. dark_theme.mojom
  27. digital_goods.mojom
  28. disk_quota.mojom
  29. enterprise_reporting.mojom
  30. file_system.mojom
  31. gfx.mojom
  32. iio_sensor.mojom
  33. ime.mojom
  34. ime_mojom_traits.cc
  35. ime_mojom_traits.h
  36. ime_mojom_traits_unittest.cc
  37. input_method_manager.mojom
  38. intent_common.mojom
  39. intent_helper.mojom
  40. keyboard_shortcut.mojom
  41. keymaster.mojom
  42. kiosk.mojom
  43. lock_screen.mojom
  44. media_session.mojom
  45. memory.mojom
  46. metrics.mojom
  47. midis.mojom
  48. nearby_share.mojom
  49. net.mojom
  50. notifications.mojom
  51. obb_mounter.mojom
  52. oemcrypto.mojom
  53. OWNERS
  54. payment_app.mojom
  55. pip.mojom
  56. policy.mojom
  57. power.mojom
  58. print_common.mojom
  59. print_mojom_traits.cc
  60. print_mojom_traits.h
  61. print_spooler.mojom
  62. process.mojom
  63. property.mojom
  64. protected_buffer_manager.mojom
  65. rotation_lock.mojom
  66. scale_factor.mojom
  67. screen_capture.mojom
  68. sensor.mojom
  69. sensor_service.mojom
  70. sharesheet.mojom
  71. storage_manager.mojom
  72. timer.mojom
  73. tracing.mojom
  74. tts.mojom
  75. usb_host.mojom
  76. video.mojom
  77. video_accelerator_mojom_traits.cc
  78. video_accelerator_mojom_traits.h
  79. video_accelerator_mojom_traits_unittest.cc
  80. video_common.mojom
  81. video_decode_accelerator.mojom
  82. video_encode_accelerator.mojom
  83. video_encode_accelerator_mojom_traits.cc
  84. video_encode_accelerator_mojom_traits.h
  85. video_protected_buffer_allocator.mojom
  86. volume_mounter.mojom
  87. wake_lock.mojom
  88. wallpaper.mojom
  89. webapk.mojom