Home
last modified time | relevance | path

Searched refs:self (Results 1 – 25 of 120) sorted by relevance

12345

/platform_testing/tests/bettertogether/betocq/function_tests/
Dbeto_cq_function_group_test.py41 def __init__(self, configs): argument
44 self._test_result_messages: dict[str, str] = {}
46 def test_bt_ble_function(self): argument
48 self._current_test_actor = self.bt_ble_test_actor
49 self.bt_ble_test_actor.test_bt_ble_connection()
51 def test_wifilan_function(self): argument
58 self._current_test_actor = self.fixed_wifi_medium_test_actor
59 self.fixed_wifi_medium_test_actor.connect_to_wifi()
60 self.fixed_wifi_medium_test_actor.run_fixed_wifi_medium_test(
63 def test_d2d_hotspot_function(self): argument
[all …]
/platform_testing/tests/bettertogether/betocq/
Dnc_base_test.py49 def __init__(self, configs): argument
51 self.ads: list[android_device.AndroidDevice] = []
52 self.advertiser: android_device.AndroidDevice = None
53 self.discoverer: android_device.AndroidDevice = None
54 self.test_parameters: nc_constants.TestParameters = (
55 nc_constants.TestParameters.from_user_params(self.user_params)
57 self._test_result_messages: dict[str, str] = {}
58 self._nearby_snippet_apk_path: str = None
59 self._nearby_snippet_2_apk_path: str = None
60 self._nearby_snippet_3p_apk_path: str = None
[all …]
Dnearby_connection_wrapper.py39 self, argument
54 self.advertiser = advertiser
55 self.discoverer = discoverer
56 self.service_id = utils.rand_ascii_str(8)
57 self.advertising_discovery_medium = advertising_discovery_medium
58 self.connection_medium = connection_medium
59 self.upgrade_medium = upgrade_medium
60 self.discoverer_nearby = discoverer_nearby
61 self.advertiser_nearby = advertiser_nearby
62 self.test_failure_reason = (
[all …]
Dd2d_performance_test_base.py46 def __init__(self, configs): argument
48 self._is_mcc: bool = False
49 self._is_2g_d2d_wifi_medium: bool = False
50 self._is_dbs_mode: bool = False
51 self._throughput_low_string: str = ''
52 self._upgrade_medium_under_test: nc_constants.NearbyMedium = None
53 self._connection_medium: nc_constants.NearbyMedium = None
54 self._advertising_discovery_medium: nc_constants.NearbyMedium = None
55 self._current_test_result: nc_constants.SingleTestResult = (
58 self._performance_test_metrics: nc_constants.NcPerformanceTestMetrics = (
[all …]
/platform_testing/tests/automotive/mobly_tests/utilities/
Dspectatio_utils.py37 def __init__(self, device): argument
38 self.device = device
40 def device_displays_connected(self): argument
43 self.device.mbs.deviceIsConnected()
44 def open_app_grid(self): argument
47 self.device.mbs.openAppGrid()
48 def dial_a_number(self, callee_number): argument
51 self.device.mbs.dialANumber(callee_number)
53 def end_call(self): argument
56 self.device.mbs.endCall()
[all …]
Dmedia_utils.py25 def __init__(self, target, discoverer): argument
26 self.target = target
27 self.discoverer = discoverer
28 self.common_utils = CommonUtils(self.target, self.discoverer)
31 def execute_shell_on_device(self, shell_command): argument
32 self.target.log.info(
35 self.target.serial,
37 return self.target.adb.shell(shell_command)
40 def execute_shell_on_hu_device(self, shell_command): argument
41 self.target.log.info(
[all …]
Dbt_utils.py33 def __init__(self, discoverer, target): argument
34 self.discoverer = discoverer
35 self.target = target
36 self.target_adrr = None
37 self.media_utils = MediaUtils(self.target, self.discoverer)
40 def disable_android_auto_popup_on_hu(self): argument
42 self.media_utils.execute_shell_on_hu_device(constants.DISABLE_ANDROID_AUTO_POP_UP)
46 def handle_assistant_pop_up(self): argument
48 if self.discoverer.mbs.isAssistantImprovementPopUpPresent():
51 self.discoverer.mbs.skipImprovementCallingAndTextingPopUp()
[all …]
/platform_testing/tests/automotive/mobly_tests/media/
Dmedia_test_play_status_after_reboot.py28 def setup_class(self): argument
30 self.media_utils = MediaUtils(self.target, self.discoverer)
31 self.common_utils = CommonUtils(self.target, self.discoverer)
33 def setup_test(self): argument
34 self.common_utils.grant_local_mac_address_permission()
36 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
38 self.video_utils_service_target.enable_screen_recording()
40 self.common_utils.enable_wifi_on_phone_device()
41 self.bt_utils.pair_primary_to_secondary()
43 def test_is_song_playing_after_reboot(self): argument
[all …]
Dmedia_test_device_sync_after_hu_start.py28 def setup_class(self): argument
30 self.media_utils = MediaUtils(self.target, self.discoverer)
31 self.common_utils = CommonUtils(self.target, self.discoverer)
33 def setup_test(self): argument
34 self.common_utils.grant_local_mac_address_permission()
36 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
38 self.video_utils_service_target.enable_screen_recording()
39 self.common_utils.enable_wifi_on_phone_device()
40 self.bt_utils.pair_primary_to_secondary()
42 def test_is_hu_synced_after_hu_start(self): argument
[all …]
Dmedia_test_synchronized_device_disconnected_connected.py28 def setup_class(self): argument
30 self.media_utils = MediaUtils(self.target, self.discoverer)
31 self.common_utils = CommonUtils(self.target, self.discoverer)
33 def setup_test(self): argument
34 self.common_utils.grant_local_mac_address_permission()
36 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
38 self.video_utils_service_target.enable_screen_recording()
39 self.common_utils.enable_wifi_on_phone_device()
40 self.bt_utils.pair_primary_to_secondary()
42 def test_is_media_synchronized_after_reconnect_device(self): argument
[all …]
Dmedia_test_playlist_rendering.py27 def setup_class(self): argument
29 self.media_utils = MediaUtils(self.target, self.discoverer)
30 self.common_utils = CommonUtils(self.target, self.discoverer)
32 def setup_test(self): argument
33 self.common_utils.grant_local_mac_address_permission()
35 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
37 self.video_utils_service_target.enable_screen_recording()
39 self.common_utils.enable_wifi_on_phone_device()
40 self.bt_utils.pair_primary_to_secondary()
42 def test_playlist_rendering(self): argument
[all …]
Dmedia_test_select_song_from_playlist.py27 def setup_class(self): argument
29 self.media_utils = MediaUtils(self.target, self.discoverer)
30 self.common_utils = CommonUtils(self.target, self.discoverer)
32 def setup_test(self): argument
33 self.common_utils.grant_local_mac_address_permission()
35 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
37 self.video_utils_service_target.enable_screen_recording()
38 self.common_utils.enable_wifi_on_phone_device()
39 self.bt_utils.pair_primary_to_secondary()
41 def test_media_select_song_from_playlist(self): argument
[all …]
Dmedia_test_now_playing_label_displayed.py27 def setup_class(self): argument
29 self.media_utils = MediaUtils(self.target, self.discoverer)
30 self.common_utils = CommonUtils(self.target, self.discoverer)
32 def setup_test(self): argument
33 self.common_utils.grant_local_mac_address_permission()
35 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
37 self.video_utils_service_target.enable_screen_recording()
38 self.common_utils.enable_wifi_on_phone_device()
39 self.bt_utils.pair_primary_to_secondary()
41 def test_is_now_paying_label_displayed(self): argument
[all …]
Dmedia_test_play_media_from_widget.py27 def setup_class(self): argument
29 self.media_utils = MediaUtils(self.target, self.discoverer)
30 self.common_utils = CommonUtils(self.target, self.discoverer)
32 def setup_test(self): argument
33 self.common_utils.grant_local_mac_address_permission()
35 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
37 self.video_utils_service_target.enable_screen_recording()
38 self.common_utils.enable_wifi_on_phone_device()
39 self.bt_utils.pair_primary_to_secondary()
41 def test_media_is_song_playing(self): argument
[all …]
Dmedia_test_stream_when_radio_lunched.py28 def setup_class(self): argument
30 self.media_utils = MediaUtils(self.target, self.discoverer)
31 self.common_utils = CommonUtils(self.target, self.discoverer)
33 def setup_test(self): argument
34 self.common_utils.grant_local_mac_address_permission()
36 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
38 self.video_utils_service_target.enable_screen_recording()
39 self.common_utils.enable_wifi_on_phone_device()
41 def test_media_stream_when_radio_lunched(self): argument
43 self.media_utils.open_youtube_music_app()
[all …]
Dmedia_test_switch_app_validation.py28 def setup_class(self): argument
30 self.media_utils = MediaUtils(self.target, self.discoverer)
31 self.common_utils = CommonUtils(self.target, self.discoverer)
33 def setup_test(self): argument
34 self.common_utils.grant_local_mac_address_permission()
36 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
38 self.video_utils_service_target.enable_screen_recording()
39 self.common_utils.enable_wifi_on_phone_device()
40 self.bt_utils.pair_primary_to_secondary()
42 def test_media_is_able_to_switch_app(self): argument
[all …]
Dmedia_test_categories_playlists_selectable.py33 def setup_class(self): argument
35 self.media_utils = MediaUtils(self.target, self.discoverer)
36 self.common_utils = CommonUtils(self.target, self.discoverer)
38 def setup_test(self): argument
39 self.common_utils.grant_local_mac_address_permission()
41 self.video_utils_service_target = VideoRecording(self.target,self.__class__.__name__)
43 self.video_utils_service_target.enable_screen_recording()
44 self.common_utils.enable_wifi_on_phone_device()
45 self.bt_utils.pair_primary_to_secondary()
47 def test_is_categories_playlists_selectable(self): argument
[all …]
/platform_testing/tests/automotive/mobly_tests/sms/
Dbt_sms_read_messagebd_sync_test.py35 def setup_class(self): argument
37 self.common_utils = CommonUtils(self.target, self.discoverer)
39 def setup_test(self): argument
42 self.bt_utils.pair_primary_to_secondary()
45 self.call_utils.wait_with_log(20)
46 self.common_utils.click_on_ui_element_with_text('Allow')
49 self.call_utils.clear_sms_app(self.target)
51 self.target.unload_snippet('mbs')
52 self.call_utils.reboot_device(self.target)
53 self.call_utils.wait_with_log(30)
[all …]
Dbt_sms_read_auto_sync_test.py35 def setup_class(self): argument
37 self.common_utils = CommonUtils(self.target, self.discoverer)
39 def setup_test(self): argument
42 self.bt_utils.pair_primary_to_secondary()
45 self.call_utils.wait_with_log(20)
46 self.common_utils.click_on_ui_element_with_text('Allow')
49 self.call_utils.clear_sms_app(self.target)
51 self.target.unload_snippet('mbs')
52 self.call_utils.reboot_device(self.target)
53 self.call_utils.wait_with_log(30)
[all …]
/platform_testing/tests/automotive/mobly_tests/uxrestriction/
Duxrestriction_test_play_message_while_driving.py26 def setup_class(self): argument
28 self.common_utils = CommonUtils(self.target, self.discoverer)
31 self.bt_utils.pair_primary_to_secondary()
33 def setup_test(self): argument
36 self.call_utils.wait_with_log(20)
37 self.common_utils.click_on_ui_element_with_text('Allow')
40 self.call_utils.clear_sms_app(self.target)
43 self.target.unload_snippet('mbs')
44 self.call_utils.reboot_device(self.target)
45 self.call_utils.wait_with_log(30)
[all …]
Duxrestriction_test_receive_call_answer_decline.py39 def setup_class(self): argument
41 self.phone_utils = (phone_device_utils.PhoneDeviceUtils(self.phone_notpaired))
42 self.common_utils = CommonUtils(self.target, self.discoverer)
45 self.bt_utils.pair_primary_to_secondary()
48 self.call_utils.wait_with_log(20)
49 self.common_utils.click_on_ui_element_with_text('Allow')
51 def setup_test(self): argument
54 self.call_utils.enable_driving_mode()
56 def test_answer_incoming_call(self): argument
59 callee_number = self.target.mbs.getPhoneNumber()
[all …]
Duxrestriction_test_sms_db_sync.py32 def setup_class(self): argument
34 self.common_utils = CommonUtils(self.target, self.discoverer)
37 def setup_test(self): argument
39 self.bt_utils.pair_primary_to_secondary()
42 self.call_utils.wait_with_log(20)
43 self.common_utils.click_on_ui_element_with_text('Allow')
46 self.call_utils.clear_sms_app(self.target)
48 self.target.unload_snippet('mbs')
49 self.call_utils.reboot_device(self.target)
50 self.call_utils.wait_with_log(30)
[all …]
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dnearby_connection_wrapper.py39 self, argument
54 self.advertiser = advertiser
55 self.discoverer = discoverer
56 self.service_id = utils.rand_ascii_str(8)
57 self.advertising_discovery_medium = advertising_discovery_medium
58 self.connection_medium = connection_medium
59 self.upgrade_medium = upgrade_medium
60 self.discoverer_nearby = discoverer_nearby
61 self.advertiser_nearby = advertiser_nearby
63 self.connection_quality_info: nc_constants.ConnectionSetupQualityInfo = (
[all …]
Dquick_start_stress_test.py62 def __init__(self, configs): argument
64 self._nearby_snippet_2_apk_path: str = None
65 self._test_result: nc_constants.SingleTestResult = (
67 self._quick_start_test_metrics: nc_constants.QuickStartTestMetrics = (
69 self._test_script_version = _TEST_SCRIPT_VERSION
72 def setup_test(self): argument
73 self.discoverer.nearby2.stopDiscovery()
74 self.discoverer.nearby2.stopAllEndpoints()
75 self.advertiser.nearby2.stopAdvertising()
76 self.advertiser.nearby2.stopAllEndpoints()
[all …]
/platform_testing/tests/automotive/mobly_tests/
Dbluetooth_base_test.py22 def setup_class(self): argument
27 self.ads = self.register_controller(android_device, min_number=2)
29 self.discoverer = android_device.get_device(
30 self.ads, label='auto')
32 self.discoverer.debug_tag = 'discoverer'
34 self.target = android_device.get_device(self.ads, label='phone')
35 self.target.debug_tag = 'target'
37 self.target.load_snippet('mbs', android_device.MBS_PACKAGE)
38 self.discoverer.load_snippet('mbs', android_device.MBS_PACKAGE)
40 self.call_utils = (spectatio_utils.CallUtils(self.discoverer))
[all …]

12345