am 0eec8948: am 305bcbf0: Decrease PackageManagerService wait time for vold

Merge commit '0eec8948f89c5216464d8204cadd69d7a6ec3669'

* commit '0eec8948f89c5216464d8204cadd69d7a6ec3669':
  Decrease PackageManagerService wait time for vold
This commit is contained in:
Kenny Root
2010-09-03 09:58:51 -07:00
committed by Android Git Automerger
3 changed files with 21 additions and 10 deletions

View File

@@ -68,6 +68,8 @@ class MountService extends IMountService.Stub
private static final String TAG = "MountService";
private static final String VOLD_TAG = "VoldConnector";
/*
* Internal vold volume state constants
*/
@@ -1006,9 +1008,15 @@ class MountService extends IMountService.Stub
return;
}
mConnector = new NativeDaemonConnector(this, "vold", 10, "VoldConnector");
/*
* Create the connection to vold with a maximum queue of twice the
* amount of containers we'd ever expect to have. This keeps an
* "asec list" from blocking a thread repeatedly.
*/
mConnector = new NativeDaemonConnector(this, "vold",
PackageManagerService.MAX_CONTAINERS * 2, VOLD_TAG);
mReady = false;
Thread thread = new Thread(mConnector, NativeDaemonConnector.class.getName());
Thread thread = new Thread(mConnector, VOLD_TAG);
thread.start();
}