Home
last modified time | relevance | path

Searched refs:f (Results 1 – 25 of 84) sorted by relevance

1234

/platform_testing/tests/bettertogether/betocq/
Dd2d_performance_test_base.py104 f'The test is not required per the device capabilities. {skip_reason}'
120 f'{ad} {ad_role}.{key} is'
121 f' {"enabled" if capability else "disabled"}'
216 f'target STA freq = {sta_frequency}, '
217 f'max STA speed (Mb/s): {sta_max_link_speed_mbps}, '
218 f'max D2D speed (MB/s): {max_phy_rate_mbps / _BITS_PER_BYTE}, '
219 f'min D2D speed (MB/s), iperf: {min_throughput_mbyte_per_sec}, '
220 f'nc: {nc_min_throughput_mbyte_per_sec}'
260 f'{round(discoverer_wifi_sta_latency.total_seconds())} s'
320 f'{round(advertiser_wifi_sta_latency.total_seconds())} s'
[all …]
Dandroid_wifi_utils.py63 return self._message if self._ad is None else f'{self._ad} {self._message}'
75 ad.log.info(f'Wi-Fi was already connected to {repr(ssid)}')
77 cmd = ['cmd', 'wifi', 'connect-network', f'"{ssid}"']
79 cmd.append(f'"{security or WiFiSecurity.OPEN}"')
81 cmd.extend([f'"{security or WiFiSecurity.WPA2}"', f'"{passphrase}"'])
84 raise AndroidWiFiError(ad, f'Fail to connect to Wi-Fi {repr(ssid)}')
85 ad.log.info(f'Wi-Fi connected to {repr(ssid)}')
104 f' {_DELAY_AFTER_CHANGE_WIFI_STATUS.total_seconds()} seconds',
124 f' {_DELAY_AFTER_CHANGE_WIFI_STATUS.total_seconds()} seconds',
137 f' {saved_wifis}',
[all …]
Dnearby_connection_wrapper.py91 f'Start advertising {self.advertising_discovery_medium.name}'
98 f'Start discovery {self.advertising_discovery_medium.name}'
118 f'{endpoint_found_event}')
122 f'Received an unexpected service id during discovery: '
123 f'{endpoint_found_event}')
147 f' {keep_alive_timeout_ms}'
173 f'Received an incoming connection: {d_connection_init_event}'
179 f'Received an unexpected endpoint: {d_connection_init_event}')
190 f'Received an outgoing connection: {d_connection_init_event}'
196 f'Received an unexpected endpoint: {a_connection_init_event}')
[all …]
Dsetup_utils.py69 f'Failed to set country code on device "{ad.serial}, try again.'
81 f'Skipped setting wifi country code on device "{ad.serial}" '
86 ad.log.info(f'Set Wi-Fi and Telephony country code to {country_code}.')
91 f' --es country {country_code}'
93 ad.adb.shell(f'cmd wifi force-country-code enabled {country_code}')
103 ad.log.info(f'Telephony country code: {telephony_country_code}')
110 ad.adb.shell(f'setprop log.tag.{tag} VERBOSE')
122 f' "{ad.serial}", try again.'
136 f'Grant MANAGE_EXTERNAL_STORAGE permission on device "{ad.serial}".'
147 f'Failed to dump GMS version on device "{ad.serial}", try again.'
[all …]
Dbase_betocq_suite.py52 'run_identifier': f'v{version.TEST_SCRIPT_VERSION}',
65 class_results[f'1_{entry[records.TestResultEnums.RECORD_CLASS]}'] = (
70 f'1_{entry[records.TestResultEnums.RECORD_CLASS]}_detailed_stats'
103 with open(self.summary_path, 'r') as f:
106 for entry in yaml.safe_load_all(f)
/platform_testing/tests/automotive/mobly_tests/utilities/
Dcrystalball_metrics_utils.py35 logging.debug(f'Exporting test metrics of {test_name} to CrystalBall at {cb_path}')
36 with open(cb_path, 'a') as f:
37 f.write(test_name + '\n\n')
38 f.writelines(['%s:%s\n' % (key, value) for key, value in data.items()])
39 f.write('\n\n')
Dvideo_utils_service.py20 f'{constants.SCREEN_RECORDING_COMMAND} {self.get_screen_recording_path()}')
47 …DELETE_SCREEN_RECORDING_COMMAND = f'{constants.DELETE_SCREEN_RECORDING}{DELETE_SCREEN_RECORDING_FI…
53 m = f'{self._device}'.split('|')[1]
56 …RECORDED_VIDEO_FILE_PATH = f'{constants.RECORDED_VIDEO_FILE_LOCATION}{device}{constants.RECORDED_V…
/platform_testing/libraries/screenshot/scripts/
Ddeviceless_converter.py14 ret = subprocess.run([os.path.join(gradlew_dir, "gradlew"), f"{mc.gradlew_target}"],
47 outputFile = f"{cfg.output_dir}/{basename}.err"
71 for f in walkDir(os.path.join(cfg.build_top, d)):
72 if any(excl in f for excl in mc.excludes):
73 print("Ignore file:", f)
75 ret = processFile(f, cfg, mc)
76 (successful if ret else failed).append(f)
88 print(f"Processing module:{k}, module_config:{mc}")
92 print(f"Could not match any modules that match: [{args.module_pattern}], exiting ...")
102 print(f"Successes:\n{successful[:3]} ...")
[all …]
/platform_testing/libraries/screenshot/deviceless/layoutlib/tests/src/com/android/ide/common/resources/deprecated/
DTestFolderWrapper.java41 File f = files[i]; in listMembers() local
42 if (f.isFile()) { in listMembers()
43 afiles[i] = new TestFileWrapper(f); in listMembers()
44 } else if (f.isDirectory()) { in listMembers()
45 afiles[i] = new TestFolderWrapper(f); in listMembers()
/platform_testing/tests/bettertogether/quickstart/performance_test/
Dsetup_utils.py57 ad.log.info(f'Skipped setting wifi country code on device "{ad.serial}" '
61 ad.log.info(f'Set Wi-Fi and Telephony country code to {country_code}.')
66 f' --es country {country_code}'
68 ad.adb.shell(f'cmd wifi force-country-code enabled {country_code}')
78 ad.log.info(f'Telephony country code: {telephony_country_code}')
85 ad.adb.shell(f'setprop log.tag.{tag} VERBOSE')
96 f'Grant MANAGE_EXTERNAL_STORAGE permission on device "{ad.serial}".'
110 return {f'GMS core version on {ad.serial}': out}
167 f'appops set --uid {package_name} MANAGE_EXTERNAL_STORAGE allow'
209 f' packageName=\'{pname}\';"'
[all …]
Dnearby_connection_wrapper.py88 f'Start advertising {self.advertising_discovery_medium.value}'
98 f'Start discovery {self.advertising_discovery_medium.value}'
118 f'{endpoint_found_event}')
122 f'Received an unexpected service id during discovery: '
123 f'{endpoint_found_event}')
146 f' {keep_alive_timeout_ms}'
173 f'Received an incoming connection: {d_connection_init_event}'
179 f'Received an unexpected endpoint: {d_connection_init_event}')
192 f'Received an outgoing connection: {d_connection_init_event}'
198 f'Received an unexpected endpoint: {a_connection_init_event}')
[all …]
Dquick_start_stress_test.py151 f'{round(discoverer_wifi_latency.total_seconds())} s'
196 f'{round(advertiser_wlan_latency.total_seconds())} s')
360 f'{first_bt_transfer_stats.success_count}'
361 f' / {second_wifi_transfer_stats.success_count}'),
378 f'{first_bt_transfer_stats.percentile_50_kbps}'
379 f' / {first_bt_transfer_stats.percentile_95_kbps}'),
381 f'{second_wifi_transfer_stats.percentile_50_kbps}'
382 f' / {second_wifi_transfer_stats.percentile_95_kbps}'),
384 f'{first_discovery_stats.percentile_50}'
385 f' / {first_discovery_stats.percentile_95} (1st), '
[all …]
Dnearby_share_stress_test.py91 f'{round(discoverer_wifi_latency.total_seconds())} s'
97 f'{round(advertiser_wlan_latency.total_seconds())} s')
227 '1 Completed WiFi transfer': f'{wifi_transfer_stats.success_count}',
236 f'{wifi_transfer_stats.percentile_50_kbps}'
237 f' / {wifi_transfer_stats.percentile_95_kbps}'),
239 f'{discovery_stats.percentile_50}'
240 f' / {discovery_stats.percentile_95}'),
242 f'{connection_stats.percentile_50}'
243 f' / {connection_stats.percentile_95}'),
245 f'{medium_upgrade_stats.percentile_50}'
[all …]
Desim_transfer_stress_test.py108 f'{round(discoverer_wifi_latency.total_seconds())} s'
114 f'{round(advertiser_wlan_latency.total_seconds())} s')
210 '1 Completed BT transfer': f'{bt_transfer_stats.success_count}',
218 f'{bt_transfer_stats.percentile_50_kbps}'
219 f' / {bt_transfer_stats.percentile_95_kbps}'),
221 f'{discovery_stats.percentile_50}'
222 f' / {discovery_stats.percentile_95}'),
225 f'{connection_stats.percentile_50}'
226 f' / {connection_stats.percentile_95}'),
/platform_testing/tests/automotive/mobly_tests/perfromance/
Dpairing_test.py36 logging.info(f'{ITERATIONS_PARAM_NAME} is not in testbed config. Using default value')
37 …logging.info(f'Setup {self.__class__.__name__} with {ITERATIONS_PARAM_NAME} = {self.iterations} an…
43 logging.info(f'Pairing iteration {i}')
48 logging.error(f'Failed to pair devices on iteration {i}')
/platform_testing/libraries/sts-common-util/sts-sdk/package/native-poc/src/
Dnative-sample.cpp25 std::ifstream f(argv[1]); in main() local
26 if (f.is_open()) { in main()
28 std::cout << "Hello " << f.rdbuf() << "! " << argv[2] << std::endl; in main()
/platform_testing/libraries/app-helpers/spectatio/spectatio-util/src/android/platform/spectatio/configs/validators/
DValidateSpectatioConfigForUnknownProperties.java51 Field f = ReflectiveTypeAdapterFactory.Adapter.class.getDeclaredField("boundFields"); in create() local
52 f.setAccessible(true); in create()
55 new LinkedHashMap((Map) f.get(delegate)) { in create()
68 f.set(delegate, boundFieldsMap); in create()
/platform_testing/tests/bettertogether/betocq/compound_tests/
Dscc_5g_all_wifi_sta_test.py80 f'The upgraded wifi medium {upgraded_medium_name} might be broken, '
81 f'check the related logs; Or {self._get_throughput_low_tip()}'
92 f'{self._throughput_low_string}. The upgraded medium is'
93 f' {upgraded_medium_name}.'
Dmcc_5g_all_wifi_non_dbs_2g_sta_test.py84 f'The upgraded wifi medium {upgraded_medium_name} might be broken, '
85 f'check the related log, Or {self._get_throughput_low_tip()}'
96 f'{self._throughput_low_string}. The upgraded medium is'
97 f' {upgraded_medium_name} Check with the wifi chip vendor for any FW'
Dscc_5g_all_wifi_dbs_2g_sta_test.py84 f'The upgraded wifi medium {upgraded_medium_name} might be broken, '
85 f'check the related log, Or {self._get_throughput_low_tip()}'
96 f'{self._throughput_low_string}. The upgraded medium is'
97 f' {upgraded_medium_name}. This is a 5G SCC DBS case, In the'
Dscc_2g_all_wifi_sta_test.py88 f'The upgraded wifi medium {upgraded_medium_name} might be broken, '
89 f'check the related log; Or {self._get_throughput_low_tip()}'
100 f'{self._throughput_low_string}. The upgraded medium is'
101 f' {upgraded_medium_name}, this is a 2G SCC case. Check with the wifi'
/platform_testing/tests/bettertogether/betocq/function_tests/
Dfixed_wifi_medium_function_test_actor.py100 f'{round(discoverer_wifi_latency.total_seconds())} s'
110 f'{round(advertiser_wlan_latency.total_seconds())} s')
129 f'{self._test_failure_reason.name} - ',
137 f'{self._test_failure_reason.name} - ',
141 f'{self._test_failure_reason.name} - ',
151 return f'{self._wifi_medium_under_test.name}: the performance is too bad.'
Dbt_multiplex_function_test_actor.py46 f' {self.test_parameters.target_cuj_name}'
117 f'{self.test_parameters.target_cuj_name}'
131 f'FAIL: due to {self._test_failure_reason.name} - ',
132 f'{nc_constants.COMMON_TRIAGE_TIP.get(self._test_failure_reason)}'
/platform_testing/libraries/motion/golden_updater/
Dwatch_local_tests.py126 f"/data/user/0/{package}/files/{output_dir}/"
129 print(f"skipping wrongly formatted watch arg [{watching}]")
134 this_server_address = f"http://localhost:{args.port}"
139 uiAddress = f"{args.client_url}?token={secret_token}&port={args.port}"
140 print(f"Open UI at {uiAddress}")
242 with open(resolved_path, "rb") as f:
243 self.wfile.write(f.read())
266f"{this_server_address}/golden/{golden.checksum}/{golden.local_file[len(golden_watcher.temp_dir) +…
269 f"{this_server_address}/golden/{golden.checksum}/{golden.video_location}"
277 f"{this_server_address}/golden/{golden.checksum}/{golden.actual_image}"
[all …]
/platform_testing/scripts/map_tests/
Dmap_tests.py61 with open(MAP_PATH, "r", encoding="utf-8") as f:
62 test_mapping = json.loads("".join(f.readlines()))
111 with open(MAP_PATH, "w+", encoding="utf-8") as f:
112 f.write(out + "\n")

1234