blob: 17ce5b4cb918bd76616e54ca10f7db62d95e6a77 [file] [log] [blame]
Chenjie Yu1a317ba2017-10-05 16:05:32 -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
Chenjie Yub3dda412017-10-24 13:41:59 -070017#pragma once
Chenjie Yu1a317ba2017-10-05 16:05:32 -070018
19#include <utils/String16.h>
Chenjie Yub3dda412017-10-24 13:41:59 -070020#include "StatsPuller.h"
Chenjie Yu1a317ba2017-10-05 16:05:32 -070021
22namespace android {
23namespace os {
24namespace statsd {
25
Chenjie Yu5305e1d2017-10-31 13:49:36 -070026/**
27 * Reads hal for sleep states
28 */
Chenjie Yuc8b7f222018-01-11 23:25:57 -080029class SubsystemSleepStatePuller : public StatsPuller {
Chenjie Yu1a317ba2017-10-05 16:05:32 -070030public:
Chenjie Yuc8b7f222018-01-11 23:25:57 -080031 SubsystemSleepStatePuller();
Chenjie Yub038b702017-12-18 15:15:34 -080032 bool PullInternal(vector<std::shared_ptr<LogEvent>>* data) override;
Chenjie Yu1a317ba2017-10-05 16:05:32 -070033};
34
35} // namespace statsd
36} // namespace os
37} // namespace android