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/src/com/android/tradefed/invoker/
DTestInvocation.java50 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
363 InvocationMetricKey.DEVICE_DONE_TIMESTAMP, System.currentTimeMillis()); in performInvocation()
393 InvocationMetricKey.SHUTDOWN_HARD_LATENCY, latency); in performInvocation()
850 InvocationMetricKey.FETCH_BUILD, fetchBuildDuration); in invoke()
987 protected void addInvocationMetric(InvocationMetricKey key, long value) { in addInvocationMetric()
991 protected void addInvocationMetric(InvocationMetricKey key, String value) { in addInvocationMetric()
1124 InvocationMetricKey.DEVICE_RELEASE_STATE, in handleAndLogReleaseState()
1144 addInvocationMetric(InvocationMetricKey.DEVICE_LOST_DETECTED, countPhysicalLost); in handleAndLogReleaseState()
1152 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/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/invoker/
DTestInvocationTest.java60 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
332 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in setUp()
335 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in setUp()
616 .containsKey(InvocationMetricKey.SHUTDOWN_HARD_LATENCY.toString())); in testInvoke_metricsCollectedWhenStopped()
1672 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_noEnv()
1675 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_noEnv()
1761 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_withEnv()
1764 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_withEnv()
1868 protected void addInvocationMetric(InvocationMetricKey key, long value) {} in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
1871 protected void addInvocationMetric(InvocationMetricKey key, String value) {} in testInvoke_deviceInfoBuild_withEnv_andSkipProperty()
/tools/tradefederation/core/src/com/android/tradefed/device/
DWaitDeviceRecovery.java26 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
502 InvocationMetricKey.DEVICE_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
522 InvocationMetricKey.DEVICE_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
525 InvocationMetricKey.DEVICE_RECOVERY_FROM_RECOVERY, 1); in attemptDeviceUnavailableRecovery()
532 InvocationMetricKey.DEVICE_RECOVERY_FAIL, 1); in attemptDeviceUnavailableRecovery()
/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/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/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/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/result/proto/
DProtoResultParser.java22 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
599 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/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/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/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/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/build/
DBuildInfo.java25 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
688 InvocationMetricKey.STAGE_TESTS_INDIVIDUAL_DOWNLOADS, fileName); in stageRemoteFile()
/tools/tradefederation/core/src/com/android/tradefed/testtype/suite/
DModuleDefinition.java41 import com.android.tradefed.invoker.logger.InvocationMetricLogger.InvocationMetricKey;
1056 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()