summaryrefslogtreecommitdiff
path: root/tools/aapt2/diff/Diff.cpp
diff options
context:
space:
mode:
authorGreg Kaiser <gkaiser@google.com>2016-08-17 16:27:26 -0700
committerGreg Kaiser <gkaiser@google.com>2016-08-25 21:34:52 -0700
commit9d4d881cc5cd5e225f68c85050d99d60445edbcf (patch)
tree2fd09753c2373aa5f0ac9b250d34892ce7c35ffd /tools/aapt2/diff/Diff.cpp
parentf8d61675ac755a5110193e796e35e2e2a364387c (diff)
ContextHubService: Avoid uninitialized handle
We avoid ever using uninitialized stack for the value of a handle which we pass up to the Java layer. In cleaning up this code a little, we make more explicit a failure case which already existed: The Context Hub properly loading a nanoapp, but our Service code failing to set up the infrastructure to track it. We chose to tell the Java layer we failed in this case, and more importantly, provide a consistent handle value. Note that the INVALID_APP_ID is not known by the Java layer, but it is consistent so future Java code could react to it. At the very least we will now always have consistent behavior when this situation happens. Bug:30795236 Change-Id: Id4eada529aa1b223867a47985ef1d5c1ba346ea3
Diffstat (limited to 'tools/aapt2/diff/Diff.cpp')
0 files changed, 0 insertions, 0 deletions