Home
last modified time | relevance | path

Searched refs:expect (Results 1 – 25 of 35) sorted by relevance

12

/tools/tradefederation/contrib/tests/src/com/android/monkey/
DMonkeyBaseTest.java64 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")) in testUptime()
75 EasyMock.expect(mockDevice.getSerialNumber()).andStubReturn("serial"); in testUptime_fail()
76 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")).andReturn(""); in testUptime_fail()
77 EasyMock.expect(mockDevice.executeShellCommand("cat /proc/uptime")) in testUptime_fail()
/tools/netsim/rust/daemon/src/wireless/
Dbluetooth.rs72 let _guard = WIRELESS_BT_MUTEX.lock().expect("Failed to lock WIRELESS_BT_MUTEX"); in patch_state()
85 let _guard = WIRELESS_BT_MUTEX.lock().expect("Failed to acquire lock on WIRELESS_BT_MUTEX"); in drop()
87 BLUETOOTH_INVALID_PACKETS.lock().expect("invalid packets").remove(&self.rootcanal_id); in drop()
94 let _guard = WIRELESS_BT_MUTEX.lock().expect("Failed to acquire lock on WIRELESS_BT_MUTEX"); in handle_request()
99 let _guard = WIRELESS_BT_MUTEX.lock().expect("Failed to acquire lock on WIRELESS_BT_MUTEX"); in reset()
146 .expect("Failed to acquire lock on BLUETOOTH_INVALID_PACKETS") in get_stats()
176 let _guard = WIRELESS_BT_MUTEX.lock().expect("Failed to acquire lock on WIRELESS_BT_MUTEX"); in new()
189 BLUETOOTH_INVALID_PACKETS.lock().expect("invalid packets").insert(rootcanal_id, Vec::new()); in new()
Duwb.rs70 .expect("UciStream Receiver Disconnected"); in handle_request()
/tools/netsim/rust/daemon/src/
Dsession.rs92 let mut lock = info.write().expect("Could not acquire session lock"); in start()
155 .expect("failed to start session monitor thread"), in start()
165 if !self.handle.as_ref().expect("no session monitor").is_finished() { in stop()
172 let lock = self.info.read().expect("Could not acquire session lock"); in stop()
218 let lock = session.info.read().expect("Could not acquire session lock"); in test_new()
237 session.info.read().expect("Could not acquire session lock").stats_proto.clone() in get_stats_proto()
307 session.info.read().expect("Could not acquire session lock").current_device_count, in test_start_and_device_add()
372 session.info.read().expect("Could not acquire session lock").current_device_count, in test_start_and_device_add_and_remove()
424 session.info.read().expect("Could not acquire session lock").current_device_count, in test_start_and_chip_add_and_remove()
Devents.rs29 get_events().lock().expect("Failed to acquire lock on events").publish(event); in publish()
34 get_events().lock().expect("Failed to acquire locks on events").subscribe() in subscribe()
/tools/apifinder/checks/src/test/java/com/android/apifinder/
DApiFinderDetectorTest.kt42 .expect( in testJava()
84 .expect( in testKotlin()
/tools/netsim/rust/daemon/src/http_server/
Dthread_pool.rs87 let message = receiver.lock().expect("Failed to acquire lock on receiver").recv(); in new()
99 .expect("http_pool_{id} spawn failed"); in new()
/tools/netsim/rust/daemon/src/transport/
Dwebsocket.rs82 .expect("Failed to acquire lock on WebSocket") in response()
169 .expect("Failed to acquire lock on WebSocket") in run_websocket_transport()
178 .expect("Failed to acquire lock on WebSocket") in run_websocket_transport()
/tools/netsim/rust/daemon/src/captures/
Dcaptures_handler.rs130 capture.lock().expect("Failed to acquire lock on CaptureInfo").get_capture_proto(), in handle_capture_list()
152 .map(|arc_capture| arc_capture.lock().expect("Failed to acquire lock on CaptureInfo")) in handle_capture_patch()
250 .map(|arc_capture| arc_capture.lock().expect("Failed to acquire lock on CaptureInfo")) in handle_packet()
255 SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards"); in handle_packet()
Dcapture.rs134 let timestamp = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards"); in start_capture()
241 let mut capture = arc_capture.lock().expect("Failed to acquire lock on CaptureInfo"); in remove()
/tools/asuite/adevice/src/
Dmetrics.rs176 fs::create_dir_all(temp_dir).expect("Failed to create folder for metrics"); in send()
177 fs::write(temp_file_path.clone(), body).expect("Failed to write to metrics file"); in send()
184 .expect("Failed to send metrics"); in send()
Dfingerprint.rs87 link.into_os_string().into_string().expect("Expected valid file name"); in from_symlink()
206 .map(|result| result.expect("Walking directory").path().to_path_buf()) in fingerprint_partitions()
231 let file_metadata = fs::symlink_metadata(file_path).expect("no metadata"); in is_special_file()
450 diffs.device_diffs.get(&PathBuf::from("a/b/foo.so")).expect("Missing file"), in different_file_type()
536 let metadata = fs::metadata(&file_path).expect("file metadata"); in get_or_compute_digest_small_file()
599 let mut perms = fs::metadata(&file_path).expect("Getting permissions").permissions(); in fingerprint_file_for_file()
662 fs::create_dir(&newdir_path).expect("Should have create 'some_dir' in temp dir"); in fingerprint_file_for_directory()
1042 fs::create_dir(&partition_dir).expect("should have created directory partition_dir"); in make_partition()
1051 fs::write(partition_dir.join(file_name), file_content).expect("Trouble writing file"); in make_partition()
Ddevice.rs161 Regex::new(r"^package:/data/app/.*/base.apk=(.+)$").expect("regex does not compile");
299 .expect("command executed"); in run_process_with_retry_until_timeout()
312 info!(" {} {:?}", output.status, String::from_utf8(output.stderr).expect("stderr")); in run_process_with_retry_until_timeout()
589 .expect("Error running command"); in adb_command_success()
Dcommands.rs36 let path_str = file_path.to_path_buf().into_os_string().into_string().expect("already tested"); in command_args()
87 product_out.join(file_path).into_os_string().into_string().expect("already visited"); in compose()
/tools/metalava/metalava-model-text/src/main/java/com/android/tools/metalava/model/text/
DTextTypeParser.kt650 var expect = false in <lambda>() variable
657 expect = balance == 1 in <lambda>()
669 expect = in <lambda>()
678 if (expect && balance == 1) { in <lambda>()
680 expect = false in <lambda>()
/tools/metalava/metalava-model/src/main/java/com/android/tools/metalava/model/
DMutableModifierList.kt62 fun setExpect(expect: Boolean)
DDefaultModifierList.kt250 override fun setExpect(expect: Boolean) { in setExpect()
251 set(EXPECT, expect) in setExpect()
/tools/netsim/rust/proto/
Dbuild_cargo.rs58 .expect("protoc"); in main()
/tools/netsim/rust/daemon/src/bluetooth/
Dbeacon.rs140 .expect("Failed to acquire lock on RustBluetoothChip") in send_link_layer_le_packet()
163 let mut beacon = beacon.unwrap().lock().expect("Failed to acquire lock on BeaconChip"); in tick()
211 let beacon = beacon.unwrap().lock().expect("Failed to acquire lock on BeaconChip"); in receive_link_layer_packet()
358 .expect("Failed to acquire lock on BeaconChip"); in ble_beacon_get()
/tools/test/connectivity/acts_tests/acts_contrib/test_utils/wifi/
Drpm_controller_utils.py81 idx, val, txt = self.tn.expect(
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/
D_tnhelper.py119 match_idx, match_val, ret_text = self._tn.expect(
/tools/netsim/rust/common/src/util/
Dtime_display.rs100 let since_epoch = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards"); in get_current_time()
/tools/netsim/rust/daemon/src/uwb/
Dranging_estimator.rs39 self.0.lock().expect("Poisoned SharedState lock") in lock()
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/
DREADME.md19 in a particular mode and expect the tester to capture an over-the-air
/tools/treble/build/sandbox/
Dnsjail.cfg67 # Some tools in the build toolchain expect a $HOME to be set

12