Added config xmls in contrib.

Bug: b/119768169

Test : Tradefed test with this collector enabled - Pass

Change-Id: I78ca857bfc8f1fb83787f23e2ce21f8adc1e9360
diff --git a/res/config/template/collectors/file-puller.xml b/res/config/template/collectors/file-puller.xml
new file mode 100644
index 0000000..c104167
--- /dev/null
+++ b/res/config/template/collectors/file-puller.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="Pull the files from the device and add it to the test logs." >
+    <metrics_collector class="com.android.tradefed.device.metric.FilePullerLogCollector" />
+</configuration>
diff --git a/res/config/template/collectors/perfetto-puller.xml b/res/config/template/collectors/perfetto-puller.xml
new file mode 100644
index 0000000..4c90b01
--- /dev/null
+++ b/res/config/template/collectors/perfetto-puller.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="Pull the files from the device and add it to the test logs." >
+    <!-- Pulls the perfetto files from the device and collects the metrics from the trace files -->
+    <metrics_collector class="com.android.tradefed.device.metric.PerfettoPullerMetricCollector" />
+</configuration>
diff --git a/res/config/template/collectors/scenario-files-puller.xml b/res/config/template/collectors/scenario-files-puller.xml
new file mode 100644
index 0000000..992d692
--- /dev/null
+++ b/res/config/template/collectors/scenario-files-puller.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright (C) 2018 The Android Open Source Project
+
+     Licensed under the Apache License, Version 2.0 (the "License");
+     you may not use this file except in compliance with the License.
+     You may obtain a copy of the License at
+
+          http://www.apache.org/licenses/LICENSE-2.0
+
+     Unless required by applicable law or agreed to in writing, software
+     distributed under the License is distributed on an "AS IS" BASIS,
+     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+     See the License for the specific language governing permissions and
+     limitations under the License.
+-->
+<configuration description="Pull the files from the device, process it and add it to the logs." >
+    <include name="template/collectors/file-puller" />
+    <include name="template/collectors/perfetto-puller" />
+</configuration>
+
diff --git a/res/config/template/preparers/perfetto.xml b/res/config/template/preparers/perfetto.xml
new file mode 100644
index 0000000..0caeb5e
--- /dev/null
+++ b/res/config/template/preparers/perfetto.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Copyright 2018 Google Inc. All Rights Reserved -->
+<configuration description="Preparers to setup perfetto config file in the device." >
+    <target_preparer class="com.android.tradefed.targetprep.PerfettoPreparer" />
+</configuration>