Searched refs:scanRequestTimestamps (Results 1 – 1 of 1) sorted by relevance
373 List<Long> scanRequestTimestamps, long currentTimeMillis) { in trimPastScanRequestTimesForForegroundApp() argument374 Iterator<Long> timestampsIter = scanRequestTimestamps.iterator(); in trimPastScanRequestTimesForForegroundApp()391 LinkedList<Long> scanRequestTimestamps = in getOrCreateScanRequestTimestampsForForegroundApp() local393 if (scanRequestTimestamps == null) { in getOrCreateScanRequestTimestampsForForegroundApp()394 scanRequestTimestamps = new LinkedList<>(); in getOrCreateScanRequestTimestampsForForegroundApp()395 mLastScanTimestampsForFgApps.put(uidAndPackageNamePair, scanRequestTimestamps); in getOrCreateScanRequestTimestampsForForegroundApp()397 return scanRequestTimestamps; in getOrCreateScanRequestTimestampsForForegroundApp()412 LinkedList<Long> scanRequestTimestamps = in shouldScanRequestBeThrottledForForegroundApp() local416 trimPastScanRequestTimesForForegroundApp(scanRequestTimestamps, currentTimeMillis); in shouldScanRequestBeThrottledForForegroundApp()417 if (scanRequestTimestamps.size() >= SCAN_REQUEST_THROTTLE_MAX_IN_TIME_WINDOW_FG_APPS) { in shouldScanRequestBeThrottledForForegroundApp()[all …]