Home
last modified time | relevance | path

Searched refs:InvocationMetricKey (Results 1 – 20 of 20) sorted by relevance

/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/logger/
DInvocationMetricLoggerTest.java21 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
36 Map<String, String> result = logMetric(InvocationMetricKey.FETCH_BUILD, "TEST", null); in testLogMetrics()
37 assertEquals("TEST", result.get(InvocationMetricKey.FETCH_BUILD.toString())); in testLogMetrics()
42 .get(InvocationMetricKey.FETCH_BUILD.toString())); in testLogMetrics()
48 logMetric(InvocationMetricKey.STAGE_TESTS_INDIVIDUAL_DOWNLOADS, "file1", "file2"); in testLogMetrics_appendString()
52 result.get(InvocationMetricKey.STAGE_TESTS_INDIVIDUAL_DOWNLOADS.toString())); in testLogMetrics_appendString()
55 private Map<String, String> logMetric(InvocationMetricKey key, String value, String value2) in logMetric()
70 private InvocationMetricKey mKey;
75 public TestRunnable(InvocationMetricKey key, String value, String value2) { in TestRunnable()
/tools/tradefederation/core/invocation_interfaces/com/android/tradefed/invoker/logger/
DInvocationMetricLogger.java28 public enum InvocationMetricKey { enum in InvocationMetricLogger
56 private InvocationMetricKey(String key, boolean additive) { in InvocationMetricKey() method in InvocationMetricLogger.InvocationMetricKey
86 public static void addInvocationMetrics(InvocationMetricKey key, long value) { in addInvocationMetrics()
110 public static void addInvocationMetrics(InvocationMetricKey key, String value) { in addInvocationMetrics()
/tools/tradefederation/core/src/com/android/tradefed/device/cloud/
DGceAvdInfo.java20 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
239 InvocationMetricKey.CF_FETCH_ARTIFACT_TIME, in addCfStartTimeMetrics()
245 InvocationMetricKey.CF_GCE_CREATE_TIME, in addCfStartTimeMetrics()
251 InvocationMetricKey.CF_LAUNCH_CVD_TIME, in addCfStartTimeMetrics()
255 .containsKey(InvocationMetricKey.CF_INSTANCE_COUNT.toString())) { in addCfStartTimeMetrics()
256 InvocationMetricLogger.addInvocationMetrics(InvocationMetricKey.CF_INSTANCE_COUNT, 1); in addCfStartTimeMetrics()
/tools/tradefederation/core/tests/src/com/android/tradefed/device/cloud/
DGceAvdInfoTest.java25 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
340 assertEquals("63220", metrics.get(InvocationMetricKey.CF_FETCH_ARTIFACT_TIME.toString())); in testCfStartTimeMetricsAdded()
341 assertEquals("23500", metrics.get(InvocationMetricKey.CF_GCE_CREATE_TIME.toString())); in testCfStartTimeMetricsAdded()
342 assertEquals("226500", metrics.get(InvocationMetricKey.CF_LAUNCH_CVD_TIME.toString())); in testCfStartTimeMetricsAdded()
/tools/tradefederation/core/test_framework/com/android/tradefed/targetprep/
DWifiPreparer.java24 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
79 InvocationMetricLogger.addInvocationMetrics(InvocationMetricKey.WIFI_AP_NAME, mWifiNetwork); in setUp()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java26 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
501 InvocationMetricKey.DEVICE_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
521 InvocationMetricKey.DEVICE_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
524 InvocationMetricKey.DEVICE_RECOVERY_FROM_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
531 InvocationMetricKey.DEVICE_RECOVERY_FAIL, 1); in attemptDeviceUnavailableRecovery()
/tools/tradefederation/core/src/com/android/tradefed/sandbox/
DSandboxInvocationRunner.java22 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
68 InvocationMetricKey.SANDBOX_EXIT_CODE, result.getExitCode()); in prepareAndRun()
/tools/tradefederation/core/src/com/android/tradefed/invoker/
DTestInvocation.java48 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
355 InvocationMetricKey.DEVICE_DONE_TIMESTAMP, System.currentTimeMillis()); in performInvocation()
385 InvocationMetricKey.SHUTDOWN_HARD_LATENCY, latency); in performInvocation()
832 InvocationMetricKey.FETCH_BUILD, fetchBuildDuration); in invoke()
968 protected void addInvocationMetric(InvocationMetricKey key, long value) { in addInvocationMetric()
972 protected void addInvocationMetric(InvocationMetricKey key, String value) { in addInvocationMetric()
1097 InvocationMetricKey.DEVICE_RELEASE_STATE, in handleAndLogReleaseState()
1117 addInvocationMetric(InvocationMetricKey.DEVICE_LOST_DETECTED, countPhysicalLost); in handleAndLogReleaseState()
1125 addInvocationMetric(InvocationMetricKey.VIRTUAL_DEVICE_LOST_DETECTED, countVirtualLost); in handleAndLogReleaseState()
DInvocationExecution.java41 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
289 InvocationMetricLogger.addInvocationMetrics(InvocationMetricKey.SETUP, setupDuration); in doSetup()
778 InvocationMetricKey.AUTO_RETRY_TIME, retryTimeMs);
DRemoteInvocationExecution.java40 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
138 InvocationMetricKey.CF_INSTANCE_COUNT, count); in customizeDevicePreInvocation()
/tools/tradefederation/core/src/com/android/tradefed/retry/
DResultAggregator.java20 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
372 .get(InvocationMetricKey.CLEARED_RUN_ERROR.toString()); in getInvocationMetricRunError()
377 InvocationMetricLogger.addInvocationMetrics(InvocationMetricKey.CLEARED_RUN_ERROR, errors); in addInvocationMetricRunError()
/tools/tradefederation/core/src/com/android/tradefed/cluster/
DClusterCommandScheduler.java37 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
300 .get(InvocationMetricKey.FETCH_BUILD.toString()); in invocationComplete()
304 .get(InvocationMetricKey.SETUP.toString()); in invocationComplete()
308 .get(InvocationMetricKey.DEVICE_LOST_DETECTED.toString()); in invocationComplete()
/tools/tradefederation/core/src/com/android/tradefed/result/proto/
DProtoResultParser.java22 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
588 for (InvocationMetricKey key : InvocationMetricKey.values()) { in mergeInvocationContext()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSubprocessTestResultsParser.java21 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
606 for (InvocationMetricKey key : InvocationMetricKey.values()) { in handleEvent()
/tools/tradefederation/core/tests/src/com/android/tradefed/invoker/
DTestInvocationTest.java60 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
327 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in setUp()
330 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in setUp()
611 .containsKey(InvocationMetricKey.SHUTDOWN_HARD_LATENCY.toString())); in testInvoke_metricsCollectedWhenStopped()
1662 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_noEnv()
1665 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_noEnv()
1746 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_withEnv()
1749 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_withEnv()
1848 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
1851 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
/tools/tradefederation/core/src/com/android/tradefed/targetprep/
DDeviceSetup.java27 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
904 InvocationMetricKey.WIFI_AP_NAME, mWifiSsid); in connectWifi()
911 InvocationMetricKey.WIFI_AP_NAME, ssidToPsk.getKey()); in connectWifi()
/tools/tradefederation/core/src/com/android/tradefed/build/
DBuildInfo.java25 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
688 InvocationMetricKey.STAGE_TESTS_INDIVIDUAL_DOWNLOADS, fileName); in stageRemoteFile()
/tools/tradefederation/core/tests/src/com/android/tradefed/cluster/
DClusterCommandSchedulerTest.java50 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
661 context.addInvocationAttribute(InvocationMetricKey.FETCH_BUILD.toString(), "100");
662 context.addInvocationAttribute(InvocationMetricKey.SETUP.toString(), "200");
663 context.addInvocationAttribute(InvocationMetricKey.DEVICE_LOST_DETECTED.toString(), "1");
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java41 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
1044 InvocationMetricKey.AUTO_RETRY_TIME, retryTimeMs); in addRetryTime()
DITestSuite.java43 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
488 InvocationMetricKey.STAGE_TESTS_TIME, elapsedTime); in stageTestArtifacts()