Home
last modified time | relevance | path

Searched refs:LogMaker (Results 1 – 25 of 53) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/metrics/
DLogMakerTest.java28 LogMaker builder = new LogMaker(0); in testSerialize()
48 LogMaker builder = new LogMaker(category); in testSerializeDeserialize()
60 LogMaker parsed = new LogMaker(out); in testSerializeDeserialize()
75 LogMaker builder = new LogMaker(0); in testIntBucket()
83 LogMaker builder = new LogMaker(0); in testLongBucket()
90 LogMaker builder = new LogMaker(0); in testInvalidInputThrows()
102 LogMaker builder = new LogMaker(0); in testValidInputTypes()
116 LogMaker builder = new LogMaker(10); in testCategoryDefault()
123 LogMaker builder = new LogMaker(0); in testClearData()
130 LogMaker builder = new LogMaker(0); in testClearFieldLeavesOtherFieldsIntact()
[all …]
DMetricsReaderTest.java45 new LogMaker(i).serialize()); in FakeLogReader()
60 mEvents[i].setData(new LogMaker(MetricsEvent.METRICS_CHECKPOINT) in writeCheckpoint()
78 LogMaker log = mReader.next(); in testNonBlockingRead()
91 LogMaker log = mReader.next(); in testReset()
98 LogMaker log = mReader.next(); in testPidUid()
114 LogMaker log = mReader.next(); in testWriteCheckpoint()
/frameworks/base/core/java/android/metrics/
DLogMaker.java34 public class LogMaker { class
51 public LogMaker(int category) { in LogMaker() method in LogMaker
56 public LogMaker(Object[] items) { in LogMaker() method in LogMaker
65 public LogMaker setCategory(int category) { in setCategory()
71 public LogMaker clearCategory() { in clearCategory()
77 public LogMaker setType(int type) { in setType()
83 public LogMaker clearType() { in clearType()
89 public LogMaker setSubtype(int subtype) { in setSubtype()
95 public LogMaker clearSubtype() { in clearSubtype()
105 public LogMaker setLatency(long milliseconds) { in setLatency()
[all …]
DMetricsReader.java39 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/core/java/com/android/internal/logging/
DMetricsLogger.java19 import android.metrics.LogMaker;
50 public void write(LogMaker content) { in write()
62 saveLog(new LogMaker(category) in visible()
72 saveLog(new LogMaker(category) in hidden()
93 saveLog(new LogMaker(category) in action()
100 saveLog(new LogMaker(category) in action()
108 saveLog(new LogMaker(category) in action()
119 saveLog(new LogMaker(category) in action()
128 saveLog(new LogMaker(MetricsEvent.RESERVED_FOR_LOGBUILDER_COUNTER) in count()
138 saveLog(new LogMaker(MetricsEvent.RESERVED_FOR_LOGBUILDER_HISTOGRAM) in histogram()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/core/instrumentation/
DEventLogWriter.java20 import android.metrics.LogMaker;
35 final LogMaker logMaker = new LogMaker(category) in visible()
49 final LogMaker logMaker = new LogMaker(category) in action()
68 final LogMaker logMaker = new LogMaker(category) in actionWithSource()
93 final LogMaker logMaker = new LogMaker(category) in action()
/frameworks/base/core/java/com/android/internal/logging/testing/
DFakeMetricsLogger.java3 import android.metrics.LogMaker;
16 private Queue<LogMaker> logs = new LinkedList<>();
20 logs.offer(new LogMaker(rep)); in saveLog()
23 public Queue<LogMaker> getLogs() { in getLogs()
/frameworks/base/core/tests/coretests/src/android/view/textclassifier/logging/
DGenerateLinksLoggerTest.java25 import android.metrics.LogMaker;
73 ArgumentCaptor<LogMaker> logMakerCapture = ArgumentCaptor.forClass(LogMaker.class); in testLogGenerateLinks()
81 List<LogMaker> logs = logMakerCapture.getAllValues(); in testLogGenerateLinks()
91 private void assertHasLog(List<LogMaker> logs, String entityType, int numLinks, in assertHasLog()
93 for (LogMaker log : logs) { in assertHasLog()
108 private static String getEntityType(LogMaker log) { in getEntityType()
112 private static int getIntValue(LogMaker log, int eventField) { in getIntValue()
/frameworks/base/services/autofill/java/com/android/server/autofill/
DHelper.java24 import android.metrics.LogMaker;
113 private static LogMaker newLogMaker(int category, @NonNull String servicePackageName, in newLogMaker()
115 final LogMaker log = new LogMaker(category) in newLogMaker()
125 public static LogMaker newLogMaker(int category, @NonNull String packageName, in newLogMaker()
132 public static LogMaker newLogMaker(int category, @NonNull ComponentName componentName, in newLogMaker()
209 static int getNumericValue(@NonNull LogMaker log, int tag) { in getNumericValue()
/frameworks/base/core/java/android/app/slice/
DSliceMetrics.java21 import android.metrics.LogMaker;
39 private LogMaker mLogMaker;
46 mLogMaker = new LogMaker(MetricsEvent.VIEW_UNKNOWN); in SliceMetrics()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DLockscreenGestureLogger.java19 import android.metrics.LogMaker;
35 private LogMaker mLogMaker = new LogMaker(MetricsEvent.VIEW_UNKNOWN)
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/statusbar/policy/
DKeyButtonViewTest.java23 import android.metrics.LogMaker;
65 Mockito.verify(mMetricsLogger).write(argThat(new ArgumentMatcher<LogMaker>() { in testMetrics()
69 public boolean matches(LogMaker argument) { in testMetrics()
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/qs/tileimpl/
DQSTileImplTest.java38 import android.metrics.LogMaker;
104 LogMaker maker = mock(LogMaker.class); in testPopulate()
139 private class TileLogMatcher implements ArgumentMatcher<LogMaker> {
149 public boolean matches(LogMaker arg) { in matches()
/frameworks/base/core/java/android/view/textclassifier/
DGenerateLinksLogger.java20 import android.metrics.LogMaker;
116 final LogMaker log = new LogMaker(MetricsEvent.TEXT_CLASSIFIER_GENERATE_LINKS) in writeStats()
130 private static void debugLog(LogMaker log) { in debugLog()
DSelectionSessionLogger.java22 import android.metrics.LogMaker;
75 final LogMaker log = new LogMaker(MetricsEvent.TEXT_SELECTION_SESSION) in writeEvent()
197 private static void debugLog(LogMaker log) { in debugLog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationSnooze.java35 import android.metrics.LogMaker;
69 private static final LogMaker OPTIONS_OPEN_LOG =
70 new LogMaker(MetricsEvent.NOTIFICATION_SNOOZE_OPTIONS)
72 private static final LogMaker OPTIONS_CLOSE_LOG =
73 new LogMaker(MetricsEvent.NOTIFICATION_SNOOZE_OPTIONS)
75 private static final LogMaker UNDO_LOG =
76 new LogMaker(MetricsEvent.NOTIFICATION_UNDO_SNOOZE)
349 mMetricsLogger.write(new LogMaker(category) in logOptionSelection()
/frameworks/base/services/tests/servicestests/src/com/android/server/power/batterysaver/
DBatterySavingStatsTest.java27 import android.metrics.LogMaker;
245 ArgumentCaptor<LogMaker> ac = ArgumentCaptor.forClass(LogMaker.class); in assertLog()
248 LogMaker lm = ac.getValue(); in assertLog()
262 verify(mMetricsLogger, times(0)).write(any(LogMaker.class)); in assertLog()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tiles/
DNightDisplayTile.java24 import android.metrics.LogMaker;
161 public LogMaker populate(LogMaker logMaker) { in populate()
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/
DIconLoggerImpl.java23 import android.metrics.LogMaker;
89 mLogger.write(new LogMaker(STATUS_BAR_ICONS_CHANGED) in doLog()
/frameworks/base/services/core/java/com/android/server/am/
DActivityMetricsLogger.java43 import android.metrics.LogMaker;
486 final LogMaker builder = new LogMaker(APP_TRANSITION_CANCELLED); in logAppTransitionCancel()
524 final LogMaker builder = new LogMaker(APP_TRANSITION); in logAppTransition()
602 final LogMaker builder = new LogMaker(APP_TRANSITION_REPORTED_DRAWN); in logAppTransitionReportedDrawn()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/tileimpl/
DQSTileImpl.java30 import android.metrics.LogMaker;
174 mMetricsLogger.write(populate(new LogMaker(ACTION_QS_CLICK).setType(TYPE_ACTION))); in click()
179 … mMetricsLogger.write(populate(new LogMaker(ACTION_QS_SECONDARY_CLICK).setType(TYPE_ACTION))); in secondaryClick()
184 mMetricsLogger.write(populate(new LogMaker(ACTION_QS_LONG_PRESS).setType(TYPE_ACTION))); in longClick()
193 public LogMaker populate(LogMaker logMaker) { in populate()
/frameworks/base/core/java/com/android/internal/app/
DColorDisplayController.java25 import android.metrics.LogMaker;
243 getMetricsLogger().write(new LogMaker( in setAutoMode()
283 getMetricsLogger().write(new LogMaker( in setCustomStartTime()
321 getMetricsLogger().write(new LogMaker( in setCustomEndTime()
/frameworks/base/packages/SystemUI/plugin/src/com/android/systemui/plugins/qs/
DQSTile.java19 import android.metrics.LogMaker;
71 default LogMaker populate(LogMaker logMaker) { in populate()
/frameworks/base/services/autofill/java/com/android/server/autofill/ui/
DSaveUi.java32 import android.metrics.LogMaker;
287 final LogMaker log = in applyCustomDescription()
415 private LogMaker newLogMaker(int category, int saveType) { in newLogMaker()
419 private LogMaker newLogMaker(int category) { in newLogMaker()
441 final LogMaker log = newLogMaker(MetricsEvent.AUTOFILL_PENDING_SAVE_UI_OPERATION); in onPendingUi()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/external/
DCustomTile.java25 import android.metrics.LogMaker;
168 public LogMaker populate(LogMaker logMaker) { in populate()

123