Home
last modified time | relevance | path

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

/packages/modules/StatsD/statsd/tests/storage/
DStorageManager_test.cpp42 trainInfo.trainVersionCode = 12345; in TEST()
58 EXPECT_EQ(trainInfo.trainVersionCode, trainInfoResult.trainVersionCode); in TEST()
68 trainInfo.trainVersionCode = 12345; in TEST()
84 EXPECT_EQ(trainInfo.trainVersionCode, trainInfoResult.trainVersionCode); in TEST()
208 trainInfo.trainVersionCode = 12345; in TEST()
228 const size_t trainVersionCodeByteCount = sizeof(trainInfo.trainVersionCode); in TEST()
229 result = write(fd, &trainInfo.trainVersionCode, trainVersionCodeByteCount); in TEST()
276 EXPECT_EQ(trainInfo.trainVersionCode, trainInfoResult.trainVersionCode); in TEST()
/packages/modules/StatsD/framework/java/android/util/
DStatsLog.java409 long trainVersionCode, int options, int state, in logBinaryPushStateChanged() argument
421 trainVersionCode, in logBinaryPushStateChanged()
/packages/modules/StatsD/statsd/src/storage/
DStorageManager.cpp186 const size_t trainVersionCodeByteCount = sizeof(trainInfo.trainVersionCode); in writeTrainInfo()
187 result = write(fd, &trainInfo.trainVersionCode, trainVersionCodeByteCount); in writeTrainInfo()
305 const size_t trainVersionCodeByteCount(sizeof(trainInfo.trainVersionCode)); in readTrainInfoLocked()
306 result = read(fd, &trainInfo.trainVersionCode, trainVersionCodeByteCount); in readTrainInfoLocked()
330 off_t seekResult = lseek(fd, sizeof(magic) + sizeof(trainInfo.trainVersionCode), SEEK_SET); in readTrainInfoLocked()
332 if (seekResult != sizeof(magic) + sizeof(trainInfo.trainVersionCode)) { in readTrainInfoLocked()
/packages/modules/StatsD/statsd/src/logd/
DLogEvent.h64 int64_t trainVersionCode; member
119 explicit LogEvent(const std::string& trainName, int64_t trainVersionCode, bool requiresStaging,
DLogEvent.cpp60 LogEvent::LogEvent(const string& trainName, int64_t trainVersionCode, bool requiresStaging, in LogEvent() argument
70 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(2)), Value(trainVersionCode))); in LogEvent()
87 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent()
/packages/modules/StatsD/statsd/src/
DStatsLogProcessor.cpp198 trainInfo.trainVersionCode = event->GetLong(2 /*train version field id*/, &err); in onBinaryPushStateChangedEventLocked()
228 event->updateValue(2 /*train version field id*/, trainInfo.trainVersionCode, LONG); in onBinaryPushStateChangedEventLocked()
259 if (trainInfo->trainVersionCode == -1) { in getAndUpdateTrainInfoOnDisk()
260 trainInfo->trainVersionCode = trainInfoOnDisk.trainVersionCode; in getAndUpdateTrainInfoOnDisk()
261 } else if (trainInfo->trainVersionCode != trainInfoOnDisk.trainVersionCode) { in getAndUpdateTrainInfoOnDisk()