blob: 1b6c79a4c1a1c87d5598a457ae355f21ee725e0c [file] [log] [blame]
Ray Essick6ce27e52019-02-15 10:58:05 -08001/*
2 * Copyright (C) 2019 The Android Open Source Project
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
Robert Shih2e15aed2021-03-16 18:30:35 -070017#include <memory>
18#include <stats_event.h>
19
Ray Essick6ce27e52019-02-15 10:58:05 -080020namespace android {
Robert Shih2e15aed2021-03-16 18:30:35 -070021namespace mediametrics {
22class Item;
23}
Ray Essick6ce27e52019-02-15 10:58:05 -080024
25extern bool enabled_statsd;
26
27// component specific dumpers
Ray Essickf27e9872019-12-07 06:28:46 -080028extern bool statsd_audiopolicy(const mediametrics::Item *);
29extern bool statsd_audiorecord(const mediametrics::Item *);
30extern bool statsd_audiothread(const mediametrics::Item *);
31extern bool statsd_audiotrack(const mediametrics::Item *);
32extern bool statsd_codec(const mediametrics::Item *);
33extern bool statsd_extractor(const mediametrics::Item *);
Santiago Seifert4b3ee1c2020-08-11 17:58:41 +010034extern bool statsd_mediaparser(const mediametrics::Item *);
Ray Essickf27e9872019-12-07 06:28:46 -080035extern bool statsd_nuplayer(const mediametrics::Item *);
36extern bool statsd_recorder(const mediametrics::Item *);
Ray Essick6ce27e52019-02-15 10:58:05 -080037
Ray Essickf27e9872019-12-07 06:28:46 -080038extern bool statsd_mediadrm(const mediametrics::Item *);
Ray Essickf27e9872019-12-07 06:28:46 -080039extern bool statsd_drmmanager(const mediametrics::Item *);
Ray Essick6ce27e52019-02-15 10:58:05 -080040
Robert Shih2e15aed2021-03-16 18:30:35 -070041// component specific pullers
42extern bool statsd_mediadrm_puller(const mediametrics::Item *, AStatsEventList *);
43
44bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item);
45bool dump2Statsd(const std::shared_ptr<const mediametrics::Item>& item, AStatsEventList* out);
46
Ray Essick6ce27e52019-02-15 10:58:05 -080047} // namespace android