metrics_linux.cpp revision e4bc35bf8bfe06ea174607fde3b645f5f6e9b941
1/******************************************************************************
2 *
3 *  Copyright (C) 2016 Google, Inc.
4 *
5 *  Licensed under the Apache License, Version 2.0 (the "License");
6 *  you may not use this file except in compliance with the License.
7 *  You may obtain a copy of the License at:
8 *
9 *  http://www.apache.org/licenses/LICENSE-2.0
10 *
11 *  Unless required by applicable law or agreed to in writing, software
12 *  distributed under the License is distributed on an "AS IS" BASIS,
13 *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 *  See the License for the specific language governing permissions and
15 *  limitations under the License.
16 *
17 ******************************************************************************/
18
19
20#define LOG_TAG "bt_osi_metrics"
21
22extern "C" {
23#include "osi/include/metrics.h"
24}
25
26void metrics_pair_event(uint32_t disconnect_reason, uint64_t timestamp_ms,
27                        uint32_t device_class, device_type_t device_type) {
28  //TODO(jpawlowski): implement
29}
30
31void metrics_wake_event(wake_event_type_t type, const char *requestor,
32                        const char *name, uint64_t timestamp_ms) {
33  //TODO(jpawlowski): implement
34}
35
36void metrics_scan_event(bool start, const char *initator, scan_tech_t type,
37                        uint32_t results, uint64_t timestamp_ms) {
38  //TODO(jpawlowski): implement
39}
40
41void metrics_a2dp_session(int64_t session_duration_sec,
42                          const char *disconnect_reason,
43                          uint32_t device_class,
44                          int32_t media_timer_min_ms,
45                          int32_t media_timer_max_ms,
46                          int32_t media_timer_avg_ms,
47                          int32_t buffer_overruns_max_count,
48                          int32_t buffer_overruns_total,
49                          float buffer_underruns_average,
50                          int32_t buffer_underruns_count) {
51  //TODO(jpawlowski): implement
52}
53
54void metrics_write(int fd, bool clear) {
55  //TODO(jpawlowski): implement
56}
57
58void metrics_print(int fd, bool clear) {
59  //TODO(jpawlowski): implement
60}
61