Lines Matching refs:statsProto
264 protos::GraphicsStatsProto statsProto; in saveBuffer() local
265 if (!parseFromFile(path, &statsProto)) { in saveBuffer()
266 statsProto.Clear(); in saveBuffer()
268 if (!mergeProfileDataIntoProto(&statsProto, package, versionCode, startTime, endTime, data)) { in saveBuffer()
273 if (!statsProto.IsInitialized()) { in saveBuffer()
274 ALOGE("proto initialization error %s", statsProto.InitializationErrorString().c_str()); in saveBuffer()
277 if (statsProto.package_name().empty() || !statsProto.has_summary()) { in saveBuffer()
278 ALOGE("missing package_name() '%s' summary %d", statsProto.package_name().c_str(), in saveBuffer()
279 statsProto.has_summary()); in saveBuffer()
298 bool success = statsProto.SerializeToZeroCopyStream(&output) && output.Flush(); in saveBuffer()
330 protos::GraphicsStatsProto statsProto; in addToDump() local
331 if (!path.empty() && !parseFromFile(path, &statsProto)) { in addToDump()
332 statsProto.Clear(); in addToDump()
335 !mergeProfileDataIntoProto(&statsProto, package, versionCode, startTime, endTime, data)) { in addToDump()
338 if (!statsProto.IsInitialized()) { in addToDump()
345 dump->proto().add_stats()->CopyFrom(statsProto); in addToDump()
347 dumpAsTextToFd(&statsProto, dump->fd()); in addToDump()
352 protos::GraphicsStatsProto statsProto; in addToDump() local
353 if (!parseFromFile(path, &statsProto)) { in addToDump()
357 dump->proto().add_stats()->CopyFrom(statsProto); in addToDump()
359 dumpAsTextToFd(&statsProto, dump->fd()); in addToDump()