OSDN Git Service

Metrics: Dump native metrics to Java as std:string
authorJack He <siyuanh@google.com>
Thu, 1 Feb 2018 00:51:26 +0000 (16:51 -0800)
committerJack He <siyuanh@google.com>
Thu, 1 Feb 2018 19:43:45 +0000 (11:43 -0800)
commit9af0078f41f489059982614e8558536e100f9a1a
treefdc29ec817efbcee1a479c583566a6a54557e0f9
parentbc94521056d379ec96e2511b43fbc97130868ade
Metrics: Dump native metrics to Java as std:string

* Dump metrics to Java layer as std::string instead of going through a
  file descriptor so that Java layer can process metrics data directly
* Add new method dumpMetrics(std::string*)

Bug: 33693818
Test: adb shell dumpsys bluetooth_manager --proto-bin
      SL4A metrics tests: BtMetricsTest, BtFunhausMetricsTest
Change-Id: I67883c1371862d7e4ff33cec01d710d2d8f274c9
btif/src/bluetooth.cc
device/include/interop.h
device/src/interop.cc
include/hardware/bluetooth.h
service/hal/fake_bluetooth_interface.cc