Home
last modified time | relevance | path

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

/frameworks/base/cmds/statsd/tests/storage/
DStorageManager_test.cpp33 InstallTrainInfo trainInfo; in TEST() local
34 trainInfo.trainVersionCode = 12345; in TEST()
35 trainInfo.trainName = "This is a train name #)$(&&$"; in TEST()
36 trainInfo.status = 1; in TEST()
38 trainInfo.experimentIds.assign(expIds, expIds + strlen(expIds)); in TEST()
42 result = StorageManager::writeTrainInfo(trainInfo.trainVersionCode, trainInfo.trainName, in TEST()
43 trainInfo.status, trainInfo.experimentIds); in TEST()
51 EXPECT_EQ(trainInfo.trainVersionCode, trainInfoResult.trainVersionCode); in TEST()
52 EXPECT_EQ(trainInfo.trainName.size(), trainInfoResult.trainName.size()); in TEST()
53 EXPECT_EQ(trainInfo.trainName, trainInfoResult.trainName); in TEST()
[all …]
/frameworks/base/cmds/statsd/src/external/
DTrainInfoPuller.cpp40 InstallTrainInfo trainInfo; in PullInternal() local
41 bool ret = StorageManager::readTrainInfo(trainInfo); in PullInternal()
46 auto event = make_shared<LogEvent>(getWallClockNs(), getElapsedRealtimeNs(), trainInfo); in PullInternal()
/frameworks/base/cmds/statsd/src/storage/
DStorageManager.cpp219 bool StorageManager::readTrainInfo(InstallTrainInfo& trainInfo) { in readTrainInfo() argument
244 const size_t trainVersionCodeByteCount(sizeof(trainInfo.trainVersionCode)); in readTrainInfo()
245 result = read(fd, &trainInfo.trainVersionCode, trainVersionCodeByteCount); in readTrainInfo()
262 trainInfo.trainName.resize(trainNameSize); in readTrainInfo()
263 result = read(fd, trainInfo.trainName.data(), trainNameSize); in readTrainInfo()
271 const size_t statusByteCount = sizeof(trainInfo.status); in readTrainInfo()
272 result = read(fd, &trainInfo.status, statusByteCount); in readTrainInfo()
297 trainInfo.experimentIds.push_back(experimentId); in readTrainInfo()
DStorageManager.h61 static bool readTrainInfo(InstallTrainInfo& trainInfo);
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp210 const InstallTrainInfo& trainInfo) { in LogEvent() argument
216 FieldValue(Field(mTagId, getSimpleField(1)), Value(trainInfo.trainVersionCode))); in LogEvent()
218 writeExperimentIdsToProto(trainInfo.experimentIds, &experimentIdsProto); in LogEvent()
220 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(3)), Value(trainInfo.trainName))); in LogEvent()
221 mValues.push_back(FieldValue(Field(mTagId, getSimpleField(4)), Value(trainInfo.status))); in LogEvent()
/frameworks/base/cmds/statsd/src/
DStatsService.cpp1466 InstallTrainInfo trainInfo; in getRegisteredExperimentIds() local
1467 if (!StorageManager::readTrainInfo(trainInfo)) { in getRegisteredExperimentIds()
1474 experimentIdsOut->assign(trainInfo.experimentIds.begin(), trainInfo.experimentIds.end()); in getRegisteredExperimentIds()