Home
last modified time | relevance | path

Searched refs:s2ns (Results 1 – 22 of 22) sorted by relevance

/aosp12/frameworks/native/services/surfaceflinger/tests/unittests/
H A DTransactionApplicationTest.cpp149 EXPECT_GE(returnedTime, applicationTime + s2ns(5)); in NotPlacedOnTransactionQueue()
151 EXPECT_LE(returnedTime, applicationTime + s2ns(5)); in NotPlacedOnTransactionQueue()
168 /*desiredPresentTime*/ time + s2ns(1), false, FrameTimelineInfo{}); in PlaceOnTransactionQueue()
179 EXPECT_GE(systemTime(), applicationSentTime + s2ns(5)); in PlaceOnTransactionQueue()
181 EXPECT_LE(returnedTime, applicationSentTime + s2ns(5)); in PlaceOnTransactionQueue()
200 /*desiredPresentTime*/ time + s2ns(1), false, FrameTimelineInfo{}); in BlockedByPriorTransaction()
220 EXPECT_LE(systemTime(), applicationSentTime + s2ns(5)); in BlockedByPriorTransaction()
238 EXPECT_GE(systemTime(), applicationSentTime + s2ns(5)); in BlockedByPriorTransaction()
240 EXPECT_LE(systemTime(), applicationSentTime + s2ns(5)); in BlockedByPriorTransaction()
263 /*desiredPresentTime*/ s2ns(1), false, FrameTimelineInfo{}); in TEST_F()
/aosp12/frameworks/av/media/tests/benchmark/src/native/common/utils/
H A DTimers.h61 static inline nsecs_t s2ns(nsecs_t v) { in s2ns() function
81 return s2ns(v); in seconds()
/aosp12/system/core/libutils/include/utils/
H A DTimers.h64 static CONSTEXPR inline nsecs_t s2ns(nsecs_t v) {return seconds_to_nanoseconds(v);} in s2ns() function
71 static CONSTEXPR inline nsecs_t seconds(nsecs_t v) { return s2ns(v); } in seconds()
/aosp12/frameworks/native/services/sensorservice/tests/
H A Dsensorservicetest.cpp42 t = float(buffer[i].timestamp - oldTimeStamp) / s2ns(1); in receiver()
44 t = float(buffer[i].timestamp - sStartTime) / s2ns(1); in receiver()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/util/
H A DQCameraDisplay.cpp151 default_vsync_interval= s2ns(1) / atoi(value); in QCameraDisplay()
153 default_vsync_interval= s2ns(1) / DISPLAY_DEFAULT_FPS; in QCameraDisplay()
/aosp12/hardware/libhardware/tests/input/evdev/
H A DInputDevice_test.cpp76 InputEvent event = { now + s2ns(60), EV_KEY, KEY_HOME, 1 }; in TEST_F()
95 device->processInput(event, now - s2ns(11)); in TEST_F()
H A DInputHub_test.cpp185 EXPECT_EQ(s2ns(1), event.when); in TEST_F()
/aosp12/frameworks/native/services/surfaceflinger/tests/vsync/
H A Dvsync.cpp42 float t = float(buffer[i].header.timestamp - oldTimeStamp) / s2ns(1); in receiver()
/aosp12/frameworks/native/services/surfaceflinger/tests/
H A DSetFrameRate_test.cpp42 while (systemTime() - startTime < s2ns(1)) { in PostBuffers()
/aosp12/frameworks/av/media/libnblog/include/media/nblog/
H A DMerger.h107 static constexpr nsecs_t kPeriodicMediaMetricsPush = s2ns((nsecs_t)2 * 60 * 60); // 2 hours
/aosp12/frameworks/base/services/core/jni/
H A Dcom_android_server_tv_TvInputHal.cpp167 status_t err = mCondition.waitRelative(mLock, s2ns(1)); in setSurfaceLocked()
209 err = mCondition.waitRelative(mLock, s2ns(1)); in threadLoop()
219 err = mCondition.waitRelative(mLock, s2ns(1)); in threadLoop()
/aosp12/hardware/libhardware/modules/input/evdev/
H A DInputDevice.cpp256 if (event.when >= currentTime + s2ns(10)) { in processInput()
H A DInputHub.cpp616 auto when = s2ns(iev.time.tv_sec) + us2ns(iev.time.tv_usec); in poll()
/aosp12/frameworks/av/services/camera/libcameraservice/device3/
H A DCamera3StreamSplitter.h238 static const nsecs_t kNormalDequeueBufferTimeout = s2ns(1); // 1 sec
/aosp12/frameworks/base/libs/hwui/tests/macrobench/
H A DTestSceneRunner.cpp181 outputBenchmarkReport(info, opts, (end - start) / (double)s2ns(1), repetitionIndex, in doRun()
/aosp12/frameworks/native/services/surfaceflinger/
H A DBufferQueueLayer.cpp109 const bool isPlausible = addedTime < (expectedPresentTime + s2ns(1)); in isBufferDue()
H A DSurfaceFlinger.cpp3589 desiredPresentTime < expectedPresentTime + s2ns(1)) { in transactionIsReadyToBeApplied()
3651 status_t err = mTransactionQueueCV.waitRelative(mQueueLock, s2ns(5)); in queueTransaction()
4721 TimedLock lock(mStateLock, s2ns(1), __FUNCTION__); in doDump()
/aosp12/hardware/google/graphics/common/libhwc2.1/libdevice/
H A DExynosLayer.cpp110 mFps = (uint32_t)(frameDiff * float(s2ns(1))) / diff; in checkFps()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL/
H A DQCamera2HWICallbacks.cpp3094 (double)(s2ns(1))) / (double)diff; in debugShowVideoFPS()
3118 (double)(s2ns(1))) / (double)diff; in debugShowPreviewFPS()
/aosp12/frameworks/base/cmds/bootanimation/
H A DBootAnimation.cpp1446 nsecs_t frameDuration = s2ns(1) / animation.fps; in playAnimation()
/aosp12/hardware/qcom/camera/msm8998/QCamera2/HAL3/
H A DQCamera3Channel.cpp1837 (double)(s2ns(1))) / (double)diff; in showDebugFPS()
H A DQCamera3HWI.cpp4009 timeout = s2ns(timeout); in handleMetadataWithLock()