Home
last modified time | relevance | path

Searched refs:addTaggedData (Results 1 – 25 of 33) sorted by relevance

12

/frameworks/base/core/tests/coretests/src/android/metrics/
DLogMakerTest.java29 builder.addTaggedData(1, "one"); in testSerialize()
30 builder.addTaggedData(2, "two"); in testSerialize()
56 builder.addTaggedData(1, "one"); in testSerializeDeserialize()
57 builder.addTaggedData(2, "two"); in testSerializeDeserialize()
93 builder.addTaggedData(0, new Object()); in testInvalidInputThrows()
103 builder.addTaggedData(1, "onetwothree"); in testValidInputTypes()
104 builder.addTaggedData(2, 123); in testValidInputTypes()
105 builder.addTaggedData(3, 123L); in testValidInputTypes()
106 builder.addTaggedData(4, 123.0F); in testValidInputTypes()
107 builder.addTaggedData(5, null); in testValidInputTypes()
[all …]
/frameworks/base/core/java/android/view/textclassifier/
DSelectionSessionLogger.java79 .addTaggedData(START_EVENT_DELTA, event.getDurationSinceSessionStart()) in writeEvent()
80 .addTaggedData(PREV_EVENT_DELTA, event.getDurationSincePreviousEvent()) in writeEvent()
81 .addTaggedData(INDEX, event.getEventIndex()) in writeEvent()
82 .addTaggedData(WIDGET_TYPE, event.getWidgetType()) in writeEvent()
83 .addTaggedData(WIDGET_VERSION, event.getWidgetVersion()) in writeEvent()
84 .addTaggedData(MODEL_NAME, SignatureParser.getModelName(event.getResultId())) in writeEvent()
85 .addTaggedData(ENTITY_TYPE, event.getEntityType()) in writeEvent()
86 .addTaggedData(SMART_START, event.getSmartStart()) in writeEvent()
87 .addTaggedData(SMART_END, event.getSmartEnd()) in writeEvent()
88 .addTaggedData(EVENT_START, event.getStart()) in writeEvent()
[all …]
DGenerateLinksLogger.java118 .addTaggedData(MetricsEvent.FIELD_LINKIFY_CALL_ID, callId) in writeStats()
119 .addTaggedData(MetricsEvent.FIELD_LINKIFY_NUM_LINKS, stats.mNumLinks) in writeStats()
120 .addTaggedData(MetricsEvent.FIELD_LINKIFY_LINK_LENGTH, stats.mNumLinksTextLength) in writeStats()
121 .addTaggedData(MetricsEvent.FIELD_LINKIFY_TEXT_LENGTH, text.length()) in writeStats()
122 .addTaggedData(MetricsEvent.FIELD_LINKIFY_LATENCY, latencyMs); in writeStats()
124 log.addTaggedData(MetricsEvent.FIELD_LINKIFY_ENTITY_TYPE, entityType); in writeStats()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenGestureLogger.java49 .addTaggedData(MetricsEvent.FIELD_GESTURE_LENGTH, length) in write()
50 .addTaggedData(MetricsEvent.FIELD_GESTURE_VELOCITY, velocity)); in write()
65 .addTaggedData(MetricsEvent.FIELD_GESTURE_X_PERCENT, xPercent) in writeAtFractionalPosition()
66 .addTaggedData(MetricsEvent.FIELD_GESTURE_Y_PERCENT, yPercent) in writeAtFractionalPosition()
67 .addTaggedData(MetricsEvent.FIELD_DEVICE_ROTATION, rotation)); in writeAtFractionalPosition()
/frameworks/base/core/java/android/app/slice/
DSliceMetrics.java47 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_AUTHORITY, uri.getAuthority()); in SliceMetrics()
48 mLogMaker.addTaggedData(MetricsEvent.FIELD_SLICE_PATH, uri.getPath()); in SliceMetrics()
90 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_AUTHORITY, subSlice.getAuthority()) in logTouch()
91 .addTaggedData(MetricsEvent.FIELD_SUBSLICE_PATH, subSlice.getPath()); in logTouch()
/frameworks/base/services/core/java/com/android/server/am/
DActivityMetricsLogger.java489 builder.addTaggedData(FIELD_CLASS_NAME, info.launchedActivity.info.name); in logAppTransitionCancel()
527 builder.addTaggedData(FIELD_CLASS_NAME, info.launchedActivityName); in logAppTransition()
530 builder.addTaggedData(APP_TRANSITION_CALLING_PACKAGE_NAME, in logAppTransition()
535 builder.addTaggedData(FIELD_INSTANT_APP_LAUNCH_TOKEN, launchToken); in logAppTransition()
537 builder.addTaggedData(APP_TRANSITION_IS_EPHEMERAL, isInstantApp ? 1 : 0); in logAppTransition()
538 builder.addTaggedData(APP_TRANSITION_DEVICE_UPTIME_SECONDS, in logAppTransition()
540 builder.addTaggedData(APP_TRANSITION_DELAY_MS, currentTransitionDelayMs); in logAppTransition()
543 builder.addTaggedData(APP_TRANSITION_STARTING_WINDOW_DELAY_MS, in logAppTransition()
547 builder.addTaggedData(APP_TRANSITION_BIND_APPLICATION_DELAY_MS, in logAppTransition()
550 builder.addTaggedData(APP_TRANSITION_WINDOWS_DRAWN_DELAY_MS, info.windowsDrawnDelayMs); in logAppTransition()
[all …]
/frameworks/base/core/java/android/view/textclassifier/logging/
DSmartSelectionEventTracker.java164 .addTaggedData(START_EVENT_DELTA, now - mSessionStartTime) in writeEvent()
165 .addTaggedData(PREV_EVENT_DELTA, prevEventDelta) in writeEvent()
166 .addTaggedData(INDEX, mIndex) in writeEvent()
167 .addTaggedData(WIDGET_TYPE, getWidgetTypeName()) in writeEvent()
168 .addTaggedData(WIDGET_VERSION, mWidgetVersion) in writeEvent()
169 .addTaggedData(MODEL_NAME, mModelName) in writeEvent()
170 .addTaggedData(ENTITY_TYPE, event.mEntityType) in writeEvent()
171 .addTaggedData(SMART_START, getSmartRangeDelta(mSmartIndices[0])) in writeEvent()
172 .addTaggedData(SMART_END, getSmartRangeDelta(mSmartIndices[1])) in writeEvent()
173 .addTaggedData(EVENT_START, getRangeDelta(event.mStart)) in writeEvent()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java37 .addTaggedData(MetricsProto.MetricsEvent.FIELD_CONTEXT, source); in visible()
53 logMaker.addTaggedData(pair.first, pair.second); in action()
71 logMaker.addTaggedData(MetricsProto.MetricsEvent.FIELD_CONTEXT, source); in actionWithSource()
97 logMaker.addTaggedData(pair.first, pair.second); in action()
/frameworks/base/services/core/java/com/android/server/power/batterysaver/
DBatterySavingStats.java519 .addTaggedData(MetricsEvent.FIELD_INTERACTIVE, interactive ? 1 : 0) in reportLocked()
520 .addTaggedData(MetricsEvent.FIELD_DURATION_MILLIS, deltaTimeMs) in reportLocked()
521 .addTaggedData(MetricsEvent.FIELD_START_BATTERY_UA, startBatteryLevelUa) in reportLocked()
522 .addTaggedData(MetricsEvent.FIELD_START_BATTERY_PERCENT, in reportLocked()
524 .addTaggedData(MetricsEvent.FIELD_END_BATTERY_UA, endBatteryLevelUa) in reportLocked()
525 .addTaggedData(MetricsEvent.FIELD_END_BATTERY_PERCENT, endBatteryLevelPercent); in reportLocked()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DHelper.java116 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SERVICE, servicePackageName) in newLogMaker()
117 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SESSION_ID, Integer.toString(sessionId)); in newLogMaker()
119 log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE, 1); in newLogMaker()
DAutofillManagerServiceImpl.java544 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SERVICE, getServicePackageName()) in assertCallerLocked()
545 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_FORGED_COMPONENT_NAME, in assertCallerLocked()
548 log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE, 1); in assertCallerLocked()
846 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_MATCH_SCORE, in logContextCommittedLocked()
904 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VALUES, numberFields)); in setUserData()
1157 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_DURATION, intDuration)); in disableAutofillForApp()
1183 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SERVICE, getServicePackageName()) in disableAutofillForActivity()
1184 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_DURATION, intDuration) in disableAutofillForActivity()
1185 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SESSION_ID, sessionId); in disableAutofillForActivity()
1187 log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE, 1); in disableAutofillForActivity()
DSession.java287 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_FORGED_COMPONENT_NAME,
496 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_REQUEST_ORDINAL, ordinal); in requestNewFillResponseLocked()
498 log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_FLAGS, flags); in requestNewFillResponseLocked()
557 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_FLAGS, flags)); in Session()
645 requestLog.addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_DATASETS, -1); in onFillRequestSuccess()
691 requestLog.addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_DATASETS, in onFillRequestSuccess()
694 requestLog.addTaggedData( in onFillRequestSuccess()
2035 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_PREVIOUS_LENGTH, length); in updateLocked()
2727 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUMBER_REQUESTS, totalRequests)); in destroyLocked()
2856 requestLog.addTaggedData(tag, value); in addTaggedDataToRequestLogLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIconLoggerImpl.java92 .addTaggedData(FIELD_NUM_STATUS_ICONS, icons.size()) in doLog()
93 .addTaggedData(FIELD_STATUS_ICONS, getBitField(icons))); in doLog()
DKeyButtonView.java303 .addTaggedData(MetricsEvent.FIELD_NAV_ACTION, action) in sendEvent()
304 .addTaggedData(MetricsEvent.FIELD_FLAGS, flags)); in sendEvent()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationRecord.java799 .addTaggedData(MetricsEvent.NOTIFICATION_SHADE_INDEX, rank) in setVisibility()
800 .addTaggedData(MetricsEvent.NOTIFICATION_SHADE_COUNT, count)); in setVisibility()
1103 .addTaggedData(MetricsEvent.NOTIFICATION_ID, sbn.getId()) in getLogMaker()
1104 .addTaggedData(MetricsEvent.NOTIFICATION_TAG, sbn.getTag()) in getLogMaker()
1105 … .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_CHANNEL_ID, getChannelIdLogTag()); in getLogMaker()
1113 .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_CHANNEL_IMPORTANCE, mImportance) in getLogMaker()
1114 .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_GROUP_ID, getGroupLogTag()) in getLogMaker()
1115 .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_GROUP_SUMMARY, in getLogMaker()
1117 .addTaggedData(MetricsEvent.NOTIFICATION_SINCE_CREATE_MILLIS, getLifespanMs(now)) in getLogMaker()
1118 .addTaggedData(MetricsEvent.NOTIFICATION_SINCE_UPDATE_MILLIS, getFreshnessMs(now)) in getLogMaker()
[all …]
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java106 when(maker.addTaggedData(anyInt(), any())).thenReturn(maker); in testPopulate()
109 verify(maker).addTaggedData(eq(FIELD_QS_VALUE), eq(1)); in testPopulate()
110 verify(maker).addTaggedData(eq(FIELD_QS_POSITION), eq(POSITION)); in testPopulate()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DAutoFillUI.java185 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_FILTERTEXT_LEN, in showFillUi()
187 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_DATASETS, in showFillUi()
282 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_IDS, numIds); in showSaveUi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java195 logMaker.addTaggedData(FIELD_QS_VALUE, ((BooleanState) mState).value ? 1 : 0); in populate()
198 .addTaggedData(FIELD_CONTEXT, mIsFullQs) in populate()
199 .addTaggedData(FIELD_QS_POSITION, mHost.indexOf(mTileSpec)); in populate()
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolver.java516 .addTaggedData(FIELD_INSTANT_APP_RESOLUTION_DELAY_MS, in logMetrics()
518 .addTaggedData(FIELD_INSTANT_APP_LAUNCH_TOKEN, token) in logMetrics()
519 .addTaggedData(FIELD_INSTANT_APP_RESOLUTION_STATUS, new Integer(status)); in logMetrics()
/frameworks/base/services/core/java/com/android/server/
DBatteryService.java492 builder.addTaggedData(MetricsEvent.FIELD_PLUG_TYPE, mPlugType); in processValuesLocked()
493 builder.addTaggedData(MetricsEvent.FIELD_BATTERY_LEVEL_START, in processValuesLocked()
516 builder.addTaggedData(MetricsEvent.FIELD_PLUG_TYPE, mLastPlugType); in processValuesLocked()
517 builder.addTaggedData(MetricsEvent.FIELD_CHARGING_DURATION_MILLIS, in processValuesLocked()
519 builder.addTaggedData(MetricsEvent.FIELD_BATTERY_LEVEL_START, in processValuesLocked()
521 builder.addTaggedData(MetricsEvent.FIELD_BATTERY_LEVEL_END, in processValuesLocked()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java162 return super.populate(logMaker).addTaggedData(FIELD_QS_MODE, mController.getAutoModeRaw()); in populate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationSnooze.java351 .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_SNOOZE_INDEX, index) in logOptionSelection()
352 .addTaggedData(MetricsEvent.FIELD_NOTIFICATION_SNOOZE_DURATION_MS, duration)); in logOptionSelection()
/frameworks/base/core/java/com/android/internal/app/
DResolverComparator.java429 log.addTaggedData(MetricsEvent.FIELD_IS_CATEGORY_USED, isCategoryUsed); in logMetrics()
430 log.addTaggedData(MetricsEvent.FIELD_RANKED_POSITION, selectedPos); in logMetrics()
/frameworks/base/core/java/android/metrics/
DLogMaker.java242 public LogMaker addTaggedData(int tag, Object value) { in addTaggedData() method in LogMaker
/frameworks/base/core/java/android/view/autofill/
DAutofillManager.java1896 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VALUES, itemCount) in autofill()
1897 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_NUM_VIEWS_FILLED, numApplied)); in autofill()
1903 .addTaggedData(MetricsEvent.FIELD_AUTOFILL_SESSION_ID, mSessionId); in newLog()
1906 log.addTaggedData(MetricsEvent.FIELD_AUTOFILL_COMPAT_MODE, 1); in newLog()

12