Searched refs:scanRequestTimestamps (Results 1 – 1 of 1) sorted by relevance
306 List<Long> scanRequestTimestamps, long currentTimeMillis) { in trimPastScanRequestTimesForForegroundApp() argument307 Iterator<Long> timestampsIter = scanRequestTimestamps.iterator(); in trimPastScanRequestTimesForForegroundApp()323 LinkedList<Long> scanRequestTimestamps = in getOrCreateScanRequestTimestampsForForegroundApp() local325 if (scanRequestTimestamps == null) { in getOrCreateScanRequestTimestampsForForegroundApp()326 scanRequestTimestamps = new LinkedList<>(); in getOrCreateScanRequestTimestampsForForegroundApp()327 mLastScanTimestampsForFgApps.put(uidAndPackageNamePair, scanRequestTimestamps); in getOrCreateScanRequestTimestampsForForegroundApp()329 return scanRequestTimestamps; in getOrCreateScanRequestTimestampsForForegroundApp()340 LinkedList<Long> scanRequestTimestamps = in shouldScanRequestBeThrottledForForegroundApp() local344 trimPastScanRequestTimesForForegroundApp(scanRequestTimestamps, currentTimeMillis); in shouldScanRequestBeThrottledForForegroundApp()345 if (scanRequestTimestamps.size() >= SCAN_REQUEST_THROTTLE_MAX_IN_TIME_WINDOW_FG_APPS) { in shouldScanRequestBeThrottledForForegroundApp()[all …]