/tools/tradefederation/core/test_framework/com/android/tradefed/device/metric/ |
D | HostStatsdMetricCollector.java | 101 InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream() argument 103 return MetricUtil.getReportByteStream(device, configId); in getReportByteStream() 113 void removeConfig(ITestDevice device, long configId) throws DeviceNotAvailableException { in removeConfig() argument 114 ConfigUtil.removeConfig(device, configId); in removeConfig() 134 long configId = pushBinaryStatsConfig(device, mBinaryConfig); in startCollection() local 137 serialNumber, configId); in startCollection() 138 mDeviceConfigIds.put(serialNumber, configId); in startCollection() 149 long configId = mDeviceConfigIds.get(serialNumber); in stopCollection() local 150 try (InputStreamSource dataStream = getReportByteStream(device, configId)) { in stopCollection() argument 153 serialNumber, configId); in stopCollection() [all …]
|
D | RebootReasonCollector.java | 80 long configId = mDeviceConfigIds.get(device.getSerialNumber()); in onTestRunEnd() local 82 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()
|
D | RuntimeRestartCollector.java | 179 long configId = mDeviceConfigIds.get(device.getSerialNumber()); in onTestRunEnd() local 182 List<EventMetricData> metricData = getEventMetricData(device, configId); in onTestRunEnd() 206 removeConfig(device, configId); in onTestRunEnd() 303 protected void removeConfig(ITestDevice device, long configId) in removeConfig() argument 305 ConfigUtil.removeConfig(device, configId); in removeConfig() 325 protected List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData() argument 327 return MetricUtil.getEventMetricData(device, configId); in getEventMetricData()
|
/tools/tradefederation/core/test_framework/com/android/tradefed/util/statsd/ |
D | ConfigUtil.java | 94 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()
|
D | MetricUtil.java | 53 public static List<EventMetricData> getEventMetricData(ITestDevice device, long configId) in getEventMetricData() argument 55 ConfigMetricsReportList reports = getReportList(device, configId); in getEventMetricData() 78 public static InputStreamSource getReportByteStream(ITestDevice device, long configId) in getReportByteStream() argument 80 return new ByteArrayInputStreamSource(getReportByteArray(device, configId)); in getReportByteStream() 92 private static ConfigMetricsReportList getReportList(ITestDevice device, long configId) in getReportList() argument 95 byte[] output = getReportByteArray(device, configId); in getReportList() 102 private static byte[] getReportByteArray(ITestDevice device, long configId) in getReportByteArray() argument 108 String.valueOf(configId), in getReportByteArray()
|
/tools/tradefederation/core/tests/src/com/android/tradefed/util/statsd/ |
D | ConfigUtilTest.java | 74 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/ |
D | ConfigurationFactory.java | 270 final ConfigId configId = new ConfigId(name, templateMap); in getConfigurationDef() local 271 ConfigurationDef def = mConfigDefMap.get(configId); in getConfigurationDef() 276 mConfigDefMap.put(configId, def); in getConfigurationDef() 779 final ConfigId configId = new ConfigId(configName); in loadAllConfigs() local 781 ConfigurationDef configDef = attemptLoad(configId, null); in loadAllConfigs() 782 mConfigDefMap.put(configId, configDef); in loadAllConfigs() 802 private ConfigurationDef attemptLoad(ConfigId configId, Map<String, String> templateMap) in attemptLoad() argument 806 configDef = getConfigurationDef(configId.name, false, templateMap); in attemptLoad() 817 return attemptLoad(configId, fakeTemplateMap); in attemptLoad()
|