Enable rich status reporting for binder interface
Generated aidl code now requires services to return
android::binder::Status objects from server interfaces. These objects
allow services to report error conditions as exceptions in Java.
Bug: 25632204
Test: Generated code compiles with updated aidl
Change-Id: I588be72e35b6caaa31454ecde0f51544e1134ce9
diff --git a/binder_service.h b/binder_service.h
index ac98169..bbbe5b6 100644
--- a/binder_service.h
+++ b/binder_service.h
@@ -33,18 +33,18 @@
BinderService() = default;
virtual ~BinderService() = default;
- android::status_t applyPayload(
+ android::binder::Status applyPayload(
const android::String16& url,
const std::vector<android::String16>& header_kv_pairs,
const android::sp<android::os::IUpdateEnginePayloadApplicationCallback>&
callback,
int32_t* return_value) override;
- android::status_t suspend() override;
+ android::binder::Status suspend() override;
- android::status_t resume() override;
+ android::binder::Status resume() override;
- android::status_t cancel() override;
+ android::binder::Status cancel() override;
}; // class BinderService
} // namespace chromeos_update_engine