OSDN Git Service

Give DeviceStorageMonitorService it's own thread.
authorJeff Sharkey <jsharkey@android.com>
Wed, 2 Aug 2017 20:24:35 +0000 (14:24 -0600)
committerJeff Sharkey <jsharkey@android.com>
Wed, 2 Aug 2017 20:24:38 +0000 (14:24 -0600)
commita1e79948ecf1057fe91733baac2759ea91cc1894
treeb3f9830c4a7429dec8dfa2cd84ff1f6da8d8bffc
parente5ae77c67908a7274620f9ee5e14b4bccd5e4c10
Give DeviceStorageMonitorService it's own thread.

When devices are low on space, it calls down into installd to clear
cached files, which can block for a long time.  Instead of risking
the wrath of the Watchdog on IoThread, give ourselves a separate
thread.

Test: builds, boots
Bug: 64080821
Change-Id: Iaca00966bb836d58e8d2400d6c9d544023ef1af8
services/core/java/com/android/server/storage/DeviceStorageMonitorService.java