Searched refs:scanRequestTimestamps (Results 1 – 1 of 1) sorted by relevance
344 List<Long> scanRequestTimestamps, long currentTimeMillis) { in trimPastScanRequestTimesForForegroundApp() argument345 Iterator<Long> timestampsIter = scanRequestTimestamps.iterator(); in trimPastScanRequestTimesForForegroundApp()361 LinkedList<Long> scanRequestTimestamps = in getOrCreateScanRequestTimestampsForForegroundApp() local363 if (scanRequestTimestamps == null) { in getOrCreateScanRequestTimestampsForForegroundApp()364 scanRequestTimestamps = new LinkedList<>(); in getOrCreateScanRequestTimestampsForForegroundApp()365 mLastScanTimestampsForFgApps.put(uidAndPackageNamePair, scanRequestTimestamps); in getOrCreateScanRequestTimestampsForForegroundApp()367 return scanRequestTimestamps; in getOrCreateScanRequestTimestampsForForegroundApp()378 LinkedList<Long> scanRequestTimestamps = in shouldScanRequestBeThrottledForForegroundApp() local382 trimPastScanRequestTimesForForegroundApp(scanRequestTimestamps, currentTimeMillis); in shouldScanRequestBeThrottledForForegroundApp()383 if (scanRequestTimestamps.size() >= SCAN_REQUEST_THROTTLE_MAX_IN_TIME_WINDOW_FG_APPS) { in shouldScanRequestBeThrottledForForegroundApp()[all …]