Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp158 const size_t trainNameSize = trainName.size(); in writeTrainInfo() local
159 const size_t trainNameSizeByteCount = sizeof(trainNameSize); in writeTrainInfo()
160 result = write(fd, (uint8_t*)&trainNameSize, trainNameSizeByteCount); in writeTrainInfo()
168 result = write(fd, trainName.c_str(), trainNameSize); in writeTrainInfo()
169 if (result != trainNameSize) { in writeTrainInfo()
253 size_t trainNameSize; in readTrainInfo() local
254 result = read(fd, &trainNameSize, sizeof(size_t)); in readTrainInfo()
262 trainInfo.trainName.resize(trainNameSize); in readTrainInfo()
263 result = read(fd, trainInfo.trainName.data(), trainNameSize); in readTrainInfo()
264 if (result != trainNameSize) { in readTrainInfo()