Home
last modified time | relevance | path

Searched refs:is_ok (Results 1 – 18 of 18) sorted by relevance

/tools/netsim/src/frontend/
Dfrontend_server.cc40 : grpc_writer_(nullptr), err(""), is_ok(false), body(""), length(0) {}; in CxxServerResponseWritable()
43 : grpc_writer_(grpc_writer), err(""), is_ok(false), body(""), length(0) { in CxxServerResponseWritable()
49 is_ok = false; in put_error()
55 is_ok = true; in put_ok_with_length()
61 is_ok = grpc_writer_->Write(response); in put_chunk()
67 is_ok = true; in put_ok()
73 mutable bool is_ok; member in netsim::__anonde92192e0111::CxxServerResponseWritable
92 if (writer.is_ok) { in ListDevice()
106 if (writer.is_ok) { in CreateDevice()
120 if (writer.is_ok) { in DeleteChip()
[all …]
Dfrontend_client.h34 ClientResult(bool is_ok, const std::string &err, in ClientResult() argument
36 : is_ok_(is_ok), err_(err), byte_vec_(byte_vec) {}; in ClientResult()
/tools/netsim/rust/cli/src/
Dbrowser.rs34 if open_cmd.output().is_ok() { in open()
47 if open_cmd.output().is_ok() { in open()
61 if open_cmd.output().is_ok() { in open()
Dlib.rs162 if result.is_ok() { in process_result()
238 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_remove_device()
272 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_remove_chip()
Dargs.rs288 if !result.is_ok() { in get_filtered_captures()
710 assert!(hex.is_ok(), "{}", hex.unwrap_err()); in test_hex_parser_succeeds()
719 assert!(hex.is_ok(), "{}", hex.unwrap_err()); in test_hex_parser_prefix_succeeds()
728 assert!(hex.is_ok(), "{}", hex.unwrap_err()); in test_hex_parser_empty_str_succeeds()
/tools/netsim/rust/daemon/src/bluetooth/
Dadvertise_data.rs220 assert!(ad.is_ok()); in test_from_proto_succeeds()
259 assert!(ad.is_ok()); in test_from_proto_sets_proto_field()
271 assert!(ad.is_ok()); in test_set_device_name_succeeds()
298 assert!(ad.is_ok()); in test_set_tx_power_level()
313 assert!(ad.is_ok()); in test_set_manufacturer_data_succeeds()
345 assert!(data.is_ok()); in test_set_name_and_power_succeeds()
Dadvertise_settings.rs307 assert!(settings.is_ok()); in test_from_proto_succeeds()
310 assert!(tx_power.is_ok()); in test_from_proto_succeeds()
344 assert!(settings.is_ok()); in test_into_proto()
346 assert!(settings.is_ok()); in test_into_proto()
360 assert!(settings.is_ok()); in test_from_proto_default()
381 assert!(settings.is_ok()); in test_from_proto_timeout_unset()
Dbeacon.rs438 assert!(add_result.is_ok(), "{}", add_result.unwrap_err()); in new_test_beacon_with_settings()
458 assert!(beacon.is_ok(), "{}", beacon.unwrap_err()); in test_beacon_get()
495 assert!(patch_result.is_ok(), "{}", patch_result.unwrap_err()); in test_beacon_patch()
498 assert!(beacon_proto.is_ok(), "{}", beacon_proto.unwrap_err()); in test_beacon_patch()
517 assert!(patch_result.is_ok(), "{}", patch_result.unwrap_err()); in test_beacon_patch_default()
520 assert!(beacon_proto.is_ok(), "{}", beacon_proto.unwrap_err()); in test_beacon_patch_default()
/tools/netsim/rust/daemon/src/devices/
Ddevices_handler.rs451 if merge_from_str(&mut patch_device_request, patch_json).is_ok() { in patch_device()
459 if result.is_ok() { in patch_device()
480 if result.is_ok() { in patch_device()
504 if result.is_ok() { in patch_device()
673 if merge_from_str(&mut subscribe_device_request, subscribe_json).is_ok() { in handle_device_subscribe()
1211 assert!(patch_device(None, patch_json.as_str()).is_ok()); in test_patch_device()
1490 assert!(device_proto.is_ok(), "{}", device_proto.unwrap_err()); in get_device_proto()
1505 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_create_device_succeeds()
1553 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_get_beacon_device()
1569 assert!(id.is_ok(), "{}", id.unwrap_err()); in test_create_device_default_name()
[all …]
Ddevice.rs269 assert!(result.is_ok()); in test_exact_target_match()
281 assert!(result.is_ok()); in test_substring_target_match()
321 assert!(result.is_ok()); in test_no_target_match()
Dchip.rs321 assert!(chip.patch(&patch_body).is_ok()); in test_chip_patch()
/tools/netsim/rust/common/src/util/
Dzip_artifact.rs164 assert!(files_result.is_ok()); in test_recurse_files()
194 assert!(files_result.is_ok()); in test_fetch_zip_files()
/tools/netsim/rust/daemon/src/wifi/
Dmedium.rs578 assert!(parse_hwsim_cmd(&packet).is_ok()); in test_netlink_attr()
581 assert!(parse_hwsim_cmd(&tx_info_packet).is_ok()); in test_netlink_attr()
589 assert!(parse_hwsim_cmd(&response_packet).is_ok()); in test_netlink_attr_response_packet()
593 assert!(parse_hwsim_cmd(&response_packet2).is_ok()); in test_netlink_attr_response_packet()
/tools/netsim/rust/daemon/src/
Devents.rs137 self.subscribers.retain(|subscriber| subscriber.send(msg.clone()).is_ok()) in publish()
/tools/asuite/adevice/src/
Dfingerprint.rs601 assert!(fs::set_permissions(&file_path, perms).is_ok()); in fingerprint_file_for_file()
671 if FileMetadata::from_path(Path::new("testdata/not_exist"), &cache).is_ok() { in fingerprint_file_on_bad_path_reports_err()
991 assert!(write_result.is_ok()); in test_write_and_read_cache_file()
Dadevice.rs271 if update_result.is_ok() { in adevice()
788 assert!(result.is_ok()); in test_shadow_apk_check_no_shadowing_apks()
Ddevice.rs599 if result.is_ok() { in adb_command_failure()
/tools/netsim/rust/daemon/src/captures/
Dcaptures_handler.rs321 std::fs::remove_dir_all(&path).is_ok() in clear_pcap_files()