Loading services/core/java/com/android/server/wm/AppSnapshotLoader.java +5 −9 Original line number Diff line number Diff line Loading @@ -179,12 +179,6 @@ class AppSnapshotLoader { return null; } final HardwareBuffer buffer = hwBitmap.getHardwareBuffer(); if (buffer == null) { Slog.w(TAG, "Failed to retrieve gralloc buffer for bitmap: " + bitmapFile.getPath()); return null; } final ComponentName topActivityComponent = ComponentName.unflattenFromString( proto.topActivityComponent); Loading @@ -202,15 +196,17 @@ class AppSnapshotLoader { densityDpi = DisplayMetrics.DENSITY_DEVICE_STABLE; } return new TaskSnapshot(proto.id, SystemClock.elapsedRealtimeNanos(), topActivityComponent, buffer, hwBitmap.getColorSpace(), proto.orientation, proto.rotation, taskSize, final TaskSnapshot snapshot = new TaskSnapshot(proto.id, SystemClock.elapsedRealtimeNanos(), topActivityComponent, buffer, hwBitmap.getColorSpace(), proto.orientation, proto.rotation, taskSize, new Rect(proto.insetLeft, proto.insetTop, proto.insetRight, proto.insetBottom), new Rect(proto.letterboxInsetLeft, proto.letterboxInsetTop, proto.letterboxInsetRight, proto.letterboxInsetBottom), loadLowResolutionBitmap, proto.isRealSnapshot, proto.windowingMode, proto.appearance, proto.isTranslucent, false /* hasImeSurface */, proto.uiMode, densityDpi); hwBitmap.recycle(); return snapshot; } catch (IOException e) { Slog.w(TAG, "Unable to load task snapshot data for Id=" + id); return null; Loading Loading
services/core/java/com/android/server/wm/AppSnapshotLoader.java +5 −9 Original line number Diff line number Diff line Loading @@ -179,12 +179,6 @@ class AppSnapshotLoader { return null; } final HardwareBuffer buffer = hwBitmap.getHardwareBuffer(); if (buffer == null) { Slog.w(TAG, "Failed to retrieve gralloc buffer for bitmap: " + bitmapFile.getPath()); return null; } final ComponentName topActivityComponent = ComponentName.unflattenFromString( proto.topActivityComponent); Loading @@ -202,15 +196,17 @@ class AppSnapshotLoader { densityDpi = DisplayMetrics.DENSITY_DEVICE_STABLE; } return new TaskSnapshot(proto.id, SystemClock.elapsedRealtimeNanos(), topActivityComponent, buffer, hwBitmap.getColorSpace(), proto.orientation, proto.rotation, taskSize, final TaskSnapshot snapshot = new TaskSnapshot(proto.id, SystemClock.elapsedRealtimeNanos(), topActivityComponent, buffer, hwBitmap.getColorSpace(), proto.orientation, proto.rotation, taskSize, new Rect(proto.insetLeft, proto.insetTop, proto.insetRight, proto.insetBottom), new Rect(proto.letterboxInsetLeft, proto.letterboxInsetTop, proto.letterboxInsetRight, proto.letterboxInsetBottom), loadLowResolutionBitmap, proto.isRealSnapshot, proto.windowingMode, proto.appearance, proto.isTranslucent, false /* hasImeSurface */, proto.uiMode, densityDpi); hwBitmap.recycle(); return snapshot; } catch (IOException e) { Slog.w(TAG, "Unable to load task snapshot data for Id=" + id); return null; Loading