Lines Matching defs:updates
73 Iterator<PendingUpdate> updates = mOutstanding.iterator();
74 while (updates.hasNext()) {
75 PendingUpdate update = updates.next();
77 updates.remove();
101 Iterator<PendingUpdate> updates = mOutstanding.iterator();
102 while (updates.hasNext()) {
103 PendingUpdate update = updates.next();
107 updates.remove();
111 updates.remove();
114 updates.remove();
300 Iterator<PendingUpdate> updates = mOutstanding.iterator();
301 while (updates.hasNext()) {
302 PendingUpdate update = updates.next();
306 // Subscription updates takes precedence over policy updates
307 updates.remove();
331 File stateFile, Map<String, List<RemediationEvent>> updates) {
335 loadUpdates(stateFile, updates);
337 Log.w(OSUManager.TAG, "Failed to load updates file: " + ioe);
341 Iterator<Map.Entry<String, List<RemediationEvent>>> events = updates.entrySet().iterator();
349 Log.d(OSUManager.TAG, "Updates: " + updates);
351 saveUpdates(stateFile, updates);
376 private static void loadUpdates(File file, Map<String, List<RemediationEvent>> updates)
383 List<RemediationEvent> events = updates.get(event.getFqdn());
386 updates.put(event.getFqdn(), events);
396 private static void saveUpdates(File file, Map<String, List<RemediationEvent>> updates) {
398 for (List<RemediationEvent> events : updates.values()) {
479 private final HomeSP mHomeSP; // For time based updates