Home
last modified time | relevance | path

Searched refs:Snapshot (Results 1 – 25 of 28) sorted by relevance

12

/frameworks/base/libs/hwui/
DSnapshot.cpp28 Snapshot::Snapshot() in Snapshot() function in android::uirenderer::Snapshot
45 Snapshot::Snapshot(Snapshot* s, int saveFlags) in Snapshot() function in android::uirenderer::Snapshot
75 void Snapshot::clip(const Rect& localClip, SkClipOp op) { in clip()
76 flags |= Snapshot::kFlagClipSet; in clip()
80 void Snapshot::clipPath(const SkPath& path, SkClipOp op) { in clipPath()
81 flags |= Snapshot::kFlagClipSet; in clipPath()
85 void Snapshot::setClip(float left, float top, float right, float bottom) { in setClip()
86 flags |= Snapshot::kFlagClipSet; in setClip()
90 bool Snapshot::hasPerspectiveTransform() const { in hasPerspectiveTransform()
94 const Rect& Snapshot::getLocalClip() { in getLocalClip()
[all …]
DCanvasState.h48 virtual void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) = 0;
163 inline const Snapshot* currentSnapshot() const { return mSnapshot; } in currentSnapshot()
164 inline Snapshot* writableSnapshot() { return mSnapshot; } in writableSnapshot()
165 inline const Snapshot* firstSnapshot() const { return &mFirstSnapshot; } in firstSnapshot()
168 Snapshot* allocSnapshot(Snapshot* previous, int savecount);
169 void freeSnapshot(Snapshot* snapshot);
179 Snapshot mFirstSnapshot;
185 Snapshot* mSnapshot;
189 Snapshot* mSnapshotPool = nullptr;
DBakedOpState.h55 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, in BakedOpState()
151 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const RecordedOp& recordedOp) in BakedOpState()
157 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, const ShadowOp* shadowOpPtr) in BakedOpState()
DCanvasState.cpp79 Snapshot* CanvasState::allocSnapshot(Snapshot* previous, int savecount) { in allocSnapshot()
86 memory = malloc(sizeof(Snapshot)); in allocSnapshot()
88 return new (memory) Snapshot(previous, savecount); in allocSnapshot()
91 void CanvasState::freeSnapshot(Snapshot* snapshot) { in freeSnapshot()
92 snapshot->~Snapshot(); in freeSnapshot()
105 Snapshot* temp = mSnapshot; in freeAllSnapshots()
134 Snapshot* toRemove = mSnapshot; in restoreSnapshot()
135 Snapshot* toRestore = mSnapshot->previous; in restoreSnapshot()
DBakedOpState.cpp33 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState()
87 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState()
96 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) in ResolvedRenderState()
113 Snapshot& snapshot, const RecordedOp& recordedOp) { in tryConstruct()
126 Snapshot& snapshot, const RecordedOp& recordedOp) { in tryConstructUnbounded()
132 Snapshot& snapshot, const RecordedOp& recordedOp, StrokeBehavior strokeBehavior, in tryStrokeableOpConstruct()
150 Snapshot& snapshot, const ShadowOp* shadowOpPtr) { in tryShadowOpConstruct()
DSnapshot.h75 class Snapshot {
78 Snapshot();
79 Snapshot(Snapshot* s, int saveFlags);
197 Snapshot* previous;
DRecordingCanvas.cpp94 void RecordingCanvas::onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) { in onSnapshotRestored()
95 if (removed.flags & Snapshot::kFlagIsFboLayer) { in onSnapshotRestored()
97 } else if (removed.flags & Snapshot::kFlagIsLayer) { in onSnapshotRestored()
124 const Snapshot& previous = *mState.currentSnapshot(); in saveLayer()
161 Snapshot& snapshot = *mState.writableSnapshot(); in saveLayer()
172 snapshot.flags |= Snapshot::kFlagIsLayer | Snapshot::kFlagIsFboLayer; in saveLayer()
188 snapshot.flags |= Snapshot::kFlagIsLayer; in saveLayer()
DFrameBuilder.h166 virtual void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) override;
DRecordingCanvas.h69 virtual void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) override;
DAndroid.mk114 Snapshot.cpp \
/frameworks/native/include/ui/
DFenceTime.h45 struct Snapshot : public Flattenable<Snapshot> { struct
52 Snapshot() = default; // Creates an empty snapshot. argument
53 explicit Snapshot(const sp<Fence>& fence);
54 explicit Snapshot(nsecs_t signalTime);
57 Snapshot(Snapshot&& src) = default;
58 Snapshot& operator=(Snapshot&& src) = default; argument
60 Snapshot(const Snapshot& src) = delete;
61 Snapshot& operator=(const Snapshot&& src) = delete; argument
100 void applyTrustedSnapshot(const Snapshot& src);
112 Snapshot getSnapshot() const;
/frameworks/native/libs/ui/
DFenceTime.cpp74 void FenceTime::applyTrustedSnapshot(const Snapshot& src) { in applyTrustedSnapshot()
75 if (CC_UNLIKELY(src.state != Snapshot::State::SIGNAL_TIME)) { in applyTrustedSnapshot()
83 if (src.state == Snapshot::State::EMPTY) { in applyTrustedSnapshot()
164 FenceTime::Snapshot FenceTime::getSnapshot() const { in getSnapshot()
168 return Snapshot(signalTime); in getSnapshot()
175 return Snapshot(signalTime); in getSnapshot()
177 return Snapshot(mFence); in getSnapshot()
202 FenceTime::Snapshot::Snapshot(const sp<Fence>& srcFence) in Snapshot() function in android::FenceTime::Snapshot
206 FenceTime::Snapshot::Snapshot(nsecs_t srcSignalTime) in Snapshot() function in android::FenceTime::Snapshot
210 size_t FenceTime::Snapshot::getFlattenedSize() const { in getFlattenedSize()
[all …]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
DBaseWrapContentTest.java129 List<Snapshot> s1 = runScenario(scenario, matchParent, null); in testScenerio()
132 List<Snapshot> s2 = runScenario(scenario, wrapContent, s1); in testScenerio()
136 Snapshot step1 = s1.get(i); in testScenerio()
137 Snapshot step2 = s2.get(i); in testScenerio()
142 public List<Snapshot> runScenario(Scenario scenario, ViewGroup.LayoutParams lp, in runScenario()
143 @Nullable List<Snapshot> compareWith) in runScenario()
147 List<Snapshot> result = new ArrayList<>(); in runScenario()
166 Snapshot snapshot = takeSnapshot(); in runScenario()
178 Snapshot snapshot = takeSnapshot(); in runScenario()
205 Snapshot snapshot = takeSnapshot(); in layoutAndCheck()
[all …]
/frameworks/av/media/libnbaio/include/
DNBLog.h321 class Snapshot {
323 Snapshot() : mData(NULL), mLost(0) {} in Snapshot() function
325 Snapshot(size_t bufferSize) : mData(new uint8_t[bufferSize]) {} in Snapshot() function
327 ~Snapshot() { delete[] mData; } in ~Snapshot()
359 std::unique_ptr<Snapshot> getSnapshot();
361 void dump(int fd, size_t indent, Snapshot & snap);
/frameworks/base/libs/hwui/tests/unit/
DSnapshotTests.cpp25 TEST(Snapshot, serializeIntersectedClip) { in TEST() argument
50 TEST(Snapshot, applyClip) { in TEST() argument
DCanvasStateTests.cpp33 void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) {} in onSnapshotRestored()
/frameworks/native/include/gui/
DFrameTimestamps.h151 const FenceTime::Snapshot& src) const;
284 FenceTime::Snapshot mGpuCompositionDoneFence;
285 FenceTime::Snapshot mDisplayPresentFence;
286 FenceTime::Snapshot mReleaseFence;
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/
DHprof.java27 import com.android.tools.perflib.heap.Snapshot;
59 Snapshot snapshot = Snapshot.createSnapshot(new MemoryMappedFileBuffer(hprofLocalFile)); in analyzeHprof()
/frameworks/base/services/core/java/com/android/server/am/
DUriPermission.java363 public static class Snapshot { class in UriPermission
371 private Snapshot(UriPermission perm) { in Snapshot() method in UriPermission.Snapshot
381 public Snapshot snapshot() { in snapshot()
382 return new Snapshot(this); in snapshot()
/frameworks/av/media/libnbaio/
DNBLog.cpp624 std::unique_ptr<NBLog::Reader::Snapshot> NBLog::Reader::getSnapshot() in getSnapshot()
627 return std::unique_ptr<NBLog::Reader::Snapshot>(new Snapshot()); in getSnapshot()
639 return std::unique_ptr<NBLog::Reader::Snapshot>(new Snapshot()); in getSnapshot()
642 std::unique_ptr<Snapshot> snapshot(new Snapshot(availToRead)); in getSnapshot()
689 void NBLog::Reader::dump(int fd, size_t indent, NBLog::Reader::Snapshot &snapshot) in dump()
828 std::unique_ptr<Snapshot> snap = getSnapshot(); in dump()
994 std::vector<std::unique_ptr<NBLog::Reader::Snapshot>> snapshots(nLogs); in merge()
/frameworks/native/libs/gui/
DFrameTimestamps.cpp317 std::shared_ptr<FenceTime>* dst, const FenceTime::Snapshot& src) const { in applyFenceDelta()
324 case FenceTime::Snapshot::State::EMPTY: in applyFenceDelta()
326 case FenceTime::Snapshot::State::FENCE: in applyFenceDelta()
331 case FenceTime::Snapshot::State::SIGNAL_TIME: in applyFenceDelta()
530 [](size_t a, const FenceTime::Snapshot* fence) { in getFlattenedSize()
538 [](size_t a, const FenceTime::Snapshot* fence) { in getFdCount()
/frameworks/base/libs/hwui/tests/microbench/
DDisplayListCanvasBench.cpp119 void onSnapshotRestored(const Snapshot& removed, const Snapshot& restored) {} in onSnapshotRestored()
/frameworks/base/libs/hwui/tests/common/
DTestUtils.h175 static std::unique_ptr<Snapshot> makeSnapshot(const Matrix4& transform, const Rect& clip) { in makeSnapshot()
176 std::unique_ptr<Snapshot> snapshot(new Snapshot()); in makeSnapshot()
/frameworks/av/media/libstagefright/omx/1.0/
DConversion.h1204 ::android::FenceTime::Snapshot::signalTime); in getFlattenedSize()
1245 ::android::FenceTime::Snapshot::State::EMPTY); in flatten()
1249 ::android::FenceTime::Snapshot::State::FENCE); in flatten()
1253 ::android::FenceTime::Snapshot::State::SIGNAL_TIME); in flatten()
1283 ::android::FenceTime::Snapshot::State state; in unflatten()
1286 case ::android::FenceTime::Snapshot::State::EMPTY: in unflatten()
1289 case ::android::FenceTime::Snapshot::State::FENCE: in unflatten()
1292 case ::android::FenceTime::Snapshot::State::SIGNAL_TIME: in unflatten()
/frameworks/base/tests/Camera2Tests/SmartCamera/
DREADME.txt16 Smart Camera / Auto Snapshot (formerly named SimpleCamera) ReadMe

12