Home
last modified time | relevance | path

Searched refs:configId (Results 1 – 7 of 7) sorted by relevance

/tools/tradefederation/core/src/com/android/tradefed/device/metric/
DHostStatsdMetricCollector.java55 long configId = pushBinaryStatsConfig(device, mBinaryConfig); in onTestRunStart() local
58 serialNumber, configId); in onTestRunStart()
59 mDeviceConfigIds.put(serialNumber, configId); in onTestRunStart()
72 long configId = mDeviceConfigIds.get(serialNumber); in onTestRunEnd() local
74 InputStreamSource dataStream = getReportByteStream(device, configId); in onTestRunEnd()
77 serialNumber, configId); in onTestRunEnd()
83 removeConfig(device, configId); in onTestRunEnd()
92 InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream() argument
94 return MetricUtil.getReportByteStream(device, configId); in getReportByteStream()
104 void removeConfig(ITestDevice device, long configId) throws DeviceNotAvailableException { in removeConfig() argument
[all …]
DRebootReasonCollector.java79 long configId = mDeviceConfigIds.get(device.getSerialNumber()); in onTestRunEnd() local
81 metricData.addAll(getEventMetricData(device, configId)); in onTestRunEnd()
116 removeConfig(device, configId); in onTestRunEnd()
133 void removeConfig(ITestDevice device, long configId) throws DeviceNotAvailableException { in removeConfig() argument
134 ConfigUtil.removeConfig(device, configId); in removeConfig()
138 List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData() argument
140 return MetricUtil.getEventMetricData(device, configId); in getEventMetricData()
DRuntimeRestartCollector.java179 long configId = mDeviceConfigIds.get(device.getSerialNumber()); in onTestRunEnd() local
182 List<EventMetricData> metricData = getEventMetricData(device, configId); in onTestRunEnd()
206 removeConfig(device, configId); in onTestRunEnd()
300 protected void removeConfig(ITestDevice device, long configId) in removeConfig() argument
302 ConfigUtil.removeConfig(device, configId); in removeConfig()
322 protected List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData() argument
324 return MetricUtil.getEventMetricData(device, configId); in getEventMetricData()
/tools/tradefederation/core/src/com/android/tradefed/util/statsd/
DMetricUtil.java47 public static List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData() argument
49 ConfigMetricsReportList reports = getReportList(device, configId); in getEventMetricData()
72 public static InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream() argument
74 return new ByteArrayInputStreamSource(getReportByteArray(device, configId)); in getReportByteStream()
86 private static ConfigMetricsReportList getReportList(ITestDevice device, long configId) in getReportList() argument
89 byte[] output = getReportByteArray(device, configId); in getReportList()
96 private static byte[] getReportByteArray(ITestDevice device, long configId) in getReportByteArray() argument
101 + String.format(DUMP_REPORT_CMD_TEMPLATE, String.valueOf(configId))); in getReportByteArray()
103 String.format(DUMP_REPORT_CMD_TEMPLATE, String.valueOf(configId)), receiver); in getReportByteArray()
DConfigUtil.java94 long configId = UUID.randomUUID().hashCode(); in pushBinaryStatsConfig() local
95 updateConfig(device, remotePath, configId); in pushBinaryStatsConfig()
96 return configId; in pushBinaryStatsConfig()
108 public static void removeConfig(ITestDevice device, long configId) in removeConfig() argument
110 device.executeShellCommand(String.join(" ", REMOVE_CONFIG_CMD, String.valueOf(configId))); in removeConfig()
120 private static void updateConfig(ITestDevice device, String remotePath, long configId) in updateConfig() argument
130 String.valueOf(configId))); in updateConfig()
148 long configId = UUID.randomUUID().hashCode(); in generateStatsdConfig() local
151 .setId(configId) in generateStatsdConfig()
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/
DConfigUtilTest.java74 long configId = in testPushDeviceConfig() local
98 long configId = in testPushInvalidDeviceConfig() local
123 long configId = ConfigUtil.pushBinaryStatsConfig(mTestDevice, mConfigFile); in testPushBinaryDeviceConfig() local
136 long configId = ConfigUtil.pushBinaryStatsConfig(mTestDevice, mConfigFile); in testPushBinaryDeviceConfigBinary_throwsWhenNotExists() local
149 long configId = 111; in testRemoveDeviceConfig() local
151 ConfigUtil.removeConfig(mTestDevice, configId); in testRemoveDeviceConfig()
158 String.valueOf(configId)))); in testRemoveDeviceConfig()
/tools/tradefederation/core/src/com/android/tradefed/config/
DConfigurationFactory.java252 final ConfigId configId = new ConfigId(name, templateMap); in getConfigurationDef() local
253 ConfigurationDef def = mConfigDefMap.get(configId); in getConfigurationDef()
258 mConfigDefMap.put(configId, def); in getConfigurationDef()
700 final ConfigId configId = new ConfigId(configName); in loadAllConfigs() local
702 ConfigurationDef configDef = attemptLoad(configId, null); in loadAllConfigs()
703 mConfigDefMap.put(configId, configDef); in loadAllConfigs()
723 private ConfigurationDef attemptLoad(ConfigId configId, Map<String, String> templateMap) in attemptLoad() argument
727 configDef = getConfigurationDef(configId.name, false, templateMap); in attemptLoad()
738 return attemptLoad(configId, fakeTemplateMap); in attemptLoad()