/aosp14/frameworks/base/services/net/java/android/net/util/ |
H A D | NetdService.java | 82 long timeoutMs = 0; in get() local 93 timeoutMs = Math.min(timeoutMs + BASE_TIMEOUT_MS, MAX_TIMEOUT_MS); in get() 94 timeoutMs = Math.min(timeoutMs, remaining); in get() 96 Thread.sleep(timeoutMs); in get()
|
/aosp14/frameworks/base/services/backup/java/com/android/server/backup/remote/ |
H A D | RemoteCall.java | 57 public static RemoteResult execute(RemoteCallable<IBackupCallback> callable, long timeoutMs) in execute() argument 59 return new RemoteCall(callable, timeoutMs).call(); in execute() 75 public RemoteCall(RemoteCallable<IBackupCallback> callable, long timeoutMs) { in RemoteCall() argument 76 this(false, callable, timeoutMs); in RemoteCall() 86 public RemoteCall(boolean cancelled, RemoteCallable<IBackupCallback> callable, long timeoutMs) { in RemoteCall() argument 88 mTimeoutMs = timeoutMs; in RemoteCall()
|
/aosp14/frameworks/base/cmds/incidentd/src/ |
H A D | Section.h | 44 const int64_t timeoutMs; // each section must have a timeout variable 47 Section(int id, int64_t timeoutMs = REMOTE_CALL_TIMEOUT_MS); 59 int64_t timeoutMs = 5000 /* 5 seconds */); 89 WorkerThreadSection(int id, int64_t timeoutMs = REMOTE_CALL_TIMEOUT_MS); 102 CommandSection(int id, int64_t timeoutMs, const char* command, ...); 187 TombstoneSection(int id, const char* type, int64_t timeoutMs = 120000 /* 2 minutes */);
|
H A D | Section.cpp | 79 Section::Section(int i, int64_t timeoutMs) in Section() argument 81 timeoutMs(timeoutMs) { in Section() 89 FileSection::FileSection(int id, const char* filename, const int64_t timeoutMs) in FileSection() argument 90 : Section(id, timeoutMs), mFilename(filename) { in FileSection() 252 WorkerThreadSection::WorkerThreadSection(int id, const int64_t timeoutMs) in WorkerThreadSection() argument 253 : Section(id, timeoutMs) {} in WorkerThreadSection() 291 err = buffer.read(data->pipe.readFd().get(), this->timeoutMs); in Execute() 332 : Section(id, timeoutMs) { in CommandSection() 503 status_t readStatus = buffer.read(dumpPipe.readFd(), this->timeoutMs); in Execute() 586 return wait_child(pid, this->timeoutMs); in BlockingCall() [all …]
|
H A D | FdBuffer.h | 46 status_t read(int fd, int64_t timeoutMs); 64 status_t readProcessedDataInStream(int fd, unique_fd toFd, unique_fd fromFd, int64_t timeoutMs,
|
/aosp14/frameworks/base/core/tests/coretests/src/android/app/activity/ |
H A D | ActivityTestsBase.java | 143 public int waitForResultOrThrow(int timeoutMs) { in waitForResultOrThrow() argument 144 return waitForResultOrThrow(timeoutMs, null); in waitForResultOrThrow() 147 public int waitForResultOrThrow(int timeoutMs, String expected) { in waitForResultOrThrow() argument 148 int res = waitForResult(timeoutMs, expected); in waitForResultOrThrow() 163 public int waitForResult(int timeoutMs, String expected) { in waitForResult() argument 166 long endTime = System.currentTimeMillis() + timeoutMs; in waitForResult()
|
/aosp14/frameworks/base/core/java/android/os/ |
H A D | ConditionVariable.java | 117 public boolean block(long timeoutMs) in block() argument 122 if (timeoutMs != 0) { in block() 125 long end = now + timeoutMs; in block()
|
/aosp14/frameworks/base/libs/WindowManager/Shell/src/com/android/wm/shell/animation/ |
H A D | PhysicsAnimatorTestUtils.kt | 53 var timeoutMs: Long = 2000 73 timeoutMs = 2000 98 fun setBlockTimeout(timeoutMs: Long) { 99 PhysicsAnimatorTestUtils.timeoutMs = timeoutMs 147 latch.await(timeoutMs, TimeUnit.MILLISECONDS) 198 latch.await(timeoutMs, TimeUnit.MILLISECONDS) 462 unblockLatch.await(timeoutMs, TimeUnit.MILLISECONDS) 482 unblockLatch.await(timeoutMs, TimeUnit.MILLISECONDS)
|
/aosp14/frameworks/base/packages/SystemUI/tests/src/com/android/systemui/temporarydisplay/ |
H A D | TemporaryViewDisplayControllerTest.kt | 561 timeoutMs = 10000 571 timeoutMs = 2000 605 timeoutMs = 1000 615 timeoutMs = 2000 673 timeoutMs = 3000, 689 timeoutMs = 5000, 719 timeoutMs = 3000, 735 timeoutMs = 200, 879 timeoutMs = 4000, 956 timeoutMs = 3000, [all …]
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/keyguard/ |
H A D | KeyguardAbsKeyInputViewController.java | 177 void onPasswordChecked(int userId, boolean matched, int timeoutMs, boolean isValidPassword) { in onPasswordChecked() argument 189 getKeyguardSecurityCallback().reportUnlockAttempt(userId, false, timeoutMs); in onPasswordChecked() 190 if (timeoutMs > 0) { in onPasswordChecked() 192 userId, timeoutMs); in onPasswordChecked() 196 if (timeoutMs == 0) { in onPasswordChecked() 245 public void onChecked(boolean matched, int timeoutMs) { in verifyPasswordAndUnlock() 250 onPasswordChecked(userId, false /* matched */, timeoutMs, in verifyPasswordAndUnlock()
|
H A D | KeyguardPatternViewController.java | 140 public void onChecked(boolean matched, int timeoutMs) { in onPatternDetected() 145 onPatternChecked(userId, false /* matched */, timeoutMs, in onPatternDetected() 163 private void onPatternChecked(int userId, boolean matched, int timeoutMs, in onPatternChecked() argument 176 getKeyguardSecurityCallback().reportUnlockAttempt(userId, false, timeoutMs); in onPatternChecked() 177 if (timeoutMs > 0) { in onPatternChecked() 179 userId, timeoutMs); in onPatternChecked() 183 if (timeoutMs == 0) { in onPatternChecked()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/screenshot/ |
H A D | TimeoutHandler.java | 97 long timeoutMs = accessibilityManager.getRecommendedTimeoutMillis( in resetTimeout() local 101 sendMessageDelayed(obtainMessage(MESSAGE_CORNER_TIMEOUT), timeoutMs); in resetTimeout() local 103 Log.d(TAG, "dismiss timeout: " + timeoutMs + " ms"); in resetTimeout()
|
H A D | ScreenshotSmartActions.java | 114 CompletableFuture<List<Notification.Action>> smartActionsFuture, int timeoutMs, in getSmartActions() argument 121 screenshotId, timeoutMs, actionType, smartActionsProvider.getClass())); in getSmartActions() 124 List<Notification.Action> actions = smartActionsFuture.get(timeoutMs, in getSmartActions()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/notification/row/ |
H A D | NotificationInlineImageResolver.java | 143 private Drawable loadImageFromCache(Uri uri, long timeoutMs) { in loadImageFromCache() argument 148 return mImageCache.get(uri, timeoutMs); in loadImageFromCache() 226 void waitForPreloadedImages(long timeoutMs) { in waitForPreloadedImages() argument 233 long endTimeMs = SystemClock.elapsedRealtime() + timeoutMs; in waitForPreloadedImages() 255 Drawable get(Uri uri, long timeoutMs); in get() argument
|
H A D | NotificationInlineImageCache.java | 62 public Drawable get(Uri uri, long timeoutMs) { in get() argument 65 result = mCache.get(uri).get(timeoutMs, TimeUnit.MILLISECONDS); in get()
|
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/cpp/ |
H A D | SurfaceProxy.cpp | 50 JNIEnv*, jclass, jlong jFrameNumber, jint timeoutMs) { in Java_com_android_test_SurfaceProxy_waitUntilBufferDisplayed() argument 71 timeoutMs) { in Java_com_android_test_SurfaceProxy_waitUntilBufferDisplayed() 124 jint timeoutMs) { in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer() argument 133 if (timeoutMs == 0) { in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer() 137 int waitResult = fence->wait(timeoutMs); in Java_com_android_test_SurfaceProxy_SurfaceDequeueBuffer() 212 JNIEnv* /* env */, jclass /* clazz */, jlong timeoutMs) { in Java_com_android_test_SurfaceProxy_SurfaceSetDequeueTimeout() argument 215 return surface->setDequeueTimeout(timeoutMs); in Java_com_android_test_SurfaceProxy_SurfaceSetDequeueTimeout()
|
/aosp14/frameworks/base/core/tests/screenshothelpertests/src/com/android/internal/util/ |
H A D | ScreenshotHelperTest.java | 116 long timeoutMs = 10; in testScreenshotTimesOut() local 126 }, timeoutMs); in testScreenshotTimesOut() 130 long awaitDurationMs = timeoutMs + 100; in testScreenshotTimesOut()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/clipboardoverlay/ |
H A D | ClipboardImageLoader.kt | 44 suspend fun load(uri: Uri, timeoutMs: Long = 300) = 45 withTimeoutOrNull(timeoutMs) {
|
/aosp14/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/ |
H A D | OneTimeSettingsListener.java | 44 @NonNull String key, int timeoutMs) { in OneTimeSettingsListener() argument 48 mTimeoutMs = timeoutMs; in OneTimeSettingsListener()
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/util/sensors/ |
H A D | ProximityCheck.java | 64 public void check(long timeoutMs, Consumer<Boolean> callback) { in check() argument 72 mDelayableExecutor.executeDelayed(this, timeoutMs); in check()
|
/aosp14/frameworks/base/services/core/java/com/android/server/wm/ |
H A D | BLASTSyncEngine.java | 431 int startSyncSet(TransactionReadyListener listener, long timeoutMs, String name, in startSyncSet() argument 434 startSyncSet(s, timeoutMs, parallel); in startSyncSet() 442 void startSyncSet(SyncGroup s, long timeoutMs, boolean parallel) { in startSyncSet() argument 454 scheduleTimeout(s, timeoutMs); in startSyncSet() 471 void scheduleTimeout(SyncGroup s, long timeoutMs) { in scheduleTimeout() argument 472 mHandler.postDelayed(s.mOnTimeout, timeoutMs); in scheduleTimeout()
|
/aosp14/frameworks/base/tests/SurfaceViewBufferTests/src/com/android/test/ |
H A D | SurfaceProxy.kt | 31 external fun waitUntilBufferDisplayed(frameNumber: Long, timeoutMs: Int): Int 55 external fun SurfaceDequeueBuffer(slot: Int, timeoutMs: Int): Int
|
/aosp14/frameworks/base/tests/ActivityManagerPerfTests/tests/src/com/android/frameworks/perftests/am/util/ |
H A D | TimeReceiver.java | 78 public long getReceivedTimeNs(String type, long timeoutMs) { in getReceivedTimeNs() argument 80 long endTimeNs = System.nanoTime() + TimeUnit.MILLISECONDS.toNanos(timeoutMs); in getReceivedTimeNs()
|
/aosp14/frameworks/base/core/java/com/android/internal/util/ |
H A D | ConcurrentUtils.java | 107 public static void waitForCountDownNoInterrupt(CountDownLatch countDownLatch, long timeoutMs, 110 if (!countDownLatch.await(timeoutMs, TimeUnit.MILLISECONDS)) {
|
/aosp14/frameworks/base/packages/SystemUI/src/com/android/systemui/common/ui/view/ |
H A D | LongPressHandlingView.kt | 60 postDelayed = { block, timeoutMs -> 66 timeoutMs,
|