Home
last modified time | relevance | path

Searched refs:is_err (Results 1 – 25 of 31) sorted by relevance

12

/external/crosvm/devices/src/
Dbus.rs247 assert!(bus.insert(dummy.clone(), 0x10, 0, false).is_err()); in bus_insert()
249 assert!(bus.insert(dummy.clone(), 0x0f, 0x10, false).is_err()); in bus_insert()
250 assert!(bus.insert(dummy.clone(), 0x10, 0x10, false).is_err()); in bus_insert()
251 assert!(bus.insert(dummy.clone(), 0x10, 0x15, false).is_err()); in bus_insert()
252 assert!(bus.insert(dummy.clone(), 0x12, 0x15, false).is_err()); in bus_insert()
253 assert!(bus.insert(dummy.clone(), 0x12, 0x01, false).is_err()); in bus_insert()
254 assert!(bus.insert(dummy.clone(), 0x0, 0x20, false).is_err()); in bus_insert()
264 assert!(bus.insert(dummy.clone(), 0x10, 0, true).is_err()); in bus_insert_full_addr()
266 assert!(bus.insert(dummy.clone(), 0x0f, 0x10, true).is_err()); in bus_insert_full_addr()
267 assert!(bus.insert(dummy.clone(), 0x10, 0x10, true).is_err()); in bus_insert_full_addr()
[all …]
/external/adhd/cras/client/cras_tests/src/
Daudio_options.rs175 assert!(AudioOptions::parse_from_args(&["cras_tests"]).is_err()); in parse_from_args()
176 assert!(AudioOptions::parse_from_args(&["cras_tests", "capture"]).is_err()); in parse_from_args()
177 assert!(AudioOptions::parse_from_args(&["cras_tests", "playback"]).is_err()); in parse_from_args()
178 assert!(AudioOptions::parse_from_args(&["cras_tests", "loopback"]).is_err()); in parse_from_args()
179 assert!(AudioOptions::parse_from_args(&["cras_tests", "loopback", "file.ogg"]).is_err()); in parse_from_args()
180 assert!(AudioOptions::parse_from_args(&["cras_tests", "filename.wav"]).is_err()); in parse_from_args()
181 assert!(AudioOptions::parse_from_args(&["cras_tests", "filename.wav", "capture"]).is_err()); in parse_from_args()
192 .is_err()); in parse_from_args()
Dmain.rs20 if set_rt_prio_limit(AUDIO_THREAD_RTPRIO as u64).is_err() in set_priority_to_realtime()
21 || set_rt_round_robin(AUDIO_THREAD_RTPRIO as i32).is_err() in set_priority_to_realtime()
/external/adhd/cras/client/libcras/src/
Dcras_shm.rs708 assert!(header.set_write_offset(2, 5).is_err()); in cras_audio_header_write_offset_test()
712 assert!(header.set_write_offset(0, 6).is_err()); in cras_audio_header_write_offset_test()
714 assert!(header.set_write_offset(0, 5).is_err()); in cras_audio_header_write_offset_test()
732 assert!(header.set_read_offset(2, 5).is_err()); in cras_audio_header_read_offset_test()
736 assert!(header.set_read_offset(0, 6).is_err()); in cras_audio_header_read_offset_test()
738 assert!(header.set_read_offset(0, 5).is_err()); in cras_audio_header_read_offset_test()
849 assert!(result.is_err()); in cras_audio_header_get_write_offset_and_len()
867 assert!(result.is_err()); in cras_audio_header_get_write_offset_and_len()
889 assert!(header.set_buffer_offset(0, 10).is_err()); in cras_audio_header_set_buffer_offset()
894 assert!(header.set_buffer_offset(0, 10).is_err()); in cras_audio_header_set_buffer_offset()
[all …]
/external/libese/libese/
Dese.c43 ese->error.is_err = false; in ese_open()
60 return ese->error.is_err; in ese_error()
69 ese->error.is_err = true; in ese_set_error()
105 if (ese->error.is_err) { in ese_transceive_sg()
/external/libese/libese/include/ese/
Dese_hw_api.h131 .is_err = false, \
141 (_ptr)->error.is_err = false; \
182 bool is_err; member
/external/crosvm/resources/src/
Daddress_allocator.rs126 assert!(AddressAllocator::new(u64::max_value(), 0x100, None).is_err()); in new_fails_overflow()
131 assert!(AddressAllocator::new(0x1000, 0, None).is_err()); in new_fails_size_zero()
136 assert!(AddressAllocator::new(0x1000, 0x10000, Some(0)).is_err()); in new_fails_alignment_zero()
141 assert!(AddressAllocator::new(0x1000, 0x10000, Some(200)).is_err()); in new_fails_alignment_non_power_of_two()
244 .is_err()); in allocate_with_alignment_alignment_non_power_of_two()
/external/crosvm/sys_util/src/
Dpasswd.rs100 assert!(bad_uid_result.is_err()); in get_bad_uid()
120 assert!(bad_gid_result.is_err()); in get_bad_gid()
Dguest_memory.rs577 assert!(GuestMemory::new(&vec![(start_addr1, 0x100), (start_addr2, 0x400)]).is_err()); in test_alignment()
592 assert!(GuestMemory::new(&vec![(start_addr1, 0x2000), (start_addr2, 0x2000)]).is_err()); in overlap_memory()
682 assert!(mem.get_host_address(bad_addr).is_err()); in guest_to_host()
Dstruct_util.rs106 assert!(read_struct(&mut Cursor::new(source), &mut tr).is_err()); in struct_read_past_end()
Dnet.rs429 assert!(res.is_err()); in sockaddr_un_long_input_err()
465 assert!(res.is_err()); in unix_seqpacket_path_not_exists()
Dsyslog.rs361 if res.is_err() { in send_buf()
/external/crosvm/fuzz/
Dblock_fuzzer.rs68 .is_err() in test_one_input()
78 .is_err() in test_one_input()
/external/rust/crates/syn/1.0.7/tests/
Dtest_derive_input.rs396 assert!(input.attrs[0].parse_meta().is_err()); in test_attr_with_path()
432 assert!(input.attrs[0].parse_meta().is_err()); in test_attr_with_non_mod_style_path()
/external/crosvm/net_util/src/
Dlib.rs592 assert!("01:06".parse::<MacAddress>().is_err()); in parse_mac_address()
593 assert!("01:02:03:04:05:06:07:08:09".parse::<MacAddress>().is_err()); in parse_mac_address()
594 assert!("not a mac address".parse::<MacAddress>().is_err()); in parse_mac_address()
/external/crosvm/devices/src/pci/
Dac97_bus_master.rs460 if self.start_audio(func, mixer).is_err() { in set_cr()
515 if set_rt_prio_limit(u64::from(AUDIO_THREAD_RTPRIO)).is_err() in start_audio()
516 || set_rt_round_robin(i32::from(AUDIO_THREAD_RTPRIO)).is_err() in start_audio()
550 if set_rt_prio_limit(u64::from(AUDIO_THREAD_RTPRIO)).is_err() in start_audio()
551 || set_rt_round_robin(i32::from(AUDIO_THREAD_RTPRIO)).is_err() in start_audio()
/external/adhd/audio_streams/src/
Dcapture.rs179 assert!(CaptureBuffer::new(2, &mut cp_buf, &mut buffer_drop).is_err()); in invalid_buffer_length()
Daudio_streams.rs311 assert!(PlaybackBuffer::new(2, &mut pb_buf, &mut buffer_drop).is_err()); in invalid_buffer_length()
/external/libese/libese-hw/nxp/pn80t/
Dcommon.c124 ese->error.is_err = false; in nxp_pn80t_reset()
/external/crosvm/gpu_renderer/src/
Dlib.rs786 .any(|&(addr, len)| mem.get_slice(addr.offset(), len as u64).is_err()) in attach_backing()
809 if res.is_err() { in attach_backing()
/external/rust/crates/proc-macro2/tests/
Dtest.rs277 assert!(s.parse::<proc_macro2::TokenStream>().is_err()); in no_panic()
/external/crosvm/devices/src/virtio/
Dballoon.rs106 .is_err() in process_inflate_deflate()
/external/crosvm/devices/src/virtio/gpu/
Dmod.rs385 if resp.is_err() { in process_descriptor()
401 if fence_resp.is_err() { in process_descriptor()
/external/crosvm/src/plugin/
Dmod.rs681 if res.is_ok() && sig_res.is_err() { in run_config()
721 if res.is_ok() && sig_res.is_err() { in run_config()
/external/crosvm/x86_64/src/
Dmptable.rs370 assert!(setup_mptable(&mem, num_cpus, Vec::new()).is_err()); in bounds_check_fails()

12