blob: 05343b5419722e6d541e010ec7f28dcc9b9cea2a [file] [log] [blame]
Bookatzc68a9d22017-09-27 14:09:55 -07001/*
2 * Copyright (C) 2017 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
17#ifndef STATSD_STATSPULLER_H
18#define STATSD_STATSPULLER_H
19
20#include <utils/String16.h>
21
22namespace android {
23namespace os {
24namespace statsd {
25
26class StatsPuller {
27public:
28 // Enums of pulled data types (pullCodes)
29 // These values must be kept in sync with com/android/server/stats/StatsCompanionService.java.
30 // TODO: pull the constant from stats_events.proto instead
31 const static int PULL_CODE_KERNEL_WAKELOCKS = 20;
32
33 StatsPuller();
34 ~StatsPuller();
35
36 static String16 pull(int pullCode);
37};
38
39} // namespace statsd
40} // namespace os
41} // namespace android
42
43#endif //STATSD_STATSPULLER_H