/developtools/integration_verification/DeployDevice/src/util/ |
H A D | config.py | 73 SHORT_TIMEOUT = int(adb_config_param.get('SHORT_TIMEOUT')) 74 INSTALL_APK_TIMEOUT = int(adb_config_param.get('INSTALL_APK_TIMEOUT')) 75 REMOTE_PATH_MAX_LENGTH = int(adb_config_param.get('REMOTE_PATH_MAX_LENGTH')) 76 SYNC_DATA_MAX = int(adb_config_param.get('SYNC_DATA_MAX')) 77 ID_OKAY = adb_config_param.get('ID_OKAY').encode('ascii') 78 ID_FAIL = adb_config_param.get('ID_FAIL').encode('ascii') 79 ID_STAT = adb_config_param.get('ID_STAT').encode('ascii') 80 ID_RECV = adb_config_param.get('ID_RECV').encode('ascii') 81 ID_DATA = adb_config_param.get('ID_DATA').encode('ascii') 82 ID_DONE = adb_config_param.get('ID_DON [all...] |
/developtools/smartperf_host/trace_streamer/test/unittest/ptreader_parser/ |
H A D | event_parser_test.cpp | 73 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 101 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 124 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 147 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 170 BytraceEventParser eventParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() [all...] |
H A D | ptreader_parser_test.cpp | 56 PtreaderParser ptreaderParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 75 if (memcpy_s(buf.get(), bufSize, " \n", realBufSize)) { in HWTEST_F() 79 PtreaderParser ptreaderParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 100 if (memcpy_s(buf.get(), bufSize, "0123456789\n", realBufSize)) { in HWTEST_F() 104 PtreaderParser ptreaderParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 125 if (memcpy_s(buf.get(), bufSize, "TRACE: \n# tracer: nop \n# \n", realBufSize)) { in HWTEST_F() 129 PtreaderParser ptreaderParser(stream_.traceDataCache_.get(), stream in HWTEST_F() [all...] |
/developtools/smartperf_host/trace_streamer/src/trace_streamer/ |
H A D | trace_streamer_selector.cpp | 146 streamFilters_->animationFilter_ = std::make_unique<AnimationFilter>(traceDataCache_.get(), streamFilters_.get()); in InitFilter() 147 streamFilters_->cpuFilter_ = std::make_unique<CpuFilter>(traceDataCache_.get(), streamFilters_.get()); in InitFilter() 148 streamFilters_->sliceFilter_ = std::make_unique<SliceFilter>(traceDataCache_.get(), streamFilters_.get()); in InitFilter() 150 streamFilters_->processFilter_ = std::make_unique<ProcessFilter>(traceDataCache_.get(), streamFilters_.get()); in InitFilter() 151 streamFilters_->clockFilter_ = std::make_unique<ClockFilterEx>(traceDataCache_.get(), streamFilters_.get()); in InitFilter() [all...] |
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/src/ |
H A D | misc.py | 16 # This file is for get the mapping relationship of subsystem_name/component_name 59 black_list = _config.get("black_list") 141 hap_name = unit.get("hap_name") 142 mode = unit.get("mode") 152 extension = _config.get("default_extension").get("app") 153 gn_hap_name = unit.get("hap_name") 166 prefix = _config.get("default_prefix").get("shared_library") 167 if unit.get("extensio [all...] |
H A D | rom_analysis.py | 157 root_dir = product_dir.get("root") 159 relative_dir: Dict[str, str] = product_dir.get("relative") 174 if product_dir.get("rest"): 192 size = unit.get("size") 193 if not rom_size_dict.get("size"): # 总大小 195 if not rom_size_dict.get(sub): # 子系统大小 200 if not rom_size_dict.get(sub).get(com): # 部件 201 rom_size_dict.get(sub)[com] = dict() 207 and (not rom_size_dict.get(su [all...] |
/developtools/hapsigner/autosign/ |
H A D | autosign.py | 77 param = global_config.get(config_key, {}).get(item_key, None) 79 param = global_config.get('common', {}).get(item_key, None) 82 print('Prepare loading: {}, config: {}'.format(config_key, global_config.get(config_key))) 94 tar_dir = global_config.get('config', {}).get('targetDir') 99 template = templates.get(eng_v) 101 for required_key in template.get('required'): 108 for others_key in template.get('other [all...] |
/developtools/integration_verification/tools/startup_guard/config_parser_mgr/cfg/ |
H A D | config_parser.py | 53 def get(self, key): member in ItemParser 58 # get value form json array 85 self["jobId"] = parent.get("jobId") 116 self["serviceId"] = parent.get("serviceId") 119 self["condition"] = json_node.get("condition") 121 self._add_cmds(json_node.get("cmds"), fileId) 129 self["serviceId"] = parent.get("serviceId") 133 self._add_cmds(json_node.get("cmds"), fileId) 171 if not self.get("serviceId") : 182 for item in json_node.get("fil [all...] |
/developtools/syscap_codec/tools/ |
H A D | syscap_collector.py | 86 component_data = bundle_data.get("component") 87 component_syscaps_list = component_data.get("syscap") 132 path = path_dict.get(component) 135 if product_define_dict.get(product_name).get(component): 136 false_syscap = find_false_syscap(product_define_dict.get(product_name).get(component)) 158 component_relpath = parts_path_info.get(component_name) 171 get all syscap to dict 188 get subsyste [all...] |
/developtools/integration_verification/DeployDevice/src/func/liteOsUpgrade/ |
H A D | liteOsUpgrade_L0_app.py | 42 step_index = self.params_dict.get("step_list").index("liteOsUpgrade_L0_app") 54 if self.params_dict.get("isUpdate") == "False": 86 logger.printLog("get upgrade port is %s" % com_info[0]) 89 logger.printLog("get upgrade port is %s" % com_info[0]) 108 if self.params_dict.get("pbiid"): 109 local_image_path = os.path.join(version_savepath, "jarimg", "FASTBOOT", self.params_dict.get("version_type")) 136 if self.params_dict.get("pbiid"): 137 version_path = self.params_dict.get("pbiid") 138 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, str(self.params_dict.get("pbiid")) + "FASTBOOT")) 139 version_savepath = os.path.join(dir_path, self.params_dict.get("flash_typ [all...] |
H A D | liteOsUpgrade_L1_app.py | 50 step_index = self.params_dict.get("step_list").index("liteOsUpgrade_L1_app") 86 if self.params_dict.get("pbiid"): 87 version_path = self.params_dict.get("pbiid") 88 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, str(self.params_dict.get("pbiid")) + "FASTBOOT")) 89 version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name) 91 version_path = self.params_dict.get("upgrade_upgradeLocation") 92 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, (self.params_dict.get("upgrade_upgradeLocation")))) 95 if self.params_dict.get("isDownload") == "True": 113 if self.params_dict.get("upgrade_script"): 115 if not self.excutedown(self.params_dict.get("upgrade_scrip [all...] |
H A D | liteOsUpgrade_L3_app.py | 49 step_index = self.params_dict.get("step_list").index("liteOsUpgrade_L3_app") 89 if self.params_dict.get("pbiid"): 90 version_path = self.params_dict.get("pbiid") 91 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, str(self.params_dict.get("pbiid")) + "FASTBOOT")) 92 version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name) 94 version_path = self.params_dict.get("upgrade_upgradeLocation") 95 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, (self.params_dict.get("upgrade_upgradeLocation")))) 99 if self.params_dict.get("isDownload") == "True": 117 if self.params_dict.get("upgrade_script"): 119 if not self.excutedown(self.params_dict.get("upgrade_scrip [all...] |
H A D | liteOsUpgrade_L1_shequ_app copy.py | 53 step_index = self.params_dict.get("step_list").index("liteOsUpgrade_L1_shequ_app") 90 if self.params_dict.get("pbiid"): 91 version_path = self.params_dict.get("pbiid") 92 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, str(self.params_dict.get("pbiid")) + "FASTBOOT")) 93 version_savepath = os.path.join(dir_path, self.params_dict.get("flash_type"), version_name) 95 version_path = self.params_dict.get("upgrade_upgradeLocation") 96 version_name = str(uuid.uuid5(uuid.NAMESPACE_URL, (self.params_dict.get("upgrade_upgradeLocation")))) 99 if self.params_dict.get("isDownload") == "True": 145 if self.params_dict.get("bt_enable") and self.params_dict.get("bt_enabl [all...] |
/developtools/smartperf_host/trace_streamer/test/unittest/pbreader_parser/ |
H A D | pbreader_process_parser_test.cpp | 86 PbreaderProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 105 SetProcessesinfo(processData.get(), pid, name, ppid, uid); in HWTEST_F() 110 PbreaderProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 127 SetProcessesinfo(processData.get(), PID_01, NAME_01, PPID_01, UID_01); in HWTEST_F() 128 SetProcessesinfo(processData.get(), PID_02, NAME_02, PPID_02, UID_02); in HWTEST_F() 133 PbreaderProcessParser htraceProcessParser(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 156 SetProcessesinfo(processData.get(), PID_0 in HWTEST_F() [all...] |
/developtools/integration_verification/tools/rom_ram_analyzer/standard/ |
H A D | rom_analyzer.py | 110 unit: Dict[Text, Any] = product_info_dict.get( 114 unit: Dict[Text, Any] = product_info_dict.get(bf) 166 dest: List = unit.get("dest") 171 label: Text = unit.get("label") 177 component_name = unit.get("part_name") 178 subsystem_name = unit.get("subsystem_name") 198 pre_info = extra_info.get(tmp) 233 subsystem_dict = tmp_dict.get(subsystem_name) 234 subsystem_size = subsystem_dict.get("size") 235 subsystem_file_count = subsystem_dict.get("file_coun [all...] |
/developtools/hapsigner/hapsigntool_cpp/common/src/ |
H A D | byte_buffer.cpp | 60 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in ByteBuffer() 78 if (memset_s(buffer.get(), bufferCapacity, 0, bufferCapacity) != EOK) { in Init() 98 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in operator =() 140 SIGNATURE_TOOLS_LOGE("Failed to get Int64"); in GetInt64() 143 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int64_t)) != EOK) { in GetInt64() 157 return buffer.get(); in GetBufferPtr() 173 SIGNATURE_TOOLS_LOGE("Failed to get Int32"); in GetInt32() 176 if (memcpy_s(&value, sizeof(value), (buffer.get() + position + index), sizeof(int32_t)) != EOK) { in GetInt32() 186 SIGNATURE_TOOLS_LOGE("Failed to get UInt32"); in GetUInt32() 189 if (memcpy_s(&value, sizeof(value), (buffer.get() in GetUInt32() [all...] |
/developtools/packing_tool/adapter/ohos/ |
H A D | HapVerify.java | 121 if (!checkContinueTypeIsValid(hapVerifyInfos.get(i), hapVerifyInfos.get(j))) {
in checkContinueTypeIsValid() 135 List<String> typeList = hapVerifyInfo.getContinueTypeMap().get(abilityNames.get(i));
in checkContinueTypeIsValid() 140 List<String> typeList2 = hapVerifyInfo.getContinueTypeMap().get(abilityNames.get(j));
in checkContinueTypeIsValid() 146 abilityNames.get(i) + ") and Ability: (" +
in checkContinueTypeIsValid() 147 abilityNames.get(j) + ") have same continueType.");
in checkContinueTypeIsValid() 148 LOG.error("Ability: (" + abilityNames.get(i) + ") have continueType: " + typeList);
in checkContinueTypeIsValid() 149 LOG.error("Another Ability: (" + abilityNames.get( in checkContinueTypeIsValid() [all...] |
H A D | HQFVerify.java | 57 String bundleName = hqfVerifyInfos.get(0).getBundleName();
in checkAppFields() 58 int versionCode = hqfVerifyInfos.get(0).getVersionCode();
in checkAppFields() 59 String versionName = hqfVerifyInfos.get(0).getVersionName();
in checkAppFields() 60 int patchVersionCode = hqfVerifyInfos.get(0).getPatchVersionCode();
in checkAppFields() 61 String patchVersionName = hqfVerifyInfos.get(0).getPatchVersionName();
in checkAppFields() 96 if (checkModuleIsDuplicated(hqfVerifyInfos.get(i), hqfVerifyInfos.get(j))) {
in checkModuleIsValid()
|
H A D | BinaryTool.java | 57 appStream = new RandomAccessFile(absBinaryFilePath.get(), "rwd"); in generateBinaryFile() 58 if (!writePackageInfo(absPath.get(), appStream)) { in generateBinaryFile() 62 FileUtils.getFileList(absPath.get(), fileList); in generateBinaryFile() 65 writeFileInfo(absPath.get(), absPath.get(), isWindows, writeFileList, appStream); in generateBinaryFile() 78 FileUtils.deleteFile(absBinaryFilePath.get()); in generateBinaryFile() 100 int strLen = packageName.get().length(); in writePackageInfo() 102 appStream.writeBytes(packageName.get()); in writePackageInfo() 164 * get special value from JSON String 179 Optional<String> jsonStr = FileUtils.getFileContent(jsonFilePath.get()); in getValueFromJsonFileContent() [all...] |
/developtools/profiler/device/plugins/hisysevent_plugin/src/ |
H A D | hisysevent_plugin.cpp | 71 CHECK_NOTNULL(fp_.get(), -1, "HisyseventPlugin: fullCmd_ Failed, errno(%d)", errno); in Start() 109 fcntl(fileno(fp_.get()), F_SETPIPE_SZ, PIPE_SIZE); in Run() 110 int aPipeSize = fcntl(fileno(fp_.get()), F_GETPIPE_SZ); in Run() 111 PROFILER_LOG_INFO(LOG_CORE, "{fp = %d, aPipeSize=%d, PIPE_SIZE=%d}", fileno(fp_.get()), aPipeSize, PIPE_SIZE); in Run() 123 if (fgets(reinterpret_cast<char*>(buffer.get()), MAX_STRING_LEN, fp_.get()) != nullptr) { in Run() 124 cptr = reinterpret_cast<char*>(buffer.get()); in Run() 130 if (!ParseSyseventLineInfo(cptr, strlen(cptr), dataProto.get())) { in Run() 135 WriteResult(dataProto.get()); in Run() 139 if (!ParseSyseventLineInfo(cptr, strlen(cptr), hisyseventInfo.get())) { in Run() [all...] |
/developtools/smartperf_host/trace_streamer/test/unittest/ebpf/ |
H A D | ebpf_parser_test.cpp | 61 std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 79 std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 100 std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 124 std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() 149 std::make_unique<EbpfDataParser>(stream_.traceDataCache_.get(), stream_.streamFilters_.get()); in HWTEST_F() [all...] |
/developtools/integration_verification/DeployDevice/src/func/presetup/ |
H A D | presetup_app.py | 39 step_index = self.params_dict.get("step_list").index("presetup_app") 43 chip_type = self.params_dict.get("chip_type") 65 tel_IP = self.params_dict.get("Telnet_IP") 66 tel_port = self.params_dict.get("Telnet_Port") 67 device_ip = self.params_dict.get("Device_IP") 68 device_netmask = self.params_dict.get("Device_Netmask") 69 device_gatewayip = self.params_dict.get("Device_GatewayIP") 70 flash_type = self.params_dict.get("flash_type")
|
/developtools/profiler/device/services/profiler_service/test/unittest/ |
H A D | profiler_service_test.cpp | 122 return service_->StartSession(context_.get(), &request, &response); in StartSession() 132 return service_->StopSession(context_.get(), &request, &response); in StopSession() 142 return service_->DestroySession(context_.get(), &request, &response); in DestroySession() 159 auto status = service_->CreateSession(context_.get(), &request, &response); in CreateOnlineSession() 180 auto status = service_->CreateSession(context_.get(), &request, &response); in CreateOfflineSession() 199 * @tc.desc: get plugin capabilities normal. 215 auto status = service_->GetCapabilities(context_.get(), &request, response.get()); in HWTEST_F() 224 status = service_->GetCapabilities(context_.get(), &request, response.get()); in HWTEST_F() [all...] |
/developtools/integration_verification/tools/rom_ram_analyzer/lite_small/pkgs/ |
H A D | rom_ram_baseline_collector.py | 45 component_info = content.get("component") 49 component_name = component_info.get("name") 50 subsystem_name = component_info.get("subsystem") 51 rom_baseline = component_info.get("rom") 52 ram_baseline = component_info.get("ram") 63 if not result_dict.get(subsystem_name):
|
/developtools/integration_verification/tools/rom_ram_analyzer/standard/pkgs/ |
H A D | rom_ram_baseline_collector.py | 45 component_info = content.get("component") 49 component_name = component_info.get("name") 50 subsystem_name = component_info.get("subsystem") 51 rom_baseline = component_info.get("rom") 52 ram_baseline = component_info.get("ram") 63 if not result_dict.get(subsystem_name):
|