Lines Matching defs:self
85 def test_get_adb_devices_returns_devices(self, mock_subprocess_run): argument
98 def test_get_adb_devices_returns_devices_and_adb_not_started(self, argument
112 def test_get_adb_devices_returns_no_device(self, mock_subprocess_run): argument
121 def test_get_adb_devices_returns_no_device_and_adb_not_started(self, argument
132 def test_get_adb_devices_command_failure_error(self, mock_subprocess_run): argument
142 def test_check_device_connection_serial_arg_in_devices(self, argument
153 def test_check_device_connection_serial_arg_not_in_devices_error(self, argument
170 def test_check_device_connection_env_variable_in_devices(self, argument
184 def test_check_device_connection_env_variable_not_in_devices_error(self, argument
199 def test_check_device_connection_adb_devices_command_fails_error(self, argument
210 def test_check_device_connection_no_devices_connected_error(self, argument
223 self, mock_subprocess_run): argument
236 def test_check_device_connection_only_one_device(self, mock_subprocess_run): argument
249 def test_check_device_connection_multiple_devices_select_first(self, mock_input, argument
265 def test_check_device_connection_multiple_devices_select_second(self, mock_input, argument
279 def test_root_device_success(self, mock_subprocess_run): argument
289 def test_root_device_failure(self, mock_subprocess_run): argument
299 def test_root_device_times_out_error(self, mock_subprocess_run): argument
313 def test_root_device_and_adb_devices_fails_error(self, mock_subprocess_run): argument
324 def test_remove_file_success(self, mock_subprocess_run): argument
332 def test_remove_file_failure(self, mock_subprocess_run): argument
342 def test_start_perfetto_trace_success(self, mock_subprocess_popen): argument
354 def test_start_perfetto_trace_failure(self, mock_subprocess_popen): argument
364 def test_start_simpleperf_trace_success(self, mock_subprocess_popen): argument
378 def test_start_simpleperf_trace_failure(self, mock_subprocess_popen): argument
392 def test_pull_file_success(self, mock_subprocess_run): argument
400 def test_pull_file_failure(self, mock_subprocess_run): argument
410 def test_get_all_users_success(self, mock_subprocess_run): argument
418 def test_get_all_users_failure(self, mock_subprocess_run): argument
428 def test_user_exists_success(self, mock_subprocess_run): argument
437 def test_user_exists_and_user_does_not_exist_failure(self, argument
454 def test_user_exists_and_get_all_users_fails_error(self, mock_subprocess_run): argument
464 def test_get_current_user_success(self, mock_subprocess_run): argument
475 def test_get_current_user_failure(self, mock_subprocess_run): argument
485 def test_perform_user_switch_success(self, mock_subprocess_run): argument
493 def test_perform_user_switch_failure(self, mock_subprocess_run): argument
503 def test_write_to_file_success(self, mock_subprocess_run): argument
511 def test_write_to_file_failure(self, mock_subprocess_run): argument
521 def test_set_prop_success(self, mock_subprocess_run): argument
529 def test_set_prop_failure(self, mock_subprocess_run): argument
539 def test_reboot_success(self, mock_subprocess_run): argument
547 def test_reboot_failure(self, mock_subprocess_run): argument
557 def test_wait_for_device_success(self, mock_subprocess_run): argument
565 def test_wait_for_device_failure(self, mock_subprocess_run): argument
575 def test_is_boot_completed_and_is_completed(self, mock_subprocess_run): argument
585 def test_is_boot_completed_and_is_not_completed(self, mock_subprocess_run): argument
594 def test_is_boot_completed_failure(self, mock_subprocess_run): argument
604 def test_wait_for_boot_to_complete_success(self, mock_subprocess_run): argument
613 def test_wait_for_boot_to_complete_and_is_boot_completed_fails_error(self, argument
624 def test_wait_for_boot_to_complete_times_out_error(self, mock_subprocess_run): argument
636 def test_get_packages_success(self, mock_subprocess_run): argument
645 def test_get_packages_failure(self, mock_subprocess_run): argument
655 def test_get_pid_success(self, mock_subprocess_run): argument
665 def test_get_pid_failure(self, mock_subprocess_run): argument
675 def test_package_running(self, mock_subprocess_run): argument
685 def test_package_not_running(self, mock_subprocess_run): argument
694 def test_package_running_and_get_pid_failure(self, mock_subprocess_run): argument
704 def test_start_package_success(self, mock_subprocess_run): argument
713 def test_start_package_fails_with_service_app(self, mock_subprocess_run): argument
730 def test_start_package_failure(self, mock_subprocess_run): argument
740 def test_kill_pid_success(self, mock_subprocess_run): argument
749 def test_kill_pid_and_get_pid_failure(self, mock_subprocess_run): argument
759 def test_kill_pid_failure(self, mock_subprocess_run): argument
770 def test_force_stop_package_success(self, mock_subprocess_run): argument
778 def test_force_stop_package_failure(self, mock_subprocess_run): argument
788 def test_get_prop_success(self, mock_subprocess_run): argument
799 def test_get_prop_package_failure(self, mock_subprocess_run): argument
809 def test_get_android_sdk_version_success(self, mock_subprocess_run): argument
819 def test_get_android_sdk_version_failure(self, mock_subprocess_run): argument
829 def test_simpleperf_event_exists_success(self, mock_subprocess_run): argument
851 def test_simpleperf_event_exists_failure(self, mock_subprocess_run): argument
873 def test_simpleperf_not_installed(self, mock_subprocess_run): argument