/packages/services/Car/tools/ioanalyze/ |
D | analyzer.py | 34 snapshot = UidSnapshot(entry) 35 self.foregroundWrittenBytes += snapshot.foregroundWrittenBytes 36 self.foregroundFsyncCalls += snapshot.foregroundFsyncCalls 37 self.backgroundFsyncCalls += snapshot.backgroundFsyncCalls 38 self.backgroundWrittenBytes += snapshot.backgroundWrittenBytes 39 self.totalWrittenBytes += snapshot.totalWrittenBytes 40 self.totalFsyncCalls += snapshot.totalFsyncCalls 41 self.uids[uid] = snapshot 110 def addSnapshot(self, snapshot): argument 111 assert snapshot.uid == self.uid [all …]
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/domain/interactor/ |
D | UndoInteractor.kt | 72 override fun store(snapshot: RestorableSnapshot) { in <lambda>() 76 isDirty = initialSnapshot != snapshot in <lambda>() 84 snapshot = initialSnapshot, in <lambda>() 94 val snapshot = repository.getSnapshot(ownerId) in <lambda>() constant 95 if (restorer != null && snapshot != null) { in <lambda>() 96 scope.launch { restorer.restoreToSnapshot(snapshot) } in <lambda>()
|
D | SnapshotStore.kt | 24 fun store(snapshot: RestorableSnapshot) in retrieve() 32 override fun store(snapshot: RestorableSnapshot) = Unit in retrieve()
|
/packages/modules/Connectivity/framework-t/src/android/net/ |
D | NetworkIdentity.java | 287 @NonNull NetworkStateSnapshot snapshot, boolean defaultNetwork, int ratType) { in buildNetworkIdentity() argument 289 .setNetworkStateSnapshot(snapshot).setDefaultNetwork(defaultNetwork) in buildNetworkIdentity() 290 .setSubId(snapshot.getSubId()); in buildNetworkIdentity() 291 if (snapshot.getLegacyType() == TYPE_MOBILE && ratType != NETWORK_TYPE_ALL) { in buildNetworkIdentity() 396 public Builder setNetworkStateSnapshot(@NonNull NetworkStateSnapshot snapshot) { in setNetworkStateSnapshot() argument 397 setType(snapshot.getLegacyType()); in setNetworkStateSnapshot() 399 setSubscriberId(snapshot.getSubscriberId()); in setNetworkStateSnapshot() 400 setRoaming(!snapshot.getNetworkCapabilities().hasCapability( in setNetworkStateSnapshot() 402 setMetered(!(snapshot.getNetworkCapabilities().hasCapability( in setNetworkStateSnapshot() 404 || snapshot.getNetworkCapabilities().hasCapability( in setNetworkStateSnapshot() [all …]
|
/packages/apps/ThemePicker/src/com/android/customization/picker/color/domain/interactor/ |
D | ColorPickerSnapshotRestorer.kt | 35 snapshotStore.store(snapshot(colorOptionModel)) in <lambda>() 43 return snapshot(originalOption) in <lambda>() 46 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>() 47 val optionPackagesFromSnapshot: String? = snapshot.args[KEY_COLOR_OPTION_PACKAGES] in <lambda>() 52 snapshot.args[KEY_COLOR_OPTION_STYLE] in <lambda>() 67 private fun snapshot(colorOptionModel: ColorOptionModel? = null): RestorableSnapshot { in <lambda>() method in com.android.customization.picker.color.domain.interactor.ColorPickerSnapshotRestorer
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/testing/ |
D | FakeSnapshotStore.kt | 26 private var snapshot = initialSnapshot variable 29 return snapshot in retrieve() 32 override fun store(snapshot: RestorableSnapshot) { in store() 33 this.snapshot = snapshot in store()
|
D | UndoTestUtil.kt | 31 fun snapshot(ownerId: Int, version: Int): RestorableSnapshot { in snapshot() method 48 store.store(snapshot(ownerId, version)) in update() 55 return snapshot( in setUpSnapshotRestorer() 61 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot() 62 restored = snapshot in restoreToSnapshot()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/undo/data/repository/ |
D | UndoRepositoryTest.kt | 22 import com.android.wallpaper.testing.snapshot 44 fun `put and get initial snapshot`() { in put and get initial snapshot() 48 underTest.putSnapshot(ownerId1, snapshot(ownerId1, 1)) in put and get initial snapshot() 49 underTest.putSnapshot(ownerId2, snapshot(ownerId2, 1)) in put and get initial snapshot() 51 assertThat(underTest.getSnapshot(ownerId1)).isEqualTo(snapshot(ownerId1, 1)) in put and get initial snapshot() 52 assertThat(underTest.getSnapshot(ownerId2)).isEqualTo(snapshot(ownerId2, 1)) in put and get initial snapshot()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/customization/domain/interactor/ |
D | WallpaperSnapshotRestorer.kt | 42 return snapshot() in <lambda>() 46 snapshot: RestorableSnapshot, in <lambda>() 48 val homeWallpaperId = snapshot.args[SELECTED_HOME_SCREEN_WALLPAPER_ID] in <lambda>() 56 val lockWallpaperId = snapshot.args[SELECTED_LOCK_SCREEN_WALLPAPER_ID] in <lambda>() 75 snapshot( in <lambda>() 84 private fun snapshot( in <lambda>() method
|
/packages/modules/Wifi/framework/java/android/net/wifi/p2p/ |
D | WifiP2pGroupList.java | 73 for (Map.Entry<Integer, WifiP2pGroup> item : source.mGroups.snapshot().entrySet()) { in WifiP2pGroupList() 84 return new ArrayList<>(mGroups.snapshot().values()); in getGroupList() 141 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId() 166 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in getNetworkId() 204 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in contains() 217 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in toString() 233 final Collection<WifiP2pGroup> groups = mGroups.snapshot().values(); in writeToParcel()
|
/packages/apps/ThemePicker/src/com/android/customization/model/themedicon/domain/interactor/ |
D | ThemedIconSnapshotRestorer.kt | 34 return snapshot() in setUpSnapshotRestorer() 37 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot() 38 val isActivated = snapshot.args[KEY]?.toBoolean() == true in restoreToSnapshot() 46 store.store(snapshot(isActivated = isActivated)) in store() 49 private fun snapshot( in snapshot() method in com.android.customization.model.themedicon.domain.interactor.ThemedIconSnapshotRestorer
|
/packages/apps/ThemePicker/src/com/android/customization/picker/notifications/domain/interactor/ |
D | NotificationsSnapshotRestorer.kt | 33 snapshotStore.store(snapshot(model)) in storeSnapshot() 40 return snapshot(interactor.getSettings()) in setUpSnapshotRestorer() 43 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in restoreToSnapshot() 45 snapshot.args[KEY_IS_SHOW_NOTIFICATIONS_ON_LOCK_SCREEN_ENABLED]?.toBoolean() ?: false in restoreToSnapshot() 53 private fun snapshot(model: NotificationSettingsModel): RestorableSnapshot { in snapshot() method in com.android.customization.picker.notifications.domain.interactor.NotificationsSnapshotRestorer
|
/packages/apps/ThemePicker/src/com/android/customization/picker/quickaffordance/domain/interactor/ |
D | KeyguardQuickAffordanceSnapshotRestorer.kt | 34 snapshotStore.store(snapshot()) in <lambda>() 41 return snapshot() in <lambda>() 44 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>() 46 checkNotNull(snapshot.args[KEY_SELECTIONS]).split(SELECTION_SEPARATOR).map { selection in <lambda>() 60 private suspend fun snapshot(): RestorableSnapshot { in <lambda>() method in com.android.customization.picker.quickaffordance.domain.interactor.KeyguardQuickAffordanceSnapshotRestorer
|
/packages/apps/ThemePicker/src/com/android/customization/model/grid/domain/interactor/ |
D | GridSnapshotRestorer.kt | 37 return snapshot(option) in <lambda>() 40 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>() 41 val optionNameFromSnapshot = snapshot.args[KEY_GRID_OPTION_NAME] in <lambda>() 58 store.store(snapshot(option)) in <lambda>() 61 private fun snapshot(option: GridOptionItemModel?): RestorableSnapshot { in <lambda>() method
|
/packages/apps/ThemePicker/src/com/android/customization/model/mode/ |
D | DarkModeSnapshotRestorer.kt | 64 return snapshot( in <lambda>() 69 override suspend fun restoreToSnapshot(snapshot: RestorableSnapshot) { in <lambda>() 70 val isActivated = snapshot.args[KEY]?.toBoolean() == true in <lambda>() 78 snapshot( in <lambda>() 84 private fun snapshot( in <lambda>() method
|
/packages/modules/Bluetooth/tools/pdl/src/ |
D | test_utils.rs | 149 let snapshot = snapshot_path.as_ref(); in assert_snapshot_eq() localVariable 150 let snapshot_content = fs::read(snapshot).unwrap_or_else(|err| { in assert_snapshot_eq() 151 panic!("Could not read snapshot from {}: {}", snapshot.display(), err) in assert_snapshot_eq() 158 snapshot.to_str().unwrap(), in assert_snapshot_eq() 173 snapshot.display(), in assert_snapshot_eq() 178 panic!("Could not write snapshot to {}: {}", snapshot.display(), err) in assert_snapshot_eq()
|
/packages/apps/ThemePicker/tests/src/com/android/customization/model/themedicon/domain/interactor/ |
D | ThemedIconSnapshotRestorerTest.kt | 61 underTest.restoreToSnapshot(snapshot = storedSnapshot) in <lambda>() 73 underTest.restoreToSnapshot(snapshot = storedSnapshot) in <lambda>() 86 underTest.restoreToSnapshot(snapshot = initialSnapshot) in <lambda>() 99 underTest.restoreToSnapshot(snapshot = initialSnapshot) in <lambda>()
|
/packages/apps/ThemePicker/tests/src/com/android/customization/model/mode/ |
D | DarkModeSnapshotRestorerTest.kt | 63 underTest.restoreToSnapshot(snapshot = storedSnapshot) in set up and restore - active() 76 underTest.restoreToSnapshot(snapshot = storedSnapshot) in set up and restore - inactive() 90 underTest.restoreToSnapshot(snapshot = initialSnapshot) in set up - deactivate - restore to active() 104 underTest.restoreToSnapshot(snapshot = initialSnapshot) in set up - activate - restore to inactive()
|
/packages/apps/WallpaperPicker2/tests/src/com/android/wallpaper/picker/undo/domain/interactor/ |
D | UndoInteractorTest.kt | 24 import com.android.wallpaper.testing.snapshot 78 assertThat(FAKE_RESTORERS[1]?.restored).isEqualTo(snapshot(1, 0)) in start session - update - and undo all() 79 assertThat(FAKE_RESTORERS[2]?.restored).isEqualTo(snapshot(2, 0)) in start session - update - and undo all()
|
/packages/modules/StatsD/lib/libstatssocket/ |
D | statsd_writer.c | 224 int32_t snapshot = atomic_exchange_explicit(&dropped, 0, memory_order_relaxed); in statsdWrite() local 225 if (snapshot) { in statsdWrite() 235 composed_long = ((composed_long << 32) | ((int64_t)snapshot)); in statsdWrite() 243 atomic_fetch_add_explicit(&dropped, snapshot, memory_order_relaxed); in statsdWrite()
|
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/ |
D | RecentsModel.java | 190 public boolean onTaskSnapshotChanged(int taskId, ThumbnailData snapshot) { in onTaskSnapshotChanged() argument 191 mThumbnailCache.updateTaskSnapShot(taskId, snapshot); in onTaskSnapshotChanged() 194 Task task = mThumbnailChangeListeners.get(i).onTaskThumbnailChanged(taskId, snapshot); in onTaskSnapshotChanged() 196 task.thumbnail = snapshot; in onTaskSnapshotChanged()
|
/packages/services/Car/car-lib/src/android/car/storagemonitoring/ |
D | CarStorageMonitoringManager.java | 64 void onSnapshot(IoStats snapshot); in onSnapshot() argument 75 public void onSnapshot(IoStats snapshot) { in onSnapshot() argument 78 manager.mMessageHandler.sendEvents(Collections.singletonList(snapshot)); in onSnapshot()
|
/packages/apps/WallpaperPicker2/src/com/android/wallpaper/picker/undo/data/repository/ |
D | UndoRepository.kt | 36 fun putSnapshot(ownerId: Int, snapshot: RestorableSnapshot) { in putSnapshot() 37 snapshotByOwnerId[ownerId] = snapshot in putSnapshot()
|
/packages/modules/Connectivity/service-t/src/com/android/server/net/ |
D | NetworkStatsRecorder.java | 219 public void recordSnapshotLocked(NetworkStats snapshot, in recordSnapshotLocked() argument 224 if (snapshot == null) return; in recordSnapshotLocked() 228 mLastSnapshot = snapshot; in recordSnapshotLocked() 235 snapshot, mLastSnapshot, mObserver, mCookie); in recordSnapshotLocked() 283 mLastSnapshot = snapshot; in recordSnapshotLocked()
|
/packages/services/Car/cpp/evs/manager/aidl/stats/src/ |
D | StatsCollector.cpp | 150 auto snapshot = pClient->getStats(); in collectLocked() local 151 snapshot.timestamp = mLooper->now(); in collectLocked() 159 auto delta = snapshot - info->records[id].latest; in collectLocked() 161 info->records[id].latest = snapshot; in collectLocked()
|