metrics_linux.cc revision b2a292b5d8df2f359c38b0787bc01181225a9bc9
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
22#include "osi/include/metrics.h"
23
24void metrics_pair_event(uint32_t disconnect_reason, uint64_t timestamp_ms,
25                        uint32_t device_class, device_type_t device_type) {
26  //TODO(jpawlowski): implement
27}
28
29void metrics_wake_event(wake_event_type_t type, const char *requestor,
30                        const char *name, uint64_t timestamp_ms) {
31  //TODO(jpawlowski): implement
32}
33
34void metrics_scan_event(bool start, const char *initator, scan_tech_t type,
35                        uint32_t results, uint64_t timestamp_ms) {
36  //TODO(jpawlowski): implement
37}
38
39void metrics_a2dp_session(int64_t session_duration_sec,
40                          const char *disconnect_reason,
41                          uint32_t device_class,
42                          int32_t media_timer_min_ms,
43                          int32_t media_timer_max_ms,
44                          int32_t media_timer_avg_ms,
45                          int32_t buffer_overruns_max_count,
46                          int32_t buffer_overruns_total,
47                          float buffer_underruns_average,
48                          int32_t buffer_underruns_count) {
49  //TODO(jpawlowski): implement
50}
51
52void metrics_write(int fd, bool clear) {
53  //TODO(jpawlowski): implement
54}
55
56void metrics_print(int fd, bool clear) {
57  //TODO(jpawlowski): implement
58}
59