Add support for JVMTI GetObjectMonitorUsage function.

Adds support for the can_get_monitor_info capability and all
associated functionality. Also fixes a minor bug where monitor info
incorrectly said that an unlocked monitor had 1 entry in some cases.

Test: ./test.py --host -j50
Test: art/tools/run-jdwp-tests --mode=host

Bug: 62821960
Bug: 34409230

Change-Id: I9a4817ea309aaf94c56e9c0a694b88c93e7b629c
diff --git a/test/Android.bp b/test/Android.bp
index 2a88af1..d019df8 100644
--- a/test/Android.bp
+++ b/test/Android.bp
@@ -250,6 +250,7 @@
         "ti-agent/common_helper.cc",
         "ti-agent/frame_pop_helper.cc",
         "ti-agent/locals_helper.cc",
+        "ti-agent/monitors_helper.cc",
         "ti-agent/redefinition_helper.cc",
         "ti-agent/suspension_helper.cc",
         "ti-agent/stack_trace_helper.cc",
@@ -299,7 +300,8 @@
         "1922-owned-monitors-info/owned_monitors.cc",
         "1924-frame-pop-toggle/frame_pop_toggle.cc",
         "1926-missed-frame-pop/frame_pop_missed.cc",
-        "1927-exception-event/exception_event.cc"
+        "1927-exception-event/exception_event.cc",
+        "1930-monitor-info/monitor.cc",
     ],
     shared_libs: [
         "libbase",