Home
last modified time | relevance | path

Searched refs:restoreData (Results 1 – 22 of 22) sorted by relevance

/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/repository/
DQSSettingsRestoredBroadcastRepositoryTest.kt54 val restoreData by collectLastValue(underTest.restoreData) in restoreDataAfterBothIntents_tilesRestoredFirst() constant
74 assertThat(restoreData).isNull() in restoreDataAfterBothIntents_tilesRestoredFirst()
79 with(restoreData!!) { in restoreDataAfterBothIntents_tilesRestoredFirst()
90 val restoreData by collectLastValue(underTest.restoreData) in restoreDataAfterBothIntents_autoAddRestoredFirst() constant
110 assertThat(restoreData).isNull() in restoreDataAfterBothIntents_autoAddRestoredFirst()
115 with(restoreData!!) { in restoreDataAfterBothIntents_autoAddRestoredFirst()
126 val restoreData by collectLastValue(underTest.restoreData) in interleavedBroadcastsFromDifferentUsers_onlysendDataForCorrectUser() constant
163 assertThat(restoreData).isNull() in interleavedBroadcastsFromDifferentUsers_onlysendDataForCorrectUser()
167 with(restoreData!!) { in interleavedBroadcastsFromDifferentUsers_onlysendDataForCorrectUser()
175 with(restoreData!!) { in interleavedBroadcastsFromDifferentUsers_onlysendDataForCorrectUser()
[all …]
DUserAutoAddRepositoryTest.kt139 val restoreData = in restore_addsRestoredTiles() constant
145 underTest.reconcileRestore(restoreData) in restore_addsRestoredTiles()
DUserTileSpecRepositoryTest.kt316 val restoreData = in restoreDataIsProperlyReconciled() constant
322 underTest.reconcileRestore(restoreData, autoAddedBeforeRestore.toTilesSet()) in restoreDataIsProperlyReconciled()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/domain/interactor/
DRestoreReconciliationInteractor.kt46 qsSettingsRestoredRepository.restoreData in <lambda>()
52 .collect { (restoreData, autoAdded) -> in <lambda>() method
54 it.preProcessRestore(restoreData) in <lambda>()
60 tileSpecRepository.reconcileRestore(restoreData, autoAdded) in <lambda>()
61 autoAddRepository.reconcileRestore(restoreData) in <lambda>()
63 it.postProcessRestore(restoreData) in <lambda>()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/data/restoreprocessors/
DWorkTileRestoreProcessorTest.kt46 val restoreData = in <lambda>() constant
53 underTest.postProcessRestore(restoreData) in <lambda>()
64 val restoreData = in <lambda>() constant
71 underTest.postProcessRestore(restoreData) in <lambda>()
81 val restoreData = in <lambda>() constant
88 underTest.postProcessRestore(restoreData) in <lambda>()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/restoreprocessors/
DWorkTileRestoreProcessor.kt59 override suspend fun postProcessRestore(restoreData: RestoreData) { in postProcessRestore()
60 if (TILE_SPEC in restoreData.restoredTiles) { in postProcessRestore()
63 restoreData.userId, in postProcessRestore()
64 restoreData.restoredTiles.indexOf(TILE_SPEC) in postProcessRestore()
67 _removeTrackingForUser.emit(restoreData.userId) in postProcessRestore()
/frameworks/base/packages/SystemUI/tests/utils/src/com/android/systemui/qs/pipeline/data/repository/
DFakeQSSettingsRestoredRepository.kt10 override val restoreData: Flow<RestoreData> constant in com.android.systemui.qs.pipeline.data.repository.FakeQSSettingsRestoredRepository
13 suspend fun onDataRestored(restoreData: RestoreData) { in onDataRestored()
14 _restoreData.emit(restoreData) in onDataRestored()
DFakeAutoAddRepository.kt44 override suspend fun reconcileRestore(restoreData: RestoreData) { in reconcileRestore()
45 with(getFlow(restoreData.userId)) { value = value + restoreData.restoredAutoAddedTiles } in reconcileRestore()
DFakeTileSpecRepository.kt65 restoreData: RestoreData, in reconcileRestore()
68 with(getFlow(restoreData.userId)) { in reconcileRestore()
69 value = UserTileSpecRepository.reconcileTiles(value, currentAutoAdded, restoreData) in reconcileRestore()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/repository/
DAutoAddRepository.kt41 suspend fun reconcileRestore(restoreData: RestoreData) in autoAddedTiles()
73 override suspend fun reconcileRestore(restoreData: RestoreData) { in autoAddedTiles()
74 userAutoAddRepositories.get(restoreData.userId)?.reconcileRestore(restoreData) in autoAddedTiles()
DUserTileSpecRepository.kt167 suspend fun reconcileRestore(restoreData: RestoreData, currentAutoAdded: Set<TileSpec>) { in <lambda>()
168 changeEvents.emit(RestoreTiles(restoreData, currentAutoAdded)) in <lambda>()
218 val restoreData: RestoreData, in <lambda>() constant in com.android.systemui.qs.pipeline.data.repository.UserTileSpecRepository.RestoreTiles
223 return reconcileTiles(currentTiles, currentAutoAdded, restoreData) in <lambda>()
239 restoreData: RestoreData in <lambda>()
241 val toRestore = restoreData.restoredTiles.toMutableList() in <lambda>()
243 currentAutoAdded.filterNot { it in restoreData.restoredAutoAddedTiles } in <lambda>()
245 .filter { it in currentTiles && it !in restoreData.restoredTiles } in <lambda>()
DTileSpecRepository.kt69 suspend fun reconcileRestore(restoreData: RestoreData, currentAutoAdded: Set<TileSpec>) in <lambda>()
150 restoreData: RestoreData, in reconcileRestore()
154 .get(restoreData.userId) in reconcileRestore()
155 ?.reconcileRestore(restoreData, currentAutoAdded) in reconcileRestore()
DUserAutoAddRepository.kt139 suspend fun reconcileRestore(restoreData: RestoreData) { in <lambda>()
140 changeEvents.emit(RestoreTiles(restoreData)) in <lambda>()
DQSSettingsRestoredRepository.kt43 val restoreData: Flow<RestoreData> in <lambda>() constant
79 override val restoreData = constant
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/interactor/
DRestoreReconciliationInteractorTest.kt76 val restoreData = in reconciliationInCorrectOrder_hascurrentAutoAdded() constant
88 qsSettingsRestoredRepository.onDataRestored(restoreData) in reconciliationInCorrectOrder_hascurrentAutoAdded()
106 val restoreData = in restoreProcessorsCalled() constant
113 qsSettingsRestoredRepository.onDataRestored(restoreData) in restoreProcessorsCalled()
122 override suspend fun preProcessRestore(restoreData: RestoreData) { in preProcessRestore()
126 override suspend fun postProcessRestore(restoreData: RestoreData) { in postProcessRestore()
DWorkProfileAutoAddedAfterRestoreTest.kt90 val restoreData = RestoreData(restoredTiles, restoredAutoAdded, currentUser) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition() constant
94 kosmos.fakeRestoreRepository.onDataRestored(restoreData) in workTileRestoredAndPreviouslyAutoAdded_notAvailable_willBeAutoaddedInCorrectPosition()
120 val restoreData = RestoreData(restoredTiles, restoredAutoAdded, currentUser) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded() constant
123 kosmos.fakeRestoreRepository.onDataRestored(restoreData) in workTileNotRestoredAndPreviouslyAutoAdded_wontBeAutoAddedWhenWorkProfileIsAdded()
DNoLowNumberOfTilesTest.kt118 val restoreData = RestoreData(restoredTiles, emptySet(), currentUser) in noLessThanTwoTilesAfterOEMRestore_prependedDefault() constant
119 fakeRestoreRepository.onDataRestored(restoreData) in noLessThanTwoTilesAfterOEMRestore_prependedDefault()
/frameworks/base/services/core/java/com/android/server/backup/
DUsageStatsBackupHelper.java71 byte[] restoreData = new byte[payload.length - 4]; in applyRestoredPayload()
72 in.read(restoreData, 0, restoreData.length); in applyRestoredPayload()
73 localUsageStatsManager.applyRestoredPayload(mUserId, key, restoreData); in applyRestoredPayload()
/frameworks/base/packages/SystemUI/multivalentTests/src/com/android/systemui/qs/pipeline/domain/autoaddable/
DWorkTileAutoAddableTest.kt141 val restoreData = createRestoreWithWorkTile(userId) in <lambda>() constant
143 restoreProcessor.postProcessRestore(restoreData) in <lambda>()
155 val restoreData = createRestoreWithWorkTile(userId) in <lambda>() constant
157 restoreProcessor.postProcessRestore(restoreData) in <lambda>()
168 val restoreData = createRestoreWithoutWorkTile(userId) in <lambda>() constant
170 restoreProcessor.postProcessRestore(restoreData) in <lambda>()
182 val restoreData = createRestoreWithoutWorkTile(userId) in <lambda>() constant
184 restoreProcessor.postProcessRestore(restoreData) in <lambda>()
/frameworks/base/services/backup/java/com/android/server/backup/
DKeyValueAdbRestoreEngine.java62 File restoreData = prepareRestoreData(mInfo, mInFD); in run() local
64 invokeAgentForAdbRestore(mAgent, mInfo, restoreData); in run()
82 private void invokeAgentForAdbRestore(IBackupAgent agent, FileMetadata info, File restoreData) in invokeAgentForAdbRestore() argument
88 ParcelFileDescriptor.open(restoreData, MODE_READ_ONLY); in invokeAgentForAdbRestore()
105 private void sortKeyValueData (File restoreData, File sortedData) throws IOException { in sortKeyValueData() argument
109 inputStream = new FileInputStream(restoreData); in sortKeyValueData()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/data/model/
DRestoreProcessor.kt34 suspend fun preProcessRestore(restoreData: RestoreData) {} in preProcessRestore()
37 suspend fun postProcessRestore(restoreData: RestoreData) {} in postProcessRestore()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/pipeline/shared/logging/
DQSPipelineLogger.kt233 fun logSettingsRestored(restoreData: RestoreData) { in logSettingsRestored()
238 int1 = restoreData.userId in logSettingsRestored()
239 str1 = restoreData.restoredTiles.toString() in logSettingsRestored()
240 str2 = restoreData.restoredAutoAddedTiles.toString() in logSettingsRestored()