OSDN Git Service

Cache IMountService for isUserKeyUnlocked() calls.
authorJeff Sharkey <jsharkey@android.com>
Thu, 26 May 2016 15:31:04 +0000 (09:31 -0600)
committerJeff Sharkey <jsharkey@android.com>
Thu, 26 May 2016 15:31:06 +0000 (09:31 -0600)
commit4815ed4500ac5480a6843a8cd7a6a3518ffddf4a
tree0b992dbdcf99967061e37e94040b33d7b6655b71
parentef817a1debbad9aa3de5ff49765b9a9a72fc73a2
Cache IMountService for isUserKeyUnlocked() calls.

This avoids doing a ServiceManager lookup for every call through
this hot code-path.

Bug: 28946245
Change-Id: I210ce34b33e5b40a5ab4e92ddce87fc5e9964be2
core/java/android/os/storage/StorageManager.java