From ccb8e675257b729d0322461b09ad20effd3f5dc5 Mon Sep 17 00:00:00 2001 From: Ashutosh Joshi Date: Wed, 11 Jan 2017 17:13:19 -0800 Subject: [PATCH] Add a callback handler for nanoApp aborts. Adding a placeholder for nanoApp abort handling. The placeholder is necessary to check in HAL changes. It does not do anything interesting for now. Test: Build compiles. Change-Id: Iaf1220c73f28ccd4cb4e5e3830e7988b45c4d899 --- .../com_android_server_location_ContextHubService.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/services/core/jni/com_android_server_location_ContextHubService.cpp b/services/core/jni/com_android_server_location_ContextHubService.cpp index 47c95597b9c42..910644196c444 100644 --- a/services/core/jni/com_android_server_location_ContextHubService.cpp +++ b/services/core/jni/com_android_server_location_ContextHubService.cpp @@ -318,6 +318,15 @@ struct ContextHubServiceCallback : IContexthubCallback { return android::hardware::Void(); } + virtual Return handleAppAbort(uint64_t appId, uint32_t abortCode) { + ALOGI("Handle app aport called from %" PRIx64 " with abort code %" PRIu32, + appId, + abortCode); + + // TODO: Plumb this to the clients interested in this app + return android::hardware::Void(); + } + void setContextHubId(uint32_t id) { mContextHubId = id; }