Searched defs:latch (Results 1 - 10 of 10) sorted by relevance

H A DTestJobListener.java33 private final CountDownLatch latch = new CountDownLatch(1); field in class:TestJobListener
46 latch.countDown();
112 latch.await(500, TimeUnit.MILLISECONDS);
H A DTextToSpeechTests.java187 final CountDownLatch latch = new CountDownLatch(1);
188 doCountDown(latch).when(mock).onSynthesizeText(LittleMock.<SynthesisRequest>anyObject(),
192 awaitCountDown(latch, 5, TimeUnit.SECONDS);
200 final CountDownLatch latch = new CountDownLatch(1);
201 doCountDown(latch).when(listener).onInit(errorCode);
206 awaitCountDown(latch, 5, TimeUnit.SECONDS);
214 public static CountDownBehaviour doCountDown(final CountDownLatch latch) { argument
221 latch.countDown();
235 latch.countDown();
245 public static void awaitCountDown(CountDownLatch latch, lon argument
H A DAnimatedVectorDrawableTest.java198 CountDownLatch latch = new CountDownLatch(numTests);
214 verifyRedOnly(pixelX, pixelY, imageButton, bitmap, c, latch);
216 verifyRedOnly(1, 1, imageButton, bitmap, c, latch);
218 latch.await(1000, TimeUnit.MILLISECONDS);
225 final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) throws Throwable {
235 latch.countDown();
224 verifyRedOnly(final int pixelX, final int pixelY, final View button, final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) argument
H A DAsyncListUtilTest.java145 private static void waitForLatch(String context, CountDownLatch latch) argument
147 assertTrue("timed out waiting for " + context, latch.await(1, TimeUnit.SECONDS));
H A DMesh.java622 private void latch() { method in class:Mesh.TriangleMeshBuilder
662 latch();
686 latch();
H A DHWC2On1Adapter.h483 void latch() { function in class:android::HWC2On1Adapter::LatchedState
H A DLayer.cpp1129 static bool latch = false; local
1135 latch = atoi(value);
1138 return latch;
1940 // a bit of extra work), we latch the new one and we
1993 // abort this attempt to latch.
H A DMountService.java414 CountDownLatch latch = mDiskScanLatches.get(diskId);
415 if (latch == null) {
416 latch = new CountDownLatch(1);
417 mDiskScanLatches.put(diskId, latch);
419 return latch;
765 private void waitForLatch(CountDownLatch latch, String condition) { argument
767 waitForLatch(latch, condition, -1);
772 private void waitForLatch(CountDownLatch latch, String condition, long timeoutMillis) argument
777 if (latch.await(5000, TimeUnit.MILLISECONDS)) {
1252 final CountDownLatch latch
H A DBackupManagerService.java406 // latch: never unprovision
532 public final AtomicBoolean latch; field in class:BackupManagerService.FullParams
538 latch = new AtomicBoolean(false);
855 params.packages, params.latch);
886, params.latch);
3021 CountDownLatch latch = new CountDownLatch(1);
3026 fullBackups, /*updateSchedule*/ false, /*runningJob*/ null, latch,
4019 boolean doSystem, boolean doCompress, String[] packages, AtomicBoolean latch) {
4021 mLatch = latch;
4389 FullBackupJob runningJob, CountDownLatch latch, IBackupObserve
4016 PerformAdbBackupTask(ParcelFileDescriptor fd, IFullBackupRestoreObserver observer, boolean includeApks, boolean includeObbs, boolean includeShared, boolean doWidgets, String curPassword, String encryptPassword, boolean doAllApps, boolean doSystem, boolean doCompress, String[] packages, AtomicBoolean latch) argument
4387 PerformFullTransportBackupTask(IFullBackupRestoreObserver observer, String[] whichPackages, boolean updateSchedule, FullBackupJob runningJob, CountDownLatch latch, IBackupObserver backupObserver, boolean userInitiated) argument
6576 PerformAdbRestoreTask(ParcelFileDescriptor fd, String curPassword, String decryptPassword, IFullBackupRestoreObserver observer, AtomicBoolean latch) argument
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 664 milliseconds