/frameworks/base/core/tests/coretests/src/android/os/ |
D | PerformanceCollectorTest.java | 51 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshotNoWriter() local 52 assertNotNull(snapshot); in testBeginSnapshotNoWriter() 53 assertEquals(2, snapshot.size()); in testBeginSnapshotNoWriter() 60 Bundle snapshot = mPerfCollector.endSnapshot(); in testEndSnapshotNoWriter() local 62 verifySnapshotBundle(snapshot); in testEndSnapshotNoWriter() 111 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshot() local 112 assertNotNull(snapshot); in testBeginSnapshot() 113 assertEquals(2, snapshot.size()); in testBeginSnapshot() 399 private void verifySnapshotBundle(Bundle snapshot) { in verifySnapshotBundle() argument 400 assertTrue("At least 26 metrics collected", 26 <= snapshot.size()); in verifySnapshotBundle() [all …]
|
/frameworks/base/libs/hwui/ |
D | BakedOpState.cpp | 33 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState() argument 36 transform.loadMultiply(*snapshot.transform, recordedOp.localMatrix); in ResolvedRenderState() 53 clipState = snapshot.serializeIntersectedClip(allocator, in ResolvedRenderState() 54 recordedOp.localClip, *(snapshot.transform)); in ResolvedRenderState() 70 if (CC_UNLIKELY(snapshot.projectionPathMask)) { in ResolvedRenderState() 79 snapshot.projectionPathMask->transform(skInverseTransform, localMask); in ResolvedRenderState() 85 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot, in ResolvedRenderState() argument 87 transform.loadMultiply(*snapshot.transform, localTransform); in ResolvedRenderState() 88 clipState = snapshot.serializeIntersectedClip(allocator, localClip, *(snapshot.transform)); in ResolvedRenderState() 94 ResolvedRenderState::ResolvedRenderState(LinearAllocator& allocator, Snapshot& snapshot) in ResolvedRenderState() argument [all …]
|
D | BakedOpState.h | 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); 123 Snapshot& snapshot, const ShadowOp* shadowOpPtr); 142 BakedOpState(LinearAllocator& allocator, Snapshot& snapshot, in BakedOpState() argument 144 : computedState(allocator, snapshot, recordedOp, expandForStroke) in BakedOpState() 145 , alpha(snapshot.alpha) in BakedOpState() [all …]
|
D | CanvasState.cpp | 92 void CanvasState::freeSnapshot(Snapshot* snapshot) { in freeSnapshot() argument 93 snapshot->~Snapshot(); in freeSnapshot() 96 free((void*) snapshot); in freeSnapshot() 98 snapshot->previous = mSnapshotPool; in freeSnapshot() 99 mSnapshotPool = snapshot; in freeSnapshot()
|
D | RecordingCanvas.cpp | 157 Snapshot& snapshot = *mState.writableSnapshot(); in saveLayer() local 163 snapshot.resetClip(0, 0, 0, 0); in saveLayer() 171 snapshot.flags |= Snapshot::kFlagIsLayer | Snapshot::kFlagIsFboLayer; in saveLayer() 172 snapshot.initializeViewport(unmappedBounds.getWidth(), unmappedBounds.getHeight()); in saveLayer() 173 snapshot.transform->loadTranslate(-unmappedBounds.left, -unmappedBounds.top, 0.0f); in saveLayer() 177 snapshot.resetClip(clip.left, clip.top, clip.right, clip.bottom); in saveLayer() 178 snapshot.roundRectClipState = nullptr; in saveLayer() 186 snapshot.flags |= Snapshot::kFlagIsLayer; in saveLayer()
|
D | GlopBuilder.h | 78 GlopBuilder& setTransform(const Snapshot& snapshot, const int transformFlags) { in setTransform() argument 79 return setTransform(*snapshot.transform, transformFlags); in setTransform()
|
D | CanvasState.h | 173 void freeSnapshot(Snapshot* snapshot);
|
/frameworks/base/libs/hwui/tests/unit/ |
D | BakedOpStateTests.cpp | 187 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 200)); in TEST() local 188 EXPECT_NE(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, successOp)) in TEST() 194 EXPECT_EQ(nullptr, BakedOpState::tryConstruct(allocator, *snapshot, rejectOp)) in TEST() 207 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect()); // Note: empty clip in TEST() local 208 …BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST() 215 auto snapshot = TestUtils::makeSnapshot(translate10x20, Rect(100, 200)); in TEST() local 216 …BakedOpState* bakedState = BakedOpState::tryShadowOpConstruct(allocator, *snapshot, (ShadowOp*)0x1… in TEST() 235 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect()); // Note: empty clip in TEST() local 236 auto bakedState = BakedOpState::tryStrokeableOpConstruct(allocator, *snapshot, rejectOp, in TEST() 249 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(200, 200)); in TEST() local [all …]
|
D | BakedOpDispatcherTests.cpp | 59 auto snapshot = TestUtils::makeSnapshot(Matrix4::identity(), Rect(100, 100)); in testUnmergedGlopDispatch() local 60 auto state = BakedOpState::tryConstruct(allocator, *snapshot, *op); in testUnmergedGlopDispatch()
|
/frameworks/base/wifi/java/android/net/wifi/p2p/ |
D | WifiP2pGroupList.java | 64 for (Map.Entry<Integer, WifiP2pGroup> item : source.mGroups.snapshot().entrySet()) { in WifiP2pGroupList() 76 return mGroups.snapshot().values(); in getGroupList() 133 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId() 158 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId() 196 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in contains() 208 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in toString() 222 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in writeToParcel()
|
/frameworks/base/core/java/android/app/ |
D | SharedElementCallback.java | 217 public View onCreateSnapshotView(Context context, Parcelable snapshot) { in onCreateSnapshotView() argument 219 if (snapshot instanceof Bundle) { in onCreateSnapshotView() 220 Bundle bundle = (Bundle) snapshot; in onCreateSnapshotView() 236 } else if (snapshot instanceof Bitmap) { in onCreateSnapshotView() 237 Bitmap bitmap = (Bitmap) snapshot; in onCreateSnapshotView()
|
D | ActivityTransitionCoordinator.java | 626 View snapshot = null; in createSnapshots() local 630 snapshot = mListener.onCreateSnapshotView(context, parcelable); in createSnapshots() 632 if (snapshot != null) { in createSnapshots() 633 setSharedElementState(snapshot, name, state, tempMatrix, null, decorLoc); in createSnapshots() 637 snapshots.add(snapshot); in createSnapshots()
|
D | EnterTransitionCoordinator.java | 682 View snapshot = rejectedSnapshots.get(i); in startRejectedAnimations() local 683 overlay.add(snapshot); in startRejectedAnimations() 684 animator = ObjectAnimator.ofFloat(snapshot, View.ALPHA, 1, 0); in startRejectedAnimations()
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | CoreSettingsObserver.java | 103 private void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { in populateSettings() argument 117 snapshot.putString(setting, value); in populateSettings() 127 snapshot.putInt(setting, value); in populateSettings() 137 snapshot.putFloat(setting, value); in populateSettings() 147 snapshot.putLong(setting, value); in populateSettings()
|
/frameworks/support/v4/java/android/support/v4/app/ |
D | SharedElementCallback.java | 257 public View onCreateSnapshotView(Context context, Parcelable snapshot) { in onCreateSnapshotView() argument 259 if (snapshot instanceof Bundle) { in onCreateSnapshotView() 260 Bundle bundle = (Bundle) snapshot; in onCreateSnapshotView() 276 } else if (snapshot instanceof Bitmap) { in onCreateSnapshotView() 277 Bitmap bitmap = (Bitmap) snapshot; in onCreateSnapshotView()
|
D | ActivityCompat.java | 463 public View onCreateSnapshotView(Context context, Parcelable snapshot) { in onCreateSnapshotView() argument 464 return mCallback.onCreateSnapshotView(context, snapshot); in onCreateSnapshotView()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/ |
D | BaseWrapContentTest.java | 175 Snapshot snapshot = takeSnapshot(); in runScenario() local 177 snapshot.assertRvSize(); in runScenario() 179 result.add(snapshot); in runScenario() 181 compareWith.get(stepIndex).assertSame(snapshot, stepIndex); in runScenario() 187 Snapshot snapshot = takeSnapshot(); in runScenario() local 189 snapshot.assertRvSize(); in runScenario() 191 result.add(snapshot); in runScenario() 193 compareWith.get(stepIndex).assertSame(snapshot, stepIndex); in runScenario() 215 Snapshot snapshot = takeSnapshot(); in layoutAndCheck() local 221 assertThat("behavior " + index, snapshot.mChildCoordinates.get(behavior.getId()), in layoutAndCheck() [all …]
|
/frameworks/base/libs/androidfw/ |
D | BackupHelpers.cpp | 87 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) in read_snapshot_file() argument 122 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file() 144 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) in write_snapshot_file() argument 149 const int N = snapshot.size(); in write_snapshot_file() 151 const FileRec& g = snapshot.valueAt(i); in write_snapshot_file() 153 const String8& name = snapshot.keyAt(i); in write_snapshot_file() 171 FileRec r = snapshot.valueAt(i); in write_snapshot_file() 173 const String8& name = snapshot.keyAt(i); in write_snapshot_file() 903 KeyedVector<String8,FileRec> snapshot; in backup_helper_test_empty() local 916 err = write_snapshot_file(fd, snapshot); in backup_helper_test_empty() [all …]
|
/frameworks/support/v4/api21/android/support/v4/app/ |
D | ActivityCompat21.java | 74 public abstract View onCreateSnapshotView(Context context, Parcelable snapshot); in onCreateSnapshotView() argument 125 public View onCreateSnapshotView(Context context, Parcelable snapshot) { in onCreateSnapshotView() argument 126 return mCallback.onCreateSnapshotView(context, snapshot); in onCreateSnapshotView()
|
/frameworks/base/libs/hwui/tests/common/ |
D | TestUtils.h | 129 std::unique_ptr<Snapshot> snapshot(new Snapshot()); in makeSnapshot() 130 snapshot->clip(clip, SkRegion::kReplace_Op); // store clip first, so it isn't transformed in makeSnapshot() 131 *(snapshot->transform) = transform; in makeSnapshot() 132 return snapshot; in makeSnapshot()
|
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/ |
D | ViewsStateBundle.java | 77 Map<String, SparseArray<Parcelable>> snapshot = mChildStates.snapshot(); in saveAsBundle() local 80 snapshot.entrySet().iterator(); i.hasNext(); ) { in saveAsBundle()
|
D | DetailsOverviewSharedElementHelper.java | 119 View snapshot = sharedElementSnapshots.get(0); in onSharedElementStart() local 120 if (hasImageViewScaleChange(snapshot)) { in onSharedElementStart() 122 changeImageViewScale(snapshot); in onSharedElementStart()
|
/frameworks/base/tools/preload2/src/com/android/preload/classdataretrieval/hprof/ |
D | Hprof.java | 59 Snapshot snapshot = Snapshot.createSnapshot(new MemoryMappedFileBuffer(hprofLocalFile)); in analyzeHprof() local 61 Map<String, Set<ClassObj>> classes = Queries.classes(snapshot, null); in analyzeHprof() 87 snapshot.dispose(); in analyzeHprof()
|
/frameworks/base/services/core/java/com/android/server/net/ |
D | NetworkStatsRecorder.java | 209 public void recordSnapshotLocked(NetworkStats snapshot, in recordSnapshotLocked() argument 215 if (snapshot == null) return; in recordSnapshotLocked() 219 mLastSnapshot = snapshot; in recordSnapshotLocked() 226 snapshot, mLastSnapshot, mObserver, mCookie); in recordSnapshotLocked() 266 mLastSnapshot = snapshot; in recordSnapshotLocked()
|
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/wifi/ |
D | AccessPoint.java | 272 for (ScanResult result : mScanResultCache.snapshot().values()) { in getRssi() 283 for (ScanResult result : mScanResultCache.snapshot().values()) { in getSeen() 508 Map<String, ScanResult> list = mScanResultCache.snapshot(); in getVisibilityStatus() 688 new ArrayList<ScanResult>(mScanResultCache.snapshot().values())); in saveWifiState()
|