Home
last modified time | relevance | path

Searched refs:mLatch (Results 1 – 17 of 17) sorted by relevance

/frameworks/support/transition/tests/src/android/support/transition/
DSyncTransitionListener.java35 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()
DSyncRunnable.java24 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/
DTestVrActivity.java30 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/
DAbstractCrossUserContentResolverTest.java138 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/
DBlockingSocketReaderTest.java52 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/
DAsyncListUtilTest.java225 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/
DWifiNetworkScoreCacheTest.java70 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/
DFontRequestEmojiCompatConfigTest.java207 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/
DMediaSessionCompatTest.java957 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/
DRetailDemoModeServiceTest.java110 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/
DShortcutManagerCompatTest.java245 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/
DRemoteViewsTest.java305 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/
DWallpaperManager.java1720 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/
DBackupAgent.java144 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/
DBackupManagerService.java4205 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/
DAccountManagerServiceTest.java3323 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/
DPackageManagerTests.java904 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()