Home
last modified time | relevance | path

Searched refs:snapshot (Results 1 – 25 of 68) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/os/
DPerformanceCollectorTest.java52 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshotNoWriter() local
53 assertNotNull(snapshot); in testBeginSnapshotNoWriter()
54 assertEquals(2, snapshot.size()); in testBeginSnapshotNoWriter()
61 Bundle snapshot = mPerfCollector.endSnapshot(); in testEndSnapshotNoWriter() local
63 verifySnapshotBundle(snapshot); in testEndSnapshotNoWriter()
112 Bundle snapshot = (Bundle)readPrivateField("mPerfSnapshot", mPerfCollector); in testBeginSnapshot() local
113 assertNotNull(snapshot); in testBeginSnapshot()
114 assertEquals(2, snapshot.size()); in testBeginSnapshot()
400 private void verifySnapshotBundle(Bundle snapshot) { in verifySnapshotBundle() argument
401 assertTrue("At least 26 metrics collected", 26 <= snapshot.size()); in verifySnapshotBundle()
[all …]
/frameworks/base/core/tests/coretests/src/android/security/keystore/recovery/
DKeyChainSnapshotTest.java84 KeyChainSnapshot snapshot = createKeyChainSnapshot(); in build_setsKeyChainProtectionParams() local
86 assertEquals(1, snapshot.getKeyChainProtectionParams().size()); in build_setsKeyChainProtectionParams()
88 snapshot.getKeyChainProtectionParams().get(0); in build_setsKeyChainProtectionParams()
98 KeyChainSnapshot snapshot = createKeyChainSnapshot(); in build_setsWrappedApplicationKeys() local
100 assertEquals(1, snapshot.getWrappedApplicationKeys().size()); in build_setsWrappedApplicationKeys()
101 WrappedApplicationKey wrappedApplicationKey = snapshot.getWrappedApplicationKeys().get(0); in build_setsWrappedApplicationKeys()
109 KeyChainSnapshot snapshot = writeToThenReadFromParcel(createKeyChainSnapshot()); in writeToParcel_writesCounterId() local
111 assertEquals(COUNTER_ID, snapshot.getCounterId()); in writeToParcel_writesCounterId()
116 KeyChainSnapshot snapshot = writeToThenReadFromParcel(createKeyChainSnapshot()); in writeToParcel_writesSnapshotVersion() local
118 assertEquals(SNAPSHOT_VERSION, snapshot.getSnapshotVersion()); in writeToParcel_writesSnapshotVersion()
[all …]
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/recents/model/
DThumbnailData.java54 public ThumbnailData(TaskSnapshot snapshot) { in ThumbnailData() argument
55 thumbnail = Bitmap.wrapHardwareBuffer(snapshot.getSnapshot(), snapshot.getColorSpace()); in ThumbnailData()
56 insets = new Rect(snapshot.getContentInsets()); in ThumbnailData()
57 orientation = snapshot.getOrientation(); in ThumbnailData()
58 reducedResolution = snapshot.isReducedResolution(); in ThumbnailData()
59 scale = snapshot.getScale(); in ThumbnailData()
60 isRealSnapshot = snapshot.isRealSnapshot(); in ThumbnailData()
61 isTranslucent = snapshot.isTranslucent(); in ThumbnailData()
62 windowingMode = snapshot.getWindowingMode(); in ThumbnailData()
63 systemUiVisibility = snapshot.getSystemUiVisibility(); in ThumbnailData()
/frameworks/base/services/core/java/com/android/server/wm/
DTaskSnapshotCache.java45 void putSnapshot(Task task, TaskSnapshot snapshot) { in putSnapshot() argument
52 mRunningCache.put(task.mTaskId, new CacheEntry(snapshot, task.getTopChild())); in putSnapshot()
65 return entry.snapshot; in getSnapshot()
80 final TaskSnapshot snapshot = mLoader.loadTask(taskId, userId, reducedResolution); in tryRestoreFromDisk() local
81 if (snapshot == null) { in tryRestoreFromDisk()
84 return snapshot; in tryRestoreFromDisk()
127 pw.println(triplePrefix + "snapshot=" + entry.snapshot); in dump()
134 final TaskSnapshot snapshot; field in TaskSnapshotCache.CacheEntry
139 CacheEntry(TaskSnapshot snapshot, AppWindowToken topApp) { in CacheEntry() argument
140 this.snapshot = snapshot; in CacheEntry()
DTaskSnapshotController.java175 final TaskSnapshot snapshot; in snapshotTasks() local
180 snapshot = drawAppThemeSnapshot(task); in snapshotTasks()
183 snapshot = snapshotTask(task); in snapshotTasks()
186 snapshot = null; in snapshotTasks()
189 if (snapshot != null) { in snapshotTasks()
190 final GraphicBuffer buffer = snapshot.getSnapshot(); in snapshotTasks()
196 mCache.putSnapshot(task, snapshot); in snapshotTasks()
197 mPersister.persistSnapshot(task.mTaskId, task.mUserId, snapshot); in snapshotTasks()
198 task.onSnapshotChanged(snapshot); in snapshotTasks()
219 TaskSnapshot snapshot) { in createStartingSurface() argument
[all …]
DSnapshotStartingData.java31 SnapshotStartingData(WindowManagerService service, TaskSnapshot snapshot) { in SnapshotStartingData() argument
34 mSnapshot = snapshot; in SnapshotStartingData()
DTaskSnapshotPersister.java118 void persistSnapshot(int taskId, int userId, TaskSnapshot snapshot) { in persistSnapshot() argument
121 sendToQueueLocked(new StoreWriteQueueItem(taskId, userId, snapshot)); in persistSnapshot()
316 StoreWriteQueueItem(int taskId, int userId, TaskSnapshot snapshot) { in StoreWriteQueueItem() argument
319 mSnapshot = snapshot; in StoreWriteQueueItem()
/frameworks/av/media/libnblog/
DReader.cpp109 std::unique_ptr<Snapshot> snapshot(new Snapshot(availToRead)); in getSnapshot() local
110 memcpy(snapshot->mData, (const char *) mFifo->buffer() + iovec[0].mOffset, iovec[0].mLength); in getSnapshot()
112 memcpy(snapshot->mData + (iovec[0].mLength), in getSnapshot()
122 const uint8_t *back = snapshot->mData + availToRead; in getSnapshot()
123 const uint8_t *front = snapshot->mData; in getSnapshot()
129 snapshot->mEnd = snapshot->mBegin = EntryIterator(front); in getSnapshot()
132 snapshot->mEnd = EntryIterator(lastEnd).next(); in getSnapshot()
135 const uint8_t *firstStartTmp = snapshot->mEnd; in getSnapshot()
142 snapshot->mBegin = snapshot->mEnd; in getSnapshot()
144 snapshot->mBegin = EntryIterator(firstStart); in getSnapshot()
[all …]
DMerger.cpp133 void MergeReader::processSnapshot(Snapshot &snapshot, int author) in processSnapshot() argument
137 for (EntryIterator it = snapshot.begin(); it != snapshot.end(); ++it) { in processSnapshot()
/frameworks/base/services/core/java/com/android/server/locksettings/recoverablekeystore/storage/
DRecoverySnapshotStorage.java81 public synchronized void put(int uid, KeyChainSnapshot snapshot) { in put() argument
82 mSnapshotByUid.put(uid, snapshot); in put()
85 writeToDisk(uid, snapshot); in put()
98 KeyChainSnapshot snapshot = mSnapshotByUid.get(uid); in get() local
99 if (snapshot != null) { in get()
100 return snapshot; in get()
124 private void writeToDisk(int uid, KeyChainSnapshot snapshot) in writeToDisk() argument
131 KeyChainSnapshotSerializer.serialize(snapshot, fileOutputStream); in writeToDisk()
/frameworks/base/packages/SystemUI/src/com/android/systemui/power/
DPowerUI.java398 boolean shouldShowHybridWarning(BatteryStateSnapshot snapshot) { in shouldShowHybridWarning() argument
399 if (snapshot.getPlugged() in shouldShowHybridWarning()
400 || snapshot.getBatteryStatus() == BatteryManager.BATTERY_STATUS_UNKNOWN) { in shouldShowHybridWarning()
401 Slog.d(TAG, "can't show warning due to - plugged: " + snapshot.getPlugged() in shouldShowHybridWarning()
403 + (snapshot.getBatteryStatus() == BatteryManager.BATTERY_STATUS_UNKNOWN)); in shouldShowHybridWarning()
408 final boolean canShowWarning = snapshot.isLowWarningEnabled() in shouldShowHybridWarning()
409 && !mLowWarningShownThisChargeCycle && !snapshot.isPowerSaver() in shouldShowHybridWarning()
410 && (snapshot.getTimeRemainingMillis() < snapshot.getLowThresholdMillis() in shouldShowHybridWarning()
411 || snapshot.getBatteryLevel() <= snapshot.getLowLevelThreshold()); in shouldShowHybridWarning()
415 && (snapshot.getTimeRemainingMillis() < snapshot.getSevereThresholdMillis() in shouldShowHybridWarning()
[all …]
/frameworks/base/wifi/java/android/net/wifi/p2p/
DWifiP2pGroupList.java67 for (Map.Entry<Integer, WifiP2pGroup> item : source.mGroups.snapshot().entrySet()) { in WifiP2pGroupList()
80 return mGroups.snapshot().values(); in getGroupList()
137 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId()
162 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId()
200 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in contains()
212 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in toString()
226 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in writeToParcel()
/frameworks/base/startop/iorap/src/com/google/android/startop/iorap/
DAppLaunchEvent.java147 @NonNull @ActivityRecordProto byte[] snapshot) { in BaseWithActivityRecordData() argument
149 activityRecordSnapshot = snapshot; in BaseWithActivityRecordData()
151 Objects.requireNonNull(snapshot, "snapshot"); in BaseWithActivityRecordData()
186 @NonNull @ActivityRecordProto byte[] snapshot, in ActivityLaunched() argument
188 super(sequenceId, snapshot); in ActivityLaunched()
220 @NonNull @ActivityRecordProto byte[] snapshot) { in ActivityLaunchFinished() argument
221 super(sequenceId, snapshot); in ActivityLaunchFinished()
237 @Nullable @ActivityRecordProto byte[] snapshot) { in ActivityLaunchCancelled() argument
239 activityRecordSnapshot = snapshot; in ActivityLaunchCancelled()
/frameworks/base/services/tests/wmtests/src/com/android/server/wm/
DTaskSnapshotPersisterLoaderTest.java65 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, false /* reduced */); in testPersistAndLoadSnapshot() local
66 assertNotNull(snapshot); in testPersistAndLoadSnapshot()
67 assertEquals(TEST_INSETS, snapshot.getContentInsets()); in testPersistAndLoadSnapshot()
68 assertNotNull(snapshot.getSnapshot()); in testPersistAndLoadSnapshot()
69 assertEquals(Configuration.ORIENTATION_PORTRAIT, snapshot.getOrientation()); in testPersistAndLoadSnapshot()
162 final TaskSnapshot snapshot = mLoader.loadTask(1, mTestUserId, true /* reduced */); in testLowResolutionPersistAndLoadSnapshot() local
163 assertNotNull(snapshot); in testLowResolutionPersistAndLoadSnapshot()
164 assertEquals(TEST_INSETS, snapshot.getContentInsets()); in testLowResolutionPersistAndLoadSnapshot()
165 assertNotNull(snapshot.getSnapshot()); in testLowResolutionPersistAndLoadSnapshot()
166 assertEquals(Configuration.ORIENTATION_PORTRAIT, snapshot.getOrientation()); in testLowResolutionPersistAndLoadSnapshot()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/metrics/
DCallQualityMetrics.java369 for (TimestampedQualitySnapshot snapshot : snapshots) { in getTotalGoodAndBadQualityTimeMs()
370 int timeSinceLastSnapshot = snapshot.mTimestampMs - lastTimestamp; in getTotalGoodAndBadQualityTimeMs()
371 if (isGoodQuality(snapshot.mCallQualityLevel)) { in getTotalGoodAndBadQualityTimeMs()
376 lastTimestamp = snapshot.mTimestampMs; in getTotalGoodAndBadQualityTimeMs()
388 for (Pair<CallQuality, Integer> snapshot : mUlSnapshots) { in toString()
390 sb.append(snapshot.first); in toString()
392 sb.append(snapshot.second); in toString()
397 for (Pair<CallQuality, Integer> snapshot : mDlSnapshots) { in toString()
399 sb.append(snapshot.first); in toString()
401 sb.append(snapshot.second); in toString()
/frameworks/base/services/core/java/com/android/server/am/
DCoreSettingsObserver.java139 void populateSettings(Bundle snapshot, Map<String, Class<?>> map) { in populateSettings() argument
152 snapshot.remove(setting); in populateSettings()
157 snapshot.putString(setting, value); in populateSettings()
159 snapshot.putInt(setting, Integer.parseInt(value)); in populateSettings()
161 snapshot.putFloat(setting, Float.parseFloat(value)); in populateSettings()
163 snapshot.putLong(setting, Long.parseLong(value)); in populateSettings()
/frameworks/base/core/java/android/app/
DTaskStackListener.java164 public void onTaskSnapshotChanged(int taskId, TaskSnapshot snapshot) throws RemoteException { in onTaskSnapshotChanged() argument
166 && snapshot != null && snapshot.getSnapshot() != null) { in onTaskSnapshotChanged()
168 snapshot.getSnapshot().destroy(); in onTaskSnapshotChanged()
DSharedElementCallback.java234 public View onCreateSnapshotView(Context context, Parcelable snapshot) { in onCreateSnapshotView() argument
236 if (snapshot instanceof Bundle) { in onCreateSnapshotView()
237 Bundle bundle = (Bundle) snapshot; in onCreateSnapshotView()
263 } else if (snapshot instanceof Bitmap) { in onCreateSnapshotView()
264 Bitmap bitmap = (Bitmap) snapshot; in onCreateSnapshotView()
/frameworks/base/packages/SystemUI/shared/src/com/android/systemui/shared/system/
DRecentsAnimationControllerCompat.java40 TaskSnapshot snapshot = mAnimationController.screenshotTask(taskId); in screenshotTask() local
41 return snapshot != null ? new ThumbnailData(snapshot) : new ThumbnailData(); in screenshotTask()
DActivityManagerWrapper.java148 ActivityManager.TaskSnapshot snapshot = null; in getTaskThumbnail() local
150 snapshot = ActivityTaskManager.getService().getTaskSnapshot(taskId, reducedResolution); in getTaskThumbnail()
154 if (snapshot != null) { in getTaskThumbnail()
155 return new ThumbnailData(snapshot); in getTaskThumbnail()
/frameworks/base/services/contentsuggestions/java/com/android/server/contentsuggestions/
DContentSuggestionsPerUserService.java106 ActivityManager.TaskSnapshot snapshot = in provideContextImageLocked() local
108 if (snapshot != null) { in provideContextImageLocked()
109 snapshotBuffer = snapshot.getSnapshot(); in provideContextImageLocked()
110 ColorSpace colorSpace = snapshot.getColorSpace(); in provideContextImageLocked()
/frameworks/base/services/core/java/com/android/server/connectivity/
DNetdEventListenerService.java190 NetworkMetricsSnapshot snapshot = in collectPendingMetricsSnapshot() local
192 if (snapshot.stats.isEmpty()) { in collectPendingMetricsSnapshot()
195 mNetworkMetricsSnapshots.append(snapshot); in collectPendingMetricsSnapshot()
406 NetworkMetricsSnapshot snapshot = new NetworkMetricsSnapshot(); in collect() local
407 snapshot.timeMs = timeMs; in collect()
411 snapshot.stats.add(s); in collect()
414 return snapshot; in collect()
/frameworks/base/libs/androidfw/
DBackupHelpers.cpp86 read_snapshot_file(int fd, KeyedVector<String8,FileState>* snapshot) in read_snapshot_file() argument
121 snapshot->add(String8(filename, file.nameLen), file); in read_snapshot_file()
143 write_snapshot_file(int fd, const KeyedVector<String8,FileRec>& snapshot) in write_snapshot_file() argument
148 const int N = snapshot.size(); in write_snapshot_file()
150 const FileRec& g = snapshot.valueAt(i); in write_snapshot_file()
152 const String8& name = snapshot.keyAt(i); in write_snapshot_file()
170 FileRec r = snapshot.valueAt(i); in write_snapshot_file()
172 const String8& name = snapshot.keyAt(i); in write_snapshot_file()
908 KeyedVector<String8,FileRec> snapshot; in backup_helper_test_empty() local
921 err = write_snapshot_file(fd, snapshot); in backup_helper_test_empty()
[all …]
/frameworks/layoutlib/bridge/src/android/graphics/
DCanvas_Delegate.java313 GcSnapshot snapshot = canvasDelegate.getSnapshot(); in nConcat() local
316 AffineTransform currentTx = snapshot.getTransform(); in nConcat()
324 snapshot.setTransform(currentTx); in nConcat()
341 GcSnapshot snapshot = canvasDelegate.getSnapshot(); in nSetMatrix() local
347 snapshot.setTransform(matrixTx); in nSetMatrix()
/frameworks/base/services/core/java/com/android/server/net/
DNetworkStatsRecorder.java206 public void recordSnapshotLocked(NetworkStats snapshot, in recordSnapshotLocked() argument
211 if (snapshot == null) return; in recordSnapshotLocked()
215 mLastSnapshot = snapshot; in recordSnapshotLocked()
222 snapshot, mLastSnapshot, mObserver, mCookie); in recordSnapshotLocked()
270 mLastSnapshot = snapshot; in recordSnapshotLocked()

123