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

/frameworks/base/services/backup/java/com/android/server/backup/params/
H A DAdbParams.java30 public final AtomicBoolean latch; field in class:AdbParams
36 latch = new AtomicBoolean(false);
/frameworks/base/apct-tests/perftests/multiuser/src/android/multiuser/
H A DUserLifecycleTests.java104 final CountDownLatch latch = new CountDownLatch(1);
105 registerBroadcastReceiver(Intent.ACTION_USER_STARTED, latch, userInfo.id);
107 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS);
137 final CountDownLatch latch = new CountDownLatch(1);
138 registerBroadcastReceiver(Intent.ACTION_USER_STARTED, latch, userInfo.id);
140 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS);
157 final CountDownLatch latch = new CountDownLatch(1);
158 registerUserSwitchObserver(null, latch, userInfo.id);
162 latch.await(TIMEOUT_IN_SECOND, TimeUnit.SECONDS);
177 final CountDownLatch latch
284 registerBroadcastReceiver(final String action, final CountDownLatch latch, final int userId) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/content/
H A DAbstractCrossUserContentResolverTest.java82 final CountDownLatch latch = new CountDownLatch(1);
88 latch.countDown();
97 if (!latch.await(TIMEOUT_USER_UNLOCK_SEC, TimeUnit.SECONDS)) {
165 public CrossUserContentServiceConnection(CountDownLatch latch) { argument
166 mLatch = latch;
189 public TestContentObserver(CountDownLatch latch, Uri exptectedUri, int expectedUserId) { argument
191 mLatch = latch;
/frameworks/base/services/autofill/java/com/android/server/autofill/
H A DAutofillManagerServiceShellCommand.java228 final CountDownLatch latch = new CountDownLatch(1);
236 latch.countDown();
239 return waitForLatch(pw, latch);
302 final CountDownLatch latch = new CountDownLatch(1);
306 latch.countDown();
309 return requestSessionCommon(pw, latch, () -> mService.destroySessions(userId, receiver));
318 final CountDownLatch latch = new CountDownLatch(1);
327 latch.countDown();
330 return requestSessionCommon(pw, latch, () -> mService.listSessions(userId, receiver));
342 private int requestSessionCommon(PrintWriter pw, CountDownLatch latch, argument
348 waitForLatch(PrintWriter pw, CountDownLatch latch) argument
[all...]
/frameworks/base/services/tests/servicestests/src/com/android/server/am/
H A DTaskStackChangedListenerTest.java98 final CountDownLatch latch = new CountDownLatch(1);
113 latch.countDown();
118 waitForCallback(latch);
126 final CountDownLatch latch = new CountDownLatch(1);
133 latch.countDown();
137 waitForCallback(latch);
233 private void waitForCallback(CountDownLatch latch) { argument
235 final boolean result = latch.await(2, TimeUnit.SECONDS);
/frameworks/base/tests/TtsTests/src/com/android/speech/tts/
H A DTextToSpeechTests.java190 final CountDownLatch latch = new CountDownLatch(1);
191 doCountDown(latch).when(mock).onSynthesizeText(Mockito.<SynthesisRequest>anyObject(),
195 awaitCountDown(latch, 5, TimeUnit.SECONDS);
203 final CountDownLatch latch = new CountDownLatch(1);
204 doCountDown(latch).when(listener).onInit(errorCode);
209 awaitCountDown(latch, 5, TimeUnit.SECONDS);
217 public static CountDownBehaviour doCountDown(final CountDownLatch latch) { argument
224 latch.countDown();
238 latch.countDown();
248 public static void awaitCountDown(CountDownLatch latch, lon argument
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/content/res/
H A DResourcesCompatTest.java316 FontCallback(CountDownLatch latch) { argument
317 mLatch = latch;
334 final CountDownLatch latch = new CountDownLatch(1);
335 final FontCallback callback = new FontCallback(latch);
340 assertTrue(latch.await(5L, TimeUnit.SECONDS));
356 final CountDownLatch latch = new CountDownLatch(1);
357 final FontCallback callback = new FontCallback(latch);
361 assertTrue(latch.await(5L, TimeUnit.SECONDS));
377 final CountDownLatch latch = new CountDownLatch(1);
378 final FontCallback callback = new FontCallback(latch);
[all...]
/frameworks/support/compat/src/androidTest/java/androidx/core/graphics/
H A DTypefaceCompatTest.java149 FontCallback(CountDownLatch latch) { argument
150 mLatch = latch;
168 CountDownLatch latch = new CountDownLatch(1);
169 final FontCallback callback = new FontCallback(latch);
180 assertTrue(latch.await(5L, TimeUnit.SECONDS));
184 latch = new CountDownLatch(1);
185 final FontCallback callback2 = new FontCallback(latch);
195 assertTrue(latch.await(5L, TimeUnit.SECONDS));
198 latch = new CountDownLatch(1);
199 final FontCallback callback3 = new FontCallback(latch);
[all...]
/frameworks/base/services/backup/java/com/android/server/backup/fullbackup/
H A DPerformAdbBackupTask.java93 boolean doCompress, boolean doKeyValue, String[] packages, AtomicBoolean latch) {
97 mLatch = latch;
89 PerformAdbBackupTask(BackupManagerService backupManagerService, 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
H A DPerformFullTransportBackupTask.java93 * preflight operation which counts down on the preflight latch. 2. Tears down the agent,
104 CountDownLatch latch,
121 latch,
156 FullBackupJob runningJob, CountDownLatch latch, IBackupObserver backupObserver,
163 mLatch = latch;
719 // the latch being thrown, flow will continue as though a result or "normal"
98 newWithCurrentTransport( BackupManagerService backupManagerService, IFullBackupRestoreObserver observer, String[] whichPackages, boolean updateSchedule, FullBackupJob runningJob, CountDownLatch latch, IBackupObserver backupObserver, IBackupManagerMonitor monitor, boolean userInitiated, String caller) argument
152 PerformFullTransportBackupTask(BackupManagerService backupManagerService, TransportClient transportClient, IFullBackupRestoreObserver observer, String[] whichPackages, boolean updateSchedule, FullBackupJob runningJob, CountDownLatch latch, IBackupObserver backupObserver, IBackupManagerMonitor monitor, @Nullable OnTaskFinishedListener listener, boolean userInitiated) argument
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
H A DImsRttTextHandler.java213 public void setReadNotifier(CountDownLatch latch) { argument
214 mReadNotifier = latch;
/frameworks/support/compat/src/androidTest/java/androidx/core/provider/
H A DFontsContractCompatTest.java399 final CountDownLatch latch = new CountDownLatch(1);
400 final FontCallback callback = new FontCallback(latch);
409 assertTrue(latch.await(5L, TimeUnit.SECONDS));
417 FontCallback(CountDownLatch latch) { argument
418 mLatch = latch;
/frameworks/support/graphics/drawable/animated/src/androidTest/java/androidx/vectordrawable/graphics/drawable/tests/
H A DAnimatedVectorDrawableTest.java305 CountDownLatch latch = new CountDownLatch(numTests);
321 verifyRedOnly(pixelX, pixelY, imageButton, bitmap, c, latch);
323 verifyRedOnly(1, 1, imageButton, bitmap, c, latch);
325 latch.await(1000, TimeUnit.MILLISECONDS);
332 final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) throws Throwable {
342 latch.countDown();
331 verifyRedOnly(final int pixelX, final int pixelY, final View button, final Bitmap bitmap, final Canvas canvas, final CountDownLatch latch) argument
/frameworks/base/services/backup/java/com/android/server/backup/restore/
H A DPerformAdbRestoreTask.java148 IFullBackupRestoreObserver observer, AtomicBoolean latch) {
154 mLatchObject = latch;
837 final AdbRestoreFinishedLatch latch = new AdbRestoreFinishedLatch(
840 token, fullBackupAgentTimeoutMillis, latch, OP_TYPE_RESTORE_WAIT);
853 latch.await();
146 PerformAdbRestoreTask(BackupManagerService backupManagerService, ParcelFileDescriptor fd, String curPassword, String decryptPassword, IFullBackupRestoreObserver observer, AtomicBoolean latch) argument
/frameworks/support/v7/recyclerview/src/androidTest/java/androidx/recyclerview/widget/
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/rs/java/android/renderscript/
H A DMesh.java622 private void latch() { method in class:Mesh.TriangleMeshBuilder
662 latch();
686 latch();
/frameworks/base/services/tests/servicestests/src/com/android/server/
H A DNetworkScoreServiceTest.java286 final boolean msgHandled = handler.latch.await(3, TimeUnit.SECONDS);
982 final CountDownLatch latch = new CountDownLatch(1); field in class:NetworkScoreServiceTest.CountDownHandler
992 latch.countDown();
H A DNetworkPolicyManagerServiceTest.java1254 final CountDownLatch latch = new CountDownLatch(1);
1256 latch.countDown();
1258 latch.await(2, TimeUnit.SECONDS);
1895 private CountDownLatch latch; field in class:NetworkPolicyManagerServiceTest.NetworkPolicyListenerAnswer
1908 latch.countDown();
1913 assertNull("expect() called before waitAndVerify()", latch);
1914 latch = new CountDownLatch(1);
1919 assertNotNull("waitAndVerify() called before expect()", latch);
1921 assertTrue("callback not called in 5 seconds", latch.await(5, TimeUnit.SECONDS));
1925 latch
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
H A DEuiccController.java512 final CountDownLatch latch = new CountDownLatch(1);
519 latch.countDown();
524 latch.countDown();
528 latch.await();
1010 CountDownLatch latch = new CountDownLatch(1);
1016 latch.countDown();
1021 latch.countDown();
1024 return awaitResult(latch, eidRef);
1028 CountDownLatch latch = new CountDownLatch(1);
1035 latch
1065 awaitResult(CountDownLatch latch, AtomicReference<T> resultRef) argument
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/ims/
H A DMmTelFeatureCompatAdapter.java89 public ConfigListener(int capability, int tech, CountDownLatch latch) { argument
92 mLatch = latch;
294 CountDownLatch latch = new CountDownLatch(1);
301 new ConfigListener(capConverted, regTech, latch) {
311 latch.await(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS);
328 CountDownLatch latch = new CountDownLatch(1);
335 new ConfigListener(capConverted, radioTechConverted, latch) {
349 latch.await(WAIT_TIMEOUT_MS, TimeUnit.MILLISECONDS);
353 CountDownLatch latch = new CountDownLatch(1);
360 new ConfigListener(capConverted, radioTechConverted, latch) {
[all...]
/frameworks/native/services/surfaceflinger/
H A DBufferLayer.cpp901 static bool latch = false; local
907 latch = atoi(value);
910 return latch;
987 // abort this attempt to latch.
/frameworks/base/services/tests/servicestests/src/com/android/server/accounts/
H A DAccountManagerServiceTest.java545 final CountDownLatch latch = new CountDownLatch(1);
546 Response response = new Response(latch, mMockAccountManagerResponse);
556 waitForLatch(latch);
576 final CountDownLatch latch = new CountDownLatch(1);
577 Response response = new Response(latch, mMockAccountManagerResponse);
588 waitForLatch(latch);
614 final CountDownLatch latch = new CountDownLatch(1);
615 Response response = new Response(latch, mMockAccountManagerResponse);
626 waitForLatch(latch);
643 final CountDownLatch latch
3068 waitForLatch(CountDownLatch latch) argument
3330 Response(CountDownLatch latch, IAccountManagerResponse mockResponse) argument
[all...]
/frameworks/base/services/core/java/com/android/server/
H A DStorageManagerService.java392 CountDownLatch latch = mDiskScanLatches.get(diskId);
393 if (latch == null) {
394 latch = new CountDownLatch(1);
395 mDiskScanLatches.put(diskId, latch);
397 return latch;
714 private void waitForLatch(CountDownLatch latch, String condition, long timeoutMillis) argument
719 if (latch.await(5000, TimeUnit.MILLISECONDS)) {
1136 final CountDownLatch latch = mDiskScanLatches.remove(disk.id);
1137 if (latch != null) {
1138 latch
[all...]
/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 643 milliseconds