Searched refs:latch (Results 26 - 46 of 46) sorted by relevance

12

/frameworks/support/v7/recyclerview/tests/src/android/support/v7/widget/
H A DFocusSearchNavigationTest.java215 final CountDownLatch latch = new CountDownLatch(1);
223 latch.countDown();
229 latch.countDown();
235 assertTrue("should go idle in 10 seconds", latch.await(10, TimeUnit.SECONDS));
H A DRecyclerViewFastScrollerTest.java203 final CountDownLatch latch = new CountDownLatch(1);
237 latch.countDown();
253 assertFalse(latch.await(2, TimeUnit.SECONDS));
H A DBaseLinearLayoutManagerTest.java528 final CountDownLatch latch = new CountDownLatch(1);
533 latch.countDown();
538 latch.await(timeoutInSeconds, TimeUnit.SECONDS);
H A DRecyclerViewLayoutTest.java2118 final CountDownLatch latch = new CountDownLatch(2);
2123 latch.countDown();
2132 latch.await(5, TimeUnit.SECONDS);
2149 final CountDownLatch latch = new CountDownLatch(1);
2154 latch.countDown();
2163 latch.await(5, TimeUnit.SECONDS);
2187 final CountDownLatch latch = new CountDownLatch(2);
2192 latch.countDown();
2204 latch.await(5, TimeUnit.SECONDS);
2221 final CountDownLatch latch
[all...]
/frameworks/support/v7/recyclerview/tests/src/android/support/v7/util/
H A DAsyncListUtilTest.java155 private static void waitForLatch(String context, CountDownLatch latch) argument
157 assertTrue("timed out waiting for " + context, latch.await(1, TimeUnit.SECONDS));
/frameworks/base/core/java/android/view/
H A DViewDebug.java631 final CountDownLatch latch = new CountDownLatch(1);
645 latch.countDown();
651 if (!latch.await(CAPTURE_TIMEOUT, TimeUnit.MILLISECONDS)) {
782 final CountDownLatch latch = new CountDownLatch(1);
793 latch.countDown();
799 latch.await(CAPTURE_TIMEOUT, TimeUnit.MILLISECONDS);
846 final CountDownLatch latch = new CountDownLatch(1);
854 latch.countDown();
858 latch.await(2, TimeUnit.SECONDS);
1624 final CountDownLatch latch
[all...]
/frameworks/opt/net/ethernet/java/com/android/server/ethernet/
H A DEthernetNetworkFactory.java488 CountDownLatch latch = new CountDownLatch(1);
493 latch.countDown();
496 latch.await();
/frameworks/base/cmds/bmgr/src/com/android/commands/bmgr/
H A DBmgr.java420 final CountDownLatch latch = new CountDownLatch(1);
428 latch.countDown();
434 latch.countDown();
444 latch.await();
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkPolicyManagerServiceTest.java1149 final CountDownLatch latch = new CountDownLatch(1);
1151 latch.countDown();
1153 latch.await(2, TimeUnit.SECONDS);
1688 private CountDownLatch latch; field in class:NetworkPolicyManagerServiceTest.NetworkPolicyListenerAnswer
1701 latch.countDown();
1706 assertNull("expect() called before waitAndVerify()", latch);
1707 latch = new CountDownLatch(1);
1712 assertNotNull("waitAndVerify() called before expect()", latch);
1714 assertTrue("callback not called in 5 seconds", latch.await(5, TimeUnit.SECONDS));
1718 latch
[all...]
H A DNightDisplayServiceTest.java1013 final CountDownLatch latch = new CountDownLatch(mListeners.size());
1019 latch.countDown();
1025 latch.await(5, TimeUnit.SECONDS);
H A DNetworkScoreServiceTest.java256 final boolean msgHandled = handler.latch.await(3, TimeUnit.SECONDS);
907 CountDownLatch latch = new CountDownLatch(1); field in class:NetworkScoreServiceTest.CountDownHandler
916 latch.countDown();
/frameworks/base/services/core/java/com/android/server/connectivity/
H A DNetworkMonitor.java897 // it shortcuts the latch immediately by forcing the count to 0.
898 final CountDownLatch latch = new CountDownLatch(2);
922 while (latch.getCount() > 0) {
923 latch.countDown();
927 latch.countDown();
937 latch.await(PROBE_TIMEOUT_MS, TimeUnit.MILLISECONDS);
/frameworks/base/rs/java/android/renderscript/
H A DMesh.java622 private void latch() { method in class:Mesh.TriangleMeshBuilder
662 latch();
686 latch();
/frameworks/base/services/core/java/com/android/server/
H A DNativeDaemonConnector.java357 final CountDownLatch latch = new CountDownLatch(1);
361 latch.countDown();
365 latch.await();
H A DStorageManagerService.java442 CountDownLatch latch = mDiskScanLatches.get(diskId);
443 if (latch == null) {
444 latch = new CountDownLatch(1);
445 mDiskScanLatches.put(diskId, latch);
447 return latch;
789 private void waitForLatch(CountDownLatch latch, String condition) { argument
791 waitForLatch(latch, condition, -1);
796 private void waitForLatch(CountDownLatch latch, String condition, long timeoutMillis) argument
801 if (latch.await(5000, TimeUnit.MILLISECONDS)) {
1276 final CountDownLatch latch
[all...]
H A DLockSettingsService.java927 final CountDownLatch latch = new CountDownLatch(1);
942 latch.countDown();
953 latch.await(15, TimeUnit.SECONDS);
/frameworks/base/services/backup/java/com/android/server/backup/
H A DBackupManagerService.java440 // latch: never unprovision
575 public final AtomicBoolean latch; field in class:BackupManagerService.AdbParams
581 latch = new AtomicBoolean(false);
954 params.doCompress, params.includeKeyValue, params.packages, params.latch);
1002 params.observer, params.latch);
2757 CountDownLatch latch = new CountDownLatch(1);
2763 latch,
4226 boolean doCompress, boolean doKeyValue, String[] packages, AtomicBoolean latch) {
4229 mLatch = latch;
4640 * preflight operation which counts down on the preflight latch
4223 PerformAdbBackupTask(ParcelFileDescriptor fd, IFullBackupRestoreObserver observer, boolean includeApks, boolean includeObbs, boolean includeShared, boolean doWidgets, String curPassword, String encryptPassword, boolean doAllApps, boolean doSystem, boolean doCompress, boolean doKeyValue, String[] packages, AtomicBoolean latch) argument
4666 PerformFullTransportBackupTask(IFullBackupRestoreObserver observer, String[] whichPackages, boolean updateSchedule, FullBackupJob runningJob, CountDownLatch latch, IBackupObserver backupObserver, IBackupManagerMonitor monitor, boolean userInitiated) argument
7176 PerformAdbRestoreTask(ParcelFileDescriptor fd, String curPassword, String decryptPassword, IFullBackupRestoreObserver observer, AtomicBoolean latch) argument
[all...]
/frameworks/base/core/java/android/view/inputmethod/
H A DInputMethodManager.java591 CountDownLatch latch = new CountDownLatch(1);
596 sargs.arg4 = latch;
599 if (!latch.await(5, TimeUnit.SECONDS)) {
1331 // mHasBeenInactive is a latch switch to forcefully refresh IME focus
1333 // focus. In case we have unnecessary disable the latch due to this
1334 // spurious wakeup, we re-enable the latch here.
/frameworks/base/services/tests/shortcutmanagerutils/src/com/android/server/pm/shortcutmanagertest/
H A DShortcutManagerTestUtils.java1050 final CountDownLatch latch = new CountDownLatch(1);
1052 new Handler(Looper.getMainLooper()).post(() -> latch.countDown());
1054 latch.await();
/frameworks/native/services/surfaceflinger/
H A DLayer.cpp1275 static bool latch = false; local
1281 latch = atoi(value);
1284 return latch;
1658 // mode, which causes attributes which normally latch regardless of scaling mode,
2106 // abort this attempt to latch.
/frameworks/data-binding/prebuilds/1.0-rc0/
H A Ddatabinding-studio-bundle.jarMETA-INF/ META-INF/MANIFEST.MF android/ android/databinding/ android/databinding/Bindable.class Bindable. ...

Completed in 465 milliseconds

12