Searched refs:exception (Results 1 - 25 of 139) sorted by path

123456

/frameworks/base/core/java/android/accounts/
H A DAccountManager.java155 * necessary) and either returns the result or throws an exception if an error
2160 final IllegalStateException exception = new IllegalStateException(
2163 exception);
2165 throw exception;
2396 // we will set the exception below
2398 // we will set the exception below
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java250 Log.e(TAG, "Remote provider threw runtime exception, using error view instead.", e);
391 Exception exception = null;
444 exception = e;
454 exception = e;
462 applyContent(content, recycled, exception);
466 private void applyContent(View content, boolean recycled, Exception exception) { argument
472 Log.w(TAG, "updateAppWidget couldn't find any view, using error view", exception);
682 Exception exception = null;
710 exception = e;
713 if (exception !
[all...]
/frameworks/base/core/java/android/os/
H A DAsyncResult.java27 // Expect either exception or result to be null
29 public Throwable exception; field in class:AsyncResult
66 exception = ex;
H A DRegistrant.java55 notifyException(Throwable exception) argument
57 internalNotifyRegistrant (null, exception);
66 internalNotifyRegistrant (ar.result, ar.exception);
70 internalNotifyRegistrant (Object result, Throwable exception) argument
81 msg.obj = new AsyncResult(userObj, result, exception);
H A DRegistrantList.java74 internalNotifyRegistrants (Object result, Throwable exception) argument
78 r.internalNotifyRegistrant(result, exception);
89 notifyException(Throwable exception) argument
91 internalNotifyRegistrants (null, exception);
104 internalNotifyRegistrants(ar.result, ar.exception);
/frameworks/base/core/java/android/os/storage/
H A DStorageManager.java634 * not mounted or exception encountered trying to read status
1452 } catch (FuseUnavailableMountException exception) {
1456 throw new IOException(exception);
1463 // Cannot recover from remote exception.
/frameworks/base/core/java/android/view/
H A DViewDebug.java1160 throw new RuntimeException("Unexpected exception", t);
1164 throw new RuntimeException("Unexpected cancellation exception", e);
1619 * @throws Exception if the method invocation caused any exception
1626 final AtomicReference<Throwable> exception = new AtomicReference<Throwable>();
1634 exception.set(e.getCause());
1636 exception.set(e);
1649 if (exception.get() != null) {
1650 throw new RuntimeException(exception.get());
/frameworks/base/core/jni/
H A DBindTest.cpp70 goto exception;
74 exception:
H A Dandroid_view_Surface.cpp319 const char* const exception = (err == NO_MEMORY) ? local
322 jniThrowException(env, exception, NULL);
/frameworks/base/core/tests/coretests/src/android/widget/
H A DAppWidgetHostViewTest.java54 public final ExpectedException exception = ExpectedException.none(); field in class:AppWidgetHostViewTest
H A DRemoteViewsTest.java58 public final ExpectedException exception = ExpectedException.none(); field in class:RemoteViewsTest
112 exception.expect(IllegalStateException.class);
182 exception.expect(Exception.class);
347 exception.expect(IllegalArgumentException.class);
366 exception.expect(IllegalArgumentException.class);
/frameworks/base/core/tests/coretests/src/android/widget/espresso/
H A DTextViewAssertions.java105 return (view, exception) -> {
142 return (view, exception) -> {
163 public void check(View view, NoMatchingViewException exception) { argument
200 public void check(View view, NoMatchingViewException exception) { argument
/frameworks/base/core/tests/utillib/src/android/test/
H A DBandwidthTestCase.java118 Throwable exception = null;
124 exception = null;
127 exception = e.getTargetException();
130 exception = e;
140 } while ((runCount < tolerance) && (isRepetitive || exception != null));
142 if (exception != null) {
143 throw exception;
/frameworks/base/legacy-test/src/android/test/
H A DInstrumentationTestCase.java215 Throwable exception = null;
221 exception = null;
224 exception = e.getTargetException();
227 exception = e;
237 } while ((runCount < tolerance) && (isRepetitive || exception != null));
239 if (exception != null) {
240 throw exception;
/frameworks/base/legacy-test/src/junit/framework/
H A DTestCase.java128 * @throws Throwable if any exception is thrown
131 Throwable exception= null;
136 exception= running;
142 if (exception == null) exception= tearingDown;
145 if (exception != null) throw exception;
149 * @throws Throwable if any exception is thrown
/frameworks/base/media/jni/
H A Dandroid_media_MediaCodec.cpp850 jthrowable exception = createCodecException(env, err, actionCode, msg); local
851 env->Throw(exception);
897 jthrowable exception = local
900 env->Throw(exception);
1585 // if we're out of memory, an exception was already thrown
1611 // if we're out of memory, an exception was already thrown
1637 // if we're out of memory, an exception was already thrown
H A Dandroid_media_MediaDescrambler.cpp263 ALOGW("Discarding pending exception");
285 jthrowable exception = createServiceSpecificException(env, serviceSpecificError, msg); local
286 env->Throw(exception);
383 msg.appendFormat("Unknown exception code: %d, msg: %s",
H A Dandroid_media_MediaDrm.cpp245 ALOGW("An exception occurred while notifying an event.");
252 ALOGE("Illegal state exception: %s (%d)", msg, err);
254 jobject exception = env->NewObject(gFields.stateException.classId, local
257 env->Throw(static_cast<jthrowable>(exception));
H A Dandroid_media_MediaMetadataRetriever.cpp54 static void process_media_retriever_call(JNIEnv *env, status_t opStatus, const char* exception, const char *message) argument
61 jniThrowException( env, exception, message);
66 jniThrowException( env, exception, msg);
107 if (!tmp) { // OutOfMemoryError exception already thrown
359 if (!array) { // OutOfMemoryError exception has already been thrown.
H A Dandroid_media_MediaPlayer.cpp159 ALOGW("An exception occurred while notifying an event.");
188 // If exception is NULL and opStatus is not OK, this method sends an error
189 // event to the client application; otherwise, if exception is not NULL and
190 // opStatus is not OK, this method throws the given exception to the client
192 static void process_media_player_call(JNIEnv *env, jobject thiz, status_t opStatus, const char* exception, const char *message) argument
194 if (exception == NULL) { // Don't throw exception. Instead, send an event.
199 } else { // Throw exception!
209 jniThrowException( env, exception, message);
214 jniThrowException( env, exception, ms
1216 jobject exception = env->NewObject(gStateExceptionFields.classId, local
[all...]
H A Dandroid_media_MediaRecorder.cpp128 // Returns true if it throws an exception.
129 static bool process_media_recorder_call(JNIEnv *env, status_t opStatus, const char* exception, const char* message) argument
136 jniThrowException(env, exception, message);
173 // get_native_camera will throw an exception in this case
/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DAsyncRunner.java40 public Exception exception; field in class:AsyncRunner.RunnerResult
82 } catch (Exception exception) {
83 result.exception = exception;
90 } catch (Exception exception) {
91 result.exception = exception;
113 setException(result.exception);
118 } catch (Exception exception) {
120 setException(exception);
235 setException(Exception exception) argument
[all...]
/frameworks/base/media/mca/filterpacks/java/android/filterpacks/base/
H A DInputStreamSource.java76 } catch (IOException exception) {
78 "InputStreamSource: Could not read stream: " + exception.getMessage() + "!");
H A DOutputStreamTarget.java60 } catch (IOException exception) {
62 "OutputStreamTarget: Could not write to stream: " + exception.getMessage() + "!");
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaRecorderPrepareStateUnitTest.java57 } catch (IOException exception) {

Completed in 3157 milliseconds

123456