Home
last modified time | relevance | path

Searched refs:NS_PER_MS (Results 1 – 3 of 3) sorted by relevance

/cts/tests/tests/view/jni/
Dandroid_view_cts_AInputNativeTest.cpp51 static constexpr int64_t NS_PER_MS = 1000000LL; variable
56 jlong downTime = env->CallLongMethod(obj, gMotionEventMethodIds.getDownTime) * NS_PER_MS; in nativeMotionEventTest()
57 jlong eventTime = env->CallLongMethod(obj, gMotionEventMethodIds.getEventTime) * NS_PER_MS; in nativeMotionEventTest()
126 jlong downTime = env->CallLongMethod(obj, gKeyEventMethodIds.getDownTime) * NS_PER_MS; in nativeKeyEventTest()
127 jlong eventTime = env->CallLongMethod(obj, gKeyEventMethodIds.getEventTime) * NS_PER_MS; in nativeKeyEventTest()
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java87 private static final int NS_PER_MS = 1_000_000; field in MotionEventTest
119 mEventTimeNano = mEventTime * NS_PER_MS; in setup()
264 assertEquals((mEventTime + 20) * NS_PER_MS, mMotionEvent2.getEventTimeNanos()); in testObtainNoHistory()
271 assertEquals((mEventTime + 10) * NS_PER_MS, mMotionEvent2.getHistoricalEventTimeNanos(1)); in testObtainNoHistory()
448 assertEquals((mEventTime + 10) * NS_PER_MS, mMotionEvent2.getEventTimeNanos()); in testGetHistoricalData()
464 assertEquals((mEventTime + 20) * NS_PER_MS, mMotionEvent2.getEventTimeNanos()); in testGetHistoricalData()
471 assertEquals((mEventTime + 10) * NS_PER_MS, mMotionEvent2.getHistoricalEventTimeNanos(1)); in testGetHistoricalData()
650 assertEquals((mEventTime + 10) * NS_PER_MS, mMotionEventDynamic.getEventTimeNanos()); in testGetHistoricalDataWithTwoPointers()
680 assertEquals((mEventTime + 20) * NS_PER_MS, mMotionEventDynamic.getEventTimeNanos()); in testGetHistoricalDataWithTwoPointers()
688 assertEquals((mEventTime + 10) * NS_PER_MS, in testGetHistoricalDataWithTwoPointers()
/cts/tests/camera/src/android/hardware/camera2/cts/
DLogicalCameraDeviceTest.java98 private static final double NS_PER_MS = 1000000.0; field in LogicalCameraDeviceTest
1198 logicalTimestamps[0])/(NS_PER_MS*(NUM_FRAMES_CHECKED-1)); in testBasicPhysicalStreamingForCamera()
1285 logicalTimestamps2[0])/(NS_PER_MS*(NUM_FRAMES_CHECKED-1)); in testBasicPhysicalStreamingForCamera()