Home
last modified time | relevance | path

Searched refs:trainNameSize (Results 1 – 1 of 1) sorted by relevance

/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp186 const size_t trainNameSize = trainInfo.trainName.size(); in writeTrainInfo() local
187 const size_t trainNameSizeByteCount = sizeof(trainNameSize); in writeTrainInfo()
188 result = write(fd, (uint8_t*)&trainNameSize, trainNameSizeByteCount); in writeTrainInfo()
196 result = write(fd, trainInfo.trainName.c_str(), trainNameSize); in writeTrainInfo()
197 if (result != trainNameSize) { in writeTrainInfo()
305 size_t trainNameSize; in readTrainInfoLocked() local
306 result = read(fd, &trainNameSize, sizeof(size_t)); in readTrainInfoLocked()
314 trainInfo.trainName.resize(trainNameSize); in readTrainInfoLocked()
315 result = read(fd, trainInfo.trainName.data(), trainNameSize); in readTrainInfoLocked()
316 if (result != trainNameSize) { in readTrainInfoLocked()