/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/ |
D | QosCallbackExceptionTest.java | 49 final QosCallbackException exception = new QosCallbackException(testcause); in testQosCallbackException() local 50 assertEquals(testcause, exception.getCause()); in testQosCallbackException() 59 final QosCallbackException exception = new QosCallbackException(netReleasedException); in testNetworkReleasedExceptions() local 61 assertTrue(exception.getCause() instanceof NetworkReleasedException); in testNetworkReleasedExceptions() 62 assertEquals(netReleasedException, exception.getCause()); in testNetworkReleasedExceptions() 63 assertTrue(exception.getMessage().contains(ERROR_MSG_NET_RELEASED)); in testNetworkReleasedExceptions() 64 assertThrowableMessageContains(exception, ERROR_MSG_NET_RELEASED); in testNetworkReleasedExceptions() 70 final QosCallbackException exception = new QosCallbackException(sockNotBoundException); in testSocketNotBoundExceptions() local 72 assertTrue(exception.getCause() instanceof SocketNotBoundException); in testSocketNotBoundExceptions() 73 assertEquals(sockNotBoundException, exception.getCause()); in testSocketNotBoundExceptions() [all …]
|
/packages/apps/Settings/tests/unit/src/com/android/settings/network/helper/ |
D | QuerySimSlotIndexTest.java | 71 } catch (Exception exception) { in allSimSlotIndexCall_nullInput_getNoneNullEmptyList() 72 Log.w(TAG, "Fail to request subIdList", exception); in allSimSlotIndexCall_nullInput_getNoneNullEmptyList() 84 } catch (Exception exception) { in allSimSlotIndexCall_oneSimAndActivePsim_getList() 85 Log.w(TAG, "Fail to request subIdList", exception); in allSimSlotIndexCall_oneSimAndActivePsim_getList() 97 } catch (Exception exception) { in allSimSlotIndexCall_oneSimAndActiveEsim_getList() 98 Log.w(TAG, "Fail to request subIdList", exception); in allSimSlotIndexCall_oneSimAndActiveEsim_getList() 111 } catch (Exception exception) { in allSimSlotIndexCall_twoSimsAndActivePsimActiveEsim_getList() 112 Log.w(TAG, "Fail to request subIdList", exception); in allSimSlotIndexCall_twoSimsAndActivePsimActiveEsim_getList() 125 } catch (Exception exception) { in allSimSlotIndexCall_twoSimsAndtwoActiveEsims_getList() 126 Log.w(TAG, "Fail to request subIdList", exception); in allSimSlotIndexCall_twoSimsAndtwoActiveEsims_getList() [all …]
|
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/ |
D | DumpableLog.kt | 39 fun v(tag: String, message: String, exception: Throwable? = null) { in v() 40 Log.v(tag, message, exception) in v() 41 addLogToDump("v", tag, message, exception) in v() 47 fun d(tag: String, message: String, exception: Throwable? = null) { in d() 48 Log.d(tag, message, exception) in d() 49 addLogToDump("d", tag, message, exception) in d() 55 fun i(tag: String, message: String, exception: Throwable? = null) { in i() 56 Log.i(tag, message, exception) in i() 57 addLogToDump("i", tag, message, exception) in i() 63 fun w(tag: String, message: String, exception: Throwable? = null) { in w() [all …]
|
/packages/services/Iwlan/src/com/google/android/iwlan/ |
D | IwlanError.java | 94 public IwlanError(@NonNull Exception exception) { in IwlanError() argument 96 if (exception instanceof IkeProtocolException) { in IwlanError() 97 IwlanErrorIkeProtocolException((IkeProtocolException) exception); in IwlanError() 98 } else if (exception instanceof IkeIOException) { in IwlanError() 99 IwlanErrorIkeIOException((IkeIOException) exception); in IwlanError() 100 } else if (exception instanceof IkeInternalException) { in IwlanError() 101 IwlanErrorIkeInternalException((IkeInternalException) exception); in IwlanError() 102 } else if (exception instanceof IkeException) { in IwlanError() 104 mException = exception; in IwlanError() 107 mException = exception; in IwlanError() [all …]
|
/packages/modules/IPsec/tests/cts/src/android/ipsec/ike/cts/ |
D | IkeExceptionTest.java | 52 final IkeInternalException exception = new IkeInternalException(cause); in testIkeInternalException() local 55 assertEquals(cause, exception.getCause()); in testIkeInternalException() 64 final IkeNetworkLostException exception = in testIkeNetworkLostException() local 66 assertEquals(tunContext.tunNetwork, exception.getNetwork()); in testIkeNetworkLostException() 72 final IkeTimeoutException exception = new IkeTimeoutException(ERROR_MSG); in testIkeTimeoutException() local 73 assertEquals(ERROR_MSG, exception.getMessage()); in testIkeTimeoutException() 79 final IkeIOException exception = new IkeIOException(cause); in testIkeIOException() local 80 assertEquals(cause, exception.getCause()); in testIkeIOException() 94 final InvalidKeException exception = new InvalidKeException(DH_GROUP_1024_BIT_MODP); in testInvalidKeException() local 95 assertEquals(DH_GROUP_1024_BIT_MODP, exception.getDhGroup()); in testInvalidKeException() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/test/mocks/ |
D | JavaMockitoHelperTest.java | 115 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_timeoutException() local 118 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_timeoutException() 119 assertThat(exception).hasMessageThat().contains("I am number 4!"); in testGetResult_timeoutException() 120 assertThat(exception).hasMessageThat().contains(DEFAULT_TIMEOUT_MSG); in testGetResult_timeoutException() 128 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_executionException() local 131 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_executionException() 132 assertThat(exception).hasMessageThat().contains("I am number 4!"); in testGetResult_executionException() 141 IllegalStateException exception = expectThrows(IllegalStateException.class, in testGetResult_interruptedException() local 144 assertThat(exception).hasCauseThat().isSameInstanceAs(cause); in testGetResult_interruptedException() 145 assertThat(exception).hasMessageThat().contains("I am number 4!"); in testGetResult_interruptedException() [all …]
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/util/concurrent/ |
D | AndroidFutureTest.java | 184 UnsupportedOperationException exception = new UnsupportedOperationException( in testWriteToParcel_completedExceptionally() local 186 original.completeExceptionally(exception); in testWriteToParcel_completedExceptionally() 214 UnsupportedOperationException exception = new UnsupportedOperationException( in testWriteToParcel_uncompleted_Exception() local 216 fromParcel.completeExceptionally(exception); in testWriteToParcel_uncompleted_Exception() 219 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testWriteToParcel_uncompleted_Exception() 231 UnsupportedOperationException exception = new UnsupportedOperationException( in testSupply_futureThrowingException() local 234 throw exception; in testSupply_futureThrowingException() 239 assertThat(thrown.getCause()).isSameInstanceAs(exception); in testSupply_futureThrowingException() 255 UnsupportedOperationException exception = new UnsupportedOperationException( in testThenApply_functionThrowingException() local 258 throw exception; in testThenApply_functionThrowingException() [all …]
|
/packages/modules/IPsec/tests/iketests/src/java/com/android/internal/net/ipsec/ike/message/ |
D | IkeNotifyPayloadTest.java | 246 IkeProtocolException exception = payload.validateAndBuildIkeException(); in testValidateAndBuildIkeExceptionWithData() local 248 assertTrue(exception instanceof InvalidKeException); in testValidateAndBuildIkeExceptionWithData() 249 assertEquals(ERROR_TYPE_INVALID_KE_PAYLOAD, exception.getErrorType()); in testValidateAndBuildIkeExceptionWithData() 250 assertArrayEquals(dhGroup, exception.getErrorData()); in testValidateAndBuildIkeExceptionWithData() 251 assertEquals(expectedDhGroup, ((InvalidKeException) exception).getDhGroup()); in testValidateAndBuildIkeExceptionWithData() 265 InvalidSelectorsException exception = in testValidateAndBuildInvalidSelectorsException() local 268 assertEquals(ERROR_TYPE_INVALID_SELECTORS, exception.getErrorType()); in testValidateAndBuildInvalidSelectorsException() 269 assertEquals(CHILD_SPI, exception.getIpSecSpi()); in testValidateAndBuildInvalidSelectorsException() 270 assertArrayEquals(packetInfoBytes, exception.getIpSecPacketInfo()); in testValidateAndBuildInvalidSelectorsException() 281 IkeProtocolException exception, int errorType, Class<T> exceptionClass) in verifyIkeExceptionWithoutData() argument [all …]
|
/packages/modules/Permission/tests/cts/safetycenter/src/android/safetycenter/cts/ |
D | SafetyEventTest.kt | 81 val exception = in build_actionFailed_withMissingIssueActionId_throwsIllegalArgumentException() constant 88 assertThat(exception) in build_actionFailed_withMissingIssueActionId_throwsIllegalArgumentException() 95 val exception = in build_actionFailed_withMissingIssueId_throwsIllegalArgumentException() constant 102 assertThat(exception) in build_actionFailed_withMissingIssueId_throwsIllegalArgumentException() 109 val exception = in build_actionSucceeded_withMissingIssueActionId_throwsIllegalArgumentException() constant 116 assertThat(exception) in build_actionSucceeded_withMissingIssueActionId_throwsIllegalArgumentException() 123 val exception = in build_actionSucceeded_withMissingIssueId_throwsIllegalArgumentException() constant 130 assertThat(exception) in build_actionSucceeded_withMissingIssueId_throwsIllegalArgumentException() 137 val exception = in build_refreshRequested_withMissingRefreshBroadcastId_throwsIllegalArgumentException() constant 142 assertThat(exception) in build_refreshRequested_withMissingRefreshBroadcastId_throwsIllegalArgumentException() [all …]
|
/packages/modules/Connectivity/nearby/tests/unit/src/com/android/server/nearby/common/bluetooth/fastpair/ |
D | AdditionalDataEncoderTest.java | 70 GeneralSecurityException exception = in inputIncorrectKeySizeToEncode_mustThrowException() local 75 assertThat(exception) in inputIncorrectKeySizeToEncode_mustThrowException() 86 GeneralSecurityException exception = in inputIncorrectKeySizeToDecode_mustThrowException() local 91 assertThat(exception) in inputIncorrectKeySizeToDecode_mustThrowException() 102 GeneralSecurityException exception = in inputTooSmallPacketSize_mustThrowException() local 107 assertThat(exception).hasMessageThat().contains("Additional data packet size is incorrect"); in inputTooSmallPacketSize_mustThrowException() 116 GeneralSecurityException exception = in inputTooLargePacketSize_mustThrowException() local 121 assertThat(exception).hasMessageThat().contains("Additional data packet size is incorrect"); in inputTooLargePacketSize_mustThrowException() 134 GeneralSecurityException exception = in inputIncorrectHmacToDecode_mustThrowException() local 140 assertThat(exception) in inputIncorrectHmacToDecode_mustThrowException()
|
D | NamingEncoderTest.java | 65 GeneralSecurityException exception = in inputIncorrectKeySizeToEncode_mustThrowException() local 70 assertThat(exception).hasMessageThat() in inputIncorrectKeySizeToEncode_mustThrowException() 80 GeneralSecurityException exception = in inputIncorrectKeySizeToDecode_mustThrowException() local 85 assertThat(exception).hasMessageThat() in inputIncorrectKeySizeToDecode_mustThrowException() 95 GeneralSecurityException exception = in inputTooSmallPacketSize_mustThrowException() local 100 assertThat(exception).hasMessageThat().contains("Naming packet size is incorrect"); in inputTooSmallPacketSize_mustThrowException() 109 GeneralSecurityException exception = in inputTooLargePacketSize_mustThrowException() local 114 assertThat(exception).hasMessageThat().contains("Naming packet size is incorrect"); in inputTooLargePacketSize_mustThrowException() 126 GeneralSecurityException exception = in inputIncorrectHmacToDecode_mustThrowException() local 131 assertThat(exception) in inputIncorrectHmacToDecode_mustThrowException()
|
/packages/services/Car/tests/carservice_test/src/com/android/car/audio/ |
D | CarAudioZonesValidatorTest.java | 50 RuntimeException exception = expectThrows(RuntimeException.class, in validate_thereIsAtLeastOneZone() local 53 assertThat(exception).hasMessageThat().contains("At least one zone should be defined"); in validate_thereIsAtLeastOneZone() 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() [all …]
|
D | CarAudioZonesHelperLegacyTest.java | 123 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_checksForNoDuplicateBusNumbers() local 128 assertThat(exception).hasMessageThat().contains("Two addresses map to same bus number:"); in constructor_checksForNoDuplicateBusNumbers() 137 RuntimeException exception = assertThrows(RuntimeException.class, in constructor_throwsIfLegacyContextNotAssignedToBus() local 142 assertThat(exception).hasMessageThat() in constructor_throwsIfLegacyContextNotAssignedToBus() 152 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullInputDevices() local 157 assertThat(exception).hasMessageThat().contains("Input Devices"); in constructor_throwsIfNullInputDevices() 166 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullContext() local 171 assertThat(exception).hasMessageThat().contains("Context"); in constructor_throwsIfNullContext() 178 NullPointerException exception = assertThrows(NullPointerException.class, in constructor_throwsIfNullCarAudioDeviceInfo() local 183 assertThat(exception).hasMessageThat().contains("Car Audio Device Info"); in constructor_throwsIfNullCarAudioDeviceInfo() [all …]
|
/packages/providers/ContactsProvider/src/com/android/providers/contacts/util/ |
D | LogFields.java | 34 private Exception exception; field in LogFields 70 return exception; in getException() 87 private Exception exception; field in LogFields.Builder 123 public Builder setException(Exception exception) { in setException() argument 124 this.exception = exception; in setException() 142 logFields.exception = this.exception; in build()
|
/packages/modules/IPsec/src/java/android/net/ipsec/ike/ |
D | IkeSessionCallback.java | 69 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()
|
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/ |
D | PermissionHelperTest.java | 88 SecurityException exception = expectThrows(SecurityException.class, () -> PermissionHelper in testCheckHasAtLeastOnePermission_none() local 91 assertExceptionMessageContains(exception, MESSAGE); in testCheckHasAtLeastOnePermission_none() 116 SecurityException exception = expectThrows(SecurityException.class, in testCheckHasDumpPermissionGranted_notGranted() local 119 assertExceptionMessageContains(exception, MESSAGE); in testCheckHasDumpPermissionGranted_notGranted() 120 assertExceptionMessageContains(exception, android.Manifest.permission.DUMP); in testCheckHasDumpPermissionGranted_notGranted() 130 private void assertExceptionMessageContains(Exception exception, String subString) { in assertExceptionMessageContains() argument 131 assertWithMessage("exception (%s) message", exception).that(exception.getMessage()) in assertExceptionMessageContains()
|
/packages/modules/Connectivity/nearby/tests/robotests/src/com/android/libraries/testing/deviceshadower/testcases/ |
D | Matchers.java | 33 public static <T extends Exception> T exception(final Class<T> clazz, final String... msgs) { in exception() method in Matchers 41 Throwable exception = clazz.cast(obj); in exception() field in Matchers 43 if (exception == null || !exception.getMessage().contains(msg)) { in exception() 46 exception = exception.getCause(); in exception()
|
/packages/modules/Permission/SafetyCenter/Config/tests/java/com/android/safetycenter/config/ |
D | ParseExceptionTest.kt | 35 val exception = ParseException(message) in propagatesMessage() constant 37 assertThat(exception).hasMessageThat().isEqualTo(message) in propagatesMessage() 38 assertThat(exception).hasCauseThat().isNull() in propagatesMessage() 46 val exception = ParseException(message, cause) in propagatesMessageAndCause() constant 48 assertThat(exception).hasMessageThat().isEqualTo(message) in propagatesMessageAndCause() 49 assertThat(exception).hasCauseThat().isEqualTo(cause) in propagatesMessageAndCause()
|
/packages/modules/Bluetooth/system/blueberry/tests/pan/ |
D | bluetooth_pan_test.py | 99 exception=signals.TestFailure( 188 exception=signals.TestError( 198 exception=signals.TestError( 224 exception=signals.TestFailure( 233 def verify_internet(self, allow_access, device, exception): argument 261 exception=exception, 289 exception=signals.TestFailure( 322 exception=signals.TestFailure(
|
/packages/services/Car/tests/carservice_unit_test/src/android/car/ |
D | PlatformVersionMismatchExceptionTest.java | 31 PlatformVersionMismatchException exception = new PlatformVersionMismatchException( in testExpectedVersionAndMessage() local 35 PlatformVersion expectedApiVersion = exception.getMinimumPlatformApiVersion(); in testExpectedVersionAndMessage() 40 String message = exception.getMessage(); in testExpectedVersionAndMessage() 50 PlatformVersionMismatchException exception = new PlatformVersionMismatchException( in testExceptionParceable() local 56 exception.writeToParcel(parcel, 0); in testExceptionParceable() 65 .isEqualTo(exception.getMinimumPlatformApiVersion()); in testExceptionParceable()
|
/packages/modules/Connectivity/tests/common/java/ |
D | ParseExceptionTest.kt | 40 val exception = ParseException(testMessage, base) in testConstructor_WithCause() constant 42 assertEquals(testMessage, exception.response) in testConstructor_WithCause() 43 assertEquals(base, exception.cause) in testConstructor_WithCause() 49 val exception = ParseException(testMessage) in testConstructor_NoCause() constant 51 assertEquals(testMessage, exception.response) in testConstructor_NoCause() 52 assertNull(exception.cause) in testConstructor_NoCause()
|
/packages/services/Telephony/src/com/android/phone/ |
D | TimeConsumingPreferenceActivity.java | 20 public void onException(Preference preference, CommandException exception); in onException() argument 199 public void onException(Preference preference, CommandException exception) { in onException() argument 200 Log.i(LOG_TAG, "onError, preference=" + preference.getKey() + ", exception=" + exception); in onException() 201 if (exception.getCommandError() == CommandException.Error.FDN_CHECK_FAILURE) { in onException() 203 } else if (exception.getCommandError() == CommandException.Error.RADIO_NOT_AVAILABLE) { in onException() 205 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_DIAL) { in onException() 207 } else if (exception.getCommandError() == CommandException.Error in onException() 210 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_USSD) { in onException() 212 } else if (exception.getCommandError() == CommandException.Error.SS_MODIFIED_TO_SS) { in onException() 214 } else if (exception.getCommandError() == CommandException.Error.REQUEST_NOT_SUPPORTED) { in onException()
|
/packages/modules/IPsec/src/java/com/android/internal/net/ipsec/ike/shim/ |
D | ShimUtilsMinT.java | 37 public IkeException getWrappedIkeException(Exception exception) { in getWrappedIkeException() argument 38 if (exception instanceof IkeException) { in getWrappedIkeException() 39 return (IkeException) exception; in getWrappedIkeException() 42 if (exception instanceof IOException) { in getWrappedIkeException() 43 return new IkeIOException((IOException) exception); in getWrappedIkeException() 46 return new IkeInternalException(exception); in getWrappedIkeException()
|
/packages/services/Car/cpp/telemetry/cartelemetryd/src/ |
D | main.cpp | 73 binder_exception_t exception = in main() local 75 if (exception != ::EX_NONE) { in main() 77 << ", exception=" << exception; in main() 81 exception = ::AServiceManager_addService(telemetryInternal->asBinder().get(), in main() 83 if (exception != ::EX_NONE) { in main() 85 << ", exception=" << exception; in main()
|
/packages/modules/IPsec/tests/iketests/src/java/android/net/ipsec/ike/ |
D | IkeSessionCallbackTest.java | 64 public void onClosedExceptionally(IkeException exception) {} in onClosedExceptionally() argument 74 public void onError(IkeProtocolException exception) { in onError() argument 75 mOnErrorIkeProtocolExceptions.add(exception); in onError() 83 public void onError(IkeProtocolException exception) { in onError() argument 88 public void onError(IkeException exception) { in onError() argument 89 mOnErrorIkeExceptions.add(exception); in onError()
|