Update ClientInfo.Aidl to return client name
The identifier is not assigned by runner, and offers
a more descriptive utility for the router
Fix: 148103943
Tests: Atests for computepipe
Change-Id: Icd108f9b9d20722b761b49a0b4a56fc5c462877d
diff --git a/computepipe/example/FaceTracker.h b/computepipe/example/FaceTracker.h
index ea6ba8b..60fd473 100644
--- a/computepipe/example/FaceTracker.h
+++ b/computepipe/example/FaceTracker.h
@@ -57,9 +57,9 @@
class ClientInfo : public BnClientInfo {
public:
- ndk::ScopedAStatus getClientId(int32_t* _aidl_return) {
+ ndk::ScopedAStatus getClientName(std::string* _aidl_return) override {
if (_aidl_return) {
- *_aidl_return = 0;
+ *_aidl_return = "FaceTrackerClient";
return ndk::ScopedAStatus::ok();
}
return ndk::ScopedAStatus::fromExceptionCode(EX_TRANSACTION_FAILED);