Searched refs:remainingWidgets (Results 1 – 2 of 2) sorted by relevance
/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/people/ |
D | PeopleBackupFollowUpJobTest.java | 124 Map<String, Set<String>> remainingWidgets = in testProcessFollowUpFile_shouldFollowUp() local 129 assertThat(remainingWidgets.size()).isEqualTo(1); in testProcessFollowUpFile_shouldFollowUp() 130 assertThat(remainingWidgets.get(PEOPLE_TILE_KEY.toString())) in testProcessFollowUpFile_shouldFollowUp() 141 Map<String, Set<String>> remainingWidgets = in testProcessFollowUpFile_shouldRestore() local 146 assertThat(remainingWidgets).isEmpty(); in testProcessFollowUpFile_shouldRestore() 164 Map<String, Set<String>> remainingWidgets = new HashMap<>(); in testShouldCancelJob_remainingWidgets_shortTimeElapsed_shouldNotCancel() local 165 remainingWidgets.put(PEOPLE_TILE_KEY.toString(), WIDGET_IDS); in testShouldCancelJob_remainingWidgets_shortTimeElapsed_shouldNotCancel() 166 assertThat(mPeopleBackupFollowUpJob.shouldCancelJob(remainingWidgets, 10, 1000)).isFalse(); in testShouldCancelJob_remainingWidgets_shortTimeElapsed_shouldNotCancel() 171 Map<String, Set<String>> remainingWidgets = new HashMap<>(); in testShouldCancelJob_remainingWidgets_longTimeElapsed_shouldCancel() local 172 remainingWidgets.put(PEOPLE_TILE_KEY.toString(), WIDGET_IDS); in testShouldCancelJob_remainingWidgets_longTimeElapsed_shouldCancel() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/people/ |
D | PeopleBackupFollowUpJob.java | 117 Map<String, Set<String>> remainingWidgets = in onStartJob() local 123 if (shouldCancelJob(remainingWidgets, start, now)) { in onStartJob() 124 cancelJobAndClearRemainingWidgets(remainingWidgets, followUpEditor, sp); in onStartJob() 142 Map<String, Set<String>> remainingWidgets = new HashMap<>(); in processFollowUpFile() local 157 remainingWidgets.put(entry.getKey(), (Set<String>) entry.getValue()); in processFollowUpFile() 162 return remainingWidgets; in processFollowUpFile() 166 public boolean shouldCancelJob(Map<String, Set<String>> remainingWidgets, in shouldCancelJob() argument 168 if (remainingWidgets.isEmpty()) { in shouldCancelJob() 186 public void cancelJobAndClearRemainingWidgets(Map<String, Set<String>> remainingWidgets, in cancelJobAndClearRemainingWidgets() argument 189 removeUnavailableShortcutsFromSharedStorage(remainingWidgets, sp); in cancelJobAndClearRemainingWidgets() [all …]
|