Home
last modified time | relevance | path

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

/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DServiceRestarterTest.java134 final long[] ts2 = startKillAndRestart(am, ACTION_KILL | ACTION_WAIT | ACTION_STOPPKG, in testDisableServiceRestartBackoff() local
137 assertTrue("app2 restart should be before app1", ts2[2] < ts2[1]); in testDisableServiceRestartBackoff()
138 assertTrue("app1 restart should be before app3", ts2[1] < ts2[3]); in testDisableServiceRestartBackoff()
139 assertTrue("app2 should be restart in a very short moment", ts2[2] - ts2[0] < WAIT_MS); in testDisableServiceRestartBackoff()
/aosp12/packages/apps/LegacyCamera/jni/feature_stab/src/dbregtest/
H A Ddbregtest.cpp113 timeval ts1, ts2, ts3, ts4; in main() local
206 gettimeofday(&ts2, NULL); in main()
208 double elapsedTime = (ts2.tv_sec - ts1.tv_sec)*1000.0; // sec to ms in main()
209 elapsedTime += (ts2.tv_usec - ts1.tv_usec)/1000.0; // us to ms in main()
/aosp12/frameworks/native/services/surfaceflinger/CompositionEngine/tests/
H A DCompositionEngineTest.cpp223 nsecs_t ts2 = 0; in TEST_F() local
226 EXPECT_CALL(*mLayer2FE, onPreComposition(_)).WillOnce(DoAll(SaveArg<0>(&ts2), Return(false))); in TEST_F()
236 EXPECT_EQ(ts2, mEngine.getLastFrameRefreshTimestamp()); in TEST_F()
/aosp12/bionic/tests/
H A Dtime_test.cpp763 timespec ts2; in TEST() local
766 ASSERT_EQ(0, clock_gettime(CLOCK_MONOTONIC, &ts2)); in TEST()
773 ASSERT_LE(ts1.tv_sec, ts2.tv_sec); in TEST()
774 if (ts1.tv_sec == ts2.tv_sec) { in TEST()
775 ASSERT_LE(ts1.tv_nsec, ts2.tv_nsec); in TEST()
/aosp12/frameworks/base/services/tests/servicestests/src/com/android/server/job/
H A DJobStoreTest.java550 private void compareTimestampsSubjectToIoLatency(String error, long ts1, long ts2) { in compareTimestampsSubjectToIoLatency() argument
552 assertTrue(error, Math.abs(ts1 - ts2) < DELTA_MILLIS); in compareTimestampsSubjectToIoLatency()