/tools/tradefederation/contrib/tests/src/com/android/monkey/ |
D | MonkeyBaseTest.java | 64 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/ |
D | bluetooth.rs | 72 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()
|
D | uwb.rs | 70 .expect("UciStream Receiver Disconnected"); in handle_request()
|
/tools/netsim/rust/daemon/src/ |
D | session.rs | 92 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()
|
D | events.rs | 29 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/ |
D | ApiFinderDetectorTest.kt | 42 .expect( in testJava() 84 .expect( in testKotlin()
|
/tools/netsim/rust/daemon/src/http_server/ |
D | thread_pool.rs | 87 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/ |
D | websocket.rs | 82 .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/ |
D | captures_handler.rs | 130 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()
|
D | capture.rs | 134 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/ |
D | metrics.rs | 176 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()
|
D | fingerprint.rs | 87 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()
|
D | device.rs | 161 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()
|
D | commands.rs | 36 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/ |
D | TextTypeParser.kt | 650 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/ |
D | MutableModifierList.kt | 62 fun setExpect(expect: Boolean)
|
D | DefaultModifierList.kt | 250 override fun setExpect(expect: Boolean) { in setExpect() 251 set(EXPECT, expect) in setExpect()
|
/tools/netsim/rust/proto/ |
D | build_cargo.rs | 58 .expect("protoc"); in main()
|
/tools/netsim/rust/daemon/src/bluetooth/ |
D | beacon.rs | 140 .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/ |
D | rpm_controller_utils.py | 81 idx, val, txt = self.tn.expect(
|
/tools/test/connectivity/acts/framework/acts/controllers/attenuator_lib/ |
D | _tnhelper.py | 119 match_idx, match_val, ret_text = self._tn.expect(
|
/tools/netsim/rust/common/src/util/ |
D | time_display.rs | 100 let since_epoch = SystemTime::now().duration_since(UNIX_EPOCH).expect("Time went backwards"); in get_current_time()
|
/tools/netsim/rust/daemon/src/uwb/ |
D | ranging_estimator.rs | 39 self.0.lock().expect("Poisoned SharedState lock") in lock()
|
/tools/test/connectivity/acts_tests/tests/google/wifi/aware/ |
D | README.md | 19 in a particular mode and expect the tester to capture an over-the-air
|
/tools/treble/build/sandbox/ |
D | nsjail.cfg | 67 # Some tools in the build toolchain expect a $HOME to be set
|