Home
last modified time | relevance | path

Searched refs:metricId (Results 1 – 16 of 16) sorted by relevance

/frameworks/libs/modules-utils/java/com/android/modules/expresslog/
DCounter.java31 public static void logIncrement(@NonNull String metricId) { in logIncrement() argument
32 logIncrement(metricId, 1); in logIncrement()
40 public static void logIncrementWithUid(@NonNull String metricId, int uid) { in logIncrementWithUid() argument
41 logIncrementWithUid(metricId, uid, 1); in logIncrementWithUid()
49 public static void logIncrement(@NonNull String metricId, long amount) { in logIncrement() argument
51 MetricIds.getMetricIdHash(metricId, MetricIds.METRIC_TYPE_COUNTER); in logIncrement()
61 public static void logIncrementWithUid(@NonNull String metricId, int uid, long amount) { in logIncrementWithUid() argument
63 MetricIds.getMetricIdHash(metricId, MetricIds.METRIC_TYPE_COUNTER_WITH_UID); in logIncrementWithUid()
DHistogram.java37 public Histogram(@NonNull String metricId, @NonNull BinOptions binOptions) { in Histogram() argument
38 mMetricId = metricId; in Histogram()
/frameworks/proto_logging/stats/express/libexpresscatalog/
Dcatalog.cpp44 bool validateMetricId(const string& metricId) { in validateMetricId() argument
49 if (!std::regex_match(metricId, expr)) { in validateMetricId()
51 metricId.c_str(), regExStr); in validateMetricId()
129 for (const auto& [metricId, expressMetric] : metrics) { in generateMetricsIds()
130 const int64_t hashId = farmhash::Fingerprint64(metricId.c_str(), metricId.size()); in generateMetricsIds()
134 LOGE("Detected hash name collision for a metric %s\n", metricId.c_str()); in generateMetricsIds()
138 metricsIds[metricId] = {hashId, expressMetric.type()}; in generateMetricsIds()
/frameworks/base/packages/SystemUI/src/com/android/systemui/keyguard/shared/constants/
DTrustAgentUiEvent.kt22 enum class TrustAgentUiEvent(private val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.keyguard.shared.constants.TrustAgentUiEvent
24 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/receiver/
DMediaTttReceiverUiEventLogger.kt34 enum class MediaTttReceiverUiEvents(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.media.taptotransfer.receiver.MediaTttReceiverUiEvents
44 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/ongoingcall/
DOngoingCallLogger.kt49 enum class OngoingCallEvents(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.statusbar.phone.ongoingcall.OngoingCallLogger.OngoingCallEvents
56 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/bluetooth/qsdialog/
DBluetoothTileDialogUiEvent.kt23 enum class BluetoothTileDialogUiEvent(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.bluetooth.qsdialog.BluetoothTileDialogUiEvent
50 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/temporarydisplay/
DTemporaryViewUiEventLogger.kt50 enum class TemporaryViewUiEvent(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.temporarydisplay.TemporaryViewUiEvent
55 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/panel/ui/
DVolumePanelUiEvent.kt23 enum class VolumePanelUiEvent(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.volume.panel.ui.VolumePanelUiEvent
50 override fun getId() = metricId in getId()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/taptotransfer/sender/
DMediaTttSenderUiEventLogger.kt56 enum class MediaTttSenderUiEvents(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.media.taptotransfer.sender.MediaTttSenderUiEvents
83 override fun getId() = metricId
/frameworks/base/packages/SystemUI/src/com/android/systemui/controls/
DControlsMetricsLogger.kt72 private enum class ControlsEvents(val metricId: Int) : UiEventLogger.UiEventEnum { in log() constant in com.android.systemui.controls.ControlsMetricsLogger.ControlsEvents
88 override fun getId() = metricId in log()
/frameworks/base/tests/JankBench/app/src/main/java/com/android/benchmark/results/
DUiBenchmarkResult.java105 public double getMetricAtIndex(int index, int metricId) { in getMetricAtIndex() argument
106 return mStoredStatistics[getMetricPosition(metricId)].getElement(index); in getMetricAtIndex()
/frameworks/base/packages/SystemUI/src/com/android/systemui/stylus/
DStylusUsiPowerUI.kt233 private fun logUiEvent(metricId: StylusUiEvent) { in logUiEvent()
235 metricId, in logUiEvent()
/frameworks/base/packages/SystemUI/src/com/android/systemui/media/controls/util/
DMediaUiEventLogger.kt238 enum class MediaUiEvent(val metricId: Int) : UiEventLogger.UiEventEnum { constant in com.android.systemui.media.controls.util.MediaUiEvent
300 override fun getId() = metricId
/frameworks/base/services/companion/java/com/android/server/companion/virtual/
DInputController.java803 String metricId = getMetricIdForInputType(type); in createDeviceInternal() local
804 if (metricId != null) { in createDeviceInternal()
805 Counter.logIncrementWithUid(metricId, mAttributionSource.getUid()); in createDeviceInternal()
/frameworks/base/services/accessibility/java/com/android/server/accessibility/
DAccessibilityManagerService.java6505 String metricId = enable ? METRIC_ID_QS_SHORTCUT_ADD : METRIC_ID_QS_SHORTCUT_REMOVE; in logMetricForQsShortcutConfiguration() local
6506 Counter.logIncrementWithUid(metricId, Binder.getCallingUid(), numOfFeatures); in logMetricForQsShortcutConfiguration()