Home
last modified time | relevance | path

Searched refs:TimeoutException (Results 1 – 25 of 61) sorted by relevance

123

/frameworks/base/core/java/com/android/internal/util/
DSyncResultReceiver.java53 private void waitResult() throws TimeoutException { in waitResult()
56 throw new TimeoutException("Not called in " + mTimeoutMs + "ms"); in waitResult()
60 throw new TimeoutException("Interrupted"); in waitResult()
67 public int getIntResult() throws TimeoutException { in getIntResult()
76 public String getStringResult() throws TimeoutException { in getStringResult()
85 public String[] getStringArrayResult() throws TimeoutException { in getStringArrayResult()
94 public <P extends Parcelable> P getParcelableResult() throws TimeoutException { in getParcelableResult()
103 public <P extends Parcelable> ArrayList<P> getParcelableListResult() throws TimeoutException { in getParcelableListResult()
114 public int getOptionalExtraIntResult(int defaultValue) throws TimeoutException { in getOptionalExtraIntResult()
185 public static final class TimeoutException extends RuntimeException { class in SyncResultReceiver
[all …]
/frameworks/base/services/print/java/com/android/server/print/
DRemotePrintSpooler.java56 import java.util.concurrent.TimeoutException;
172 } catch (RemoteException | TimeoutException | InterruptedException e) { in getPrintJobInfos()
194 } catch (RemoteException | TimeoutException | InterruptedException e) { in createPrintJob()
215 } catch (RemoteException | TimeoutException | InterruptedException e) { in writePrintJobData()
240 } catch (RemoteException | TimeoutException | InterruptedException e) { in getPrintJobInfo()
263 } catch (RemoteException | TimeoutException | InterruptedException e) { in setPrintJobState()
292 } catch (RemoteException | TimeoutException | InterruptedException re) { in setProgress()
319 } catch (RemoteException | TimeoutException | InterruptedException e) { in setStatus()
348 } catch (RemoteException | TimeoutException | InterruptedException e) { in setStatus()
378 } catch (RemoteException | TimeoutException | InterruptedException re) { in onCustomPrinterIconLoaded()
[all …]
/frameworks/base/services/core/java/com/android/server/pm/
DInstantAppResolverConnection.java47 import java.util.concurrent.TimeoutException;
95 } catch (TimeoutException e) { in getInstantAppResolveInfoList()
104 } catch (TimeoutException e) { in getInstantAppResolveInfoList()
132 } catch (TimeoutException e) { in getInstantAppIntentFilterList()
142 throws ConnectionException, TimeoutException, InterruptedException { in getRemoteInstanceLazy()
152 private void waitForBindLocked(String token) throws TimeoutException, InterruptedException { in waitForBindLocked()
161 throw new TimeoutException("[" + token + "] Didn't bind to resolver in time!"); in waitForBindLocked()
169 throws ConnectionException, TimeoutException, InterruptedException { in bind()
186 } catch (TimeoutException e) { in bind()
259 } catch (ConnectionException | TimeoutException | InterruptedException e) { in optimisticBind()
[all …]
/frameworks/base/core/tests/coretests/src/android/service/settings/suggestions/
DSuggestionServiceTest.java36 import java.util.concurrent.TimeoutException;
60 public void canStartService() throws TimeoutException { in canStartService()
67 throws TimeoutException, RemoteException { in dismissSuggestion_shouldCallImplementation()
78 throws TimeoutException, RemoteException { in launchSuggestion_shouldCallImplementation()
/frameworks/base/core/tests/hosttests/test-apps/MultiDexLegacyTestServicesTests2/src/com/android/framework/multidexlegacytestservices/test2/
DServicesTests.java37 import java.util.concurrent.TimeoutException;
159 } catch (TimeoutException e) { in testRecoverFromZipCorruptionStressTest()
187 } catch (TimeoutException e) { in testRecoverFromDexCorruptionStressTest()
238 private void waitServicesCompletion() throws TimeoutException { in waitServicesCompletion()
249 throw new TimeoutException(); in waitServicesCompletion()
254 private void waitServicesCompletion(int serviceId) throws TimeoutException { in waitServicesCompletion()
265 throw new TimeoutException(); in waitServicesCompletion()
367 private void checkRecover() throws TimeoutException { in checkRecover()
/frameworks/base/core/java/android/os/
DSynchronousResultReceiver.java24 import java.util.concurrent.TimeoutException;
77 public @NonNull Result awaitResult(long timeoutMillis) throws TimeoutException { in awaitResult()
91 throw new TimeoutException(); in awaitResult()
DSystemService.java23 import java.util.concurrent.TimeoutException;
109 throws TimeoutException { in waitForState()
119 throw new TimeoutException("Service " + service + " currently " + currentState in waitForState()
/frameworks/base/core/java/android/util/
DTimedRemoteCaller.java22 import java.util.concurrent.TimeoutException;
137 protected final T getResultTimed(int sequence) throws TimeoutException { in getResultTimed()
149 throw new TimeoutException("No response for sequence: " + sequence); in getResultTimed()
/frameworks/base/core/tests/utiltests/src/android/util/
DRemoteIntArray.java32 import java.util.concurrent.TimeoutException;
44 public RemoteIntArray(int size) throws IOException, TimeoutException { in RemoteIntArray()
115 private void bindLocked() throws TimeoutException { in bindLocked()
130 throw new TimeoutException("Cannot get spooler!"); in bindLocked()
/frameworks/base/services/robotests/backup/src/com/android/server/backup/testing/
DTestUtils.java38 import java.util.concurrent.TimeoutException;
63 throws InterruptedException, TimeoutException { in waitUntil()
68 throws InterruptedException, TimeoutException { in waitUntil()
75 throw new TimeoutException("Test timed-out waiting for condition"); in waitUntil()
/frameworks/base/core/java/android/hardware/usb/
DUsbDeviceConnection.java35 import java.util.concurrent.TimeoutException;
304 } catch (TimeoutException e) { in requestWait()
336 public UsbRequest requestWait(long timeout) throws TimeoutException { in requestWait()
386 private native UsbRequest native_request_wait(long timeout) throws TimeoutException; in native_request_wait()
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/
DUiAutomatorBridge.java18 import java.util.concurrent.TimeoutException;
97 } catch (TimeoutException te) { in waitForIdle()
103 AccessibilityEventFilter filter, long timeoutMillis) throws TimeoutException { in executeCommandAndWaitForAccessibilityEvent()
/frameworks/ex/camera2/public/src/com/android/ex/camera2/blocking/
DBlockingSessionCallback.java33 import java.util.concurrent.TimeoutException;
142 } catch (TimeoutException e) { in waitAndGetSession()
291 public CameraCaptureSession get(long timeout, TimeUnit unit) throws TimeoutException { in get()
294 throw new TimeoutException( in get()
/frameworks/base/packages/MtpDocumentsProvider/src/com/android/mtp/
DRootScanner.java30 import java.util.concurrent.TimeoutException;
99 synchronized void pause() throws InterruptedException, TimeoutException { in pause()
106 throw new TimeoutException( in pause()
/frameworks/base/core/tests/coretests/src/android/app/
DDownloadManagerBaseTest.java57 import java.util.concurrent.TimeoutException;
650 protected void waitForDownloadOrTimeout_skipNotification(long id) throws TimeoutException, in waitForDownloadOrTimeout_skipNotification()
662 protected void waitForDownloadOrTimeout(long id) throws TimeoutException, in waitForDownloadOrTimeout()
678 throws TimeoutException, InterruptedException { in waitForDownloadOrTimeout()
691 protected void waitForDownloadsOrTimeout(long poll, long timeoutMillis) throws TimeoutException, in waitForDownloadsOrTimeout()
710 } catch (TimeoutException e) { in waitForDownloadOrTimeoutNoThrow()
728 String timedOutMessage) throws TimeoutException { in timeoutWait()
744 throw new TimeoutException(timedOutMessage); in timeoutWait()
757 throws TimeoutException { in doWaitForDownloadsOrTimeout()
842 protected void waitForReceiverNotifications(int targetNumber) throws TimeoutException { in waitForReceiverNotifications()
/frameworks/base/packages/MtpDocumentsProvider/tests/src/com/android/mtp/
DTestContentResolver.java29 import java.util.concurrent.TimeoutException;
41 void waitForNotification(Uri uri, int count) throws InterruptedException, TimeoutException { in waitForNotification()
DMtpDocumentsProviderTest.java39 import java.util.concurrent.TimeoutException;
301 public void testQueryDocument() throws IOException, InterruptedException, TimeoutException { in testQueryDocument()
339 throws IOException, InterruptedException, TimeoutException { in testQueryDocument_directory()
373 throws IOException, InterruptedException, TimeoutException { in testQueryDocument_forStorage()
397 throws IOException, InterruptedException, TimeoutException { in testQueryDocument_forDeviceWithSingleStorage()
421 throws IOException, InterruptedException, TimeoutException { in testQueryDocument_forDeviceWithTwoStorages()
503 public void testDeleteDocument() throws IOException, InterruptedException, TimeoutException { in testDeleteDocument()
523 throws IOException, InterruptedException, TimeoutException { in testDeleteDocument_error()
953 throws InterruptedException, TimeoutException, IOException { in setupRoots()
/frameworks/base/core/java/android/hardware/location/
DContextHubTransaction.java32 import java.util.concurrent.TimeoutException;
257 long timeout, TimeUnit unit) throws InterruptedException, TimeoutException { in waitForResponse()
261 throw new TimeoutException("Timed out while waiting for transaction"); in waitForResponse()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/src/androidx/media/filterfw/samples/simplecamera/
DCameraTestThread.java24 import java.util.concurrent.TimeoutException;
64 throw new TimeoutException("createLooperThread: start timeout"); in start()
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/tests/src/androidx/media/filterfw/
DMffFilterTestCase.java32 import java.util.concurrent.TimeoutException;
118 throws ExecutionException, TimeoutException, InterruptedException { in process()
123 protected void process() throws ExecutionException, TimeoutException, InterruptedException { in process()
/frameworks/base/cmds/uiautomator/cmds/uiautomator/src/com/android/commands/uiautomator/
DDumpCommand.java31 import java.util.concurrent.TimeoutException;
100 } catch (TimeoutException re) { in run()
/frameworks/base/tests/utils/testutils/java/com/android/internal/util/test/
DBroadcastInterceptingContext.java35 import java.util.concurrent.TimeoutException;
90 } catch (TimeoutException e) { in get()
106 } catch (TimeoutException e) { in assertNotReceived()
/frameworks/base/services/core/java/com/android/server/storage/
DAppCollector.java45 import java.util.concurrent.TimeoutException;
91 } catch (TimeoutException e) { in getPackageStats()
/frameworks/base/core/java/android/app/
DUiAutomation.java63 import java.util.concurrent.TimeoutException;
679 AccessibilityEventFilter filter, long timeoutMillis) throws TimeoutException { in executeAndWaitForEvent()
725 throw new TimeoutException("Expected event not received within: " in executeAndWaitForEvent()
767 throws TimeoutException { in waitForIdle()
783 throw new TimeoutException("No idle state with idle timeout: " in waitForIdle()
/frameworks/base/telecomm/java/android/telecom/
DDefaultDialerManager.java39 import java.util.concurrent.TimeoutException;
92 } catch (InterruptedException | ExecutionException | TimeoutException e) { in setDefaultDialerApplication()

123