blob: 0f34882b4b60cf9c1d21ff06d11851c8099eeaa4 [file] [log] [blame]
Joe Onorato5dcbc6c2017-08-29 15:13:58 -07001/*
2 * Copyright (C) 2016 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 STATS_SERVICE_H
18#define STATS_SERVICE_H
19
20#include <android/os/BnStatsManager.h>
21#include <utils/Looper.h>
22
23#include <deque>
24#include <mutex>
25
26using namespace android;
27using namespace android::base;
28using namespace android::binder;
29using namespace android::os;
30using namespace std;
31
32
33// ================================================================================
34class StatsService : public BnStatsManager {
35public:
36 StatsService(const sp<Looper>& handlerLooper);
37 virtual ~StatsService();
38
39 virtual status_t dump(int fd, const Vector<String16>& args);
40 virtual Status systemRunning();
41
42};
43
44#endif // STATS_SERVICE_H