Home
last modified time | relevance | path

Searched refs:maxAge (Results 1 – 25 of 32) sorted by relevance

12

/expo/packages/expo-location/build/
H A DExpoLocation.web.js33 const maxAge = typeof options.maxAge === 'number' ? options.maxAge : Infinity;
36 return Date.now() - location.timestamp <= maxAge && locationAccuracy <= requiredAccuracy;
H A DLocation.types.d.ts128 maxAge?: number;
H A DExpoLocation.web.js.map1maxAge` and fits in the required accuracy.\n */\nfunction isLocationValid(location: LocationObject…
/expo/packages/expo-location/src/
H A DExpoLocation.web.ts43 const maxAge = typeof options.maxAge === 'number' ? options.maxAge : Infinity; constant
48 return Date.now() - location.timestamp <= maxAge && locationAccuracy <= requiredAccuracy;
H A DLocation.types.ts140 maxAge?: number;
/expo/packages/expo-updates/build/
H A DUpdates.d.ts129 export declare function readLogEntriesAsync(maxAge?: number): Promise<UpdatesLogEntry[]>;
H A DUpdates.js179 export async function readLogEntriesAsync(maxAge = 3600000) { argument
183 return await ExpoUpdates.readLogEntriesAsync(maxAge);
/expo/apps/router-e2e/__e2e__/server/
H A Dexpress.js26 maxAge: '1h', property
/expo/packages/expo-updates/src/
H A DUpdates.ts223 export async function readLogEntriesAsync(maxAge: number = 3600000): Promise<UpdatesLogEntry[]> {
227 return await ExpoUpdates.readLogEntriesAsync(maxAge);
/expo/apps/test-suite/tests/
H A DLocation.js284 const location = await Location.getLastKnownPositionAsync({ maxAge: 0 }); property
289 const location = await Location.getLastKnownPositionAsync({ maxAge: -1000 }); property
294 const maxAge = 5000;
296 const location = await Location.getLastKnownPositionAsync({ maxAge }); field
299 t.expect(timestampBeforeCall - location.timestamp).toBeLessThan(maxAge);
324 Location.getLastKnownPositionAsync({ maxAge: 1000 }), property
/expo/ios/versioned/sdk49/EXUpdates/EXUpdates/
H A DUpdatesModule.swift161 AsyncFunction("readLogEntriesAsync") { (maxAge: Int) -> [[String: Any]] in in definition()
164 …ogReader().getLogEntries(newerThan: Date(timeIntervalSinceNow: TimeInterval(-1 * (maxAge / 1000)))) in definition()
/expo/packages/expo-updates/ios/EXUpdates/
H A DUpdatesModule.swift172 AsyncFunction("readLogEntriesAsync") { (maxAge: Int) -> [[String: Any]] in in definition()
175 …ogReader().getLogEntries(newerThan: Date(timeIntervalSinceNow: TimeInterval(-1 * (maxAge / 1000)))) in definition()
/expo/ios/versioned/sdk47/EXUpdates/EXUpdates/
H A DABI47_0_0EXUpdatesModule.m151 readLogEntriesAsync:(NSNumber *)maxAge
157 // maxAge is in milliseconds, convert to seconds to compute NSDate
158 NSTimeInterval age = [maxAge intValue] / 1000;
/expo/ios/versioned/sdk48/EXUpdates/EXUpdates/
H A DABI48_0_0EXUpdatesModule.m156 readLogEntriesAsync:(NSNumber *)maxAge
162 // maxAge is in milliseconds, convert to seconds to compute NSDate
163 NSTimeInterval age = [maxAge intValue] / 1000;
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/updates/
H A DUpdatesModule.kt282 fun readLogEntriesAsync(maxAge: Long, promise: Promise) { in <lambda>()
286 val epoch = Date(date.time - maxAge) in <lambda>()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/location/
H A DLocationHelpers.java201 … double maxAge = options.containsKey("maxAge") ? (double) options.get("maxAge") : Double.MAX_VALUE; in isLocationValid() local
205 return timeDiff <= maxAge && location.getAccuracy() <= requiredAccuracy; in isLocationValid()
/expo/packages/expo-location/android/src/main/java/expo/modules/location/
H A DLocationHelpers.java201 … double maxAge = options.containsKey("maxAge") ? (double) options.get("maxAge") : Double.MAX_VALUE; in isLocationValid() local
205 return timeDiff <= maxAge && location.getAccuracy() <= requiredAccuracy; in isLocationValid()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/location/
H A DLocationHelpers.java201 … double maxAge = options.containsKey("maxAge") ? (double) options.get("maxAge") : Double.MAX_VALUE; in isLocationValid() local
205 return timeDiff <= maxAge && location.getAccuracy() <= requiredAccuracy; in isLocationValid()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/updates/
H A DUpdatesModule.kt283 fun readLogEntriesAsync(maxAge: Long, promise: Promise) { in <lambda>()
287 val epoch = Date(date.time - maxAge) in <lambda>()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/location/
H A DLocationHelpers.java201 … double maxAge = options.containsKey("maxAge") ? (double) options.get("maxAge") : Double.MAX_VALUE; in isLocationValid() local
205 return timeDiff <= maxAge && location.getAccuracy() <= requiredAccuracy; in isLocationValid()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/updates/
H A DUpdatesModule.kt431 fun readLogEntriesAsync(maxAge: Long, promise: Promise) { in <lambda>()
435 val epoch = Date(date.time - maxAge) in <lambda>()
/expo/ios/versioned/sdk49/EXLocation/EXLocation/
H A DABI49_0_0EXLocation.m618 NSTimeInterval maxAge = options[@"maxAge"] ? [options[@"maxAge"] doubleValue] : DBL_MAX;
622 …return location != nil && timeDiff * 1000 <= maxAge && location.horizontalAccuracy <= requiredAccu…
/expo/ios/versioned/sdk47/EXLocation/EXLocation/
H A DABI47_0_0EXLocation.m618 NSTimeInterval maxAge = options[@"maxAge"] ? [options[@"maxAge"] doubleValue] : DBL_MAX;
622 …return location != nil && timeDiff * 1000 <= maxAge && location.horizontalAccuracy <= requiredAccu…
/expo/ios/versioned/sdk48/EXLocation/EXLocation/
H A DABI48_0_0EXLocation.m618 NSTimeInterval maxAge = options[@"maxAge"] ? [options[@"maxAge"] doubleValue] : DBL_MAX;
622 …return location != nil && timeDiff * 1000 <= maxAge && location.horizontalAccuracy <= requiredAccu…
/expo/packages/expo-location/ios/EXLocation/
H A DEXLocation.m618 NSTimeInterval maxAge = options[@"maxAge"] ? [options[@"maxAge"] doubleValue] : DBL_MAX;
622 …return location != nil && timeDiff * 1000 <= maxAge && location.horizontalAccuracy <= requiredAccu…

12