Merge "Store compiled code in Context.getCodeCacheDir()"
automerge: 3fbbe39
* commit '3fbbe396faffeec6b46796087ad1e075e9a21f0d':
Store compiled code in Context.getCodeCacheDir()
This commit is contained in:
committed by
android-build-merger
commit
1641e192a8
@@ -4358,10 +4358,16 @@ public final class ActivityThread {
|
||||
if (cacheDir != null) {
|
||||
// Provide a usable directory for temporary files
|
||||
System.setProperty("java.io.tmpdir", cacheDir.getAbsolutePath());
|
||||
|
||||
setupGraphicsSupport(data.info, cacheDir);
|
||||
} else {
|
||||
Log.e(TAG, "Unable to setupGraphicsSupport due to missing cache directory");
|
||||
Log.v(TAG, "Unable to initialize \"java.io.tmpdir\" property due to missing cache directory");
|
||||
}
|
||||
|
||||
// Use codeCacheDir to store generated/compiled graphics code
|
||||
final File codeCacheDir = appContext.getCodeCacheDir();
|
||||
if (codeCacheDir != null) {
|
||||
setupGraphicsSupport(data.info, codeCacheDir);
|
||||
} else {
|
||||
Log.e(TAG, "Unable to setupGraphicsSupport due to missing code-cache directory");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user