Home
last modified time | relevance | path

Searched refs:timeMachine (Results 1 – 5 of 5) sorted by relevance

/expo/packages/expo-av/android/src/test/java/expo/modules/av/progress/
H A DProgressLooperTest.kt71 timeMachine.advanceBy(1000L) in callback invoked once after time passed()
79 timeMachine.advanceBy(1100) in callback invoked twice after two timeouts()
81 timeMachine.advanceBy(1100) in callback invoked twice after two timeouts()
89 timeMachine.advanceBy(2200) in callback invoked once after twice too big timeout()
97 timeMachine.advanceBy(1001) in callback not invoked after looping stopped()
101 timeMachine.advanceBy(1001) in callback not invoked after looping stopped()
111 timeMachine.advanceBy(110) in callback not invoked earlier if interval shortened()
115 timeMachine.advanceBy(900) in callback not invoked earlier if interval shortened()
119 timeMachine.advanceBy(100) in callback not invoked earlier if interval shortened()
129 timeMachine.advanceBy(1100) in callback invoked earlier even if interval lengthened()
[all …]
/expo/packages/expo-av/android/src/main/java/expo/modules/av/progress/
H A DProgressLooper.kt12 class ProgressLooper(private val timeMachine: TimeMachine) { in scheduleAt() constant in expo.modules.av.progress.ProgressLooper
51 nextExpectedTick = timeMachine.time in scheduleAt()
56 timeMachine.scheduleAt(nextExpectedTick - timeMachine.time) { in scheduleAt()
65 if (nextExpectedTick > timeMachine.time) { in scheduleAt()
68 (((timeMachine.time - nextExpectedTick) / interval) + 1) * interval in scheduleAt()
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/av/progress/
H A DProgressLooper.kt12 class ProgressLooper(private val timeMachine: TimeMachine) { in scheduleAt() constant in abi49_0_0.expo.modules.av.progress.ProgressLooper
51 nextExpectedTick = timeMachine.time in scheduleAt()
56 timeMachine.scheduleAt(nextExpectedTick - timeMachine.time) { in scheduleAt()
65 if (nextExpectedTick > timeMachine.time) { in scheduleAt()
68 (((timeMachine.time - nextExpectedTick) / interval) + 1) * interval in scheduleAt()
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/av/progress/
H A DProgressLooper.kt12 class ProgressLooper(private val timeMachine: TimeMachine) { in scheduleAt() constant in abi48_0_0.expo.modules.av.progress.ProgressLooper
51 nextExpectedTick = timeMachine.time in scheduleAt()
56 timeMachine.scheduleAt(nextExpectedTick - timeMachine.time) { in scheduleAt()
65 if (nextExpectedTick > timeMachine.time) { in scheduleAt()
68 (((timeMachine.time - nextExpectedTick) / interval) + 1) * interval in scheduleAt()
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/av/progress/
H A DProgressLooper.kt12 class ProgressLooper(private val timeMachine: TimeMachine) { in scheduleAt() constant in abi47_0_0.expo.modules.av.progress.ProgressLooper
51 nextExpectedTick = timeMachine.time in scheduleAt()
56 timeMachine.scheduleAt(nextExpectedTick - timeMachine.time) { in scheduleAt()
65 if (nextExpectedTick > timeMachine.time) { in scheduleAt()
68 (((timeMachine.time - nextExpectedTick) / interval) + 1) * interval in scheduleAt()