/frameworks/support/transition/tests/src/android/support/transition/ |
D | SyncTransitionListener.java | 35 private CountDownLatch mLatch = new CountDownLatch(1); field in SyncTransitionListener 43 return mLatch.await(3000, TimeUnit.MILLISECONDS); in await() 50 mLatch = new CountDownLatch(1); in reset() 56 mLatch.countDown(); in onTransitionStart() 63 mLatch.countDown(); in onTransitionEnd() 70 mLatch.countDown(); in onTransitionCancel() 77 mLatch.countDown(); in onTransitionPause() 84 mLatch.countDown(); in onTransitionResume()
|
D | SyncRunnable.java | 24 private final CountDownLatch mLatch = new CountDownLatch(1); field in SyncRunnable 28 mLatch.countDown(); in run() 33 return mLatch.await(3000, TimeUnit.MILLISECONDS); in await()
|
/frameworks/base/core/tests/coretests/src/android/os/ |
D | TestVrActivity.java | 30 private CountDownLatch mLatch; field in TestVrActivity 35 mLatch = new CountDownLatch(1); in onCreate() 41 mLatch.countDown(); in onStart() 54 result = mLatch.await(2L, TimeUnit.SECONDS); in waitForActivityStart()
|
/frameworks/base/core/tests/coretests/src/android/content/ |
D | AbstractCrossUserContentResolverTest.java | 138 private final CountDownLatch mLatch; field in AbstractCrossUserContentResolverTest.CrossUserContentServiceConnection 141 mLatch = latch; in CrossUserContentServiceConnection() 147 mLatch.countDown(); in onServiceConnected() 160 private final CountDownLatch mLatch; field in AbstractCrossUserContentResolverTest.TestContentObserver 166 mLatch = latch; in TestContentObserver() 174 mLatch.countDown(); in onChange()
|
/frameworks/base/tests/net/java/android/net/util/ |
D | BlockingSocketReaderTest.java | 52 protected CountDownLatch mLatch; field in BlockingSocketReaderTest 89 mLatch.countDown(); in setUp() 95 mLatch.countDown(); in setUp() 106 void resetLatch() { mLatch = new CountDownLatch(1); } in resetLatch() 109 assertTrue(mLatch.await(500, TimeUnit.MILLISECONDS)); in waitForActivity()
|
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/ |
D | AsyncListUtilTest.java | 225 waitForLatch("filled tiles (" + context + ")", mTilesFilledLatch.mLatch); in waitForTiles() 287 waitForLatch("onItemChanged", mItemsChangedLatch.mLatch); in waitForItems() 309 public CountDownLatch mLatch = new CountDownLatch(0); field in AsyncListUtilTest.PositionSetLatch 335 if (mLatch == null) { in countDown() 341 mLatch.countDown(); in countDown() 346 mLatch = new CountDownLatch(1); in createLatch() 348 mLatch.countDown(); in createLatch()
|
/frameworks/base/wifi/tests/src/android/net/wifi/ |
D | WifiNetworkScoreCacheTest.java | 70 private CountDownLatch mLatch; field in WifiNetworkScoreCacheTest 110 mLatch = new CountDownLatch(1); in setUp() 115 mLatch.countDown(); in setUp() 196 mLatch.await(1, TimeUnit.SECONDS); // wait for listener to be executed in updateScoresShouldInvokeCacheListener_networkCacheUpdated()
|
/frameworks/support/emoji/core/tests/java/android/support/text/emoji/ |
D | FontRequestEmojiCompatConfigTest.java | 207 final CountDownLatch mLatch; field in FontRequestEmojiCompatConfigTest.WaitingLoaderCallback 210 mLatch = new CountDownLatch(1); in WaitingLoaderCallback() 215 mLatch.countDown(); in onLoaded() 220 mLatch.countDown(); in onFailed() 225 mLatch.await(timeoutMillis, TimeUnit.MILLISECONDS); in await()
|
/frameworks/support/media-compat/tests/src/android/support/v4/media/session/ |
D | MediaSessionCompatTest.java | 957 private CountDownLatch mLatch; field in MediaSessionCompatTest.MediaSessionCallback 967 mLatch = new CountDownLatch(count); in reset() 979 return mLatch.await(timeoutMs, TimeUnit.MILLISECONDS); in await() 988 mLatch.countDown(); in onPlay() 994 mLatch.countDown(); in onPause() 1000 mLatch.countDown(); in onStop() 1006 mLatch.countDown(); in onFastForward() 1012 mLatch.countDown(); in onRewind() 1018 mLatch.countDown(); in onSkipToPrevious() 1024 mLatch.countDown(); in onSkipToNext()
|
/frameworks/base/services/tests/servicestests/src/com/android/server/retaildemo/ |
D | RetailDemoModeServiceTest.java | 110 private CountDownLatch mLatch; field in RetailDemoModeServiceTest 154 mLatch = new CountDownLatch(1); in testDemoUserSetup() 171 mLatch.await(SETUP_COMPLETE_TIMEOUT_MS, TimeUnit.MILLISECONDS); in testDemoUserSetup() 364 if (mLatch != null) { in switchUser() 365 mLatch.countDown(); in switchUser()
|
/frameworks/support/compat/tests/java/android/support/v4/content/pm/ |
D | ShortcutManagerCompatTest.java | 245 private final CountDownLatch mLatch = new CountDownLatch(1); field in ShortcutManagerCompatTest.BlockingBroadcastReceiver 255 mLatch.countDown(); in onReceive() 259 mLatch.await(5, TimeUnit.SECONDS); in blockingGetIntent()
|
/frameworks/base/core/tests/coretests/src/android/widget/ |
D | RemoteViewsTest.java | 305 private final CountDownLatch mLatch = new CountDownLatch(1); field in RemoteViewsTest.ViewAppliedListener 312 mLatch.countDown(); in onViewApplied() 318 mLatch.countDown(); in onError() 322 mLatch.await(); in waitAndGetView()
|
/frameworks/base/core/java/android/app/ |
D | WallpaperManager.java | 1720 final CountDownLatch mLatch; field in WallpaperManager.WallpaperSetCompletion 1723 mLatch = new CountDownLatch(1); in WallpaperSetCompletion() 1728 mLatch.await(30, TimeUnit.SECONDS); in waitForCompletion() 1738 mLatch.countDown(); in onWallpaperChanged()
|
/frameworks/base/core/java/android/app/backup/ |
D | BackupAgent.java | 144 public final CountDownLatch mLatch = new CountDownLatch(1); field in BackupAgent.SharedPrefsSynchronizer 149 mLatch.countDown(); in run() 159 s.mLatch.await(); in waitForSharedPrefs()
|
/frameworks/base/services/backup/java/com/android/server/backup/ |
D | BackupManagerService.java | 4205 final AtomicBoolean mLatch; field in BackupManagerService.PerformAdbBackupTask 4229 mLatch = latch; in PerformAdbBackupTask() 4580 synchronized (mLatch) { in run() 4581 mLatch.set(true); in run() 4582 mLatch.notifyAll(); in run() 4652 CountDownLatch mLatch; field in BackupManagerService.PerformFullTransportBackupTask 4672 mLatch = latch; in PerformFullTransportBackupTask() 5121 mLatch.countDown(); in run() 5162 final CountDownLatch mLatch = new CountDownLatch(1); field in BackupManagerService.PerformFullTransportBackupTask.SinglePackageBackupPreflight 5190 mLatch.await(TIMEOUT_FULL_BACKUP_INTERVAL, TimeUnit.MILLISECONDS); in preflightFullBackup() [all …]
|
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/ |
D | AccountManagerServiceTest.java | 3323 private CountDownLatch mLatch; field in AccountManagerServiceTest.Response 3326 mLatch = latch; in Response() 3336 mLatch.countDown(); in onResult() 3345 mLatch.countDown(); in onError()
|
/frameworks/base/core/tests/coretests/src/android/content/pm/ |
D | PackageManagerTests.java | 904 private CountDownLatch mLatch = new CountDownLatch(1); field in PackageManagerTests.DeleteObserver 925 mLatch.countDown(); in packageDeleted() 934 boolean done = mLatch.await(waitTime, TimeUnit.MILLISECONDS); in waitForCompletion()
|