Home
last modified time | relevance | path

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

12

/cts/tests/tests/os/src/android/os/cts/
DAsyncTaskTest.java35 private static final long DURATION = 2000; field in AsyncTaskTest
46 doTestAsyncTask(DURATION); in testAsyncTaskWithTimeout()
52 assertEquals(RESULT, mMyAsyncTask.get(DURATION, TimeUnit.MILLISECONDS).longValue()); in doTestAsyncTask()
58 new PollingCheck(DURATION) { in doTestAsyncTask() argument
82 new PollingCheck(DURATION) { in doTestAsyncTask() argument
111 Thread.sleep(DURATION); in testCancelWithInterrupt()
124 Thread.sleep(DURATION); in testCancel()
132 Thread.sleep(DURATION); in testCancelTooLate()
DResultReceiverTest.java30 private static final long DURATION = 100l; field in ResultReceiverTest
37 Thread.sleep(DURATION); in testResultReceiver()
DParcelFileDescriptorTest.java75 private static final long DURATION = 100l; field in ParcelFileDescriptorTest
198 Thread.sleep(DURATION); in testFromSocket()
208 Thread.sleep(DURATION); in testFromSocket()
/cts/tests/tests/view/src/android/view/animation/cts/
DRotateAnimationTest.java55 private static final long DURATION = 1000; field in RotateAnimationTest
114 rotateAnimation.setDuration(DURATION); in testRotateAgainstOrigin()
136 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
144 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstOrigin()
172 rotateAnimation.setDuration(DURATION); in testRotateAgainstPoint()
194 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstPoint()
202 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstPoint()
DTranslateAnimationTest.java58 private static final long DURATION = 1000; field in TranslateAnimationTest
120 translateAnimation.setDuration(DURATION); in testApplyTransformation()
138 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
144 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
193 translateAnimation.setDuration(DURATION); in testInitialize()
207 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testInitialize()
215 translateAnimation.getTransformation(startTime + DURATION, transformation); in testInitialize()
DScaleAnimationTest.java53 private static long DURATION = 1000; field in ScaleAnimationTest
142 scaleAnimation.setDuration(DURATION);
158 scaleAnimation.getTransformation(startTime + (DURATION / 2), transformation);
164 scaleAnimation.getTransformation(startTime + DURATION, transformation);
DLayoutAnimationControllerTest.java59 private static final int DURATION = 1000; field in LayoutAnimationControllerTest
187 long maxDuration = (long) (delay * INDEX_OF_CHILD3 * DURATION + DURATION); in testAccessDelay()
273 assertEquals(DURATION, actualAnimation.getDuration());
281 assertAnimation(childAnimation1, true, DURATION);
282 assertAnimation(childAnimation2, true, DURATION);
283 assertAnimation(childAnimation3, true, DURATION);
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/
DCallLogProviderTest.java55 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testNoSubqueries()
77 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testUpdate()
95 values.put(CallLog.Calls.DURATION, Long.valueOf(6 /*call duration*/)); in testUpdate()
127 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testDelete()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java97 public static final int DURATION = 340000; field in MediaStoreAudioTestHelper.Audio1
131 values.put(Media.DURATION, DURATION); in getContentValues()
158 public static final int DURATION = 338000; field in MediaStoreAudioTestHelper.Audio2
193 values.put(Media.DURATION, DURATION); in getContentValues()
DMediaStore_Audio_Playlists_MembersTest.java72 Members.DURATION,
101 Members.DURATION,
268 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
313 assertEquals(Audio2.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
DMediaStore_Video_MediaTest.java138 values.put(Media.DURATION, 8480); in testStoreVideoMediaExternal()
165 assertEquals(8480, c.getInt(c.getColumnIndex(Media.DURATION))); in testStoreVideoMediaExternal()
398 assertEquals(9296, c.getLong(c.getColumnIndex(VideoColumns.DURATION))); in testMetadata()
DMediaStore_Audio_Genres_MembersTest.java163 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioGenresMembersExternal()
DMediaStore_Audio_MediaTest.java158 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
/cts/tests/tests/app.usage/src/android/app/usage/cts/
DActivityTransitionActivity.java42 private static final long DURATION = 50; field in ActivityTransitionActivity
112 getWindow().setSharedElementEnterTransition(new ChangeBounds().setDuration(DURATION)); in onCreate()
113 getWindow().setSharedElementReturnTransition(new ChangeBounds().setDuration(DURATION)); in onCreate()
137 transition.setDuration(DURATION); in createVisibilityTransition()
144 transition.setDuration(DURATION); in createVisibilityTransition()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DWindowInsetsAnimationUtils.java33 private static final int DURATION = 1000; field in WindowInsetsAnimationUtils
85 animator.setDuration(DURATION); in runTransition()
/cts/tests/tests/view/src/android/view/cts/
DView_AnimationTest.java56 private static final int DURATION = 2000; field in View_AnimationTest
78 mAnimation.setDuration(DURATION); in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java80 private static final int DURATION = NUM_FRAMES * FRAME_DURATION; field in AnimatedImageDrawableTest
260 cb.waitForEnd(DURATION * 2); in testUnregisterCallback()
294 cb.waitForEnd(DURATION * 20); in testLifeCycle()
363 cb.waitForEnd(DURATION * 10); in testAddCallbackAfterStart()
391 cb.waitForEnd(DURATION * 3); in testStop()
417 cb.waitForEnd(DURATION * repeatCount); in testRepeatCounts()
422 cb.waitForEnd(DURATION * 20); in testRepeatCounts()
444 cb.waitForEnd(DURATION * 30); in testRepeatCountInfinite()
768 cb.waitForEnd(DURATION * 2); in decodeInBackground()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DMultiStaConcurrencyWifiNetworkSpecifierTest.java90 private static final int DURATION = 10_000; field in MultiStaConcurrencyWifiNetworkSpecifierTest
125 PollingCheck.check("Wifi not enabled", DURATION, () -> wifiManager.isWifiEnabled()); in setUpClass()
DWifiInfoTest.java92 private static final int DURATION = 10000; field in WifiInfoTest
127 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
DWifiNetworkSpecifierTest.java195 private static final int DURATION = 10_000; field in WifiNetworkSpecifierTest
228 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
DWifiBackupRestoreTest.java132 private static final int DURATION = 10_000; field in WifiBackupRestoreTest
168 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
/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()
DCallLogTest.java334 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testGetLastOutgoingCall()
546 values.put(Calls.DURATION, duration); in getDefaultValues()
/cts/tests/tests/media/common/src/android/media/cts/
DMediaPlayerTestBase.java253 long duration = metrics.getLong(MediaPlayer.MetricsConstants.DURATION, -2); in playLoadedVideo()

12