Home
last modified time | relevance | path

Searched refs:MetricKey (Results 1 – 10 of 10) sorted by relevance

/external/setupcompat/main/java/com/google/android/setupcompat/logging/
DMetricKey.java34 public final class MetricKey implements Parcelable { class
47 public static MetricKey get(@NonNull String name, @NonNull Activity activity) { in get()
53 return new MetricKey(name, screenName); in get()
68 public static MetricKey get(@NonNull String name, @NonNull String screenName) { in get()
84 return new MetricKey(name, screenName); in get()
88 public static Bundle fromMetricKey(MetricKey metricKey) { in fromMetricKey()
98 public static MetricKey toMetricKey(Bundle bundle) { in toMetricKey()
100 return MetricKey.get( in toMetricKey()
105 public static final Creator<MetricKey> CREATOR =
106 new Creator<MetricKey>() {
[all …]
DCustomEvent.java52 MetricKey metricKey, PersistableBundle bundle, PersistableBundle piiValues) { in create()
67 public static CustomEvent create(MetricKey metricKey, PersistableBundle bundle) { in create()
78 MetricKey.toMetricKey(bundle.getBundle(BUNDLE_KEY_METRICKEY)), in toCustomEvent()
89 bundle.putBundle(BUNDLE_KEY_METRICKEY, MetricKey.fromMetricKey(customEvent.metricKey())); in toBundle()
102 in.readParcelable(MetricKey.class.getClassLoader()),
103 in.readPersistableBundle(MetricKey.class.getClassLoader()),
104 in.readPersistableBundle(MetricKey.class.getClassLoader()));
119 public MetricKey metricKey() { in metricKey()
171 MetricKey metricKey, in CustomEvent()
187 private final MetricKey metricKey;
DTimer.java26 public Timer(MetricKey metricKey) { in Timer()
76 MetricKey getMetricKey() { in getMetricKey()
82 private final MetricKey metricKey;
DSetupMetricsLogger.java41 @NonNull Context context, @NonNull MetricKey counterName, int times) { in logCounter()
65 @NonNull Context context, @NonNull MetricKey timerName, long timeInMillis) { in logDuration()
/external/setupcompat/main/java/com/google/android/setupcompat/logging/internal/
DMetricBundleConverter.java5 import com.google.android.setupcompat.logging.MetricKey;
17 public static Bundle createBundleForLoggingCounter(MetricKey counterName, int times) { in createBundleForLoggingCounter()
19 bundle.putParcelable(MetricBundleKeys.METRIC_KEY_BUNDLE, MetricKey.fromMetricKey(counterName)); in createBundleForLoggingCounter()
24 public static Bundle createBundleForLoggingTimer(MetricKey timerName, long timeInMillis) { in createBundleForLoggingTimer()
26 bundle.putParcelable(MetricBundleKeys.METRIC_KEY_BUNDLE, MetricKey.fromMetricKey(timerName)); in createBundleForLoggingTimer()
DPartnerCustomizedResourceListMetric.java26 import com.google.android.setupcompat.logging.MetricKey;
40 MetricKey.get("PartnerCustomizationResource", "NoScreenName"), logBundle)); in logMetrics()
DSetupMetricsLoggingConstants.java22 import com.google.android.setupcompat.logging.MetricKey;
/external/robolectric-shadows/utils/src/main/java/org/robolectric/util/
DPerfStatsCollector.java19 private final Map<MetricKey, Metric> metricMap = new HashMap<>();
132 MetricKey key = new MetricKey(name, success); in finished()
225 private static class MetricKey { class in PerfStatsCollector
229 MetricKey(String name, boolean success) { in MetricKey() method in PerfStatsCollector.MetricKey
243 MetricKey metricKey = (MetricKey) o; in equals()
/external/setupcompat/main/java/com/google/android/setupcompat/internal/
DLifecycleFragment.java30 import com.google.android.setupcompat.logging.MetricKey;
39 private MetricKey metricKey;
92 metricKey = MetricKey.get("ScreenDuration", getActivity()); in onAttach()
120 CustomEvent.create(MetricKey.get("ScreenActivity", getActivity()), bundle)); in logScreenResume()
/external/setupcompat/main/java/com/google/android/setupcompat/
DPartnerCustomizationLayout.java37 import com.google.android.setupcompat.logging.MetricKey;
234 CustomEvent.create(MetricKey.get("SetupCompatMetrics", activity), persistableBundle)); in onDetachedFromWindow()