Home
last modified time | relevance | path

Searched refs:age (Results 1 – 11 of 11) sorted by relevance

/frameworks/opt/net/wifi/service/java/com/android/server/wifi/
DScanDetailCache.java171 public WifiConfiguration.Visibility getVisibilityByRssi(long age) { in getVisibilityByRssi() argument
196 + " age = " + age); in getVisibilityByRssi()
198 if ((now_elapsed_ms - (result.timestamp / 1000)) > age) continue; in getVisibilityByRssi()
201 if ((now_ms - result.seen) > age) continue; in getVisibilityByRssi()
229 public WifiConfiguration.Visibility getVisibility(long age) { in getVisibility() argument
230 return getVisibilityByRssi(age); in getVisibility()
DWifiLastResortWatchdog.java141 availableNetworkFailureCount.age = -1; in updateAvailableNetworks()
151 if (entry.getValue().age < MAX_BSSID_AGE - 1) { in updateAvailableNetworks()
152 entry.getValue().age++; in updateAvailableNetworks()
408 .append(", Age: ").append(entry.getValue().age); in toString()
500 public int age = 0; field in WifiLastResortWatchdog.AvailableNetworkFailureCount
/frameworks/base/wifi/java/android/net/wifi/
DScanResult.java241 long age = seen - previousSeen; in averageRssi() local
243 if (previousSeen > 0 && age > 0 && age < maxAge/2) { in averageRssi()
245 double alpha = 0.5 - (double) age / (double) maxAge; in averageRssi()
/frameworks/base/packages/Osu/src/com/android/hotspot2/osu/
DIconCache.java290 long age = now - fileEntry.getTimestamp(); in tick() local
291 if (age > REQUERY_TIMEOUT || fileEntry.getAndIncrementRetry() > MAX_RETRY) { in tick()
293 } else if (age > REQUERY_TIME) { in tick()
/frameworks/opt/net/wifi/tests/wifitests/src/com/android/server/wifi/
DWifiLastResortWatchdogTest.java143 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[0]).age, 0); in testAvailableNetworkBuffering_ageCullingWorks()
144 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[1]).age, 0); in testAvailableNetworkBuffering_ageCullingWorks()
145 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[2]).age, in testAvailableNetworkBuffering_ageCullingWorks()
147 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[3]).age, in testAvailableNetworkBuffering_ageCullingWorks()
211 mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[j]).age, 0); in testAvailableNetworkBuffering_addNewNetworksOverTime()
244 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[0]).age, 0); in testAvailableNetworkBuffering_multipleNetworksSomeEphemeral()
245 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[1]).age, 0); in testAvailableNetworkBuffering_multipleNetworksSomeEphemeral()
246 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[2]).age, in testAvailableNetworkBuffering_multipleNetworksSomeEphemeral()
248 assertEquals(mLastResortWatchdog.getRecentAvailableNetworks().get(mBssids[3]).age, in testAvailableNetworkBuffering_multipleNetworksSomeEphemeral()
/frameworks/base/core/tests/coretests/src/android/os/
DFileUtilsTest.java347 private void touch(String name, long age) throws Exception { in touch() argument
350 file.setLastModified(System.currentTimeMillis() - age); in touch()
/frameworks/native/libs/input/
DVelocityTracker.cpp578 nsecs_t age = newestMovement.eventTime - movement.eventTime; in getEstimator() local
579 if (age > HORIZON) { in getEstimator()
587 time[m] = -age * 0.000000001f; in getEstimator()
/frameworks/base/core/java/android/os/
DFileUtils.java397 final long age = System.currentTimeMillis() - file.lastModified(); in deleteOlderFiles() local
398 if (age > minAge) { in deleteOlderFiles()
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/scanner/
DWifiScanningServiceImpl.java2137 String age; in dump() local
2139 age = "___?___"; in dump()
2141 age = " 0.000"; in dump()
2143 age = ">1000.0"; in dump()
2145 age = String.format("%3.3f", (nowMs - r.seen) / 1000.0); in dump()
2152 age, in dump()
/frameworks/base/services/core/java/com/android/server/pm/
DPackageInstallerService.java362 final long age = System.currentTimeMillis() - session.createdMillis; in readSessionsLocked() local
365 if (age >= MAX_AGE_MILLIS) { in readSessionsLocked()
/frameworks/opt/setupwizard/tools/docs/
Dandroid-22.txt55434 field public static final java.lang.String MAX_AGE_ATTR = "max-age";