summaryrefslogtreecommitdiff
path: root/powerstats/aidl/android
diff options
context:
space:
mode:
authorBenjamin Schwartz <bsschwar@google.com>2021-03-09 01:24:49 +0000
committerBenjamin Schwartz <bsschwar@google.com>2021-03-09 01:24:49 +0000
commitf736cfa9763855d34d2a27a3c814f8121758f50a (patch)
tree18a2464f95c0f46ce23b69534121273e815026ca /powerstats/aidl/android
parent8b5e4744b55c14e4d57cdbe31383f51a91c25ec2 (diff)
downloadpixel-f736cfa9763855d34d2a27a3c814f8121758f50a.tar.gz
Revert^2 "powerstats: Create vendor state residency provider"
8b5e4744b55c14e4d57cdbe31383f51a91c25ec2 Change-Id: I1b199ea53ca52cd5b82823f87f1d899ff3c40719
Diffstat (limited to 'powerstats/aidl/android')
-rw-r--r--powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyCallback.aidl24
-rw-r--r--powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyProvider.aidl25
2 files changed, 49 insertions, 0 deletions
diff --git a/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyCallback.aidl b/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyCallback.aidl
new file mode 100644
index 00000000..f4ae9e85
--- /dev/null
+++ b/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyCallback.aidl
@@ -0,0 +1,24 @@
+/*
+ * 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 android.vendor.powerstats;
+
+import android.hardware.power.stats.StateResidency;
+
+interface IPixelStateResidencyCallback
+{
+ StateResidency[] getStateResidency();
+}
diff --git a/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyProvider.aidl b/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyProvider.aidl
new file mode 100644
index 00000000..f2c0faf2
--- /dev/null
+++ b/powerstats/aidl/android/vendor/powerstats/IPixelStateResidencyProvider.aidl
@@ -0,0 +1,25 @@
+/*
+ * 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 android.vendor.powerstats;
+
+import android.vendor.powerstats.IPixelStateResidencyCallback;
+
+interface IPixelStateResidencyProvider
+{
+ void registerCallback(in @utf8InCpp String entityName, in IPixelStateResidencyCallback cb);
+ void unregisterCallback(in IPixelStateResidencyCallback cb);
+}