summaryrefslogtreecommitdiff
path: root/core/java
diff options
context:
space:
mode:
authorMark Tabry <mtab@google.com>2019-11-06 13:42:30 -0800
committerMark Tabry <mtab@google.com>2019-12-02 13:08:13 -0800
commit529d73bd4f6cd3085ce4decb728329ade669ae21 (patch)
treec9dfc68c597b5230d11f83ddd8e83f53e2cf7207 /core/java
parent2f79f57d66b55988af30e36fc0d5ad0caad8be67 (diff)
Add AIDL interface and puller implementation for automotive devices.
Changes: - Adds hidden ICarStatsService AIDL API. - Adds CarStatsPuller for pulling atoms from ICarStatsService. - Pulls VmsClientStats via CarStatsPuller. Bug: 141697665 Test: Manual testing on hawk using statsd_testdrive Change-Id: I44e104d430f64b1bd3dce96e9749df79ab3d2fbf Merged-In: I44e104d430f64b1bd3dce96e9749df79ab3d2fbf (cherry picked from commit 9dc13578f7fbd78eb97b12dafdd862a262aa1585)
Diffstat (limited to 'core/java')
-rw-r--r--core/java/Android.bp5
-rw-r--r--core/java/com/android/internal/car/ICarStatsService.aidl31
2 files changed, 36 insertions, 0 deletions
diff --git a/core/java/Android.bp b/core/java/Android.bp
index fb27f74211fb..9a8e130436f8 100644
--- a/core/java/Android.bp
+++ b/core/java/Android.bp
@@ -7,3 +7,8 @@ filegroup {
name: "IDropBoxManagerService.aidl",
srcs: ["com/android/internal/os/IDropBoxManagerService.aidl"],
}
+
+filegroup {
+ name: "ICarStatsService.aidl",
+ srcs: ["com/android/internal/car/ICarStatsService.aidl"],
+}
diff --git a/core/java/com/android/internal/car/ICarStatsService.aidl b/core/java/com/android/internal/car/ICarStatsService.aidl
new file mode 100644
index 000000000000..170b448ba33f
--- /dev/null
+++ b/core/java/com/android/internal/car/ICarStatsService.aidl
@@ -0,0 +1,31 @@
+/*
+ * Copyright (C) 2019 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.internal.car;
+
+import android.os.StatsLogEventWrapper;
+
+/**
+ * Interface for pulling statsd atoms from automotive devices.
+ *
+ * @hide
+ */
+interface ICarStatsService {
+ /**
+ * Pull the specified atom. Results will be sent to statsd when complete.
+ */
+ StatsLogEventWrapper[] pullData(int atomId);
+}