Home
last modified time | relevance | path

Searched refs:DURATION (Results 1 – 25 of 25) sorted by relevance

/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java33 private static final long DURATION = 2000; field in AsyncTaskTest
44 doTestAsyncTask(DURATION); in testAsyncTaskWithTimeout()
50 assertEquals(RESULT, mMyAsyncTask.get(DURATION, TimeUnit.MILLISECONDS).longValue()); in doTestAsyncTask()
56 new PollingCheck(DURATION) { in doTestAsyncTask() argument
80 new PollingCheck(DURATION) { in doTestAsyncTask() argument
109 Thread.sleep(DURATION); in testCancelWithInterrupt()
122 Thread.sleep(DURATION); in testCancel()
130 Thread.sleep(DURATION); in testCancelTooLate()
DResultReceiverTest.java28 private static final long DURATION = 100l; field in ResultReceiverTest
35 Thread.sleep(DURATION); in testResultReceiver()
DParcelFileDescriptorTest.java62 private static final long DURATION = 100l; field in ParcelFileDescriptorTest
112 Thread.sleep(DURATION); in testFromSocket()
122 Thread.sleep(DURATION); in testFromSocket()
/cts/tests/tests/view/src/android/view/animation/cts/
DRotateAnimationTest.java49 private static final long DURATION = 1000; field in RotateAnimationTest
102 rotateAnimation.setDuration(DURATION); in testRotateAgainstOrigin()
124 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
132 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstOrigin()
160 rotateAnimation.setDuration(DURATION); in testRotateAgainstPoint()
182 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstPoint()
190 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstPoint()
DTranslateAnimationTest.java50 private static final long DURATION = 1000; field in TranslateAnimationTest
106 translateAnimation.setDuration(DURATION); in testApplyTransformation()
124 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
130 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
179 translateAnimation.setDuration(DURATION); in testInitialize()
193 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testInitialize()
201 translateAnimation.getTransformation(startTime + DURATION, transformation); in testInitialize()
DScaleAnimationTest.java47 private static long DURATION = 1000; field in ScaleAnimationTest
130 scaleAnimation.setDuration(DURATION);
146 scaleAnimation.getTransformation(startTime + (DURATION / 2), transformation);
152 scaleAnimation.getTransformation(startTime + DURATION, transformation);
DLayoutAnimationControllerTest.java53 private static final int DURATION = 1000; field in LayoutAnimationControllerTest
175 long maxDuration = (long) (delay * INDEX_OF_CHILD3 * DURATION + DURATION); in testAccessDelay()
261 assertEquals(DURATION, actualAnimation.getDuration());
269 assertAnimation(childAnimation1, true, DURATION);
270 assertAnimation(childAnimation2, true, DURATION);
271 assertAnimation(childAnimation3, true, DURATION);
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStoreAudioTestHelper.java93 public static final int DURATION = 340000; field in MediaStoreAudioTestHelper.Audio1
132 values.put(Media.DURATION, DURATION); in getContentValues()
169 public static final int DURATION = 338000; field in MediaStoreAudioTestHelper.Audio2
211 values.put(Media.DURATION, DURATION); in getContentValues()
DMediaStore_Audio_MediaTest.java116 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
154 assertEquals(Audio2.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
DMediaStore_Video_MediaTest.java89 values.put(Media.DURATION, 8480); in testStoreVideoMediaExternal()
122 assertEquals(8480, c.getInt(c.getColumnIndex(Media.DURATION))); in testStoreVideoMediaExternal()
150 values.put(Media.DURATION, 8481); in testStoreVideoMediaExternal()
175 assertEquals(8481, c.getInt(c.getColumnIndex(Media.DURATION))); in testStoreVideoMediaExternal()
DCallLogTest.java57 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testGetLastOutgoingCall()
DMediaStore_Audio_Playlists_MembersTest.java52 Members.DURATION,
82 Members.DURATION,
234 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
278 assertEquals(Audio2.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
DMediaStore_Audio_Genres_MembersTest.java140 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioGenresMembersExternal()
DCalendarTest.java325 Events.DURATION,
460 values.put(Events.DURATION, duration); in getNewRecurringEventValues()
2473 updateValues.put(Events.DURATION, "P" + durationSecs + "S"); in testConversionToRecurring()
2631 excepValues.put(Events.DURATION, "P" + 3600*2 + "S"); in testSingleRecurrenceExceptions()
2638 excepValues.put(Events.DURATION, "P" + 3600*3 + "S"); in testSingleRecurrenceExceptions()
2837 beforeExcepValues.remove(Events.DURATION); in testOutOfOrderRecurrenceExceptions()
2844 afterExcepValues.remove(Events.DURATION); in testOutOfOrderRecurrenceExceptions()
2851 unrelatedExcepValues.remove(Events.DURATION); in testOutOfOrderRecurrenceExceptions()
/cts/tests/tests/net/src/android/net/wifi/cts/
DWifiInfoTest.java51 private static final int DURATION = 10000; field in WifiInfoTest
84 Thread.sleep(DURATION); in setUp()
100 Thread.sleep(DURATION); in tearDown()
DConcurrencyTest.java49 private static final int DURATION = 10000; field in ConcurrencyTest
88 Thread.sleep(DURATION); in setUp()
144 latch.await(DURATION, TimeUnit.MILLISECONDS); in enableWifi()
DWifiManagerTest.java86 private static final int DURATION = 10000; field in WifiManagerTest
159 Thread.sleep(DURATION); in setUp()
177 Thread.sleep(DURATION); in tearDown()
301 Thread.sleep(DURATION); in testWifiManagerScanWhenWifiOffLocationTurnedOn()
574 Thread.sleep(DURATION); in testWifiWatchdog()
579 Thread.sleep(DURATION); in testWifiWatchdog()
618 Thread.sleep(DURATION); in testWifiWatchdog()
832 mLOHSLock.wait(DURATION);
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionActivity.java42 private static final long DURATION = 50; field in ActivityTransitionActivity
110 getWindow().setSharedElementEnterTransition(new ChangeBounds().setDuration(DURATION)); in onCreate()
111 getWindow().setSharedElementReturnTransition(new ChangeBounds().setDuration(DURATION)); in onCreate()
135 transition.setDuration(DURATION); in createVisibilityTransition()
142 transition.setDuration(DURATION); in createVisibilityTransition()
/cts/tests/tests/view/src/android/view/cts/
DView_AnimationTest.java51 private static final int DURATION = 2000; field in View_AnimationTest
67 mAnimation.setDuration(DURATION); in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java70 private static final int DURATION = NUM_FRAMES * FRAME_DURATION; field in AnimatedImageDrawableTest
244 cb.waitForEnd(DURATION * 2); in testUnregisterCallback()
274 cb.waitForEnd(DURATION * 3); in testLifeCycle()
338 cb.waitForEnd(DURATION * 3); in testAddCallbackAfterStart()
360 cb.waitForEnd(DURATION * 3); in testStop()
382 cb.waitForEnd(DURATION * repeatCount); in testRepeatCounts()
385 cb.waitForEnd(DURATION * 2); in testRepeatCounts()
407 cb.waitForEnd(DURATION * 30); in testRepeatCountInfinite()
/cts/tests/tests/animation/src/android/animation/cts/
DAnimationActivity.java50 private static final String DURATION = "duration"; field in AnimationActivity
73 mDuration = extras.getInt(DURATION); in onCreate()
/cts/tests/tests/provider/src/android/provider/cts/contacts/
DVoicemailContractTest.java94 Voicemails.DURATION, in testVoicemailsTable()
147 value.put(Voicemails.DURATION, insertCallsDuration); in testVoicemailsTable()
196 value.put(Voicemails.DURATION, updateCallsDuration); in testVoicemailsTable()
437 value.put(Voicemails.DURATION, insertCallsDuration); in buildContentValuesForNewVoicemail()
DContactsTest.java415 Calls._ID, Calls.NUMBER, Calls.DATE, Calls.DURATION, Calls.TYPE, in testCallsTable()
464 value.put(Calls.DURATION, insertCallsDuration); in testCallsTable()
495 value.put(Calls.DURATION, updateCallsDuration); in testCallsTable()
/cts/tests/tests/media/src/android/media/cts/
DMediaPlayerTestBase.java308 long duration = metrics.getLong(MediaPlayer.MetricsConstants.DURATION, -2); in playLoadedVideo()
DMediaPlayer2TestBase.java558 long duration = metrics.getLong(MediaPlayer2.MetricsConstants.DURATION, -2); in playLoadedVideo()