Loading core/java/android/app/WallpaperManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -2458,7 +2458,12 @@ public class WallpaperManager { public void waitForCompletion() { try { mLatch.await(30, TimeUnit.SECONDS); final boolean completed = mLatch.await(30, TimeUnit.SECONDS); if (completed) { Log.d(TAG, "Wallpaper set completion."); } else { Log.d(TAG, "Timeout waiting for wallpaper set completion!"); } } catch (InterruptedException e) { // This might be legit: the crop may take a very long time. Don't sweat // it in that case; we are okay with display lagging behind in order to Loading core/java/android/service/wallpaper/WallpaperService.java +1 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,7 @@ public abstract class WallpaperService extends Service { */ public void reportEngineShown(boolean waitForEngineShown) { if (mIWallpaperEngine.mShownReported) return; Log.d(TAG, "reportEngineShown: shouldWait=" + waitForEngineShown); if (!waitForEngineShown) { Message message = mCaller.obtainMessage(MSG_REPORT_SHOWN); mCaller.removeMessages(MSG_REPORT_SHOWN); Loading services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +2 −3 Original line number Diff line number Diff line Loading @@ -320,9 +320,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub IRemoteCallback.Stub callback = new IRemoteCallback.Stub() { @Override public void sendResult(Bundle data) throws RemoteException { if (DEBUG) { Slog.d(TAG, "publish system wallpaper changed!"); } notifyWallpaperChanged(wallpaper); } }; Loading Loading @@ -1551,6 +1549,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub mReply.sendResult(null); } catch (RemoteException e) { Binder.restoreCallingIdentity(ident); Slog.d(TAG, "failed to send callback!", e); } mReply = null; } Loading Loading
core/java/android/app/WallpaperManager.java +6 −1 Original line number Diff line number Diff line Loading @@ -2458,7 +2458,12 @@ public class WallpaperManager { public void waitForCompletion() { try { mLatch.await(30, TimeUnit.SECONDS); final boolean completed = mLatch.await(30, TimeUnit.SECONDS); if (completed) { Log.d(TAG, "Wallpaper set completion."); } else { Log.d(TAG, "Timeout waiting for wallpaper set completion!"); } } catch (InterruptedException e) { // This might be legit: the crop may take a very long time. Don't sweat // it in that case; we are okay with display lagging behind in order to Loading
core/java/android/service/wallpaper/WallpaperService.java +1 −0 Original line number Diff line number Diff line Loading @@ -578,6 +578,7 @@ public abstract class WallpaperService extends Service { */ public void reportEngineShown(boolean waitForEngineShown) { if (mIWallpaperEngine.mShownReported) return; Log.d(TAG, "reportEngineShown: shouldWait=" + waitForEngineShown); if (!waitForEngineShown) { Message message = mCaller.obtainMessage(MSG_REPORT_SHOWN); mCaller.removeMessages(MSG_REPORT_SHOWN); Loading
services/core/java/com/android/server/wallpaper/WallpaperManagerService.java +2 −3 Original line number Diff line number Diff line Loading @@ -320,9 +320,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub IRemoteCallback.Stub callback = new IRemoteCallback.Stub() { @Override public void sendResult(Bundle data) throws RemoteException { if (DEBUG) { Slog.d(TAG, "publish system wallpaper changed!"); } notifyWallpaperChanged(wallpaper); } }; Loading Loading @@ -1551,6 +1549,7 @@ public class WallpaperManagerService extends IWallpaperManager.Stub mReply.sendResult(null); } catch (RemoteException e) { Binder.restoreCallingIdentity(ident); Slog.d(TAG, "failed to send callback!", e); } mReply = null; } Loading