/test/testfwk/xdevice/src/xdevice/_core/executor/ |
D | source.py | 67 def find_test_descriptors(config): argument 68 if not config.testfile and not config.testlist and not config.task and \ 69 not config.testcase and not config.subsystems and \ 70 not config.parts: 74 testcases_dirs = _get_testcases_dirs(config) 75 test_sources = _get_test_sources(config, testcases_dirs) 80 config) 84 config) 88 def _get_testcases_dirs(config): argument 92 if getattr(config, ConfigConst.testcases_path, ""): [all …]
|
D | request.py | 69 def __init__(self, root=None, drivers=None, config=None): argument 72 self.config = config or Config() 74 def init(self, config): argument 80 self.config.update(config.__dict__) 81 if getattr(config, ConfigConst.report_path, "") == "": 84 Variables.task_name = config.report_path 96 self.config.kits = [] 97 if getattr(config, "task", ""): 98 task_file = config.task + self.TASK_CONFIG_SUFFIX 102 self.config.top_dir = Variables.top_dir [all …]
|
D | scheduler.py | 114 config = Config() 115 config.update(args) 117 task.init(config) 121 root_descriptor = self._find_test_root_descriptor(task.config) 135 task.config.report_path)) 139 if getattr(task.config, ConfigConst.test_environment, ""): 140 self._reset_environment(task.config.get( 142 elif getattr(task.config, ConfigConst.configfile, ""): 143 self._reset_environment(config_file=task.config.get( 147 if getattr(task.config, ConfigConst.repeat, 0) > 0: [all …]
|
D | concurrent.py | 128 self.reset_device(driver_request.config) 149 def reset_device(config): argument 150 if getattr(config, "reboot_per_module", False): 151 for device in config.environment.devices: 183 self._write_device_to_report(execute_result, driver.config.environment) 185 if getattr(self.task.config, "history_report_path", ""): 242 driver_request.config, ConfigConst.check_device, False): 248 if hasattr(driver_request.config, ConfigConst.module_config) and \ 249 getattr(driver_request.config, ConfigConst.module_config, None): 250 module_config_path = getattr(driver_request.config, ConfigConst.module_config, None) [all …]
|
/test/xts/acts/distributeddatamgr/relationalStoretest/relationalStoreNdktest/entry/src/main/cpp/ |
D | rdb.cpp | 36 static OH_Rdb_Config config; in GetConfig() local 37 config.dataBaseDir = "/data/storage/el2/base/files/"; in GetConfig() 38 config.storeName = "RdbTest.db"; in GetConfig() 39 config.bundleName = "xxx"; in GetConfig() 40 config.moduleName = "xxx"; in GetConfig() 41 config.securityLevel = OH_Rdb_SecurityLevel::S1; in GetConfig() 42 config.isEncrypt = false; in GetConfig() 43 config.selfSize = sizeof(OH_Rdb_Config); in GetConfig() 44 return config; in GetConfig() 107 OH_Rdb_Config config = GetConfig(); in GetOrOpenOne() local [all …]
|
/test/testfwk/xdevice/plugins/ohos/src/ohos/drivers/ |
D | openharmony.py | 103 self.config = None 114 def __check_config__(self, config): argument 121 self.config = request.config 122 self.config.device = request.config.environment.devices[0] 127 os.path.join(request.config.report_path, 130 request.config.report_path, 131 request.config.device.__get_serial__(), 135 request.config.report_path, 136 request.config.device.__get_serial__(), 143 self.config.device.device_log_collector.add_log_address(self.device_log, self.hilog) [all …]
|
D | drivers_lite.py | 118 config = None variable in CppTestDriver 133 def __check_config__(self, config=None): argument 139 request.config.report_path, 142 self.config = request.config 144 self.config.device = request.config.environment.devices[0] 153 request.config.resource_path, 154 request.config.testcases_path) 160 kit.__setup__(request.config.device, request=request) 166 if self.config.xml_output: 167 self.delete_device_xml(request, self.config.device_xml_path) [all …]
|
D | drivers.py | 80 def get_xml_output(config, json_config): argument 81 xml_output = config.testargs.get("xml-output") 249 self.config = None 262 def __check_config__(self, config): argument 269 self.config = request.config 270 self.config.device = request.config.environment.devices[0] 274 os.path.join(request.config.report_path, 278 request.config.report_path, 279 request.config.device.__get_serial__() + "_" + request. 284 request.config.report_path, [all …]
|
/test/testfwk/developer_test/src/core/driver/ |
D | drivers.py | 48 from core.config.resource_manager import ResourceManager 49 from core.config.config_manager import FuzzerConfigManager 317 def __init__(self, testsuit_path, config): argument 319 self.config = config 320 self.result_rootpath = self.config.report_path 321 self.device = self.config.device 323 self.device_testpath = self.config.test_hap_out_path 325 self.device_testpath = self.config.target_test_path 335 if "fuzztest" == self.config.testtype[0]: 345 if "benchmark" == self.config.testtype[0]: [all …]
|
D | lite_driver.py | 45 from core.config.resource_manager import ResourceManager 46 from core.config.config_manager import UserConfigManager 75 config = None variable in LiteUnitTest 89 def __check_config__(self, config): argument 97 self.log.error("Lite driver check config:{}".format(config)) 112 self.lite_device = request.config.environment.devices[0] 177 self.config = request.config 178 test_para = self._get_test_para(self.config.testcase, 179 self.config.testlevel) 221 if request.config is None: [all …]
|
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 config("config") { 29 config("public_config") { 40 configs = [ ":config" ] 54 configs = [ ":config" ] 68 configs = [ ":config" ] 85 configs = [ ":config" ] 99 configs = [ ":config" ] 113 configs = [ ":config" ] 127 configs = [ ":config" ] [all …]
|
/test/testfwk/xdevice/src/xdevice/_core/testkit/ |
D | json_parser.py | 60 self.config = Config() 83 self.config = Config() 84 self.config.description = json_content.get("description", "") 85 self.config.kits = json_content.get("kits", []) 86 self.config.environment = json_content.get("environment", []) 87 self.config.driver = json_content.get("driver", {}) 106 return self.config 109 return getattr(self.config, "description", "") 112 return getattr(self.config, "kits", []) 115 return getattr(self.config, "environment", []) [all …]
|
/test/xts/acts/graphic/graphicGlesExtension/ |
D | graphicGlesExtension.cpp | 52 EGLConfig config; variable 66 eglChooseConfig(display, attribs, &config, 1, &numConfigs); 67 context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL); 68 surfaceCache = eglCreatePbufferSurface(display, config, NULL); 112 EGLConfig config; variable 126 eglChooseConfig(display, attribs, &config, 1, &numConfigs); 127 context = eglCreateContext(display, config, EGL_NO_CONTEXT, NULL); 128 surfaceCache = eglCreatePbufferSurface(display, config, NULL); 172 EGLConfig config; variable 186 eglChooseConfig(display, attribs, &config, 1, &numConfigs); [all …]
|
/test/xts/acts/arkui/ace_ets_component_ui/entry/src/main/ets/MainAbility/pages/ |
D | ParticleProperty.ets | 30 config:{ 47 config:[ 67 config:[ 88 config:[ 110 config:[{ 139 config:[ 155 config:{ 172 config:[ 192 config:[ 209 config:[ [all …]
|
/test/xts/acts/communication_lite/wifiservice_hal/src/ |
D | wifiservice_func_test.c | 244 WifiDeviceConfig config[WIFI_MAX_CONFIG_SIZE] = {0}; in WifiServiceFuncTestSuiteSetUp() local 246 error = GetDeviceConfigs(config, &size); in WifiServiceFuncTestSuiteSetUp() 251 if (&config[i] != NULL) { in WifiServiceFuncTestSuiteSetUp() 252 RemoveDevice(config[i].netId); in WifiServiceFuncTestSuiteSetUp() 365 WifiDeviceConfig config = {0}; variable 367 int ret = strncpy_s(config.ssid, WIFI_MAX_SSID_LEN, ssid, strlen(ssid)); 370 config.securityType = WIFI_SEC_TYPE_OPEN; 371 WifiErrorCode error = AddDeviceConfig(&config, &netId); 399 WifiDeviceConfig config = {0}; variable 400 config.freq = 20; [all …]
|
/test/xts/acts/ability/crossplatform/ability_runtime/actscontexttest/src/main/ets/test/actsConfigurationTest/ |
D | Configuration.test.ets | 53 … expect(context.config.colorMode).assertEqual(configurationConstant.ColorMode.COLOR_MODE_NOT_SET); 55 … expect(context.config.colorMode).assertEqual(configurationConstant.ColorMode.COLOR_MODE_DARK); 56 …expect(context.config.colorMode != configurationConstant.ColorMode.COLOR_MODE_NOT_SET).assertTrue(… 57 … expect(context.config.colorMode != configurationConstant.ColorMode.COLOR_MODE_LIGHT).assertTrue(); 59 … expect(context.config.colorMode).assertEqual(configurationConstant.ColorMode.COLOR_MODE_LIGHT); 60 …expect(context.config.colorMode != configurationConstant.ColorMode.COLOR_MODE_NOT_SET).assertTrue(… 61 … expect(context.config.colorMode != configurationConstant.ColorMode.COLOR_MODE_DARK).assertTrue(); 86 … expect(context.config.direction).assertEqual(configurationConstant.Direction.DIRECTION_NOT_SET); 88 … expect(context.config.direction).assertEqual(configurationConstant.Direction.DIRECTION_VERTICAL); 89 …expect(context.config.direction != configurationConstant.Direction.DIRECTION_NOT_SET).assertTrue(); [all …]
|
/test/xts/acts/graphic/graphicEGL/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 import("$graphic_2d_root/rosen/modules/2d_engine/rosen_text/config.gni") 20 config("config") { 29 config("public_config") { 40 configs = [ ":config" ]
|
/test/xts/acts/graphic/graphicGLES3/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 import("$graphic_2d_root/rosen/modules/2d_engine/rosen_text/config.gni") 20 config("config") { 29 config("public_config") { 40 configs = [ ":config" ]
|
/test/xts/acts/ability/ability_runtime/apicover/apicoverhaptest/entry/src/main/ets/MainAbility/ |
D | MainAbility.ts | 64 onConfigurationUpdate(config) { 65 console.log('[Demo] MainAbility onConfigurationUpdate: ' + this.context.config.language) 66 console.log('[Demo] MainAbility onConfigurationUpdate: ' + config.language) 81 if (this.context.config.language == "English" && config.language == "zh-Hans") {
|
/test/xts/acts/hiviewdfx/hiview/faultlogger/faultloggerjs/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 config("config") { 29 config("public_config") { 37 configs = [ ":config" ]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlenativetest/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 17 config("config") { 28 config("public_config") { 39 configs = [ ":config" ]
|
/test/xts/acts/bundlemanager/bundle_standard/bundlemanager/actsbundlenativeninthapitest/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 17 config("config") { 28 config("public_config") { 37 configs = [ ":config" ]
|
/test/xts/acts/multimedia/image/image_js_standard/image_ndk_test/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 config("config") { 29 config("public_config") { 38 configs = [ ":config" ]
|
/test/xts/acts/arkui/ace_napi_test/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 config("config") { 29 config("public_config") { 41 configs = [ ":config" ]
|
/test/xts/acts/global/global_napi_test/entry/src/main/cpp/ |
D | BUILD.gn | 14 import("//build/config/ohos/config.gni") 18 config("config") { 29 config("public_config") { 37 configs = [ ":config" ]
|