Home
last modified time | relevance | path

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

12

/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.java64 private static final long DURATION = 100l; field in ParcelFileDescriptorTest
115 Thread.sleep(DURATION); in testFromSocket()
125 Thread.sleep(DURATION); in testFromSocket()
/cts/tests/tests/view/src/android/view/animation/cts/
DRotateAnimationTest.java50 private static final long DURATION = 1000; field in RotateAnimationTest
103 rotateAnimation.setDuration(DURATION); in testRotateAgainstOrigin()
125 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstOrigin()
133 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstOrigin()
161 rotateAnimation.setDuration(DURATION); in testRotateAgainstPoint()
183 rotateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testRotateAgainstPoint()
191 rotateAnimation.getTransformation(startTime + DURATION, transformation); in testRotateAgainstPoint()
DTranslateAnimationTest.java51 private static final long DURATION = 1000; field in TranslateAnimationTest
107 translateAnimation.setDuration(DURATION); in testApplyTransformation()
125 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testApplyTransformation()
131 translateAnimation.getTransformation(startTime + DURATION, transformation); in testApplyTransformation()
180 translateAnimation.setDuration(DURATION); in testInitialize()
194 translateAnimation.getTransformation(startTime + DURATION / 2, transformation); in testInitialize()
202 translateAnimation.getTransformation(startTime + DURATION, transformation); in testInitialize()
DScaleAnimationTest.java48 private static long DURATION = 1000; field in ScaleAnimationTest
131 scaleAnimation.setDuration(DURATION);
147 scaleAnimation.getTransformation(startTime + (DURATION / 2), transformation);
153 scaleAnimation.getTransformation(startTime + DURATION, transformation);
DLayoutAnimationControllerTest.java54 private static final int DURATION = 1000; field in LayoutAnimationControllerTest
176 long maxDuration = (long) (delay * INDEX_OF_CHILD3 * DURATION + DURATION); in testAccessDelay()
262 assertEquals(DURATION, actualAnimation.getDuration());
270 assertAnimation(childAnimation1, true, DURATION);
271 assertAnimation(childAnimation2, true, DURATION);
272 assertAnimation(childAnimation3, true, DURATION);
/cts/tests/tests/provider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java98 public static final int DURATION = 340000; field in MediaStoreAudioTestHelper.Audio1
132 values.put(Media.DURATION, DURATION); in getContentValues()
160 public static final int DURATION = 338000; field in MediaStoreAudioTestHelper.Audio2
195 values.put(Media.DURATION, DURATION); in getContentValues()
DMediaStore_Audio_Playlists_MembersTest.java73 Members.DURATION,
102 Members.DURATION,
269 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
314 assertEquals(Audio2.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioPlaylistsMembersExternal()
DMediaStore_Video_MediaTest.java136 values.put(Media.DURATION, 8480); in testStoreVideoMediaExternal()
163 assertEquals(8480, c.getInt(c.getColumnIndex(Media.DURATION))); in testStoreVideoMediaExternal()
389 assertEquals(9296, c.getLong(c.getColumnIndex(VideoColumns.DURATION))); in testMetadata()
DMediaStore_Audio_MediaTest.java155 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
DMediaStore_Audio_Genres_MembersTest.java164 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioGenresMembersExternal()
/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/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.java52 private static final int DURATION = 2000; field in View_AnimationTest
68 mAnimation.setDuration(DURATION); in setup()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedImageDrawableTest.java78 private static final int DURATION = NUM_FRAMES * FRAME_DURATION; field in AnimatedImageDrawableTest
252 cb.waitForEnd(DURATION * 2); in testUnregisterCallback()
286 cb.waitForEnd(DURATION * 20); in testLifeCycle()
355 cb.waitForEnd(DURATION * 10); in testAddCallbackAfterStart()
383 cb.waitForEnd(DURATION * 3); in testStop()
409 cb.waitForEnd(DURATION * repeatCount); in testRepeatCounts()
414 cb.waitForEnd(DURATION * 20); in testRepeatCounts()
436 cb.waitForEnd(DURATION * 30); in testRepeatCountInfinite()
760 cb.waitForEnd(DURATION * 2); in decodeInBackground()
/cts/tests/tests/wifi/src/android/net/wifi/cts/
DWifiInfoTest.java64 private static final int DURATION = 10000; field in WifiInfoTest
99 PollingCheck.check("Wifi not enabled", DURATION, () -> mWifiManager.isWifiEnabled()); in setUp()
115 Thread.sleep(DURATION); in tearDown()
DMultiStaConcurrencyWifiNetworkSpecifierTest.java89 private static final int DURATION = 10_000; field in MultiStaConcurrencyWifiNetworkSpecifierTest
121 PollingCheck.check("Wifi not enabled", DURATION, () -> wifiManager.isWifiEnabled()); in setUpClass()
DConcurrencyTest.java97 private static final int DURATION = 5000; field in ConcurrencyTest
180 Thread.sleep(DURATION); in setUp()
305 latch.await(DURATION, TimeUnit.MILLISECONDS); in enableWifi()
DWifiNetworkSpecifierTest.java195 private static final int DURATION = 10_000; field in WifiNetworkSpecifierTest
221 PollingCheck.check("Wifi not enabled", DURATION, () -> wifiManager.isWifiEnabled()); in setUpClass()
DWifiBackupRestoreTest.java100 private static final int DURATION = 10_000; field in WifiBackupRestoreTest
124 PollingCheck.check("Wifi not enabled", DURATION, () -> mWifiManager.isWifiEnabled()); in setUp()
/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.java81 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testGetLastOutgoingCall()

12