/frameworks/base/core/tests/coretests/src/android/metrics/ |
D | LogMakerTest.java | 29 LogMaker builder = new LogMaker(0); in testSerialize() 49 LogMaker builder = new LogMaker(category); in testSerializeDeserialize() 61 LogMaker parsed = new LogMaker(out); in testSerializeDeserialize() 76 LogMaker builder = new LogMaker(0); in testIntBucket() 84 LogMaker builder = new LogMaker(0); in testLongBucket() 91 LogMaker builder = new LogMaker(0); in testInvalidInputThrows() 103 LogMaker builder = new LogMaker(0); in testValidInputTypes() 117 LogMaker builder = new LogMaker(10); in testCategoryDefault() 124 LogMaker builder = new LogMaker(0); in testClearData() 131 LogMaker builder = new LogMaker(0); in testClearFieldLeavesOtherFieldsIntact() [all …]
|
D | MetricsReaderTest.java | 47 new LogMaker(i).serialize()); in FakeLogReader() 62 mEvents[i].setData(new LogMaker(MetricsEvent.METRICS_CHECKPOINT) in writeCheckpoint() 80 LogMaker log = mReader.next(); in testNonBlockingRead() 93 LogMaker log = mReader.next(); in testReset() 100 LogMaker log = mReader.next(); in testPidUid() 116 LogMaker log = mReader.next(); in testWriteCheckpoint()
|
/frameworks/base/core/java/android/metrics/ |
D | LogMaker.java | 36 public class LogMaker { class 53 public LogMaker(int category) { in LogMaker() method in LogMaker 58 public LogMaker(Object[] items) { in LogMaker() method in LogMaker 67 public LogMaker setCategory(int category) { in setCategory() 73 public LogMaker clearCategory() { in clearCategory() 79 public LogMaker setType(int type) { in setType() 85 public LogMaker clearType() { in clearType() 91 public LogMaker setSubtype(int subtype) { in setSubtype() 97 public LogMaker clearSubtype() { in clearSubtype() 107 public LogMaker setLatency(long milliseconds) { in setLatency() [all …]
|
D | MetricsReader.java | 39 private Queue<LogMaker> mPendingQueue = new LinkedList<>(); 40 private Queue<LogMaker> mSeenQueue = new LinkedList<>(); 94 final LogMaker log = new LogMaker(objects) in read() 131 Queue<LogMaker> tmp = mPendingQueue; in reset() 142 public LogMaker next() { in next() 143 final LogMaker next = mPendingQueue.poll(); in next()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/ |
D | EventLogWriter.java | 20 import android.metrics.LogMaker; 34 final LogMaker logMaker = new LogMaker(category) in visible() 44 final LogMaker logMaker = new LogMaker(category) in hidden() 53 final LogMaker logMaker = new LogMaker(MetricsProto.MetricsEvent.ACTION_SETTINGS_TILE_CLICK) in clicked() 67 final LogMaker logMaker = new LogMaker( in changed() 85 final LogMaker logMaker = new LogMaker(category) in action() 107 final LogMaker logMaker = new LogMaker(category) in action() 116 final LogMaker logMaker = new LogMaker(action) in action()
|
/frameworks/base/core/java/com/android/internal/logging/ |
D | MetricsLogger.java | 20 import android.metrics.LogMaker; 55 protected void saveLog(LogMaker log) { in saveLog() 64 public void write(LogMaker content) { in write() 73 saveLog(new LogMaker(MetricsEvent.RESERVED_FOR_LOGBUILDER_COUNTER) in count() 81 saveLog(new LogMaker(MetricsEvent.RESERVED_FOR_LOGBUILDER_HISTOGRAM) in histogram() 96 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_OPEN)); in visible() 105 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_CLOSE)); in hidden() 132 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_ACTION)); in action() 139 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_ACTION).setSubtype(value)); in action() 146 saveLog(new LogMaker(category).setType(MetricsEvent.TYPE_ACTION).setSubtype(value ? 1 : 0)); in action() [all …]
|
/frameworks/base/core/java/com/android/internal/logging/testing/ |
D | FakeMetricsLogger.java | 3 import android.metrics.LogMaker; 17 private Queue<LogMaker> logs = new LinkedList<>(); 20 protected void saveLog(LogMaker log) { in saveLog() 24 public Queue<LogMaker> getLogs() { in getLogs()
|
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/truth/correspondence/ |
D | LogMaker.kt | 19 import android.metrics.LogMaker 23 object LogMaker { object 25 Correspondence.transforming<LogMaker, Int>(
|
/frameworks/base/apct-tests/perftests/windowmanager/src/android/wm/ |
D | WindowManagerPerfTestBase.java | 27 import android.metrics.LogMaker; 146 final ArrayList<LogMaker> logs = new ArrayList<>(); in getMetrics() 147 final LogMaker logTemplate = new LogMaker(APP_TRANSITION); in getMetrics() 149 final LogMaker b = mMetricsReader.next(); in getMetrics() 157 final LogMaker log = logs.get(i); in getMetrics()
|
/frameworks/base/core/tests/coretests/src/android/service/notification/ |
D | StatusBarNotificationTest.java | 36 import android.metrics.LogMaker; 90 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, CHANNEL_ID).getLogMaker(); in testLogMaker() 111 final LogMaker logMaker = sbn.getLogMaker(); in testLogMakerNoStaleData() 121 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithCategory() 128 final LogMaker logMaker = getNotification(PKG, GROUP_ID_1, null).getLogMaker(); in testLogMakerNoChannel() 135 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID_LONG).getLogMaker(); in testLogMakerLongChannel() 144 final LogMaker logMaker = getNotification(PKG, null, CHANNEL_ID).getLogMaker(); in testLogMakerNoGroup() 152 final LogMaker logMaker = getNotification(PKG, GROUP_ID_LONG, CHANNEL_ID) in testLogMakerLongGroup() 180 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithPerson() 189 final LogMaker logMaker = getNotification(PKG, builder).getLogMaker(); in testLogMakerWithStyle()
|
/frameworks/base/core/java/android/service/autofill/augmented/ |
D | Helper.java | 20 import android.metrics.LogMaker; 38 final LogMaker log = new LogMaker(MetricsEvent.AUTOFILL_AUGMENTED_RESPONSE) in logResponse()
|
/frameworks/base/core/java/android/app/slice/ |
D | SliceMetrics.java | 21 import android.metrics.LogMaker; 44 private LogMaker mLogMaker; 51 mLogMaker = new LogMaker(MetricsEvent.VIEW_UNKNOWN); in SliceMetrics()
|
/frameworks/base/services/core/java/com/android/server/policy/ |
D | DisplayFoldDurationLogger.java | 20 import android.metrics.LogMaker; 86 new LogMaker(MetricsProto.MetricsEvent.ACTION_DISPLAY_FOLD) in logFocusedAppWithFoldState() 108 new LogMaker(MetricsProto.MetricsEvent.ACTION_DISPLAY_FOLD) in log()
|
/frameworks/base/core/java/com/android/internal/os/ |
D | StatsdHiddenApiUsageLogger.java | 19 import android.metrics.LogMaker; 73 LogMaker logMaker = new LogMaker(MetricsEvent.ACTION_HIDDEN_API_ACCESSED) in logUsage()
|
/frameworks/base/services/autofill/java/com/android/server/autofill/ |
D | Helper.java | 31 import android.metrics.LogMaker; 160 private static LogMaker newLogMaker(int category, @NonNull String servicePackageName, in newLogMaker() 162 final LogMaker log = new LogMaker(category) in newLogMaker() 172 public static LogMaker newLogMaker(int category, @NonNull String packageName, in newLogMaker() 179 public static LogMaker newLogMaker(int category, @NonNull ComponentName componentName, in newLogMaker() 259 static int getNumericValue(@NonNull LogMaker log, int tag) { in getNumericValue()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ |
D | LockscreenGestureLogger.java | 19 import android.metrics.LogMaker; 105 mMetricsLogger.write(new LogMaker(gesture) in write() 128 mMetricsLogger.write(new LogMaker(category) in writeAtFractionalPosition()
|
/frameworks/base/core/tests/coretests/src/com/android/internal/logging/ |
D | MetricsLoggerTest.java | 21 import android.metrics.LogMaker; 54 final LogMaker event = mLogger.getLogs().peek(); in testAction()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
D | NotificationSnooze.java | 28 import android.metrics.LogMaker; 73 private static final LogMaker OPTIONS_OPEN_LOG = 74 new LogMaker(MetricsEvent.NOTIFICATION_SNOOZE_OPTIONS) 76 private static final LogMaker OPTIONS_CLOSE_LOG = 77 new LogMaker(MetricsEvent.NOTIFICATION_SNOOZE_OPTIONS) 79 private static final LogMaker UNDO_LOG = 80 new LogMaker(MetricsEvent.NOTIFICATION_UNDO_SNOOZE) 411 mMetricsLogger.write(new LogMaker(category) in logOptionSelection()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/assist/ui/ |
D | DefaultUiController.java | 27 import android.metrics.LogMaker; 165 mMetricsLogger.write(new LogMaker(MetricsEvent.ASSISTANT) in logInvocationProgressMetrics() 177 MetricsLogger.action(new LogMaker(MetricsEvent.ASSISTANT) in logInvocationProgressMetrics()
|
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImplTest.java | 46 import android.metrics.LogMaker; 116 private ArgumentCaptor<LogMaker> mLogCaptor; 310 LogMaker maker = mock(LogMaker.class); in testPopulateWithLockedScreen() 321 LogMaker maker = mock(LogMaker.class); in testPopulateWithUnlockedScreen() 500 private class TileLogMatcher implements ArgumentMatcher<LogMaker> { 510 public boolean matches(LogMaker arg) { in matches()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/ |
D | NightDisplayTile.java | 24 import android.metrics.LogMaker; 216 public LogMaker populate(LogMaker logMaker) { in populate()
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/ |
D | QSTileImpl.java | 37 import android.metrics.LogMaker; 288 mMetricsLogger.write(populate(new LogMaker(ACTION_QS_CLICK).setType(TYPE_ACTION) in click() 303 mMetricsLogger.write(populate(new LogMaker(ACTION_QS_SECONDARY_CLICK).setType(TYPE_ACTION) in secondaryClick() 316 mMetricsLogger.write(populate(new LogMaker(ACTION_QS_LONG_PRESS).setType(TYPE_ACTION) in longClick() 329 public LogMaker populate(LogMaker logMaker) { in populate()
|
/frameworks/base/core/java/android/hardware/display/ |
D | ColorDisplayManager.java | 30 import android.metrics.LogMaker; 272 getMetricsLogger().write(new LogMaker( in setNightDisplayAutoMode() 305 getMetricsLogger().write(new LogMaker( in setNightDisplayCustomStartTime() 337 getMetricsLogger().write(new LogMaker( in setNightDisplayCustomEndTime()
|
/frameworks/base/core/java/android/service/notification/ |
D | StatusBarNotification.java | 29 import android.metrics.LogMaker; 496 public LogMaker getLogMaker() { in getLogMaker() 497 LogMaker logMaker = new LogMaker(MetricsEvent.VIEW_UNKNOWN).setPackageName(getPackageName()) in getLogMaker()
|
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/ |
D | QSTile.java | 21 import android.metrics.LogMaker; 97 default LogMaker populate(LogMaker logMaker) { in populate()
|