Establish a trivial CarTelemetryService.

It does not do anything and not wired into ICarImpl yet.
We will be adding to its implementation once we converge on design
of migrated Secular Trends a bit more. In addition migrates LogCat
related utilities and necessary protos.

Highlights of changes that had to be done out of necessity, because the
dependencies not being readily available in Android platform:
1) telemetry.proto is what used to be logprocessor.proto with important
change - I replaced timestamp field type with int64 to avoid dependency
on google3 proto.
2) LogcatReader.java. I replaced concurrent set with a regular one, but
made sure all access is done through methods that are all synchronized.
3) LogFilter.java. I replaced AutoValue with boiler plate code. Also
replaced ImmutableList with regular list + Collections.unmodifiableList.
4) Replaced references to LogProcessor with Car Telemetry service
instead.

Test: test migration will be done in the follow up CLs. This code is
changed only where necessary with equivalents available in the platform.

Bug: 180431013

Change-Id: If97889c7f1c7cf6364dfedf5ea95277b337fcb1c
Merged-In: If97889c7f1c7cf6364dfedf5ea95277b337fcb1c
(cherry picked from commit 1455e130dad8f30bdb139abd7aef7b760262d087)
diff --git a/service/src/com/android/car/telemetry/CarTelemetryService.java b/service/src/com/android/car/telemetry/CarTelemetryService.java
new file mode 100644
index 0000000..f98f8d8
--- /dev/null
+++ b/service/src/com/android/car/telemetry/CarTelemetryService.java
@@ -0,0 +1,43 @@
+/*
+ * Copyright (C) 2021 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.
+ */
+package com.android.car.telemetry;
+
+import android.util.IndentingPrintWriter;
+
+import com.android.car.CarServiceBase;
+
+/**
+ * CarTelemetryService manages OEM telemetry collection, processing and communication
+ * with a data upload service.
+ */
+public class CarTelemetryService implements CarServiceBase {
+
+    private CarTelemetryService() {
+    }
+
+    @Override
+    public void init() {
+    }
+
+    @Override
+    public void release() {
+    }
+
+    @Override
+    public void dump(IndentingPrintWriter writer) {
+        writer.println("Car Telemetry service");
+    }
+}