History log of /frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
bece5990c7ad14fff494204e68ca251f4c9c626b 09-May-2016 Greg Kaiser <gkaiser@google.com> ContextHub: Avoid reference leaks

We were leaking references in each call to onMessageReceipt(),
leading us to eventually run out of references and crash. We
now delete our local references prior to leaving the function.
Also, since especially our message size can be quite large,
we put in logic to gracefully fail if the system is out of
memory.

In addition, we fix up reference leaks within
constructJContextHubInfo(). These were one-time leaks at
initialization, so not the root cause of our crash, but still
unnecessary leaks which are easily fixed.

Bug: 28655628
Change-Id: I3a3dc8e069c6c1810f3152872d8d8410e8ad0683
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
3cd7305f99c798a6a3735145b8cbcbb92bee7802 29-Apr-2016 destradaa <destradaa@google.com> Fix build break due to 32/64 bit compilation.

Change-Id: I9aba08a5fd512c52c9d0c9d4853c72a3e81a22cd
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
6469c233fb9f7e617a5bc8b5d8348d7241d279c7 28-Apr-2016 destradaa <destradaa@google.com> Fixes on handling messages from apps to host.

- Ensure that app to host events are not filtered out
- Populates the app handle appropriately for clients to reference the
nano app sending the event

Bug: 28273520
Bug: 28272149

Change-Id: I7373fc84abcadc2ab17109484f2d04b02a474593
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
85202e0a6e0cf381f1a47ca9e91273da7dbf6687 11-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> Remove LOAD_OS_APP message from standard context hub messages

Removing LOAD_OS_APP from the list of standard Android messages.

Change-Id: I1db1933e2c090716a1921f14e04e1f5d133ea9cd
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
ab2d44596b749f3095a262ca3dc3188238dd19d1 08-Apr-2016 Alexey Polyudov <apolyudov@google.com> contexthub: nanohub HAL redefined hub_app_name_t; keep in sync

we're now using hub_app_name_t as unique nanoapp ID throughout
all layers

Bug: 28086503
Change-Id: Ie8113de1b2bafd441d79e45137f44d74970fcd01
Signed-off-by: Alexey Polyudov <apolyudov@google.com>
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
6239cc6fe1d18ce4365c56346a09c7963dfa8f10 05-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> Add dumpsys capabilities for context hub service

Add useful debug hook for context hub service.
Fix constants
Use helper functions to address OS

Change-Id: Iba5f24a9a1fd809c3d83752953389d373ff334ca
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
cafdee9a72652354c5bde0b13c86dac3d88ac2ae 05-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> App upload to Context hub.

Fix constants
Use helper functions to address OS

Change-Id: I61bd1f3eff2716ead2771eda335998f2e9b73afc
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
b741e3b374e7eebf96e2104dec5caccf723b2a39 29-Mar-2016 Ashutosh Joshi <ashutoshj@google.com> Added handling apps query response from context hub

Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: Ie96a860774d005ad6ad72acc88dc79964835486b
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
2c697fb4a8b8f8c0a2acf1fb15027f363f74c2dc 01-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> Revert "Added handling apps query response from context hub"

This reverts commit adf75e31f52a7a935a66a884fb55631c7309ee75.

Change-Id: I8391eb57c3a53e686bd817d27860fa6f785113f1
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
c75f7c20e86a8c5dd8523aee3ad390b91f3d2418 01-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> Revert "Ensuring builds compile for both 32 bit and 64 bit targets."

This reverts commit 85e093bc03d747f69b3ada658c9e82f442cda334.

Change-Id: I9346929e6016e36beb3b6949ccec9fce73da91c4
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
85e093bc03d747f69b3ada658c9e82f442cda334 01-Apr-2016 Ashutosh Joshi <ashutoshj@google.com> Ensuring builds compile for both 32 bit and 64 bit targets.

Fixing print formats for pointers.
Fixing a dangerous memory free.

Change-Id: I7c53bdaeceed80845ef002ed6a8a783ecb0378dc
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
adf75e31f52a7a935a66a884fb55631c7309ee75 29-Mar-2016 Ashutosh Joshi <ashutoshj@google.com> Added handling apps query response from context hub

Added handling of app query reponse from context hub.
Exposed the maximum message size to clients.

Change-Id: I8d8ecaa2e75f6ef86ee65a3a050538cbbadc32eb
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp
9ff7d2235427b211344fa58b608424805a21aa24 11-Feb-2016 Peng Xu <pengxu@google.com> Exposing Context Hub service.

Adding the Context hub service. This is the service that exposes
the context hub HAL to the system. The API exposed is a System API.

Change-Id: I854141714ecd21f6386e6b15b7bc9a997483ccf6
/frameworks/base/core/jni/android_hardware_location_ContextHubService.cpp