/cts/tests/tests/os/src/android/os/cts/ |
D | AsyncTaskTest.java | 35 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()
|
D | ResultReceiverTest.java | 30 private static final long DURATION = 100l; field in ResultReceiverTest 37 Thread.sleep(DURATION); in testResultReceiver()
|
D | ParcelFileDescriptorTest.java | 75 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/ |
D | RotateAnimationTest.java | 55 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()
|
D | TranslateAnimationTest.java | 58 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()
|
D | ScaleAnimationTest.java | 53 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);
|
D | LayoutAnimationControllerTest.java | 59 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/ |
D | CallLogProviderTest.java | 55 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/ |
D | MediaStoreAudioTestHelper.java | 97 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()
|
D | MediaStore_Audio_Playlists_MembersTest.java | 72 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()
|
D | MediaStore_Video_MediaTest.java | 138 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()
|
D | MediaStore_Audio_Genres_MembersTest.java | 163 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Members.DURATION))); in testStoreAudioGenresMembersExternal()
|
D | MediaStore_Audio_MediaTest.java | 158 assertEquals(Audio1.DURATION, c.getLong(c.getColumnIndex(Media.DURATION))); in testStoreAudioMedia()
|
/cts/tests/tests/app.usage/src/android/app/usage/cts/ |
D | ActivityTransitionActivity.java | 42 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/ |
D | WindowInsetsAnimationUtils.java | 33 private static final int DURATION = 1000; field in WindowInsetsAnimationUtils 85 animator.setDuration(DURATION); in runTransition()
|
/cts/tests/tests/view/src/android/view/cts/ |
D | View_AnimationTest.java | 56 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/ |
D | AnimatedImageDrawableTest.java | 80 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/ |
D | MultiStaConcurrencyWifiNetworkSpecifierTest.java | 90 private static final int DURATION = 10_000; field in MultiStaConcurrencyWifiNetworkSpecifierTest 125 PollingCheck.check("Wifi not enabled", DURATION, () -> wifiManager.isWifiEnabled()); in setUpClass()
|
D | WifiInfoTest.java | 92 private static final int DURATION = 10000; field in WifiInfoTest 127 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
|
D | WifiNetworkSpecifierTest.java | 195 private static final int DURATION = 10_000; field in WifiNetworkSpecifierTest 228 PollingCheck.check("Wifi not enabled", DURATION, () -> sWifiManager.isWifiEnabled()); in setUpClass()
|
D | WifiBackupRestoreTest.java | 132 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/ |
D | AnimationActivity.java | 50 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/ |
D | VoicemailContractTest.java | 94 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()
|
D | CallLogTest.java | 334 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/ |
D | MediaPlayerTestBase.java | 253 long duration = metrics.getLong(MediaPlayer.MetricsConstants.DURATION, -2); in playLoadedVideo()
|