Loading core/java/android/app/WallpaperManager.java +17 −22 Original line number Diff line number Diff line Loading @@ -283,13 +283,15 @@ public class WallpaperManager { } private Bitmap getCurrentWallpaperLocked(Context context) { if (mService == null) { Log.w(TAG, "WallpaperService not running"); return null; } try { Bundle params = new Bundle(); ParcelFileDescriptor fd = mService.getWallpaper(this, params); if (fd != null) { int width = params.getInt("width", 0); int height = params.getInt("height", 0); try { BitmapFactory.Options options = new BitmapFactory.Options(); return BitmapFactory.decodeFileDescriptor( Loading @@ -311,13 +313,9 @@ public class WallpaperManager { } private Bitmap getDefaultWallpaperLocked(Context context) { try { InputStream is = context.getResources().openRawResource( com.android.internal.R.drawable.default_wallpaper); if (is != null) { int width = mService.getWidthHint(); int height = mService.getHeightHint(); try { BitmapFactory.Options options = new BitmapFactory.Options(); return BitmapFactory.decodeStream(is, null, options); Loading @@ -331,9 +329,6 @@ public class WallpaperManager { } } } } catch (RemoteException e) { // Ignore } return null; } } Loading services/java/com/android/server/SystemServer.java +4 −5 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import com.android.server.am.ActivityManagerService; import com.android.server.am.BatteryStatsService; import com.android.server.clipboard.ClipboardService; import com.android.server.content.ContentService; import com.android.server.devicepolicy.DevicePolicyManagerService; import com.android.server.display.DisplayManagerService; import com.android.server.dreams.DreamManagerService; import com.android.server.input.InputManagerService; Loading Loading @@ -107,8 +108,6 @@ public final class SystemServer { */ private static final String BACKUP_MANAGER_SERVICE_CLASS = "com.android.server.backup.BackupManagerService$Lifecycle"; private static final String DEVICE_POLICY_MANAGER_SERVICE_CLASS = "com.android.server.devicepolicy.DevicePolicyManagerService$Lifecycle"; private static final String APPWIDGET_SERVICE_CLASS = "com.android.server.appwidget.AppWidgetService"; private static final String PRINT_MANAGER_SERVICE_CLASS = Loading Loading @@ -538,9 +537,9 @@ public final class SystemServer { } try { if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { mSystemServiceManager.startService(DEVICE_POLICY_MANAGER_SERVICE_CLASS); } // Always start the Device Policy Manager, so that the API is compatible with // API8. mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class); } catch (Throwable e) { reportWtf("starting DevicePolicyService", e); } Loading Loading
core/java/android/app/WallpaperManager.java +17 −22 Original line number Diff line number Diff line Loading @@ -283,13 +283,15 @@ public class WallpaperManager { } private Bitmap getCurrentWallpaperLocked(Context context) { if (mService == null) { Log.w(TAG, "WallpaperService not running"); return null; } try { Bundle params = new Bundle(); ParcelFileDescriptor fd = mService.getWallpaper(this, params); if (fd != null) { int width = params.getInt("width", 0); int height = params.getInt("height", 0); try { BitmapFactory.Options options = new BitmapFactory.Options(); return BitmapFactory.decodeFileDescriptor( Loading @@ -311,13 +313,9 @@ public class WallpaperManager { } private Bitmap getDefaultWallpaperLocked(Context context) { try { InputStream is = context.getResources().openRawResource( com.android.internal.R.drawable.default_wallpaper); if (is != null) { int width = mService.getWidthHint(); int height = mService.getHeightHint(); try { BitmapFactory.Options options = new BitmapFactory.Options(); return BitmapFactory.decodeStream(is, null, options); Loading @@ -331,9 +329,6 @@ public class WallpaperManager { } } } } catch (RemoteException e) { // Ignore } return null; } } Loading
services/java/com/android/server/SystemServer.java +4 −5 Original line number Diff line number Diff line Loading @@ -58,6 +58,7 @@ import com.android.server.am.ActivityManagerService; import com.android.server.am.BatteryStatsService; import com.android.server.clipboard.ClipboardService; import com.android.server.content.ContentService; import com.android.server.devicepolicy.DevicePolicyManagerService; import com.android.server.display.DisplayManagerService; import com.android.server.dreams.DreamManagerService; import com.android.server.input.InputManagerService; Loading Loading @@ -107,8 +108,6 @@ public final class SystemServer { */ private static final String BACKUP_MANAGER_SERVICE_CLASS = "com.android.server.backup.BackupManagerService$Lifecycle"; private static final String DEVICE_POLICY_MANAGER_SERVICE_CLASS = "com.android.server.devicepolicy.DevicePolicyManagerService$Lifecycle"; private static final String APPWIDGET_SERVICE_CLASS = "com.android.server.appwidget.AppWidgetService"; private static final String PRINT_MANAGER_SERVICE_CLASS = Loading Loading @@ -538,9 +537,9 @@ public final class SystemServer { } try { if (pm.hasSystemFeature(PackageManager.FEATURE_DEVICE_ADMIN)) { mSystemServiceManager.startService(DEVICE_POLICY_MANAGER_SERVICE_CLASS); } // Always start the Device Policy Manager, so that the API is compatible with // API8. mSystemServiceManager.startService(DevicePolicyManagerService.Lifecycle.class); } catch (Throwable e) { reportWtf("starting DevicePolicyService", e); } Loading