Lines Matching refs:LogEvent

727 bool parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) {  in parseStatsEventToLogEvent()
739 void CreateTwoValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateTwoValueLogEvent()
751 shared_ptr<LogEvent> CreateTwoValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, in CreateTwoValueLogEvent()
753 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateTwoValueLogEvent()
758 void CreateThreeValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateThreeValueLogEvent()
771 shared_ptr<LogEvent> CreateThreeValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value1, in CreateThreeValueLogEvent()
773 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateThreeValueLogEvent()
778 void CreateRepeatedValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, in CreateRepeatedValueLogEvent()
790 shared_ptr<LogEvent> CreateRepeatedValueLogEvent(int atomId, int64_t eventTimeNs, int32_t value) { in CreateRepeatedValueLogEvent()
791 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateRepeatedValueLogEvent()
796 void CreateNoValuesLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs) { in CreateNoValuesLogEvent()
804 shared_ptr<LogEvent> CreateNoValuesLogEvent(int atomId, int64_t eventTimeNs) { in CreateNoValuesLogEvent()
805 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateNoValuesLogEvent()
836 shared_ptr<LogEvent> makeUidLogEvent(int atomId, int64_t eventTimeNs, int uid, int data1, in makeUidLogEvent()
840 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeUidLogEvent()
845 shared_ptr<LogEvent> makeUidLogEvent(int atomId, int64_t eventTimeNs, int uid, int data1, in makeUidLogEvent()
849 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeUidLogEvent()
854 shared_ptr<LogEvent> makeExtraUidsLogEvent(int atomId, int64_t eventTimeNs, int uid1, int data1, in makeExtraUidsLogEvent()
862 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeExtraUidsLogEvent()
867 shared_ptr<LogEvent> makeRepeatedUidLogEvent(int atomId, int64_t eventTimeNs, in makeRepeatedUidLogEvent()
875 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeRepeatedUidLogEvent()
881 shared_ptr<LogEvent> makeRepeatedUidLogEvent(int atomId, int64_t eventTimeNs, in makeRepeatedUidLogEvent()
891 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeRepeatedUidLogEvent()
897 shared_ptr<LogEvent> makeRepeatedUidLogEvent(int atomId, int64_t eventTimeNs, in makeRepeatedUidLogEvent()
908 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeRepeatedUidLogEvent()
914 shared_ptr<LogEvent> makeAttributionLogEvent(int atomId, int64_t eventTimeNs, in makeAttributionLogEvent()
925 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in makeAttributionLogEvent()
950 std::unique_ptr<LogEvent> CreateScreenStateChangedEvent(uint64_t timestampNs, in CreateScreenStateChangedEvent()
960 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(loggerUid, /*pid=*/0); in CreateScreenStateChangedEvent()
965 std::unique_ptr<LogEvent> CreateBatterySaverOnEvent(uint64_t timestampNs) { in CreateBatterySaverOnEvent()
973 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateBatterySaverOnEvent()
978 std::unique_ptr<LogEvent> CreateBatterySaverOffEvent(uint64_t timestampNs) { in CreateBatterySaverOffEvent()
986 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateBatterySaverOffEvent()
991 std::unique_ptr<LogEvent> CreateBatteryStateChangedEvent(const uint64_t timestampNs, in CreateBatteryStateChangedEvent()
1001 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/uid, /*pid=*/0); in CreateBatteryStateChangedEvent()
1006 std::unique_ptr<LogEvent> CreateMalformedBatteryStateChangedEvent(const uint64_t timestampNs) { in CreateMalformedBatteryStateChangedEvent()
1014 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateMalformedBatteryStateChangedEvent()
1019 std::unique_ptr<LogEvent> CreateScreenBrightnessChangedEvent(uint64_t timestampNs, int level) { in CreateScreenBrightnessChangedEvent()
1025 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateScreenBrightnessChangedEvent()
1030 std::unique_ptr<LogEvent> CreateScheduledJobStateChangedEvent( in CreateScheduledJobStateChangedEvent()
1041 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateScheduledJobStateChangedEvent()
1046 std::unique_ptr<LogEvent> CreateStartScheduledJobEvent(uint64_t timestampNs, in CreateStartScheduledJobEvent()
1055 std::unique_ptr<LogEvent> CreateFinishScheduledJobEvent(uint64_t timestampNs, in CreateFinishScheduledJobEvent()
1064 std::unique_ptr<LogEvent> CreateScheduleScheduledJobEvent(uint64_t timestampNs, in CreateScheduleScheduledJobEvent()
1072 std::unique_ptr<LogEvent> CreateTestAtomReportedEventVariableRepeatedFields( in CreateTestAtomReportedEventVariableRepeatedFields()
1084 std::unique_ptr<LogEvent> CreateTestAtomReportedEventWithPrimitives( in CreateTestAtomReportedEventWithPrimitives()
1096 std::unique_ptr<LogEvent> CreateTestAtomReportedEvent( in CreateTestAtomReportedEvent()
1130 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateTestAtomReportedEvent()
1135 std::unique_ptr<LogEvent> CreateWakelockStateChangedEvent(uint64_t timestampNs, in CreateWakelockStateChangedEvent()
1155 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateWakelockStateChangedEvent()
1160 std::unique_ptr<LogEvent> CreateAcquireWakelockEvent(uint64_t timestampNs, in CreateAcquireWakelockEvent()
1168 std::unique_ptr<LogEvent> CreateReleaseWakelockEvent(uint64_t timestampNs, in CreateReleaseWakelockEvent()
1176 std::unique_ptr<LogEvent> CreateActivityForegroundStateChangedEvent( in CreateActivityForegroundStateChangedEvent()
1188 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateActivityForegroundStateChangedEvent()
1193 std::unique_ptr<LogEvent> CreateMoveToBackgroundEvent(uint64_t timestampNs, const int uid) { in CreateMoveToBackgroundEvent()
1198 std::unique_ptr<LogEvent> CreateMoveToForegroundEvent(uint64_t timestampNs, const int uid) { in CreateMoveToForegroundEvent()
1203 std::unique_ptr<LogEvent> CreateSyncStateChangedEvent(uint64_t timestampNs, in CreateSyncStateChangedEvent()
1216 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateSyncStateChangedEvent()
1221 std::unique_ptr<LogEvent> CreateSyncStartEvent(uint64_t timestampNs, in CreateSyncStartEvent()
1229 std::unique_ptr<LogEvent> CreateSyncEndEvent(uint64_t timestampNs, in CreateSyncEndEvent()
1237 std::unique_ptr<LogEvent> CreateProcessLifeCycleStateChangedEvent( in CreateProcessLifeCycleStateChangedEvent()
1247 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateProcessLifeCycleStateChangedEvent()
1252 std::unique_ptr<LogEvent> CreateAppCrashEvent(uint64_t timestampNs, const int uid) { in CreateAppCrashEvent()
1257 std::unique_ptr<LogEvent> CreateAppCrashOccurredEvent(uint64_t timestampNs, const int uid) { in CreateAppCrashOccurredEvent()
1266 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateAppCrashOccurredEvent()
1271 std::unique_ptr<LogEvent> CreateIsolatedUidChangedEvent(uint64_t timestampNs, int hostUid, in CreateIsolatedUidChangedEvent()
1281 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateIsolatedUidChangedEvent()
1286 std::unique_ptr<LogEvent> CreateUidProcessStateChangedEvent( in CreateUidProcessStateChangedEvent()
1299 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateUidProcessStateChangedEvent()
1304 std::unique_ptr<LogEvent> CreateBleScanStateChangedEvent(uint64_t timestampNs, in CreateBleScanStateChangedEvent()
1331 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateBleScanStateChangedEvent()
1336 std::unique_ptr<LogEvent> CreateOverlayStateChangedEvent(int64_t timestampNs, const int32_t uid, in CreateOverlayStateChangedEvent()
1354 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateOverlayStateChangedEvent()
1359 std::unique_ptr<LogEvent> CreateAppStartOccurredEvent( in CreateAppStartOccurredEvent()
1375 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateAppStartOccurredEvent()
1380 std::unique_ptr<LogEvent> CreateBleScanResultReceivedEvent(uint64_t timestampNs, in CreateBleScanResultReceivedEvent()
1391 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateBleScanResultReceivedEvent()
1396 std::unique_ptr<LogEvent> CreateRestrictedLogEvent(int atomTag, int64_t timestampNs) { in CreateRestrictedLogEvent()
1403 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateRestrictedLogEvent()
1408 std::unique_ptr<LogEvent> CreateNonRestrictedLogEvent(int atomTag, int64_t timestampNs) { in CreateNonRestrictedLogEvent()
1413 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateNonRestrictedLogEvent()
1418 std::unique_ptr<LogEvent> CreatePhoneSignalStrengthChangedEvent( in CreatePhoneSignalStrengthChangedEvent()
1426 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in CreatePhoneSignalStrengthChangedEvent()
1553 void sortLogEventsByTimestamp(std::vector<std::unique_ptr<LogEvent>> *events) { in sortLogEventsByTimestamp()
1555 [](const std::unique_ptr<LogEvent>& a, const std::unique_ptr<LogEvent>& b) { in sortLogEventsByTimestamp()
2402 std::unique_ptr<LogEvent> createSocketLossInfoLogEvent(int32_t uid, int32_t lossAtomId) { in createSocketLossInfoLogEvent()
2416 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(uid /* uid */, 0 /* pid */); in createSocketLossInfoLogEvent()