Searched refs:exception (Results 1 - 25 of 60) sorted by relevance

123

/frameworks/base/core/java/android/os/
H A DRegistrant.java56 notifyException(Throwable exception) argument
58 internalNotifyRegistrant (null, exception);
67 internalNotifyRegistrant (ar.result, ar.exception);
71 internalNotifyRegistrant (Object result, Throwable exception) argument
82 msg.obj = new AsyncResult(userObj, result, exception);
H A DRegistrantList.java76 internalNotifyRegistrants (Object result, Throwable exception) argument
80 r.internalNotifyRegistrant(result, exception);
91 notifyException(Throwable exception) argument
93 internalNotifyRegistrants (null, exception);
106 internalNotifyRegistrants(ar.result, ar.exception);
H A DAsyncResult.java27 // Expect either exception or result to be null
29 public Throwable exception; field in class:AsyncResult
66 exception = ex;
/frameworks/base/media/libdrm/mobile2/src/util/ustl-1.0/
H A Dustdxept.cpp51 exception::read (is);
58 exception::write (os);
65 return (exception::stream_size() + Align (stream_size_of (m_Arg)));
H A Duexception.h8 // This file contains stuff from \<exception\>.
18 #include <exception>
23 #ifdef WITHOUT_LIBSTDCPP // This code is copied from <exception>
31 /// The runtime will call this function if exception handling must be
36 /// The runtime will call this function if an exception is thrown which
37 /// violates the function's exception specification.
39 /// Returns true when the caught exception violates the throw specification.
58 /// \class exception uexception.h ustl.h
61 /// \brief Base class for exceptions, equivalent to std::exception.
64 class exception { class in namespace:ustl
71 inline exception (void) throw() : m_Format (xfmt_Exception) {} function in class:ustl::exception
[all...]
H A Duexception.cpp34 void exception::info (string& msgbuf, const char*) const throw()
43 /// Reads the exception from stream \p is.
44 void exception::read (istream& is)
49 assert (fmt == m_Format && "The saved exception is of a different type.");
50 assert (stmSize - exception::stream_size() <= is.remaining() && "The saved exception data is corrupt.");
54 /// Writes the exception into stream \p os as an IFF chunk.
55 void exception::write (ostream& os) const
60 /// Writes the exception as text into stream \p os.
61 void exception
[all...]
/frameworks/base/tests/CoreTests/android/core/
H A DPipedStreamTest.java57 android.util.Log.e("PST", "Got exception " + e, e);
59 exception = e;
63 Throwable exception; field in class:PipedStreamTest.TestThread
128 if (writer.exception != null) {
129 throw new Exception(writer.exception);
131 if (reader.exception != null) {
132 throw new Exception(reader.exception);
214 if (writer.exception != null) {
215 throw new Exception(writer.exception);
217 if (reader.exception !
[all...]
/frameworks/base/telephony/java/com/android/internal/telephony/
H A DAdnRecordLoader.java70 * or response.obj.exception is set
89 * or response.obj.exception is set
143 if (ar.exception != null) {
145 ar.exception);
156 ar.exception);
163 ar.exception);
174 if (ar.exception != null) {
176 ar.exception);
185 if (ar.exception != null) {
186 throw new RuntimeException("load failed", ar.exception);
[all...]
H A DIccFileHandler.java312 sendResult(response, result.payload, ar.exception);
322 sendResult(response, result.payload, ar.exception);
331 if (ar.exception != null) {
332 sendResult(response, null, ar.exception);
363 if (ar.exception != null) {
364 sendResult(response, null, ar.exception);
409 if (ar.exception != null) {
410 sendResult(response, null, ar.exception);
449 if (ar.exception != null) {
450 sendResult(response, null, ar.exception);
[all...]
H A DAdnRecordCache.java121 AsyncResult.forMessage(response).exception = e;
134 * response.exception hold the exception in error
170 * response.exception hold the exception in error
222 * Responds with exception (in response) if efid is not a known ADN-like
267 AsyncResult.forMessage(response).exception
291 AsyncResult.forMessage(waiter, ar.result, ar.exception);
313 if (ar.exception == null) {
324 if (ar.exception
[all...]
H A DIccPhoneBookInterfaceManager.java60 if (ar.exception == null) {
75 success = (ar.exception == null);
82 if (ar.exception == null) {
/frameworks/base/media/libdrm/mobile2/include/util/domcore/
H A DDOMException.h28 * should raise an implementation-dependent exception if a null argument is passed.
34 class DOMException : public exception {
146 * Return the exception reason.
147 * @return the exception reason.
/frameworks/base/telephony/java/com/android/internal/telephony/cdma/
H A DRuimCard.java318 AsyncResult.forMessage(((Message)ar.userObj)).exception
319 = ar.exception;
328 // appropriate exception filled in if applicable
347 if (ar.exception == null) {
352 Log.e(LOG_TAG, "Error change facility lock with exception "
353 + ar.exception);
355 AsyncResult.forMessage(((Message)ar.userObj)).exception
356 = ar.exception;
363 if (ar.exception == null) {
368 Log.e(LOG_TAG, "Error change facility fdn with exception "
[all...]
H A DRuimRecords.java148 AsyncResult.forMessage((onComplete)).exception =
221 if (ar.exception != null) {
247 if (ar.exception != null) {
259 if (ar.exception != null) {
260 Log.i(LOG_TAG, "RuimRecords update failed", ar.exception);
279 if (ar.exception == null) {
287 if (ar.exception == null) {
H A DCdmaDataConnection.java267 if (ar.exception != null) {
268 Log.e(LOG_TAG, "CdmaDataConnection Init failed " + ar.exception);
276 if (ar.exception instanceof CommandException
277 && ((CommandException) (ar.exception)).getCommandError()
/frameworks/base/telephony/java/com/android/internal/telephony/gsm/
H A DSimCard.java313 AsyncResult.forMessage(((Message)ar.userObj)).exception
314 = ar.exception;
322 // appropriate exception filled in if applicable
338 if (ar.exception == null) {
343 Log.e(LOG_TAG, "Error change facility lock with exception "
344 + ar.exception);
346 AsyncResult.forMessage(((Message)ar.userObj)).exception
347 = ar.exception;
353 if (ar.exception == null) {
358 Log.e(LOG_TAG, "Error change facility fdn with exception "
[all...]
H A DSIMRecords.java246 * ((AsyncResult)onComplete.obj).exception == null on success
247 * ((AsyncResult)onComplete.obj).exception != null on fail
293 * ((AsyncResult)onComplete.obj).exception == null on success
294 * ((AsyncResult)onComplete.obj).exception != null on fail
299 AsyncResult.forMessage((onComplete)).exception =
323 AsyncResult.forMessage((onComplete)).exception =
539 if (ar.exception != null) {
540 Log.e(LOG_TAG, "Exception querying IMSI, Exception:" + ar.exception);
571 if (ar.exception == null) {
608 if (ar.exception !
[all...]
/frameworks/base/core/java/android/net/http/
H A DConnection.java168 Exception exception = null;
237 exception = e;
240 exception = e;
243 exception = e;
246 if (exception != null) {
247 if (httpFailure(req, error, exception) &&
253 exception = null;
287 exception = e;
290 exception = e;
293 exception
[all...]
/frameworks/base/tools/layoutlib/bridge/src/android/view/
H A DBridgeInflater.java102 // If the class was not found, we throw the exception directly, because this
107 // Wrap the real exception in a ClassNotFoundException, so that the calling method
109 ClassNotFoundException exception = new ClassNotFoundException("onCreateView", e);
110 throw exception;
128 // Wrap the real exception in an InflateException so that the calling
130 InflateException exception = new InflateException();
132 exception.initCause(e2);
134 exception.initCause(e);
136 throw exception;
/frameworks/base/core/java/android/appwidget/
H A DAppWidgetHostView.java130 Exception exception = null;
174 exception = e;
184 exception = e;
197 Log.w(TAG, "updateAppWidget couldn't find any view, using error view", exception);
300 Exception exception = null;
315 exception = e;
317 exception = e;
320 if (exception != null && LOGD) {
321 Log.w(TAG, "Error inflating AppWidget " + mInfo, exception);
/frameworks/base/test-runner/android/test/suitebuilder/
H A DTestSuiteBuilder.java195 } catch (Exception exception) {
196 Log.i("TestSuiteBuilder", "Failed to create test.", exception);
198 suite.addTest(new FailedToCreateTests(exception));
231 private final Exception exception; field in class:TestSuiteBuilder.FailedToCreateTests
233 public FailedToCreateTests(Exception exception) { argument
235 this.exception = exception;
239 throw new RuntimeException("Exception during suite construction", exception);
/frameworks/base/core/java/android/test/
H A DInstrumentationTestCase.java186 Throwable exception = null;
192 exception = null;
195 exception = e.getTargetException();
198 exception = e;
202 } while ((runCount < tolerance) && (exception != null));
204 if (exception != null) {
205 throw exception;
/frameworks/base/awt/java/awt/
H A DEventQueue.java128 Exception exception = event.getException();
130 if (exception != null) {
131 throw new InvocationTargetException(exception);
/frameworks/base/media/tests/MediaFrameworkTest/src/com/android/mediaframeworktest/unit/
H A DMediaRecorderPrepareStateUnitTest.java57 } catch (IOException exception) {
/frameworks/base/test-runner/android/test/
H A DTestPrinter.java81 public void failed(String className, Throwable exception) { argument
83 Log.i(mTag, "----- begin exception -----");
84 Log.i(mTag, "", exception);
85 Log.i(mTag, "----- end exception -----");

Completed in 510 milliseconds

123