Loading services/core/java/com/android/server/AssetAtlasService.java +9 −1 Original line number Diff line number Diff line Loading @@ -415,12 +415,20 @@ public class AssetAtlasService extends IAssetAtlas.Stub { new Thread(worker, "Atlas Worker #" + (i + 1)).start(); } boolean isAllWorkerFinished; try { signal.await(10, TimeUnit.SECONDS); isAllWorkerFinished = signal.await(10, TimeUnit.SECONDS); } catch (InterruptedException e) { Log.w(LOG_TAG, "Could not complete configuration computation"); return null; } if (!isAllWorkerFinished) { // We have to abort here, otherwise the async updates on "results" would crash the // sort later. Log.w(LOG_TAG, "Could not complete configuration computation before timeout."); return null; } } // Maximize the number of packed bitmaps, minimize the texture size Loading Loading
services/core/java/com/android/server/AssetAtlasService.java +9 −1 Original line number Diff line number Diff line Loading @@ -415,12 +415,20 @@ public class AssetAtlasService extends IAssetAtlas.Stub { new Thread(worker, "Atlas Worker #" + (i + 1)).start(); } boolean isAllWorkerFinished; try { signal.await(10, TimeUnit.SECONDS); isAllWorkerFinished = signal.await(10, TimeUnit.SECONDS); } catch (InterruptedException e) { Log.w(LOG_TAG, "Could not complete configuration computation"); return null; } if (!isAllWorkerFinished) { // We have to abort here, otherwise the async updates on "results" would crash the // sort later. Log.w(LOG_TAG, "Could not complete configuration computation before timeout."); return null; } } // Maximize the number of packed bitmaps, minimize the texture size Loading