Home
last modified time | relevance | path

Searched refs:getSnapshot (Results 1 – 25 of 44) sorted by relevance

12

/frameworks/native/services/surfaceflinger/tests/unittests/
DLayerSnapshotTest.cpp110 LayerSnapshot* getSnapshot(uint32_t layerId) { return mSnapshotBuilder.getSnapshot(layerId); } in getSnapshot() function in android::surfaceflinger::frontend::LayerSnapshotTest
111 LayerSnapshot* getSnapshot(const LayerHierarchy::TraversalPath path) { in getSnapshot() function in android::surfaceflinger::frontend::LayerSnapshotTest
112 return mSnapshotBuilder.getSnapshot(path); in getSnapshot()
157 EXPECT_EQ(getSnapshot(11)->geomCrop, layerCrop); in TEST_F()
158 EXPECT_EQ(getSnapshot(111)->geomLayerBounds, layerCrop.toFloatRect()); in TEST_F()
163 EXPECT_EQ(getSnapshot(1)->geomLayerBounds, maxDisplaySize); in TEST_F()
205 EXPECT_EQ(getSnapshot(111)->geomLayerBounds, crop.toFloatRect()); in TEST_F()
217 EXPECT_EQ(getSnapshot(111)->isVisible, true); in TEST_F()
223 EXPECT_EQ(getSnapshot(111)->isVisible, false); in TEST_F()
224 EXPECT_TRUE(getSnapshot(111)->changes.test(RequestedLayerState::Changes::Visibility)); in TEST_F()
[all …]
DCommitTest.cpp112 auto parentMetadata = mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->layerMetadata.mMap; in TEST_F()
113 auto childMetadata = mFlinger.mutableLayerSnapshotBuilder().getSnapshot(11)->layerMetadata.mMap; in TEST_F()
156 auto parentMetadata = mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->layerMetadata.mMap; in TEST_F()
157 auto childMetadata = mFlinger.mutableLayerSnapshotBuilder().getSnapshot(11)->layerMetadata.mMap; in TEST_F()
DLayerHistoryIntegrationTest.cpp580 mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->changes |= in TEST_F()
1043 ASSERT_EQ(true, mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->isSmallDirty); in TEST_F()
1061 ASSERT_EQ(false, mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->isSmallDirty); in TEST_F()
1079 ASSERT_EQ(true, mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->isSmallDirty); in TEST_F()
1085 ASSERT_EQ(false, mFlinger.mutableLayerSnapshotBuilder().getSnapshot(1)->isSmallDirty); in TEST_F()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotCacheTest.java68 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
71 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppRemoved()
79 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
82 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testAppDied()
90 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
93 assertNull(mCache.getSnapshot(window.getTask().mTaskId, 0 /* userId */, in testTaskRemoved()
102 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
106 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
110 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
119 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testRestoreFromDisk()
[all …]
DTaskSnapshotLowResDisabledTest.java82 assertNotNull(snapshot.getSnapshot()); in testPersistAndLoadSnapshot()
132 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
136 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
140 assertNotNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
144 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
148 assertNull(mCache.getSnapshot(window.getTask().mTaskId, mWm.mCurrentUserId, in testReduced_notCached()
DActivitySnapshotControllerTests.java208 assertNull(mActivitySnapshotController.getSnapshot(singleActivityList)); in testMultipleActivitiesLoadSnapshot()
210 assertNull(mActivitySnapshotController.getSnapshot(singleActivityList)); in testMultipleActivitiesLoadSnapshot()
215 assertNull(mActivitySnapshotController.getSnapshot(activities)); in testMultipleActivitiesLoadSnapshot()
248 assertNull(mActivitySnapshotController.getSnapshot(singleActivityList)); in testMultipleActivitiesLoadSnapshot()
249 assertEquals(taskSnapshot, mActivitySnapshotController.getSnapshot(activities)); in testMultipleActivitiesLoadSnapshot()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotCache.java53 @Nullable TaskSnapshot getSnapshot(int taskId, int userId, boolean restoreFromDisk, in getSnapshot() method in TaskSnapshotCache
55 final TaskSnapshot snapshot = getSnapshot(taskId); in getSnapshot()
DTaskSnapshotController.java181 TaskSnapshot getSnapshot(int taskId, int userId, boolean restoreFromDisk, in getSnapshot() method in TaskSnapshotController
183 return mCache.getSnapshot(taskId, userId, restoreFromDisk, isLowResolution in getSnapshot()
192 final TaskSnapshot snapshot = mCache.getSnapshot(taskId); in getSnapshotCaptureTime()
DSnapshotCache.java54 final TaskSnapshot getSnapshot(Integer id) { in getSnapshot() method in SnapshotCache
DActivitySnapshotController.java147 TaskSnapshot getSnapshot(@NonNull ActivityRecord[] activities) { in getSnapshot() method in ActivitySnapshotController
159 return tmpUsf.mFileId == fileId ? mCache.getSnapshot(tmpUsf.mActivityIds.get(0)) : null; in getSnapshot()
326 if (getSnapshot(activities) != null) { in loadActivitySnapshot()
/frameworks/av/media/libnblog/include/media/nblog/
DReader.h54 std::unique_ptr<Snapshot> getSnapshot(bool flush = true);
102 friend std::unique_ptr<Snapshot> Reader::getSnapshot(bool flush);
/frameworks/native/services/surfaceflinger/FrontEnd/
DLayerSnapshotBuilder.h74 LayerSnapshot* getSnapshot(uint32_t layerId) const;
75 LayerSnapshot* getSnapshot(const LayerHierarchy::TraversalPath& id) const;
DLayerSnapshotBuilder.cpp531 LayerSnapshot* snapshot = getSnapshot(traversalPath); in updateSnapshotsInHierarchy()
564 LayerSnapshot* LayerSnapshotBuilder::getSnapshot(uint32_t layerId) const { in getSnapshot() function in android::surfaceflinger::frontend::LayerSnapshotBuilder
569 return getSnapshot(path); in getSnapshot()
572 LayerSnapshot* LayerSnapshotBuilder::getSnapshot(const LayerHierarchy::TraversalPath& id) const { in getSnapshot() function in android::surfaceflinger::frontend::LayerSnapshotBuilder
609 LayerSnapshot* snapshot = getSnapshot(traversalPath); in sortSnapshotsByZ()
1121 auto cropLayerSnapshot = getSnapshot(requested.touchCropId); in updateInput()
1165 LayerSnapshot* snapshot = getSnapshot(traversalPath); in forEachVisibleSnapshot()
1205 frontend::LayerSnapshot* snapshot = getSnapshot(path); in updateTouchableRegionCrop()
1218 auto cropLayerSnapshot = getSnapshot(snapshot->touchCropId); in updateTouchableRegionCrop()
1221 auto clonedRootSnapshot = path.isClone() ? getSnapshot(snapshot->mirrorRootPath) : nullptr; in updateTouchableRegionCrop()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/splitscreen/
DSplitScreenTransitions.java211 } else if (mode == TRANSIT_CHANGE && change.getSnapshot() != null) { in playInternalAnimation()
212 t.reparent(change.getSnapshot(), info.getRoot(rootIdx).getLeash()); in playInternalAnimation()
214 t.setLayer(change.getSnapshot(), info.getChanges().size() + 1); in playInternalAnimation()
215 t.setPosition(change.getSnapshot(), change.getStartAbsBounds().left, in playInternalAnimation()
217 t.show(change.getSnapshot()); in playInternalAnimation()
218 startFadeAnimation(change.getSnapshot(), false /* show */); in playInternalAnimation()
292 decor.setScreenshotIfNeeded(change.getSnapshot(), startTransaction); in playResizeAnimation()
/frameworks/base/core/java/com/android/internal/os/
DAppIdToPackageMap.java40 public static AppIdToPackageMap getSnapshot() { in getSnapshot() method in AppIdToPackageMap
/frameworks/av/media/libnblog/
DMerger.cpp86 snapshots[i] = mReaders[i]->getSnapshot(); in merge()
205 snapshots[i] = mReaders[i]->getSnapshot(); in getAndProcessSnapshot()
DReader.cpp67 std::unique_ptr<Snapshot> Reader::getSnapshot(bool flush) in getSnapshot() function in android::NBLog::Reader
235 std::unique_ptr<Snapshot> snapshot = getSnapshot(false /*flush*/); in dump()
/frameworks/native/services/surfaceflinger/
DLayerProtoHelper.cpp312 frontend::LayerSnapshot* LayerProtoFromSnapshotGenerator::getSnapshot( in getSnapshot() function in android::surfaceflinger::LayerProtoFromSnapshotGenerator
314 frontend::LayerSnapshot* snapshot = mSnapshotBuilder.getSnapshot(path); in getSnapshot()
328 frontend::LayerSnapshot* snapshot = getSnapshot(path, layer); in writeHierarchyToProto()
335 frontend::LayerSnapshot* childSnapshot = getSnapshot(path, layer); in writeHierarchyToProto()
DLayerProtoHelper.h96 frontend::LayerSnapshot* getSnapshot(frontend::LayerHierarchy::TraversalPath& path,
DTransactionCallbackInvoker.cpp147 handle->gpuCompositionDoneFence->getSnapshot().fence, in addCallbackHandle()
/frameworks/native/libs/ui/include_vndk/ui/
DFenceTime.h113 Snapshot getSnapshot() const;
/frameworks/native/libs/ui/include/ui/
DFenceTime.h113 Snapshot getSnapshot() const;
/frameworks/base/services/core/java/com/android/server/
DBinderCallsStatsService.java379 mBinderCallsStats.dump(pw, AppIdToPackageMap.getSnapshot(), worksourceUid, verbose); in dump()
442 mWorkSourceProvider.dump(pw, AppIdToPackageMap.getSnapshot()); in onCommand()
/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/transition/
DScreenRotationAnimation.java137 if (change.getSnapshot() != null) { in ScreenRotationAnimation()
138 mScreenshotLayer = change.getSnapshot(); in ScreenRotationAnimation()
/frameworks/native/libs/gui/
DFrameTimestamps.cpp584 frameTimestamps.gpuCompositionDoneFence->getSnapshot(); in FrameEventsDelta()
588 frameTimestamps.displayPresentFence->getSnapshot(); in FrameEventsDelta()
591 mReleaseFence = frameTimestamps.releaseFence->getSnapshot(); in FrameEventsDelta()

12