Home
last modified time | relevance | path

Searched refs:try_new (Results 1 – 12 of 12) sorted by relevance

/external/adhd/cras/client/cras_tests/src/
Daudio.rs102 fn try_new(opts: &AudioOptions) -> Result<Self> { in try_new() method
187 let wav_source = WavSource::try_new(&opts)?; in playback()
247 fn try_new<P: AsRef<Path>>( in try_new() method
362 FileType::Wav => Box::new(WavSink::try_new( in capture()
/external/adhd/cras/client/libcras/src/
Dcras_client_message.rs93 let message = CrasClientMessage::try_new(&server_socket)?; in handle_server_message()
145 fn try_new(server_socket: &CrasServerSocket) -> Result<CrasClientMessage> { in try_new() method
Dlibcras.rs250 server_state: CrasServerState::try_new(server_state_fd)?, in with_type()
441 return CrasStream::try_new( in create_stream()
680 let stream = CrasShmStream::try_new(
Dcras_shm_stream.rs76 pub fn try_new( in try_new() method
Dcras_shm.rs568 pub fn try_new(state_fd: CrasServerStateShmFd) -> io::Result<Self> { in try_new() method
1229 CrasServerState::try_new(state_fd).expect("try_new failed for valid server_state fd"); in cras_server_state()
1250 CrasServerState::try_new(state_fd) in cras_server_state_old_version()
1265 let state_struct = CrasServerState::try_new(state_fd).unwrap(); in cras_server_sync_state_read()
Dcras_stream.rs138 pub fn try_new( in try_new() method
/external/adhd/cras/src/server/rust/src/
Drate_estimator_bindings.rs28 match RateEstimator::try_new(rate, window, smooth_factor) { in rate_estimator_create()
Drate_estimator.rs102 pub fn try_new(rate: u32, window_size: Duration, smooth_factor: f64) -> Result<Self> { in try_new() method
/external/crosvm/devices/src/virtio/snd/vios_backend/
Dshm_streams.rs42 vios_client: Arc::new(VioSClient::try_new(server)?), in new()
Dshm_vios.rs118 pub fn try_new<P: AsRef<Path>>(server: P) -> Result<VioSClient> { in try_new() method
/external/crosvm/devices/src/pci/
Dac97.rs145 pub fn try_new(mem: GuestMemory, param: Ac97Parameters) -> Result<Self> { in try_new() method
/external/crosvm/src/
Dlinux.rs1666 let dev = Ac97Dev::try_new(mem.clone(), ac97_param.clone()).map_err(Error::CreateAc97)?; in create_devices()