Home
last modified time | relevance | path

Searched refs:logMaker (Results 1 – 15 of 15) sorted by relevance

/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/
DNotificationMediaTemplateViewWrapperTest.java112 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_NoSeekbar()
113 logMaker.getCategory() == MetricsEvent.MEDIA_NOTIFICATION_SEEKBAR in testLogging_NoSeekbar()
114 && logMaker.getType() == MetricsEvent.TYPE_CLOSE in testLogging_NoSeekbar()
117 verify(mMetricsLogger, times(0)).write(argThat(logMaker -> in testLogging_NoSeekbar()
118 logMaker.getCategory() == MetricsEvent.MEDIA_NOTIFICATION_SEEKBAR in testLogging_NoSeekbar()
119 && logMaker.getType() == MetricsEvent.TYPE_OPEN in testLogging_NoSeekbar()
128 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarNoScrubber()
129 logMaker.getCategory() == MetricsEvent.MEDIA_NOTIFICATION_SEEKBAR in testLogging_HasSeekbarNoScrubber()
130 && logMaker.getType() == MetricsEvent.TYPE_OPEN in testLogging_HasSeekbarNoScrubber()
136 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarNoScrubber()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/notification/
DStatusBarNotificationTest.java80 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker() local
82 (String) logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_CHANNEL_ID)); in testLogMaker()
83 assertEquals(PKG, logMaker.getPackageName()); in testLogMaker()
84 assertEquals(ID, logMaker.getTaggedData(MetricsEvent.NOTIFICATION_ID)); in testLogMaker()
85 assertEquals(TAG, logMaker.getTaggedData(MetricsEvent.NOTIFICATION_TAG)); in testLogMaker()
87 logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_GROUP_ID)); in testLogMaker()
89 logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_GROUP_SUMMARY)); in testLogMaker()
90 assertNull(logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_CATEGORY)); in testLogMaker()
91 assertNull(logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_STYLE)); in testLogMaker()
92 assertNull(logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_PEOPLE)); in testLogMaker()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java34 final LogMaker logMaker = new LogMaker(category) in visible() local
37 MetricsLogger.action(logMaker); in visible()
47 final LogMaker logMaker = new LogMaker(category) in action() local
51 logMaker.addTaggedData(pair.first, pair.second); in action()
54 MetricsLogger.action(logMaker); in action()
69 final LogMaker logMaker = new LogMaker(category) in action() local
73 MetricsLogger.action(logMaker); in action()
78 final LogMaker logMaker = new LogMaker(action) in action() local
81 logMaker.addTaggedData(MetricsProto.MetricsEvent.FIELD_CONTEXT, pageId); in action()
84 logMaker.addTaggedData(MetricsProto.MetricsEvent.FIELD_SETTINGS_PREFERENCE_CHANGE_NAME, in action()
[all …]
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/logging/
DTextClassifierEventTronLoggerTest.java81 LogMaker logMaker = captor.getValue(); in testWriteEvent() local
82 assertThat(logMaker.getCategory()).isEqualTo(CONVERSATION_ACTIONS); in testWriteEvent()
83 assertThat(logMaker.getSubtype()).isEqualTo(ACTION_TEXT_SELECTION_SMART_SHARE); in testWriteEvent()
84 assertThat(logMaker.getTaggedData(FIELD_TEXT_CLASSIFIER_FIRST_ENTITY_TYPE)) in testWriteEvent()
86 assertThat((float) logMaker.getTaggedData(FIELD_TEXT_CLASSIFIER_SCORE)) in testWriteEvent()
89 assertThat(logMaker.getTaggedData(FIELD_TEXT_CLASSIFIER_EVENT_TIME)).isNull(); in testWriteEvent()
90 assertThat(logMaker.getPackageName()).isEqualTo(PACKAGE_NAME); in testWriteEvent()
91 assertThat(logMaker.getTaggedData(FIELD_TEXT_CLASSIFIER_WIDGET_TYPE)) in testWriteEvent()
/frameworks/base/services/tests/uiservicestests/src/com/android/server/notification/
DNotificationRecordTest.java412 final LogMaker logMaker = record.getLogMaker(timestamp); in testLogMaker() local
414 assertNull(logMaker.getTaggedData(MetricsEvent.NOTIFICATION_SHADE_INDEX)); in testLogMaker()
416 (String) logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_CHANNEL_ID)); in testLogMaker()
418 logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_CHANNEL_IMPORTANCE)); in testLogMaker()
420 (int) logMaker.getTaggedData(MetricsEvent.NOTIFICATION_SINCE_CREATE_MILLIS)); in testLogMaker()
422 (int) logMaker.getTaggedData(MetricsEvent.NOTIFICATION_SINCE_UPDATE_MILLIS)); in testLogMaker()
424 (int) logMaker.getTaggedData(MetricsEvent.NOTIFICATION_SINCE_VISIBLE_MILLIS)); in testLogMaker()
426 (int) logMaker.getTaggedData(MetricsEvent.NOTIFICATION_SINCE_INTERRUPTION_MILLIS)); in testLogMaker()
428 assertNull(logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_IMPORTANCE_EXPLANATION)); in testLogMaker()
429 assertNull(logMaker.getTaggedData(MetricsEvent.FIELD_NOTIFICATION_IMPORTANCE_INITIAL)); in testLogMaker()
[all …]
/frameworks/base/core/java/android/service/notification/
DStatusBarNotification.java415 LogMaker logMaker = new LogMaker(MetricsEvent.VIEW_UNKNOWN).setPackageName(getPackageName()) in getLogMaker() local
429 logMaker.addTaggedData(MetricsEvent.FIELD_NOTIFICATION_STYLE, in getLogMaker()
435 logMaker.addTaggedData(MetricsEvent.FIELD_NOTIFICATION_PEOPLE, people.size()); in getLogMaker()
438 return logMaker; in getLogMaker()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java181 public LogMaker populate(LogMaker logMaker) { in populate() argument
182 return super.populate(logMaker) in populate()
/frameworks/base/services/core/java/com/android/server/pm/
DShortcutUser.java664 final LogMaker logMaker = new LogMaker(MetricsEvent.ACTION_SHORTCUTS_CHANGED); in logSharingShortcutStats() local
665 logger.write(logMaker.setType(MetricsEvent.SHORTCUTS_CHANGED_USER_ID) in logSharingShortcutStats()
667 logger.write(logMaker.setType(MetricsEvent.SHORTCUTS_CHANGED_PACKAGE_COUNT) in logSharingShortcutStats()
669 logger.write(logMaker.setType(MetricsEvent.SHORTCUTS_CHANGED_SHORTCUT_COUNT) in logSharingShortcutStats()
DInstantAppResolver.java507 final LogMaker logMaker = new LogMaker(action) in logMetrics() local
513 getLogger().write(logMaker); in logMetrics()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/
DNotificationInfoTest.java587 verify(mMetricsLogger).write(argThat(logMaker -> in testBindNotificationLogging_notBlockingHelper()
588 logMaker.getCategory() == MetricsEvent.ACTION_NOTE_CONTROLS in testBindNotificationLogging_notBlockingHelper()
589 && logMaker.getType() == MetricsEvent.TYPE_OPEN in testBindNotificationLogging_notBlockingHelper()
590 && logMaker.getSubtype() == MetricsEvent.BLOCKING_HELPER_UNKNOWN in testBindNotificationLogging_notBlockingHelper()
612 verify(mMetricsLogger).write(argThat(logMaker -> in testBindNotificationLogging_BlockingHelper()
613 logMaker.getCategory() == MetricsEvent.ACTION_NOTE_CONTROLS in testBindNotificationLogging_BlockingHelper()
614 && logMaker.getType() == MetricsEvent.TYPE_OPEN in testBindNotificationLogging_BlockingHelper()
615 && logMaker.getSubtype() == MetricsEvent.BLOCKING_HELPER_DISPLAY in testBindNotificationLogging_BlockingHelper()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java71 default LogMaker populate(LogMaker logMaker) { in populate() argument
72 return logMaker; in populate()
/frameworks/base/core/java/com/android/internal/os/
DZygoteConnection.java451 LogMaker logMaker = new LogMaker(MetricsEvent.ACTION_HIDDEN_API_ACCESSED) in logUsage() local
457 logMaker.addTaggedData(MetricsEvent.FIELD_HIDDEN_API_ACCESS_DENIED, 1); in logUsage()
459 mMetricsLogger.write(logMaker); in logUsage()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java225 public LogMaker populate(LogMaker logMaker) { in populate() argument
227 logMaker.addTaggedData(FIELD_QS_VALUE, ((BooleanState) mState).value ? 1 : 0); in populate()
229 return logMaker.setSubtype(getMetricsCategory()) in populate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java174 public LogMaker populate(LogMaker logMaker) { in populate() argument
175 return super.populate(logMaker).setComponentName(mComponent); in populate()
/frameworks/base/services/core/java/com/android/server/notification/
DNotificationManagerService.java998 LogMaker logMaker = r.getLogMaker()
1012 mMetricsLogger.write(logMaker);
1057 LogMaker logMaker = r.getLogMaker() in logSmartSuggestionsVisible() local
1072 mMetricsLogger.write(logMaker); in logSmartSuggestionsVisible()
6528 final LogMaker logMaker = r.getItemLogMaker()
6532 logMaker.addTaggedData(MetricsEvent.NOTIFICATION_SHADE_INDEX, rank)
6535 MetricsLogger.action(logMaker);