Searched defs:snapshot (Results 1 - 25 of 34) sorted by relevance

12

/frameworks/base/services/core/java/com/android/server/wm/
H A DTaskWindowContainerListener.java28 /** Called when the snapshot of this task has changed. */
29 void onSnapshotChanged(TaskSnapshot snapshot); argument
H A DSnapshotStartingData.java24 * Represents starting data for snapshot starting windows.
31 SnapshotStartingData(WindowManagerService service, TaskSnapshot snapshot) { argument
34 mSnapshot = snapshot;
H A DTaskSnapshotCache.java45 void putSnapshot(Task task, TaskSnapshot snapshot) { argument
52 mRunningCache.put(task.mTaskId, new CacheEntry(snapshot, task.getTopChild()));
65 return entry.snapshot;
80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution);
81 if (snapshot == null) {
84 return snapshot;
127 pw.println(triplePrefix + "snapshot=" + entry.snapshot);
133 /** The snapshot. */
134 final TaskSnapshot snapshot; field in class:TaskSnapshotCache.CacheEntry
139 CacheEntry(TaskSnapshot snapshot, AppWindowToken topApp) argument
[all...]
H A DTaskSnapshotController.java47 * When an app token becomes invisible, we take a snapshot (bitmap) of the corresponding task and
51 * System applications may retrieve a snapshot to represent the current state of a task, and draw
54 * When we task becomes visible again, we show a starting window with the snapshot as the content to
63 * used as the snapshot.
76 * Return value for {@link #getSnapshotMode}: We aren't allowed to take any snapshot.
124 // We need to take a snapshot of the task if and only if all activities of the task are
135 final TaskSnapshot snapshot;
140 snapshot = drawAppThemeSnapshot(task);
143 snapshot = snapshotTask(task);
146 snapshot
172 createStartingSurface(AppWindowToken token, TaskSnapshot snapshot) argument
[all...]
H A DTaskSnapshotPersister.java95 * Persists a snapshot of a task to disk.
99 * @param snapshot The snapshot to persist.
101 void persistSnapshot(int taskId, int userId, TaskSnapshot snapshot) { argument
104 sendToQueueLocked(new StoreWriteQueueItem(taskId, userId, snapshot));
266 StoreWriteQueueItem(int taskId, int userId, TaskSnapshot snapshot) { argument
269 mSnapshot = snapshot;
285 Slog.e(TAG, "Unable to create snapshot directory for user dir="
H A DTaskWindowContainerController.java219 void reportSnapshotChanged(TaskSnapshot snapshot) { argument
220 mHandler.obtainMessage(H.REPORT_SNAPSHOT_CHANGED, snapshot).sendToTarget();
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/model/
H A DThumbnailData.java28 // TODO: Make these final once the non-snapshot path is removed.
35 public static ThumbnailData createFromTaskSnapshot(TaskSnapshot snapshot) { argument
37 out.thumbnail = Bitmap.createHardwareBitmap(snapshot.getSnapshot());
38 out.insets.set(snapshot.getContentInsets());
39 out.orientation = snapshot.getOrientation();
40 out.reducedResolution = snapshot.isReducedResolution();
41 out.scale = snapshot.getScale();
/frameworks/base/services/core/java/com/android/server/am/
H A DCoreSettingsObserver.java111 void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { argument
128 snapshot.putString(setting, value);
130 snapshot.putInt(setting, Integer.parseInt(value));
132 snapshot.putFloat(setting, Float.parseFloat(value));
134 snapshot.putLong(setting, Long.parseLong(value));
H A DUriPermission.java381 public Snapshot snapshot() { method in class:UriPermission
H A DTaskChangeNotificationController.java413 * Notify listeners that the snapshot of a task has changed.
415 void notifyTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) { argument
417 taskId, 0, snapshot);
/frameworks/base/core/java/android/app/
H A DSharedElementCallback.java46 private static final String BUNDLE_SNAPSHOT_BITMAP = "sharedElement:snapshot:bitmap";
47 private static final String BUNDLE_SNAPSHOT_IMAGE_SCALETYPE = "sharedElement:snapshot:imageScaleType";
48 private static final String BUNDLE_SNAPSHOT_IMAGE_MATRIX = "sharedElement:snapshot:imageMatrix";
151 * Creates a snapshot of a shared element to be used by the remote Activity and reconstituted
153 * null return value will mean that the remote Activity will have a null snapshot View in
159 * @param sharedElement The shared element View to create a snapshot for.
164 * @return A snapshot to send to the remote Activity to be reconstituted with
201 * Reconstitutes a snapshot View from a Parcelable returned in
210 * @param context The Context used to create the snapshot View.
211 * @param snapshot Th
217 onCreateSnapshotView(Context context, Parcelable snapshot) argument
[all...]
H A DTaskStackListener.java97 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) argument
/frameworks/base/core/java/android/util/
H A DLruCache.java370 public synchronized final Map<K, V> snapshot() { method in class:LruCache
/frameworks/base/libs/hwui/tests/unit/
H A DBakedOpStateTests.cpp187 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 200)); local
188 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp))
194 EXPECT_EQ(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, rejectOp))
207 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect()); // Note: empty clip local
208 BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234);
212 "since op is quick rejected based on snapshot clip";
215 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect(100, 200)); local
216 BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1234);
235 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect()); // Note: empty clip local
236 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectO
249 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(200, 200)); local
264 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(200, 200)); local
[all...]
H A DBakedOpDispatcherTests.cpp60 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 100)); local
61 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op);
/frameworks/base/tools/layoutlib/bridge/src/android/util/
H A DLruCache.java381 public synchronized final Map<K, V> snapshot() { method in class:LruCache
/frameworks/base/libs/hwui/
H A DBakedOpState.cpp33 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, argument
36 transform.loadMultiply(*snapshot.transform, recordedOp.localMatrix);
55 clipState = snapshot.serializeIntersectedClip(allocator,
56 recordedOp.localClip, *(snapshot.transform));
72 if (CC_UNLIKELY(snapshot.projectionPathMask)) {
81 snapshot.projectionPathMask->transform(skInverseTransform, localMask);
87 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, argument
89 transform.loadMultiply(*snapshot.transform, localTransform);
90 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot
96 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) argument
112 tryConstruct(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) argument
125 tryConstructUnbounded(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) argument
131 tryStrokeableOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp, StrokeBehavior strokeBehavior, bool expandForPathTexture) argument
149 tryShadowOpConstruct(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr) argument
[all...]
H A DBakedOpState.h51 * Holds the resolved clip, transform, and bounds of a recordedOp, when replayed with a snapshot
55 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot,
59 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot,
63 ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot);
107 Snapshot& snapshot, const RecordedOp& recordedOp);
110 Snapshot& snapshot, const RecordedOp& recordedOp);
120 Snapshot& snapshot, const RecordedOp& recordedOp, StrokeBehavior strokeBehavior,
124 Snapshot& snapshot, const ShadowOp* shadowOpPtr);
143 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, argument
145 : computedState(allocator, snapshot, recordedO
151 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) argument
157 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr) argument
[all...]
H A DCanvasState.cpp91 void CanvasState::freeSnapshot(Snapshot* snapshot) { argument
92 snapshot->~Snapshot();
95 free((void*) snapshot);
97 snapshot->previous = mSnapshotPool;
98 mSnapshotPool = snapshot;
/frameworks/support/compat/java/android/support/v4/app/
H A DSharedElementCallback.java45 private static final String BUNDLE_SNAPSHOT_BITMAP = "sharedElement:snapshot:bitmap";
46 private static final String BUNDLE_SNAPSHOT_IMAGE_SCALETYPE = "sharedElement:snapshot:imageScaleType";
47 private static final String BUNDLE_SNAPSHOT_IMAGE_MATRIX = "sharedElement:snapshot:imageMatrix";
148 * Creates a snapshot of a shared element to be used by the remote Activity and reconstituted
150 * null return value will mean that the remote Activity will have a null snapshot View in
156 * @param sharedElement The shared element View to create a snapshot for.
161 * @return A snapshot to send to the remote Activity to be reconstituted with
240 * Reconstitutes a snapshot View from a Parcelable returned in
249 * @param context The Context used to create the snapshot View.
250 * @param snapshot Th
256 onCreateSnapshotView(Context context, Parcelable snapshot) argument
[all...]
H A DActivityCompat.java488 public View onCreateSnapshotView(Context context, Parcelable snapshot) { argument
489 return mCallback.onCreateSnapshotView(context, snapshot);
/frameworks/support/compat/java/android/support/v4/util/
H A DLruCache.java333 public synchronized final Map<K, V> snapshot() { method in class:LruCache
/frameworks/base/core/tests/coretests/src/android/os/
H A DPerformanceCollectorTest.java51 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector);
52 assertNotNull(snapshot);
53 assertEquals(2, snapshot.size());
60 Bundle snapshot = mPerfCollector.endSnapshot();
62 verifySnapshotBundle(snapshot);
111 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector);
112 assertNotNull(snapshot);
113 assertEquals(2, snapshot.size());
348 * by staggering calls to snapshot and timing functions.
399 private void verifySnapshotBundle(Bundle snapshot) { argument
[all...]
/frameworks/base/services/core/java/com/android/server/net/
H A DNetworkStatsRecorder.java202 * Record any delta that occurred since last {@link NetworkStats} snapshot,
204 * snapshot is considered bootstrap, and is not counted as delta.
208 * This should always be set to null if the provided snapshot is aggregated
211 public void recordSnapshotLocked(NetworkStats snapshot, argument
216 // skip recording when snapshot missing
217 if (snapshot == null) return;
219 // assume first snapshot is bootstrap and don't record
221 mLastSnapshot = snapshot;
228 snapshot, mLastSnapshot, mObserver, mCookie);
268 mLastSnapshot = snapshot;
[all...]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/
H A DRecentsImpl.java197 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) { argument
204 ThumbnailData.createFromTaskSnapshot(snapshot)));

Completed in 3346 milliseconds

12