/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/ |
D | MetricsLoggerCompat.java | 24 private final MetricsLogger mMetricsLogger; field in MetricsLoggerCompat 28 mMetricsLogger = new MetricsLogger(); in MetricsLoggerCompat() 32 mMetricsLogger.action(category); in action() 36 mMetricsLogger.action(category, value); in action() 40 mMetricsLogger.visible(category); in visible() 44 mMetricsLogger.hidden(category); in hidden() 48 mMetricsLogger.visibility(category, visible); in visibility()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/ |
D | GestureLauncherServiceTest.java | 83 private @Mock MetricsLogger mMetricsLogger; field in GestureLauncherServiceTest 108 mGestureLauncherService = new GestureLauncherService(mContext, mMetricsLogger); in setup() 188 verify(mMetricsLogger).histogram("power_consecutive_short_tap_count", 1); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() 189 verify(mMetricsLogger).histogram("power_double_tap_interval", (int) eventTime); in testInterceptPowerKeyDown_firstPowerDownCameraPowerGestureOnInteractive() 218 verify(mMetricsLogger, never()) in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 222 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 229 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalInBoundsCameraPowerGestureOffInteractive() 262 verify(mMetricsLogger, never()) in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 266 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() 273 verify(mMetricsLogger, times(2)).histogram( in testInterceptPowerKeyDown_intervalMidBoundsCameraPowerGestureOffInteractive() [all …]
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationMediaTemplateViewWrapperTest.java | 62 private MetricsLogger mMetricsLogger; field in NotificationMediaTemplateViewWrapperTest 69 mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); in setUp() 112 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_NoSeekbar() 117 verify(mMetricsLogger, times(0)).write(argThat(logMaker -> in testLogging_NoSeekbar() 128 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarNoScrubber() 136 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarNoScrubber() 147 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarAndScrubber() 152 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_HasSeekbarAndScrubber() 169 verify(mMetricsLogger).write(argThat(logMaker -> in testLogging_UpdateSeekbar()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceMetrics.java | 38 private MetricsLogger mMetricsLogger; field in SliceMetrics 45 mMetricsLogger = new MetricsLogger(); in SliceMetrics() 58 mMetricsLogger.write(mLogMaker); in logVisible() 69 mMetricsLogger.write(mLogMaker); in logHidden() 92 mMetricsLogger.write(mLogMaker); in logTouch()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/ |
D | BatterySavingStatsTest.java | 103 public MetricsLogger mMetricsLogger = mock(MetricsLogger.class); field in BatterySavingStatsTest 232 verify(mMetricsLogger, times(0)).write(any(LogMaker.class)); in assertLog() 247 verify(mMetricsLogger, times(0)).count(anyString(), anyInt()); in testMetricsLogger() 252 reset(mMetricsLogger); in testMetricsLogger() 263 reset(mMetricsLogger); in testMetricsLogger() 272 verify(mMetricsLogger, times(0)).count(anyString(), anyInt()); in testMetricsLogger() 282 verify(mMetricsLogger, times(0)).count(anyString(), anyInt()); in testMetricsLogger() 294 reset(mMetricsLogger); in testMetricsLogger() 302 reset(mMetricsLogger); in testMetricsLogger() 308 verify(mMetricsLogger, times(0)).count(anyString(), anyInt()); in testMetricsLogger()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/ |
D | QSDetailTest.java | 50 private MetricsLogger mMetricsLogger; field in QSDetailTest 62 mMetricsLogger = mDependency.injectMockDependency(MetricsLogger.class); in setup() 81 verify(mMetricsLogger).visible(eq(mMockDetailAdapter.getMetricsCategory())); in testShowDetail_Metrics() 83 verify(mMetricsLogger).hidden(eq(mMockDetailAdapter.getMetricsCategory())); in testShowDetail_Metrics() 98 verify(mMetricsLogger).action(eq(ACTION_QS_MORE_SETTINGS), eq(metricsCategory)); in testMoreSettingsButton()
|
D | QSPanelTest.java | 59 private MetricsLogger mMetricsLogger; field in QSPanelTest 80 mMetricsLogger = mDependency.injectMockDependency(MetricsLogger.class); in setup() 99 verify(mMetricsLogger).visibility(eq(MetricsEvent.QS_PANEL), eq(true)); in testSetExpanded_Metrics() 101 verify(mMetricsLogger).visibility(eq(MetricsEvent.QS_PANEL), eq(false)); in testSetExpanded_Metrics()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 74 private MetricsLogger mMetricsLogger; field in QSTileImplTest 86 mMetricsLogger = mDependency.injectMockDependency(MetricsLogger.class); in setup() 101 verify(mMetricsLogger).write(argThat(new TileLogMatcher(ACTION_QS_CLICK))); in testClick_Metrics() 108 verify(mMetricsLogger).write(mLogCaptor.capture()); in testClick_Metrics_Status_Bar_Status() 116 verify(mMetricsLogger).write(argThat(new TileLogMatcher(ACTION_QS_SECONDARY_CLICK))); in testSecondaryClick_Metrics() 123 verify(mMetricsLogger).write(mLogCaptor.capture()); in testSecondaryClick_Metrics_Status_Bar_Status() 131 verify(mMetricsLogger).write(argThat(new TileLogMatcher(ACTION_QS_LONG_PRESS))); in testLongClick_Metrics() 138 verify(mMetricsLogger).write(mLogCaptor.capture()); in testLongClick_Metrics_Status_Bar_Status()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/wrapper/ |
D | NotificationMediaTemplateViewWrapper.java | 70 private MetricsLogger mMetricsLogger; field in NotificationMediaTemplateViewWrapper 88 mMetricsLogger.write(newLog(MetricsEvent.TYPE_UPDATE)); 165 mMetricsLogger = Dependency.get(MetricsLogger.class); in NotificationMediaTemplateViewWrapper() 206 mMetricsLogger.write(newLog(MetricsEvent.TYPE_CLOSE)); in resolveViews() 211 mMetricsLogger.write(newLog(MetricsEvent.TYPE_CLOSE)); in resolveViews() 217 mMetricsLogger.write(newLog(MetricsEvent.TYPE_OPEN)); in resolveViews() 230 mMetricsLogger.write(newLog(MetricsEvent.TYPE_OPEN)); in resolveViews() 241 mMetricsLogger.write(newLog(MetricsEvent.TYPE_DETAIL, 1)); in resolveViews() 302 mMetricsLogger.write(newLog(MetricsEvent.TYPE_DETAIL, isVisible ? 1 : 0)); in setScrubberVisible()
|
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/logging/ |
D | TextClassifierEventTronLoggerTest.java | 54 private MetricsLogger mMetricsLogger; field in TextClassifierEventTronLoggerTest 61 mTextClassifierEventTronLogger = new TextClassifierEventTronLogger(mMetricsLogger); in setup() 80 Mockito.verify(mMetricsLogger).write(captor.capture()); in testWriteEvent() 105 Mockito.verify(mMetricsLogger, Mockito.never()).write(Mockito.any(LogMaker.class)); in testWriteEvent_unsupportedCategory()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenGestureLogger.java | 40 private final MetricsLogger mMetricsLogger = Dependency.get(MetricsLogger.class); field in LockscreenGestureLogger 51 mMetricsLogger.write(mLogMaker.setCategory(gesture) in write() 67 mMetricsLogger.write(mLogMaker.setCategory(category) in writeAtFractionalPosition()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/phone/ |
D | StatusBarNotificationPresenterTest.java | 62 private FakeMetricsLogger mMetricsLogger; field in StatusBarNotificationPresenterTest 67 mMetricsLogger = new FakeMetricsLogger(); in setup() 68 mDependency.injectTestDependency(MetricsLogger.class, mMetricsLogger); in setup() 118 mMetricsLogger.getLogs(), in onActivatedMetrics()
|
/frameworks/base/core/java/android/view/textclassifier/ |
D | GenerateLinksLogger.java | 44 private final MetricsLogger mMetricsLogger; field in GenerateLinksLogger 56 mMetricsLogger = new MetricsLogger(); in GenerateLinksLogger() 63 mMetricsLogger = metricsLogger; in GenerateLinksLogger() 125 mMetricsLogger.write(log); in writeStats()
|
D | TextClassifierEventTronLogger.java | 45 private final MetricsLogger mMetricsLogger; field in TextClassifierEventTronLogger 53 mMetricsLogger = Preconditions.checkNotNull(metricsLogger); in TextClassifierEventTronLogger() 91 mMetricsLogger.write(log); in writeEvent()
|
D | SelectionSessionLogger.java | 60 private final MetricsLogger mMetricsLogger; field in SelectionSessionLogger 63 mMetricsLogger = new MetricsLogger(); in SelectionSessionLogger() 68 mMetricsLogger = Preconditions.checkNotNull(metricsLogger); in SelectionSessionLogger() 96 mMetricsLogger.write(log); in writeEvent()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | ForegroundServicesDialog.java | 59 private MetricsLogger mMetricsLogger; field in ForegroundServicesDialog 80 mMetricsLogger = Dependency.get(MetricsLogger.class); in onCreate() 109 mMetricsLogger.visible(MetricsProto.MetricsEvent.RUNNING_BACKGROUND_APPS_DIALOG); in onResume() 115 mMetricsLogger.hidden(MetricsProto.MetricsEvent.RUNNING_BACKGROUND_APPS_DIALOG); in onPause()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | AppOpsInfo.java | 50 private MetricsLogger mMetricsLogger; field in AppOpsInfo 81 mMetricsLogger = new MetricsLogger(); in bindGuts() 82 mMetricsLogger.visibility(MetricsEvent.APP_OPS_GUTS, true); in bindGuts() 164 mMetricsLogger.visibility(MetricsEvent.APP_OPS_GUTS, false); in closeControls()
|
D | NotificationInfo.java | 107 private MetricsLogger mMetricsLogger; field in NotificationInfo 172 mMetricsLogger.write(getLogMaker().setCategory( 189 mMetricsLogger.write(getLogMaker() in handleSaveImportance() 207 mMetricsLogger.write(getLogMaker().setCategory( 213 mMetricsLogger.write(importanceChangeLogMaker().setType(MetricsEvent.TYPE_DISMISS)); 288 mMetricsLogger = Dependency.get(MetricsLogger.class); in bindNotification() 330 mMetricsLogger.write(notificationControlsLogMaker()); in bindNotification() 518 mMetricsLogger.count(counterTag, 1); 537 mMetricsLogger.write(importanceChangeLogMaker()); 696 mMetricsLogger.write(notificationControlsLogMaker().setType(MetricsEvent.TYPE_CLOSE));
|
D | NotificationBlockingHelperManager.java | 63 private MetricsLogger mMetricsLogger = new MetricsLogger(); field in NotificationBlockingHelperManager 111 mMetricsLogger.write( in perhapsShowBlockingHelper()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/classifier/brightline/ |
D | BrightLineFalsingManager.java | 50 private MetricsLogger mMetricsLogger; field in BrightLineFalsingManager 81 mMetricsLogger = new MetricsLogger(); in BrightLineFalsingManager() 121 mMetricsLogger.histogram(FALSING_REMAIN_LOCKED, mIsFalseTouchCalls); in sessionEnd() 171 mMetricsLogger.histogram(FALSING_SUCCESS, mIsFalseTouchCalls); in onSucccessfulUnlock()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/ |
D | KeyButtonViewTest.java | 60 private MetricsLogger mMetricsLogger; field in KeyButtonViewTest 69 mMetricsLogger = mDependency.injectMockDependency(MetricsLogger.class); in setup() 84 verify(mMetricsLogger).write(argThat(new ArgumentMatcher<LogMaker>() { in testMetrics()
|
/frameworks/base/services/core/java/com/android/server/ |
D | GestureLauncherService.java | 86 private final MetricsLogger mMetricsLogger; field in GestureLauncherService 141 mMetricsLogger = metricsLogger; in GestureLauncherService() 393 mMetricsLogger.action(MetricsEvent.ACTION_DOUBLE_TAP_POWER_CAMERA_GESTURE, in interceptPowerKeyDown() 397 mMetricsLogger.histogram("power_consecutive_short_tap_count", mPowerButtonConsecutiveTaps); in interceptPowerKeyDown() 398 mMetricsLogger.histogram("power_double_tap_interval", (int) powerTapInterval); in interceptPowerKeyDown() 476 mMetricsLogger.action(MetricsEvent.ACTION_WIGGLE_CAMERA_GESTURE); in onSensorChanged()
|
/frameworks/base/core/java/com/android/internal/app/ |
D | IntentForwarderActivity.java | 74 private MetricsLogger mMetricsLogger; field in IntentForwarderActivity 277 if (mMetricsLogger == null) { in getMetricsLogger() 278 mMetricsLogger = new MetricsLogger(); in getMetricsLogger() 280 return mMetricsLogger; in getMetricsLogger()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | StatsdHiddenApiUsageLogger.java | 30 private final MetricsLogger mMetricsLogger = new MetricsLogger(); field in StatsdHiddenApiUsageLogger 87 mMetricsLogger.write(logMaker); in logUsage()
|
/frameworks/base/core/java/android/hardware/display/ |
D | ColorDisplayManager.java | 180 private MetricsLogger mMetricsLogger; field in ColorDisplayManager 502 if (mMetricsLogger == null) { in getMetricsLogger() 503 mMetricsLogger = new MetricsLogger(); in getMetricsLogger() 505 return mMetricsLogger; in getMetricsLogger()
|