Searched refs:trainNameSize (Results 1 – 2 of 2) sorted by relevance
/packages/modules/StatsD/statsd/src/storage/ |
D | StorageManager.cpp | 195 const size_t trainNameSize = trainInfo.trainName.size(); in writeTrainInfo() local 196 const size_t trainNameSizeByteCount = sizeof(trainNameSize); in writeTrainInfo() 197 result = write(fd, (uint8_t*)&trainNameSize, trainNameSizeByteCount); in writeTrainInfo() 205 result = write(fd, trainInfo.trainName.c_str(), trainNameSize); in writeTrainInfo() 206 if (result != trainNameSize) { in writeTrainInfo() 314 size_t trainNameSize; in readTrainInfoLocked() local 315 result = read(fd, &trainNameSize, sizeof(size_t)); in readTrainInfoLocked() 327 if ((sizeof(size_t) == sizeof(int64_t)) && (trainNameSize & 0xFFFFFFFF00000000) != 0) { in readTrainInfoLocked() 345 trainNameSize = trainNameSize32Bit; in readTrainInfoLocked() 349 trainInfo.trainName.resize(trainNameSize); in readTrainInfoLocked() [all …]
|
/packages/modules/StatsD/statsd/tests/storage/ |
D | StorageManager_test.cpp | 234 const int32_t trainNameSize = trainInfo.trainName.size(); in TEST() local 235 const size_t trainNameSizeByteCount = sizeof(trainNameSize); in TEST() 236 result = write(fd, (uint8_t*)&trainNameSize, trainNameSizeByteCount); in TEST() 240 result = write(fd, trainInfo.trainName.c_str(), trainNameSize); in TEST() 241 ASSERT_EQ(result, trainNameSize); in TEST()
|