• Home
  • Raw
  • Download

Lines Matching refs:tv

29     android::TimestampVerifier<int64_t, int64_t> tv;  in makeVerifier()  local
34 tv.add(f, t, sampleRate); in makeVerifier()
39 tv.discontinuity(tv.DISCONTINUITY_MODE_CONTINUOUS); in makeVerifier()
42 tv.error(); in makeVerifier()
44 return tv; in makeVerifier()
49 constexpr android::TimestampVerifier<int64_t, int64_t> tv; in TEST() local
53 static_assert(std::is_trivially_copyable<decltype(tv)>::value, in TEST()
55 static_assert(std::is_trivially_destructible<decltype(tv)>::value, in TEST()
58 constexpr android::audio_utils::Statistics<double> s = tv.getJitterMs(); in TEST()
105 android::TimestampVerifier<int64_t, int64_t> tv; in TEST() local
108 tv.add(0, 0, 48000); in TEST()
109 tv.add(48000, 1000000000, 48000); in TEST()
110 tv.add(96000, 2000000000, 48000); in TEST()
113 tv.discontinuity(tv.DISCONTINUITY_MODE_ZERO); in TEST()
115 tv.add(0, 3000000000, 48000); in TEST()
118 EXPECT_EQ(0., tv.getLastCorrectedTimestamp().mFrames); in TEST()
119 EXPECT_EQ(3000000000., tv.getLastCorrectedTimestamp().mTimeNs); in TEST()
122 tv.add(0, 3100000000, 48000); in TEST()
125 EXPECT_EQ(0., tv.getLastCorrectedTimestamp().mFrames); in TEST()
126 EXPECT_EQ(3100000000., tv.getLastCorrectedTimestamp().mTimeNs); in TEST()
129 tv.add(48000*0.9, 4100000000*1.1, 48000); in TEST()
130 tv.add(96000*1.1, 5100000000*0.9, 48000); in TEST()
135 EXPECT_NE(0, tv.getLastCorrectedTimestamp().mFrames); in TEST()
136 EXPECT_NE(96000*1.1, tv.getLastCorrectedTimestamp().mFrames); in TEST()
137 EXPECT_EQ(5100000000*0.9, tv.getLastCorrectedTimestamp().mTimeNs); in TEST()