Home
last modified time | relevance | path

Searched refs:logEvent (Results 1 – 25 of 55) sorted by relevance

123

/packages/modules/StatsD/statsd/tests/
DSocketListener_test.cpp95 auto logEvent = mEventQueue.waitPop(); in TEST_P() local
96 EXPECT_TRUE(logEvent->isValid()); in TEST_P()
97 EXPECT_EQ(kAtomId + i, logEvent->GetTagId()); in TEST_P()
98 EXPECT_EQ(logEvent->isParsedHeaderOnly(), GetParam()); in TEST_P()
99 lastEventTs = logEvent->GetElapsedTimestampNs(); in TEST_P()
114 auto logEvent = mEventQueue.waitPop(); in TEST_P() local
115 EXPECT_TRUE(logEvent->isValid()); in TEST_P()
116 EXPECT_EQ(kAtomId + i, logEvent->GetTagId()); in TEST_P()
117 EXPECT_EQ(logEvent->isParsedHeaderOnly(), GetParam()); in TEST_P()
137 auto logEvent = eventQueue.waitPop(); in TEST() local
[all …]
DLogEvent_test.cpp50 bool createFieldWithBoolAnnotationLogEvent(LogEvent* logEvent, uint8_t typeId, uint8_t annotationId, in createFieldWithBoolAnnotationLogEvent() argument
61 const LogEvent::BodyBufferInfo bodyInfo = logEvent->parseHeader(buf, size); in createFieldWithBoolAnnotationLogEvent()
62 logEvent->parseBody(bodyInfo); in createFieldWithBoolAnnotationLogEvent()
64 logEvent->parseBuffer(buf, size); in createFieldWithBoolAnnotationLogEvent()
68 return logEvent->isValid(); in createFieldWithBoolAnnotationLogEvent()
71 bool createFieldWithIntAnnotationLogEvent(LogEvent* logEvent, uint8_t typeId, uint8_t annotationId, in createFieldWithIntAnnotationLogEvent() argument
82 const LogEvent::BodyBufferInfo bodyInfo = logEvent->parseHeader(buf, size); in createFieldWithIntAnnotationLogEvent()
83 logEvent->parseBody(bodyInfo); in createFieldWithIntAnnotationLogEvent()
85 logEvent->parseBuffer(buf, size); in createFieldWithIntAnnotationLogEvent()
89 return logEvent->isValid(); in createFieldWithIntAnnotationLogEvent()
[all …]
Dstatsd_test_util.cpp727 bool parseStatsEventToLogEvent(AStatsEvent* statsEvent, LogEvent* logEvent) { in parseStatsEventToLogEvent() argument
732 const bool result = logEvent->parseBuffer(buf, size); in parseStatsEventToLogEvent()
739 void CreateTwoValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateTwoValueLogEvent() argument
748 parseStatsEventToLogEvent(statsEvent, logEvent); in CreateTwoValueLogEvent()
753 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateTwoValueLogEvent() local
754 CreateTwoValueLogEvent(logEvent.get(), atomId, eventTimeNs, value1, value2); in CreateTwoValueLogEvent()
755 return logEvent; in CreateTwoValueLogEvent()
758 void CreateThreeValueLogEvent(LogEvent* logEvent, int atomId, int64_t eventTimeNs, int32_t value1, in CreateThreeValueLogEvent() argument
768 parseStatsEventToLogEvent(statsEvent, logEvent); in CreateThreeValueLogEvent()
773 shared_ptr<LogEvent> logEvent = std::make_shared<LogEvent>(/*uid=*/0, /*pid=*/0); in CreateThreeValueLogEvent() local
[all …]
DStatsLogProcessor_test.cpp1894 shared_ptr<LogEvent> logEvent = makeUidLogEvent(atomId, eventTimeNs, hostUid, field1, field2); in TEST() local
1896 processor->OnLogEvent(logEvent.get()); in TEST()
1898 const vector<FieldValue>* actualFieldValues = &logEvent->getValues(); in TEST()
1919 shared_ptr<LogEvent> logEvent = in TEST() local
1922 processor->OnLogEvent(logEvent.get()); in TEST()
1924 const vector<FieldValue>* actualFieldValues = &logEvent->getValues(); in TEST()
1949 shared_ptr<LogEvent> logEvent = makeExtraUidsLogEvent(atomId, eventTimeNs, isolatedUid, field1, in TEST() local
1952 processor->OnLogEvent(logEvent.get()); in TEST()
1954 const vector<FieldValue>* actualFieldValues = &logEvent->getValues(); in TEST()
1977 shared_ptr<LogEvent> logEvent = makeAttributionLogEvent(atomId, eventTimeNs, {hostUid, 200}, in TEST() local
[all …]
DLogEntryMatcher_test.cpp45 void makeIntLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeIntLogEvent() argument
52 parseStatsEventToLogEvent(statsEvent, logEvent); in makeIntLogEvent()
55 void makeFloatLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeFloatLogEvent() argument
62 parseStatsEventToLogEvent(statsEvent, logEvent); in makeFloatLogEvent()
65 void makeStringLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeStringLogEvent() argument
72 parseStatsEventToLogEvent(statsEvent, logEvent); in makeStringLogEvent()
75 void makeIntWithBoolAnnotationLogEvent(LogEvent* logEvent, const int32_t atomId, in makeIntWithBoolAnnotationLogEvent() argument
83 parseStatsEventToLogEvent(statsEvent, logEvent); in makeIntWithBoolAnnotationLogEvent()
86 void makeAttributionLogEvent(LogEvent* logEvent, const int32_t atomId, const int64_t timestamp, in makeAttributionLogEvent() argument
96 parseStatsEventToLogEvent(statsEvent, logEvent); in makeAttributionLogEvent()
[all …]
/packages/services/AlternativeNetworkAccess/tests/src/com/android/ons/
DONSStatsTest.java211 assertTrue(mONSStats.logEvent(info)); in testLogEvent()
218 assertFalse(mONSStats.logEvent(info)); in testIgnoredLogEvents()
221 assertFalse(mONSStats.logEvent(info)); in testIgnoredLogEvents()
224 assertFalse(mONSStats.logEvent(info)); in testIgnoredLogEvents()
227 assertFalse(mONSStats.logEvent(info)); in testIgnoredLogEvents()
237 assertTrue(mONSStats.logEvent(info)); in testRepeatedLogEvents()
240 assertFalse(mONSStats.logEvent(info)); in testRepeatedLogEvents()
241 assertFalse(mONSStats.logEvent(info)); in testRepeatedLogEvents()
248 assertTrue(mONSStats.logEvent(info)); in testRepeatedAllowedLogEvents()
251 assertTrue(mONSStats.logEvent(info)); in testRepeatedAllowedLogEvents()
[all …]
/packages/modules/StatsD/statsd/tests/utils/
DDbUtils_test.cpp75 LogEvent logEvent = makeLogEvent(statsEvent); in TEST_F() local
76 vector<LogEvent> events{logEvent}; in TEST_F()
78 EXPECT_TRUE(createTableIfNeeded(key, metricId, logEvent)); in TEST_F()
101 LogEvent logEvent = makeLogEvent(statsEvent); in TEST_F() local
102 vector<LogEvent> events{logEvent}; in TEST_F()
104 EXPECT_TRUE(createTableIfNeeded(key, metricId, logEvent)); in TEST_F()
129 LogEvent logEvent = makeLogEvent(statsEvent); in TEST_F() local
130 vector<LogEvent> events{logEvent}; in TEST_F()
132 EXPECT_TRUE(createTableIfNeeded(key, metricId2, logEvent)); in TEST_F()
156 LogEvent logEvent = makeLogEvent(statsEvent); in TEST_F() local
[all …]
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/instrumentation/
DMetricsFeatureProvider.java47 logEvent(event); in logGetSuggestion()
57 logEvent(event); in logDismissSuggestion()
67 logEvent(event); in logLaunchSuggestion()
79 logEvent(event); in logSearchResultClick()
82 public void logEvent(int eventType) { in logEvent() method in MetricsFeatureProvider
83 logEvent(eventType, 0 /* latency */); in logEvent()
86 public void logEvent(int eventType, long latency) { in logEvent() method in MetricsFeatureProvider
90 logEvent(event); in logEvent()
93 private void logEvent(SettingsIntelligenceEvent event) { in logEvent() method in MetricsFeatureProvider
/packages/modules/OnDevicePersonalization/federatedcompute/src/com/android/federatedcompute/services/common/
DTrainingEventLogger.java74 logEvent(event); in logTaskNotStarted()
83 logEvent(event); in logCheckinStarted()
155 logEvent(event); in logComputationCompleted()
164 logEvent(event); in logEventWithDuration()
179 logEvent(event); in logEventWithExampleStats()
186 logEvent(event); in logEventKind()
195 logEvent(event); in logResultUploadStarted()
218 logEvent(event); in logFailureResultUploadStarted()
236 logEvent(event); in logNetworkEvent()
270 logEvent(event); in logKeyAttestationLatencyEvent()
[all …]
/packages/modules/StatsD/statsd/src/socket/
DStatsSocketListener.cpp183 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(uid, pid); in processStatsEventBuffer() local
186 const LogEvent::BodyBufferInfo bodyInfo = logEvent->parseHeader(msg, len); in processStatsEventBuffer()
187 if (filter.isAtomInUse(logEvent->GetTagId())) { in processStatsEventBuffer()
188 logEvent->parseBody(bodyInfo); in processStatsEventBuffer()
191 logEvent->parseBuffer(msg, len); in processStatsEventBuffer()
194 const int32_t atomId = logEvent->GetTagId(); in processStatsEventBuffer()
195 const bool isAtomSkipped = logEvent->isParsedHeaderOnly(); in processStatsEventBuffer()
196 const int64_t atomTimestamp = logEvent->GetElapsedTimestampNs(); in processStatsEventBuffer()
205 const std::optional<SocketLossInfo>& lossInfo = toSocketLossInfo(*logEvent); in processStatsEventBuffer()
213 const auto [success, oldestTimestamp, queueSize] = queue.push(std::move(logEvent)); in processStatsEventBuffer()
/packages/apps/Launcher3/quickstep/src/com/android/launcher3/taskbar/
DTaskbarNavButtonController.java137 logEvent(LAUNCHER_TASKBAR_BACK_BUTTON_TAP); in onButtonClick()
141 logEvent(LAUNCHER_TASKBAR_HOME_BUTTON_TAP); in onButtonClick()
145 logEvent(LAUNCHER_TASKBAR_OVERVIEW_BUTTON_TAP); in onButtonClick()
149 logEvent(LAUNCHER_TASKBAR_IME_SWITCHER_BUTTON_TAP); in onButtonClick()
153 logEvent(LAUNCHER_TASKBAR_A11Y_BUTTON_TAP); in onButtonClick()
173 logEvent(LAUNCHER_TASKBAR_HOME_BUTTON_LONGPRESS); in onButtonLongClick()
177 logEvent(LAUNCHER_TASKBAR_A11Y_BUTTON_LONGPRESS); in onButtonLongClick()
181 logEvent(LAUNCHER_TASKBAR_BACK_BUTTON_LONGPRESS); in onButtonLongClick()
184 logEvent(LAUNCHER_TASKBAR_OVERVIEW_BUTTON_LONGPRESS); in onButtonLongClick()
276 private void logEvent(StatsLogManager.LauncherEvent event) { in logEvent() method in TaskbarNavButtonController
/packages/apps/Settings/src/com/android/settings/applications/specialaccess/interactacrossprofiles/
DInteractAcrossProfilesDetails.java179 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_LAUNCHED_FROM_APP); in logPageLaunchMetrics()
181 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_LAUNCHED_FROM_SETTINGS); in logPageLaunchMetrics()
187 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_ADMIN_RESTRICTED); in logNonConfigurableAppMetrics()
191 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_MISSING_INSTALL_BANNER_INTENT); in logNonConfigurableAppMetrics()
194 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_MISSING_PERSONAL_APP); in logNonConfigurableAppMetrics()
198 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_MISSING_WORK_APP); in logNonConfigurableAppMetrics()
202 private void logEvent(int eventId) { in logEvent() method in InteractAcrossProfilesDetails
290 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_PERMISSION_REVOKED); in handleSwitchPreferenceClick()
333 logEvent(DevicePolicyEnums.CROSS_PROFILE_SETTINGS_PAGE_USER_CONSENTED); in showConsentDialog()
343 logEvent( in showConsentDialog()
[all …]
/packages/services/Car/tests/MultiDisplayTest/src/com/google/android/car/multidisplaytest/ime/
DInputTestFragment.java99 mWatchdog.logEvent(logMessage); in setListners()
108 mWatchdog.logEvent("EditText view has input connection with IME"); in setListners()
110 mWatchdog.logEvent("EditText view doesn't have input connection with IME"); in setListners()
118 mWatchdog.logEvent("Clear botton test..."); in onClearButtonClick()
/packages/services/AlternativeNetworkAccess/src/com/android/ons/
DONSProfileActivator.java128 mONSStats.logEvent(new ONSStatsInfo().setProvisioningResult(res));
141 mONSStats.logEvent(new ONSStatsInfo().setProvisioningResult(res)); in handleCarrierConfigChange()
156 mONSStats.logEvent(new ONSStatsInfo().setProvisioningResult(res)); in onOppSubscriptionDeleted()
310 mONSStats.logEvent(new ONSStatsInfo() in onDownloadComplete()
323 mONSStats.logEvent(new ONSStatsInfo() in onDownloadComplete()
329 mONSStats.logEvent(new ONSStatsInfo() in onDownloadComplete()
392 mONSStats.logEvent(new ONSStatsInfo() in onDownloadError()
575 mONSStats.logEvent(new ONSStatsInfo().setProvisioningResult(res)); in onAvailable()
/packages/modules/StatsD/statsd/src/utils/
DDbUtils.cpp60 static std::vector<std::string> getExpectedTableSchema(const LogEvent& logEvent) { in getExpectedTableSchema() argument
62 for (const FieldValue& fieldValue : logEvent.getValues()) { in getExpectedTableSchema()
230 for (auto& logEvent : events) { in getInsertSqlStmt() local
231 result += StringPrintf("(%d, %lld, %lld,", logEvent.GetTagId(), in getInsertSqlStmt()
232 (long long)logEvent.GetElapsedTimestampNs(), in getInsertSqlStmt()
233 (long long)logEvent.GetLogdTimestampNs()); in getInsertSqlStmt()
234 for (auto& fieldValue : logEvent.getValues()) { in getInsertSqlStmt()
253 for (auto& logEvent : events) { in getInsertSqlStmt() local
254 for (auto& fieldValue : logEvent.getValues()) { in getInsertSqlStmt()
/packages/apps/SettingsIntelligence/src/com/android/settings/intelligence/search/
DSearchFragment.java171 mMetricsFeatureProvider.logEvent(SettingsIntelligenceEvent.OPEN_SEARCH_PAGE); in onStart()
187 mMetricsFeatureProvider.logEvent(SettingsIntelligenceEvent.LEAVE_SEARCH_PAGE); in onStop()
191 mMetricsFeatureProvider.logEvent( in onStop()
235 mMetricsFeatureProvider.logEvent(SettingsIntelligenceEvent.PERFORM_SEARCH); in onQueryTextChange()
308 mMetricsFeatureProvider.logEvent(SettingsIntelligenceEvent.SHOW_SEARCH_NO_RESULT, in onSearchResultsDisplayed()
315 mMetricsFeatureProvider.logEvent(SettingsIntelligenceEvent.SHOW_SEARCH_RESULT, in onSearchResultsDisplayed()
323 mMetricsFeatureProvider.logEvent(vh.getClickActionMetricName()); in onSavedQueryClicked()
/packages/modules/StatsD/statsd/tests/log_event/
DLogEventQueue_test.cpp48 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in makeLogEvent() local
49 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in makeLogEvent()
50 EXPECT_EQ(logEvent->GetElapsedTimestampNs(), timestampNs); in makeLogEvent()
51 return logEvent; in makeLogEvent()
/packages/modules/Connectivity/tests/common/java/android/net/
DCaptivePortalTest.java59 public void logEvent(int eventId, String packageName) throws RemoteException { in logEvent() method in CaptivePortalTest.MyCaptivePortalImpl
108 final MyCaptivePortalImpl result = runCaptivePortalTest(c -> c.logEvent( in testLogEvent()
116 final MyCaptivePortalImpl result = runCaptivePortalTest(c -> c.logEvent( in testLogEvent_UntilR()
/packages/services/Car/tests/GarageModeTestApp/src/com/google/android/car/garagemode/testapp/
DOffcarTestingFragment.java145 mWatchdog.logEvent("Entering garage mode..."); in onEnterGarageModeBtnClick()
153 mWatchdog.logEvent("Exiting garage mode..."); in onExitGarageModeBtnClick()
179 mWatchdog.logEvent("Job duration is now: " + mJobDurationSelected + "s"); in applyJobDuration()
184 mWatchdog.logEvent("Job network requirement changed to: " + value); in applyNetworkTypeRequirement()
/packages/modules/StatsD/statsd/tests/metrics/
DRestrictedEventMetricProducer_test.cpp106 LogEvent logEvent(/*uid=*/0, /*pid=*/0); in TEST_F() local
107 parseStatsEventToLogEvent(statsEvent, &logEvent); in TEST_F()
109 producer.onMatchedLogEvent(/*matcherIndex=1*/ 1, logEvent); in TEST_F()
121 3 + logEvent.getValues().size()); // col 0:2 are reserved for metadata. in TEST_F()
/packages/apps/Nfc/tests/unit/src/com/android/nfc/
DNfcEventLogTest.java82 mNfcEventLog.logEvent(eventType); in testLogEvent()
106 mNfcEventLog.logEvent(eventType); in testMultipleLogEvents()
109 mNfcEventLog.logEvent(eventType); in testMultipleLogEvents()
/packages/modules/StatsD/statsd/tests/state/
DStateTracker_test.cpp80 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in buildIncorrectOverlayEvent() local
81 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in buildIncorrectOverlayEvent()
82 return logEvent; in buildIncorrectOverlayEvent()
96 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in buildOverlayEventBadStateType() local
97 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in buildOverlayEventBadStateType()
98 return logEvent; in buildOverlayEventBadStateType()
/packages/modules/StatsD/statsd/tests/external/
DStatsPuller_test.cpp69 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in createSimpleEvent() local
70 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in createSimpleEvent()
71 return logEvent; in createSimpleEvent()
/packages/modules/StatsD/statsd/tests/e2e/
DRestrictedEventMetric_e2e_test.cpp186 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in TEST_F() local
187 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in TEST_F()
190 events.push_back(std::move(logEvent)); in TEST_F()
232 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in TEST_F() local
233 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in TEST_F()
235 events.push_back(std::move(logEvent)); in TEST_F()
278 std::unique_ptr<LogEvent> logEvent = std::make_unique<LogEvent>(/*uid=*/0, /*pid=*/0); in TEST_F() local
279 parseStatsEventToLogEvent(statsEvent, logEvent.get()); in TEST_F()
282 events.push_back(std::move(logEvent)); in TEST_F()
/packages/modules/StatsD/framework/api/
Dcurrent.txt6 method public static boolean logEvent(int);

123