| /external/cronet/base/types/ |
| D | expected_unittest.cc | 2 // Use of this source code is governed by a BSD-style license that can be 36 // NOLINTNEXTLINE(google-explicit-constructor) 57 // NOLINTNEXTLINE(google-explicit-constructor) 64 enum class Error { enum 143 static_assert(unex.error() == 42); in TEST() 148 static_assert(unex.error() == 0); in TEST() 153 static_assert(unex.error() == std::pair(42, 3.14)); in TEST() 158 EXPECT_EQ(unex.error(), std::vector({1, 2, 3})); in TEST() 163 static_assert(std::is_same_v<decltype(std::declval<Unex&>().error()), int&>); in TEST() 164 static_assert(std::is_same_v<decltype(std::declval<const Unex&>().error()), in TEST() [all …]
|
| /external/crosvm/devices/src/virtio/snd/common_backend/ |
| D | stream_info.rs | 2 // Use of this source code is governed by a BSD-style license that can be 12 use base::error; 23 use super::Error; 61 pub fn new(stream_source_generator: Arc<SysAudioStreamSourceGenerator>) -> Self { in new() 70 pub fn effects(mut self, effects: Vec<StreamEffect>) -> Self { in effects() 76 pub fn build(self) -> StreamInfo { in build() 93 pub state: u32, // VIRTIO_SND_R_PCM_SET_PARAMS -> VIRTIO_SND_R_PCM_STOP, or 0 (uninitialized) 104 worker_future: Option<Box<dyn Future<Output = Result<(), Error>> + Unpin>>, 106 ex: Option<Executor>, // Executor provided on `prepare()`. Used on `drop()`. field 122 pub state: u32, // VIRTIO_SND_R_PCM_SET_PARAMS -> VIRTIO_SND_R_PCM_STOP, or 0 (uninitialized) [all …]
|
| /external/crosvm/cros_async/src/sys/linux/ |
| D | fd_executor.rs | 2 // Use of this source code is governed by a BSD-style license that can be 27 use thiserror::Error as ThisError; 39 pub enum Error { enum 40 #[error("Couldn't clear the wake eventfd")] 41 CantClearWakeEvent(base::Error), 43 #[error("Failed to clone the Event for waking the executor: {0}")] 44 CloneEvent(base::Error), 46 #[error("Failed to create the Event for waking the executor: {0}")] 47 CreateEvent(base::Error), 49 #[error("An error creating the fd waiting context: {0}")] [all …]
|
| D | uring_executor.rs | 2 // Use of this source code is governed by a BSD-style license that can be 77 use thiserror::Error as ThisError; 93 pub enum Error { enum 95 #[error("Error creating the fd waiting context: {0}")] 96 CreatingContext(io_uring::Error), 98 #[error("Failed to discard a block: {0}")] 99 Discard(base::Error), 101 #[error("Failed to copy the FD for the polling context: {0}")] 102 DuplicatingFd(base::Error), 104 #[error("Error enabling the URing context: {0}")] [all …]
|
| /external/cronet/third_party/libc++/src/test/std/experimental/simd/simd.traits/ |
| D | simd_size.verify.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 16 //inline constexpr std::size_t ex::simd_size_v = ex::simd_size<T, Abi>::value; 20 namespace ex = std::experimental::parallelism_v2; 23 (void)ex::simd_size<bool, ex::simd_abi::compatible<bool>>::value; in main() 24 // expected-error-re@* {{no member named 'value' in {{.*}}}} in main() 25 (void)ex::simd_size<ex::native_simd<int>, ex::simd_abi::native<int>>::value; in main() 26 // expected-error-re@* {{no member named 'value' in {{.*}}}} in main() 27 (void)ex::simd_size<int, int>::value; in main() [all …]
|
| D | memory_alignment.verify.cpp | 1 //===----------------------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 20 namespace ex = std::experimental::parallelism_v2; 23 (void)ex::memory_alignment<ex::native_simd<bool>, bool>::value; in main() 24 // expected-error-re@* {{no member named 'value' in {{.*}}}} in main() 25 (void)ex::memory_alignment<int, int>::value; in main() 26 // expected-error-re@* {{no member named 'value' in {{.*}}}} in main() 27 (void)ex::memory_alignment<ex::native_simd_mask<int>, int>::value; in main() 28 // expected-error-re@* {{no member named 'value' in {{.*}}}} in main() [all …]
|
| /external/ltp/testcases/kernel/syscalls/fanotify/ |
| D | fanotify22.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 14 * - Generate a broken filesystem 15 * - Start FAN_FS_ERROR monitoring group 16 * - Make the file system notice the error through ordinary operations 17 * - Observe the event generated 58 SAFE_MOUNT(tst_device->dev, MOUNT_PATH, tst_device->fs_type, in trigger_fs_abort() 64 const char *const cmd[] = {"debugfs", "-w", dev, "-R", request, NULL}; in do_debugfs_request() 75 if (ret != -1 && errno != EUCLEAN) in trigger_bad_file_lookup() 86 if (ret != -1 && errno != EUCLEAN) in trigger_bad_link_lookup() 106 int error; member [all …]
|
| /external/aws-sdk-java-v2/utils/src/test/java/software/amazon/awssdk/utils/ |
| D | ValidateTest.java | 37 * Adapted from https://github.com/apache/commons-lang. 43 //----------------------------------------------------------------------- 50 } catch (final IllegalArgumentException ex) { in testIsTrue2() 51 assertEquals("MSG", ex.getMessage()); in testIsTrue2() 55 //----------------------------------------------------------------------- 62 } catch (final IllegalArgumentException ex) { in testIsTrue3() 63 assertEquals("MSG", ex.getMessage()); in testIsTrue3() 67 //----------------------------------------------------------------------- 74 } catch (final IllegalArgumentException ex) { in testIsTrue4() 75 assertEquals("MSG", ex.getMessage()); in testIsTrue4() [all …]
|
| /external/nist-sip/java/gov/nist/core/ |
| D | InternalErrorHandler.java | 14 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, NON-INFRINGEMENT 31 * Handle Internal error failures and print a stack trace (for debugging). 42 public static void handleException(Exception ex) throws RuntimeException { in handleException() argument 43 System.err.println ("Unexpected internal error FIXME!! " + ex.getMessage()); in handleException() 44 ex.printStackTrace(); in handleException() 45 throw new RuntimeException("Unexpected internal error FIXME!! " + ex.getMessage(), ex); in handleException() 51 public static void handleException(Exception ex, StackLogger stackLogger) { in handleException() argument 52 System.err.println ("Unexpected internal error FIXME!! " + ex.getMessage()); in handleException() 53 stackLogger.logError("UNEXPECTED INTERNAL ERROR FIXME " + ex.getMessage()); in handleException() 54 ex.printStackTrace(); in handleException() [all …]
|
| /external/crosvm/cros_async/src/sys/windows/ |
| D | handle_executor.rs | 2 // Use of this source code is governed by a BSD-style license that can be 18 use base::Error as SysError; 23 use thiserror::Error as ThisError; 42 pub enum Error { enum 43 #[error("IO completion port operation failed: {0}")] 45 #[error("Failed to get future from executor run.")] 47 #[error("executor gone before future was dropped.")] 49 #[error("tried to remove overlapped operation but it didn't exist.")] 53 impl From<Error> for io::Error { implementation 54 fn from(e: Error) -> Self { in from() [all …]
|
| D | overlapped_source.rs | 2 // Use of this source code is governed by a BSD-style license that can be 13 use base::error; 20 use thiserror::Error as ThisError; 33 pub enum Error { enum 34 #[error("An error occurred trying to get a VolatileSlice into BackingMemory: {0}.")] 35 BackingMemoryVolatileSliceFetchFailed(crate::mem::Error), 36 #[error("An error occurred trying to seek: {0}.")] 37 IoSeekError(io::Error), 38 #[error("An error occurred trying to read: {0}.")] 39 IoReadError(base::Error), [all …]
|
| /external/crosvm/cros_async/src/ |
| D | executor.rs | 2 // Use of this source code is governed by a BSD-style license that can be 47 fn from(e: ExecutorKindSys) -> ExecutorKind { in from() 53 /// If not set, [`ExecutorKind::default()`] returns a statically-chosen default value, and 58 fn default() -> Self { in default() 67 /// The error type for [`Executor::set_default_executor_kind()`]. 68 #[derive(thiserror::Error, Debug)] 71 #[error("The default executor kind is already set to {0:?}")] 77 #[error("io_uring is unavailable: {0}")] 78 UringUnavailable(linux::uring_executor::Error), 82 fn from_arg_value(value: &str) -> std::result::Result<ExecutorKind, String> { in from_arg_value() [all …]
|
| /external/kotlinx.coroutines/kotlinx-coroutines-core/jvm/test/exceptions/ |
| D | StackTraceRecoveryCustomExceptionsTest.kt | 2 …* Copyright 2016-2019 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 licen… 85 val ex = result.exceptionOrNull() ?: error("Expected to fail") in <lambda>() constant 86 assertTrue(ex is WrongMessageException) in <lambda>() 87 assertEquals("Token OK", ex.message) in <lambda>() 94 throw NestedException(IllegalStateException("ERROR")) in <lambda>() 97 val ex = result.exceptionOrNull() ?: error("Expected to fail") in <lambda>() constant 98 assertIs<NestedException>(ex) in <lambda>() 99 assertIs<NestedException>(ex.cause) in <lambda>() 100 val originalCause = ex.cause?.cause in <lambda>() 102 assertEquals("ERROR", originalCause.message) in <lambda>() [all …]
|
| /external/deqp-deps/amber/src/ |
| D | executor_test.cc | 7 // http://www.apache.org/licenses/LICENSE-2.0 213 engine->Initialize(nullptr, nullptr, features, instance_extensions, in MakeAndInitializeEngine() 235 auto engine = MakeAndInitializeEngine(script->GetRequiredFeatures(), in TEST_F() 236 script->GetRequiredInstanceExtensions(), in TEST_F() 237 script->GetRequiredDeviceExtensions()); in TEST_F() 240 Executor ex; in TEST_F() local 242 ex.Execute(engine.get(), script.get(), ShaderMap(), &options, nullptr); in TEST_F() 245 const auto& features = ToStub(engine.get())->GetFeatures(); in TEST_F() 250 const auto& extensions = ToStub(engine.get())->GetDeviceExtensions(); in TEST_F() 265 auto engine = MakeAndInitializeEngine(script->GetRequiredFeatures(), in TEST_F() [all …]
|
| /external/crosvm/disk/src/ |
| D | android_sparse.rs | 2 // Use of this source code is governed by a BSD-style license that can be 30 use thiserror::Error; 38 use crate::Error as DiskError; 43 #[derive(Error, Debug)] 44 pub enum Error { enum 45 #[error("invalid magic header for android sparse format")] 47 #[error("invalid specification: \"{0}\"")] 49 #[error("failed to read specification: \"{0}\"")] 50 ReadSpecificationError(io::Error), 53 pub type Result<T> = std::result::Result<T, Error>; [all …]
|
| /external/autotest/client/common_lib/cros/ |
| D | authpolicy.py | 3 # Use of this source code is governed by a BSD-style license that can be 6 Wrapper for D-Bus calls ot the AuthPolicy daemon. 20 from autotest_lib.client.common_lib import error 27 Wrapper for D-Bus calls ot the AuthPolicy daemon. 30 authentication and policy fetch. This class is a wrapper around the D-Bus 38 # Number of log lines to include in error logs. 44 # Authpolicy daemon D-Bus parameters. 48 _DBUS_ERROR_SERVICE_UNKNOWN = 'org.freedesktop.DBus.Error.ServiceUnknown' 50 # Default timeout in seconds for D-Bus calls. 57 Creates and returns a D-Bus connection to authpolicyd. The daemon must [all …]
|
| /external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/ |
| D | RequestPayloadOnExceptionTest.java | 8 * Tests for Request payload data (bytes) on parsing error 16 * Tests for Request payload data (String) on parsing error 24 * Tests for Raw Request payload data on parsing error 32 * Tests for no Request payload data on parsing error 60 … JsonParser jp = isStream ? createParserUsingStream(doc, "UTF-8") : createParserUsingReader(doc); in testRequestPayloadAsBytesOnParseExceptionInternal() 61 jp.setRequestPayloadOnError(doc.getBytes(), "UTF-8"); in testRequestPayloadAsBytesOnParseExceptionInternal() 66 } catch (JsonParseException ex) { in testRequestPayloadAsBytesOnParseExceptionInternal() 67 assertEquals("Request payload data should match", doc, ex.getRequestPayloadAsString()); in testRequestPayloadAsBytesOnParseExceptionInternal() 68 … assertTrue("Message contains request body", ex.getMessage().contains("Request payload : " + doc)); in testRequestPayloadAsBytesOnParseExceptionInternal() 75 … JsonParser jp = isStream ? createParserUsingStream(doc, "UTF-8") : createParserUsingReader(doc); in testRequestPayloadAsStringOnParseExceptionInternal() [all …]
|
| /external/antlr/runtime/Perl5/t/classes/Test/ANTLR/Runtime/ |
| D | Exception.pm | 11 my $ex = $self->class->new(); 12 is $ex->message, ''; 17 my $ex = $self->class->new({ message => 'test error message' }); 18 is $ex->message, 'test error message'; 24 $self->class->throw(message => 'test error message'); 26 my $ex = $self->class->caught(); 27 is $ex->message, 'test error message'; 31 __PACKAGE__->meta->make_immutable(inline_constructor => 0);
|
| /external/crosvm/audio_streams_conformance_test/src/ |
| D | main.rs | 2 // Use of this source code is governed by a BSD-style license that can be 12 mod error; module 17 use crate::error::Error; 18 use crate::error::Result; 22 fn create_stream_source_generators(args: &Args) -> Box<dyn StreamSourceGenerator> { in create_stream_source_generators() 31 async fn run_playback(ex: &Executor, args: &Args) -> Result<PerformanceData> { in run_playback() 40 let mut stream_source = generator.generate().map_err(Error::GenerateStreamSource)?; in run_playback() 43 .new_async_playback_stream(num_channels, format, frame_rate, buffer_size, ex) in run_playback() 44 .map_err(Error::CreateStream)?; in run_playback() 52 .next_playback_buffer(ex) in run_playback() [all …]
|
| /external/crosvm/devices/src/virtio/snd/sys/ |
| D | windows.rs | 2 // Use of this source code is governed by a BSD-style license that can be 19 use base::error; 43 use crate::virtio::snd::common_backend::Error; 48 use crate::virtio::snd::parameters::Error as ParametersError; 75 fn from(backend: StreamSourceBackend) -> Self { in from() 83 type Error = ParametersError; typedef 85 fn try_from(s: &str) -> Result<Self, Self::Error> { in try_from() argument 97 ) -> Vec<SysAudioStreamSourceGenerator> { in create_stream_source_generators() 108 ex: &Executor, in set_up_async_playback_stream() 109 ) -> Result<Box<dyn AsyncPlaybackBufferStream>, Error> { in set_up_async_playback_stream() argument [all …]
|
| /external/google-cloud-java/java-resourcemanager/google-cloud-resourcemanager/src/main/java/com/google/cloud/resourcemanager/ |
| D | ResourceManagerException.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 29 * @see <a href="https://cloud.google.com/resource-manager/v1/errors/core_errors">Google Cloud 30 * Resource Manager error codes</a> 36 // see https://cloud.google.com/resource-manager/v1/errors/core_errors 37 private static final Set<Error> RETRYABLE_ERRORS = 39 new Error(503, null), 40 new Error(500, null), 41 new Error(429, null), 42 new Error(403, "concurrentLimitExceeded"), 43 new Error(403, "limitExceeded"), [all …]
|
| /external/google-cloud-java/java-dns/src/test/java/com/google/cloud/dns/ |
| D | DnsBatchResultTest.java | 8 * http://www.apache.org/licenses/LICENSE-2.0 45 } catch (IllegalStateException ex) { in testSuccess() 58 } catch (IllegalStateException ex) { in testError() 61 DnsException ex = new DnsException(new IOException("some error"), true); in testError() local 62 result.error(ex); in testError() 67 assertSame(ex, real); in testError() 73 DnsException ex = new DnsException(new IOException("some error"), false); in testNotifyError() local 77 callback.error(ex); in testNotifyError() 80 result.error(ex); in testNotifyError()
|
| /external/apache-commons-lang/src/test/java/org/apache/commons/lang3/concurrent/ |
| D | ConcurrentUtilsTest.java | 9 * http://www.apache.org/licenses/LICENSE-2.0 46 …assertThrows(IllegalArgumentException.class, () -> new ConcurrentException(new RuntimeException())… in testConcurrentExceptionCauseUnchecked() 50 * Tests creating a ConcurrentException with an error as cause. 54 …assertThrows(IllegalArgumentException.class, () -> new ConcurrentException("An error", new Error()… in testConcurrentExceptionCauseError() 62 assertThrows(IllegalArgumentException.class, () -> new ConcurrentException(null)); in testConcurrentExceptionCauseNull() 70 …assertThrows(IllegalArgumentException.class, () -> new ConcurrentRuntimeException(new RuntimeExcep… in testConcurrentRuntimeExceptionCauseUnchecked() 74 * Tries to create a ConcurrentRuntimeException with an error as cause. 78 …assertThrows(IllegalArgumentException.class, () -> new ConcurrentRuntimeException("An error", new … in testConcurrentRuntimeExceptionCauseError() 86 assertThrows(IllegalArgumentException.class, () -> new ConcurrentRuntimeException(null)); in testConcurrentRuntimeExceptionCauseNull() 106 * Tests extractCause() if the cause is an error. [all …]
|
| /external/crosvm/disk/src/sys/ |
| D | linux.rs | 2 // Use of this source code is governed by a BSD-style license that can be 12 use crate::Error; 16 pub fn apply_raw_disk_file_options(_raw_image: &File, _is_sparse_file: bool) -> Result<()> { in apply_raw_disk_file_options() 26 ) -> Result<()> { in read_from_disk() 28 .map_err(Error::SeekingFile)?; in read_from_disk() 29 file.read_exact(buf).map_err(Error::ReadingHeader) in read_from_disk() 33 pub fn new(disk: File, ex: &Executor) -> Result<Self> { in new() 35 base::linux::is_block_file(&disk).map_err(Error::BlockDeviceNew)?; in new() 36 ex.async_from(disk) in new() 37 .map_err(Error::CreateSingleFileDisk) in new() [all …]
|
| /external/antlr/runtime/C/src/ |
| D | antlr3baserecognizer.c | 12 // Copyright (c) 2005-2009 Jim Idle, Temporal Wave LLC 13 // http://www.temporal-wave.com 44 /* Interface functions -standard implementations cover parser and treeparser 100 // If we have been supplied with a pre-existing recognizer state in antlr3BaseRecognizerNew() 105 …recognizer->state = (pANTLR3_RECOGNIZER_SHARED_STATE) ANTLR3_CALLOC(1, (size_t)sizeof(ANTLR3_RECOG… in antlr3BaseRecognizerNew() 107 if (recognizer->state == NULL) in antlr3BaseRecognizerNew() 115 recognizer->state->errorRecovery = ANTLR3_FALSE; in antlr3BaseRecognizerNew() 116 recognizer->state->lastErrorIndex = -1; in antlr3BaseRecognizerNew() 117 recognizer->state->failed = ANTLR3_FALSE; in antlr3BaseRecognizerNew() 118 recognizer->state->errorCount = 0; in antlr3BaseRecognizerNew() [all …]
|