Home
last modified time | relevance | path

Searched refs:exception (Results 1 – 25 of 754) sorted by relevance

12345678910>>...31

/aosp12/frameworks/base/core/java/com/android/internal/inputmethod/
H A DCallbackUtils.java54 Throwable exception = null; in onResult() local
59 exception = throwable; in onResult()
63 if (exception != null) { in onResult()
80 Throwable exception = null; in onResult() local
85 exception = throwable; in onResult()
107 Throwable exception = null; in onResult() local
112 exception = throwable; in onResult()
139 exception = throwable; in onResult()
166 exception = throwable; in onResult()
192 exception = throwable; in onResult()
[all …]
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/euicc/
H A DEuiccCardController.java238 } catch (RemoteException exception) { in getAllProfiles()
287 } catch (RemoteException exception) { in getProfile()
335 } catch (RemoteException exception) { in disableProfile()
383 } catch (RemoteException exception) { in switchToProfile()
449 } catch (RemoteException exception) { in setNickname()
497 } catch (RemoteException exception) { in deleteProfile()
549 } catch (RemoteException exception) { in resetMemory()
601 } catch (RemoteException exception) { in getDefaultSmdpAddress()
649 } catch (RemoteException exception) { in getSmdsAddress()
697 } catch (RemoteException exception) { in setDefaultSmdpAddress()
[all …]
/aosp12/art/test/412-new-array/src/
H A DMain.java251 assertNotNull(exception); in testSmaliFillArrayData()
277 assertNotNull(exception); in testSmaliFillArrayData()
278 exception = null; in testSmaliFillArrayData()
290 assertNotNull(exception); in testSmaliFillArrayData()
316 assertNotNull(exception); in testSmaliFillArrayData()
317 exception = null; in testSmaliFillArrayData()
356 exception = null; in testSmaliFillArrayData()
395 exception = null; in testSmaliFillArrayData()
434 exception = null; in testSmaliFillArrayData()
473 exception = null; in testSmaliFillArrayData()
[all …]
/aosp12/frameworks/base/services/robotests/backup/src/com/android/server/backup/keyvalue/
H A DTaskExceptionTest.java39 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised()
49 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseInstanceOfTaskException()
51 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseInstanceOfTaskException()
60 assertThat(exception.isStateCompromised()).isTrue(); in testStateCompromised_whenCauseNotInstanceOfTaskException()
62 assertThat(exception.getCause()).isEqualTo(cause); in testStateCompromised_whenCauseNotInstanceOfTaskException()
74 TaskException exception = in testForStatus_whenTransportNotInitialized() local
77 assertThat(exception.isStateCompromised()).isFalse(); in testForStatus_whenTransportNotInitialized()
87 assertThat(exception).isEqualTo(cause); in testCausedBy_whenCauseInstanceOfTaskException_returnsCause()
96 assertThat(exception).isNotEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException()
99 assertThat(exception.getCause()).isEqualTo(cause); in testCausedBy_whenCauseNotInstanceOfTaskException()
[all …]
H A DAgentExceptionTest.java34 AgentException exception = AgentException.transitory(); in testTransitory_isTransitory() local
36 assertThat(exception.isTransitory()).isTrue(); in testTransitory_isTransitory()
43 AgentException exception = AgentException.transitory(cause); in testTransitory_withCause() local
45 assertThat(exception.isTransitory()).isTrue(); in testTransitory_withCause()
46 assertThat(exception.getCause()).isEqualTo(cause); in testTransitory_withCause()
51 AgentException exception = AgentException.permanent(); in testPermanent_isNotTransitory() local
53 assertThat(exception.isTransitory()).isFalse(); in testPermanent_isNotTransitory()
60 AgentException exception = AgentException.permanent(cause); in testPermanent_withCause() local
62 assertThat(exception.isTransitory()).isFalse(); in testPermanent_withCause()
63 assertThat(exception.getCause()).isEqualTo(cause); in testPermanent_withCause()
/aosp12/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/
H A DDumpableLog.kt39 fun v(tag: String, message: String, exception: Throwable? = null) {
40 Log.v(tag, message, exception)
41 addLogToDump("v", tag, message, exception)
48 Log.d(tag, message, exception)
49 addLogToDump("d", tag, message, exception)
56 Log.i(tag, message, exception)
57 addLogToDump("i", tag, message, exception)
64 Log.w(tag, message, exception)
65 addLogToDump("w", tag, message, exception)
72 Log.e(tag, message, exception)
[all …]
/aosp12/art/test/1928-exception-event-exception/
H A DAndroid.bp3 // Build rules for ART run-test `1928-exception-event-exception`.
16 name: "art-run-test-1928-exception-event-exception",
21 ":art-run-test-1928-exception-event-exception-expected-stdout",
22 ":art-run-test-1928-exception-event-exception-expected-stderr",
28 name: "art-run-test-1928-exception-event-exception-expected-stdout",
29 out: ["art-run-test-1928-exception-event-exception-expected-stdout.txt"],
36 name: "art-run-test-1928-exception-event-exception-expected-stderr",
37 out: ["art-run-test-1928-exception-event-exception-expected-stderr.txt"],
/aosp12/art/test/1932-monitor-events-misc/
H A Dexpected-stdout.txt7 Throwing exception in MonitorEnter
15 Throwing exception in MonitorEntered
21 Throwing exception in MonitorEnter
23 Throwing exception in MonitorEntered
27 Testing throwing exception in MonitorWait event
29 Throwing exception in MonitorWait
42 Throwing exception in MonitorWaited
49 Throwing exception in MonitorWaited
56 Throwing exception in MonitorWaited
92 Throwing exception in MonitorEnter
[all …]
/aosp12/frameworks/base/core/java/android/content/
H A DContentProviderResult.java39 public final @Nullable Throwable exception; field in ContentProviderResult
53 public ContentProviderResult(@NonNull Throwable exception) { in ContentProviderResult() argument
54 this(null, null, null, exception); in ContentProviderResult()
62 this.exception = exception; in ContentProviderResult()
82 exception = ParcelableException.readFromParcel(source); in ContentProviderResult()
84 exception = null; in ContentProviderResult()
93 exception = cpr.exception; in ContentProviderResult()
116 if (exception != null) { in writeToParcel()
118 ParcelableException.writeToParcel(dest, exception); in writeToParcel()
154 if (exception != null) { in toString()
[all …]
/aosp12/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/
H A DIkeExceptionTest.java47 final IkeInternalException exception = new IkeInternalException(cause); in testIkeInternalException() local
50 assertEquals(cause, exception.getCause()); in testIkeInternalException()
59 final IkeNetworkLostException exception = in testIkeNetworkLostException() local
61 assertEquals(tunContext.tunNetwork, exception.getNetwork()); in testIkeNetworkLostException()
67 final InvalidKeException exception = new InvalidKeException(DH_GROUP_1024_BIT_MODP); in testInvalidKeException() local
68 assertEquals(DH_GROUP_1024_BIT_MODP, exception.getDhGroup()); in testInvalidKeException()
74 final InvalidMajorVersionException exception = in testInvalidMajorVersionException() local
76 assertEquals(majorVersion, exception.getMajorVersion()); in testInvalidMajorVersionException()
85 final InvalidSelectorsException exception = new InvalidSelectorsException(spi, packetInfo); in testInvalidSelectorsException() local
86 assertArrayEquals(packetInfo, exception.getIpSecPacketInfo()); in testInvalidSelectorsException()
[all …]
/aosp12/packages/services/Iwlan/src/com/google/android/iwlan/
H A DIwlanError.java87 public IwlanError(@NonNull Exception exception) { in IwlanError() argument
89 if (exception instanceof IkeProtocolException) { in IwlanError()
90 IwlanErrorIkeProtocolException((IkeProtocolException) exception); in IwlanError()
91 } else if (exception instanceof IkeInternalException) { in IwlanError()
92 IwlanErrorIkeInternalException((IkeInternalException) exception); in IwlanError()
93 } else if (exception instanceof IkeException) { in IwlanError()
95 mException = exception; in IwlanError()
98 mException = exception; in IwlanError()
104 mException = exception; in IwlanErrorIkeProtocolException()
108 if (exception.getCause() instanceof IOException) { in IwlanErrorIkeInternalException()
[all …]
/aosp12/art/test/989-method-trace-throw/
H A Dexpected-stdout.txt8 Normal: Leaving public static void art.Test989.throwA() returned <exception>
11 Normal: Leaving public static native void art.Test989.throwANative() returned <exception>
49 ThrowEnter: Leaving public static void art.Test989.doNothing() returned <exception>
55 ThrowEnter: Leaving public static void art.Test989.throwA() returned <exception>
73 ThrowEnter: Leaving public static void art.Test989.tryCatchExit() returned <exception>
76 ThrowEnter: Leaving public static float art.Test989.returnFloat() returned <exception>
94 ThrowExit: Leaving public static void art.Test989.throwA() returned <exception>
129 ThrowBoth: Leaving public static void art.Test989.doNothing() returned <exception>
135 ThrowBoth: Leaving public static void art.Test989.throwA() returned <exception>
153 ThrowBoth: Leaving public static void art.Test989.tryCatchExit() returned <exception>
[all …]
/aosp12/frameworks/base/media/mca/filterfw/java/android/filterfw/core/
H A DAsyncRunner.java40 public Exception exception; field in AsyncRunner.RunnerResult
82 } catch (Exception exception) { in doInBackground()
83 result.exception = exception; in doInBackground()
90 } catch (Exception exception) { in doInBackground()
91 result.exception = exception; in doInBackground()
113 setException(result.exception); in onPostExecute()
118 } catch (Exception exception) { in onPostExecute()
120 setException(exception); in onPostExecute()
235 synchronized private void setException(Exception exception) { in setException() argument
236 mException = exception; in setException()
/aosp12/frameworks/opt/telephony/src/java/com/android/internal/telephony/uicc/
H A DSIMRecords.java643 if (ar.exception != null) { in handleMessage()
659 if (ar.exception == null) { in handleMessage()
702 if (ar.exception != null) { in handleMessage()
750 if (ar.exception != null) { in handleMessage()
767 if (ar.exception == null) { in handleMessage()
774 AsyncResult.forMessage(((Message) ar.userObj)).exception = ar.exception; in handleMessage()
787 if (ar.exception != null) { in handleMessage()
808 if (ar.exception != null) { in handleMessage()
1054 .exception = ar.exception; in handleMessage()
1058 .exception = ar.exception; in handleMessage()
[all …]
H A DAdnRecordLoader.java161 if (ar.exception != null) { in handleMessage()
163 ar.exception); in handleMessage()
174 ar.exception); in handleMessage()
181 ar.exception); in handleMessage()
193 if (ar.exception != null) { in handleMessage()
195 ar.exception); in handleMessage()
204 if (ar.exception != null) { in handleMessage()
205 throw new RuntimeException("load failed", ar.exception); in handleMessage()
236 if (ar.exception == null) { in handleMessage()
263 if (ar.exception != null) { in handleMessage()
[all …]
/aosp12/packages/modules/IPsec/src/java/android/net/ipsec/ike/
H A DIkeSessionCallback.java69 default void onClosedExceptionally(@NonNull IkeException exception) {} in onClosedExceptionally() argument
77 default void onClosedWithException(@NonNull IkeException exception) { in onClosedWithException() argument
78 onClosedExceptionally(exception); in onClosedWithException()
94 default void onError(@NonNull IkeProtocolException exception) {} in onError() argument
104 default void onError(@NonNull IkeException exception) { in onError() argument
105 if (exception instanceof IkeProtocolException) { in onError()
106 onError((IkeProtocolException) exception); in onError()
/aosp12/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/
H A DLogFields.java31 private Exception exception; field in LogFields
61 return exception; in getException()
77 private Exception exception; field in LogFields.Builder
108 public Builder setException(Exception exception) { in setException() argument
109 this.exception = exception; in setException()
126 logFields.exception = this.exception; in build()
/aosp12/frameworks/base/core/tests/coretests/src/android/content/pm/parsing/result/
H A DParseInputAndResultTest.kt83 assertThat(result.exception).isNull()
93 assertThat(result.exception).isNull()
104 assertThat(result.exception).isNull()
111 val exception = IOException() regex
116 assertThat(result.exception).isSameInstanceAs(exception)
123 val exception = IOException() regex
128 assertThat(result.exception).isSameInstanceAs(exception)
134 assertThat(carriedResult.exception).isSameInstanceAs(exception)
178 assertThat(result.exception).isNull()
209 assertThat(result.exception).isNull()
[all …]
/aosp12/frameworks/base/packages/BackupEncryption/src/com/android/server/backup/encryption/tasks/
H A DEncryptedFullBackupDataProcessor.java111 Optional<Exception> exception = getTaskException(); in pushData() local
112 Slog.e(TAG, "Encrypted upload failed", exception.orElse(null)); in pushData()
113 if (exception.isPresent()) { in pushData()
114 reportNetworkFailureIfNecessary(exception.get()); in pushData()
148 Optional<Exception> exception = getTaskException(); in finish() local
150 if (exception.isPresent()) { in finish()
151 Slog.e(TAG, "Exception during encrypted full backup", exception.get()); in finish()
152 reportNetworkFailureIfNecessary(exception.get()); in finish()
154 if (exception.get().getCause() instanceof SizeQuotaExceededException) { in finish()
193 private void reportNetworkFailureIfNecessary(Exception exception) { in reportNetworkFailureIfNecessary() argument
[all …]
/aosp12/art/test/1929-exception-catch-exception/src/art/
H A DTest1929.java47 Executable m, long loc, Throwable exception); in exceptionOccurred() argument
61 Thread thr, Executable method, long location, Throwable exception) { in ExceptionCatchEvent() argument
64 exception.getClass() + ": " + exception.getMessage()); in ExceptionCatchEvent()
68 exception.printStackTrace(System.out); in ExceptionCatchEvent()
71 HANDLER.exceptionOccurred(method, location, exception); in ExceptionCatchEvent()
90 public void exceptionOccurred(Executable m, long loc, Throwable exception) { in exceptionOccurred() argument
97 public void exceptionOccurred(Executable m, long loc, Throwable exception) { in exceptionOccurred() argument
101 Breakpoint.locationToLine(m, loc), exception); in exceptionOccurred()
114 Breakpoint.locationToLine(m, loc), exception); in exceptionOccurred()
120 if (exception instanceof TestExceptionNoRethrow) { in exceptionOccurred()
[all …]
/aosp12/art/test/1927-exception-event/
H A DAndroid.bp3 // Build rules for ART run-test `1927-exception-event`.
16 name: "art-run-test-1927-exception-event",
21 ":art-run-test-1927-exception-event-expected-stdout",
22 ":art-run-test-1927-exception-event-expected-stderr",
28 name: "art-run-test-1927-exception-event-expected-stdout",
29 out: ["art-run-test-1927-exception-event-expected-stdout.txt"],
36 name: "art-run-test-1927-exception-event-expected-stderr",
37 out: ["art-run-test-1927-exception-event-expected-stderr.txt"],
/aosp12/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/
H A DIkeNotifyPayloadTest.java248 assertTrue(exception instanceof InvalidKeException); in testValidateAndBuildIkeExceptionWithData()
250 assertArrayEquals(dhGroup, exception.getErrorData()); in testValidateAndBuildIkeExceptionWithData()
265 InvalidSelectorsException exception = in testValidateAndBuildInvalidSelectorsException() local
269 assertEquals(CHILD_SPI, exception.getIpSecSpi()); in testValidateAndBuildInvalidSelectorsException()
283 assertTrue(exceptionClass.isInstance(exception)); in verifyIkeExceptionWithoutData()
284 assertEquals(errorType, exception.getErrorType()); in verifyIkeExceptionWithoutData()
285 assertArrayEquals(new byte[0], exception.getErrorData()); in verifyIkeExceptionWithoutData()
356 ChildSaNotFoundException exception = in testValidateAndBuildChildSaNotFoundException() local
362 assertEquals(CHILD_SPI, exception.getIpSecSpi()); in testValidateAndBuildChildSaNotFoundException()
372 assertEquals(unrecognizedType, exception.getErrorType()); in testValidateAndBuildUnrecognizedIkeException()
[all …]
/aosp12/art/test/020-string/
H A Dexpected-stdout.txt5 Got expected exception
8 Got expected exception
9 Got expected exception
10 Got expected exception
11 Got expected exception
12 Got expected exception
/aosp12/packages/services/Car/tests/carservice_test/src/com/android/car/audio/
H A DCarAudioZonesValidatorTest.java50 RuntimeException exception = expectThrows(RuntimeException.class, in validate_thereIsAtLeastOneZone() local
63 IllegalArgumentException exception = expectThrows(IllegalArgumentException.class, in validate_failsOnEmptyInputDevices() local
66 assertThat(exception).hasMessageThat().contains("Primary Zone Input Devices"); in validate_failsOnEmptyInputDevices()
75 NullPointerException exception = expectThrows(NullPointerException.class, in validate_failsOnNullInputDevices() local
78 assertThat(exception).hasMessageThat().contains("Primary Zone Input Devices"); in validate_failsOnNullInputDevices()
89 RuntimeException exception = expectThrows(RuntimeException.class, in validate_failsOnMissingMicrophoneInputDevices() local
92 assertThat(exception).hasMessageThat().contains("Primary Zone must have"); in validate_failsOnMissingMicrophoneInputDevices()
104 RuntimeException exception = expectThrows(RuntimeException.class, in validate_volumeGroupsForEachZone() local
107 assertThat(exception).hasMessageThat() in validate_volumeGroupsForEachZone()
130 RuntimeException exception = expectThrows(RuntimeException.class, in validate_eachAddressAppearsInOnlyOneZone() local
[all …]
/aosp12/packages/modules/Connectivity/tests/common/java/
H A DParseExceptionTest.kt38 val exception = ParseException(testMessage, base) regex
40 assertEquals(testMessage, exception.response)
41 assertEquals(base, exception.cause)
47 val exception = ParseException(testMessage) regex
49 assertEquals(testMessage, exception.response)
50 assertNull(exception.cause)

12345678910>>...31