Skip to content
Commit 89608118 authored by Lee Shombert's avatar Lee Shombert
Browse files

Clean up hasSystemFeature binder cache

Bug: 140788621

This is a non-functional clean-up.
1. Rename the classes and methods used by the binder cache so that
   everything public is based off of the binder name "hasSystemFeature".
2. Modified the hashCode() method to conform to the comments in cl/9965760
3. Moved hasSystemFeatureUnchached() logic into the cache recompute() method.
4. Made the cache static so that there is on per process.  The recompute()
   method uses the binder handle from ActivityThread, which is the same
   handle that is passed to all other classes.

This change does not include the Java 8-incompatible syntax.

Test: Built a debug image and ran one iteration of MPTS.  Verified that no
errors were seen.

Change-Id: I67b1cd3a151f4dc037c35f93f341a5de3e023941
parent d8bef18e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment