Lines Matching refs:android
45 namespace android {
71 class IDataProcessorInterface : public android::RefBase {
78 virtual android::base::Result<void> init() = 0;
82 virtual android::base::Result<void> onBoottimeCollection(
83 time_t time, const android::wp<UidIoStats>& uidIoStats,
84 const android::wp<ProcStat>& procStat, const android::wp<ProcPidStat>& procPidStat) = 0;
86 virtual android::base::Result<void> onPeriodicCollection(
87 time_t time, SystemState systemState, const android::wp<UidIoStats>& uidIoStats,
88 const android::wp<ProcStat>& procStat, const android::wp<ProcPidStat>& procPidStat) = 0;
93 virtual android::base::Result<void> onCustomCollection(
96 const android::wp<UidIoStats>& uidIoStats, const android::wp<ProcStat>& procStat,
97 const android::wp<ProcPidStat>& procPidStat) = 0;
102 virtual android::base::Result<void> onPeriodicMonitor(
103 time_t time, const android::wp<IProcDiskStatsInterface>& procDiskStats,
106 virtual android::base::Result<void> onDump(int fd) = 0;
110 virtual android::base::Result<void> onCustomCollectionDump(int fd) = 0;
151 virtual android::base::Result<void> registerDataProcessor(
152 android::sp<IDataProcessorInterface> processor) = 0;
157 virtual android::base::Result<void> start() = 0;
163 virtual android::base::Result<void> onBootFinished() = 0;
170 virtual android::base::Result<void> onCustomCollection(
171 int fd, const Vector<android::String16>& args) = 0;
173 virtual android::base::Result<void> onDump(int fd) = 0;
181 mHandlerLooper(android::sp<LooperWrapper>::make()), in WatchdogPerfService()
188 mUidIoStats(android::sp<UidIoStats>::make()),
189 mProcStat(android::sp<ProcStat>::make()),
190 mProcPidStat(android::sp<ProcPidStat>::make()),
191 mProcDiskStats(android::sp<ProcDiskStats>::make()),
196 android::base::Result<void> registerDataProcessor(
197 android::sp<IDataProcessorInterface> processor) override;
199 android::base::Result<void> start() override;
205 android::base::Result<void> onBootFinished() override;
207 android::base::Result<void> onCustomCollection(int fd,
208 const Vector<android::String16>& args) override;
210 android::base::Result<void> onDump(int fd) override;
229 android::base::Result<void> dumpCollectorsStatusLocked(int fd);
242 android::base::Result<void> startCustomCollection(
251 android::base::Result<void> endCustomCollection(int fd);
257 android::base::Result<void> processCollectionEvent(EventMetadata* metadata);
260 android::base::Result<void> collectLocked(EventMetadata* metadata);
263 android::base::Result<void> processMonitorEvent(EventMetadata* metadata);
278 android::sp<LooperWrapper> mHandlerLooper GUARDED_BY(mMutex);
305 android::sp<UidIoStats> mUidIoStats GUARDED_BY(mMutex);
308 android::sp<ProcStat> mProcStat GUARDED_BY(mMutex);
311 android::sp<ProcPidStat> mProcPidStat GUARDED_BY(mMutex);
314 android::sp<IProcDiskStatsInterface> mProcDiskStats GUARDED_BY(mMutex);
317 std::vector<android::sp<IDataProcessorInterface>> mDataProcessors GUARDED_BY(mMutex);