Home | History | Annotate | Download | only in hdmi

Lines Matching full:pair

22 import android.util.Pair;
50 // Value (Pair(Long, Integer)): a pair of last log time millis and the number of logMessage.
52 private final HashMap<String, Pair<Long, Integer>> mWarningTimingCache = new HashMap<>();
54 private final HashMap<String, Pair<Long, Integer>> mErrorTimingCache = new HashMap<>();
109 private static String updateLog(HashMap<String, Pair<Long, Integer>> cache, String logMessage) {
111 Pair<Long, Integer> timing = cache.get(logMessage);
114 cache.put(logMessage, new Pair<>(curTime, 1));
122 private static String buildMessage(String message, @Nullable Pair<Long, Integer> timing) {
128 private static void increaseLogCount(HashMap<String, Pair<Long, Integer>> cache,
130 Pair<Long, Integer> timing = cache.get(message);
132 cache.put(message, new Pair<>(timing.first, timing.second + 1));
136 private static boolean shouldLogNow(@Nullable Pair<Long, Integer> timing, long curTime) {