Merge "ServiceManagement: remove logspam"
diff --git a/transport/base/1.0/IBase.hal b/transport/base/1.0/IBase.hal
index 3eae7ea..9301c65 100644
--- a/transport/base/1.0/IBase.hal
+++ b/transport/base/1.0/IBase.hal
@@ -30,6 +30,12 @@
interface IBase {
/*
+ * Provides way to determine if interface is running without requesting
+ * any functionality.
+ */
+ ping();
+
+ /*
* Provides run-time type information for this object.
* For example, for the following interface definition:
* package android.hardware.foo@1.0;
diff --git a/transport/manager/1.0/IServiceManager.hal b/transport/manager/1.0/IServiceManager.hal
index 61f6047..3b292a4 100644
--- a/transport/manager/1.0/IServiceManager.hal
+++ b/transport/manager/1.0/IServiceManager.hal
@@ -121,5 +121,12 @@
*/
debugDump() generates (vec<InstanceDebugInfo> info);
+ /*
+ * When the passthrough service manager returns a service via
+ * get(string, string), it must dispatch a registerPassthroughClient call
+ * to the binderized service manager to indicate which process has called
+ * get. Binderized service manager must record this PID, which can
+ * be retrieved via debugDump.
+ */
oneway registerPassthroughClient(string fqName, string name, int32_t pid);
};
diff --git a/transport/memory/1.0/IMemory.hal b/transport/memory/1.0/IMemory.hal
index 404675a..66f37b3 100644
--- a/transport/memory/1.0/IMemory.hal
+++ b/transport/memory/1.0/IMemory.hal
@@ -19,12 +19,24 @@
interface IMemory {
/**
- * Notify that you are about to use this memory.
+ * Notify that you are about to use all of this memory.
*/
update();
/**
+ * Notify that you are about to use the specific range.
+ *
+ * start + length must be < size
+ *
+ * @param start Offset from start of buffer about to be updated.
+ * @param length Number of bytes to be updated.
+ */
+ updateRange(uint64_t start, uint64_t length);
+
+ /**
* Notify that you are done modifying this memory.
+ *
+ * Must commit all previous update's and updateAll's.
*/
commit();
diff --git a/transport/memory/1.0/default/AshmemMemory.cpp b/transport/memory/1.0/default/AshmemMemory.cpp
index 31626ea..b954bad 100644
--- a/transport/memory/1.0/default/AshmemMemory.cpp
+++ b/transport/memory/1.0/default/AshmemMemory.cpp
@@ -37,12 +37,17 @@
// Methods from ::android::hidl::memory::V1_0::IMemory follow.
Return<void> AshmemMemory::update() {
- // NOOP
+ // NOOP (since non-remoted memory)
+ return Void();
+}
+
+Return<void> AshmemMemory::updateRange(uint64_t start, uint64_t length) {
+ // NOOP (since non-remoted memory)
return Void();
}
Return<void> AshmemMemory::commit() {
- // NOOP
+ // NOOP (since non-remoted memory)
return Void();
}
diff --git a/transport/memory/1.0/default/AshmemMemory.h b/transport/memory/1.0/default/AshmemMemory.h
index 9dbe1fe..825d74e 100644
--- a/transport/memory/1.0/default/AshmemMemory.h
+++ b/transport/memory/1.0/default/AshmemMemory.h
@@ -43,6 +43,7 @@
// Methods from ::android::hidl::memory::V1_0::IMemory follow.
Return<void> update() override;
+ Return<void> updateRange(uint64_t start, uint64_t length) override;
Return<void> commit() override;
Return<void*> getPointer() override;
Return<uint64_t> getSize() override;