/ohos5.0/base/startup/init/services/modules/seccomp/scripts/tools/ |
H A D | libc_static_analysis.py | 106 line = line.strip() 117 if is_find_svc and 'mov' in line and (svc_reg in line or svc_reg1 in line): 122 addr = line[:line.find(' ')] 124 func_name = line[line.find('<') + 1: line.rfind('>')] 147 line = line.strip() 158 if is_find_syscall and 'mov' in line and (syscall_reg in line or syscall_reg1 in line): 170 addr = line[:line.find(' ')] 172 func_name = line[line.find('<') + 1: line.rfind('>')] 197 line = line.strip() 203 caller_addr = line[:line.find(' ')] [all …]
|
H A D | merge_policy.py | 71 def update_parse_item(self, line): argument 72 item = line[1:] 77 def parse_line(self, line): argument 80 line = line.replace(' ', '') 81 pos = line.rfind(';') 94 for line in fp: 95 line = line.strip() 96 if not line: 98 if line[0] == '#': 100 if line[0] == '@': [all …]
|
/ohos5.0/foundation/communication/dsoftbus/core/common/dfx/event/src/ |
H A D | softbus_event_virtual.c | 26 (void)line; in ConnEventInner() 34 (void)line; in ConnAlarmInner() 42 (void)line; in ConnStatsInner() 50 (void)line; in ConnAuditInner() 59 (void)line; in DiscEventInner() 67 (void)line; in DiscAlarmInner() 75 (void)line; in DiscStatsInner() 83 (void)line; in DiscAuditInner() 97 (void)line; in LnnEventInner() 105 (void)line; in LnnAlarmInner() [all …]
|
/ohos5.0/drivers/hdf_core/framework/tools/hdf_dev_eco_tool/command_line/ |
H A D | hdf_dot_config_file.py | 18 def __init__(self, index, line): argument 20 self.line = line 49 line = self.cache.get(item).line 50 return index, line 54 line_ = line.strip() 60 def _is_line_enabled(line): argument 69 index, line = self._find(item) 70 if line: 85 index, line = self._find(item) 86 if not line: [all …]
|
H A D | hdf_vendor_kconfig_file.py | 55 for line in self.lines: 56 match_obj = self.line_re.search(line) 64 for index, line in enumerate(self.lines): 65 if line_part in line: 66 return index, line 71 index, line = self._find_line("model/" + module_k_part) 72 if line: 83 self.lines.insert(file_index - 1, line) 93 index, line = self._find_line(line_part) 94 if line: [all …]
|
H A D | hdf_liteos_scann.py | 111 for line in model_build_lines: 146 if line.strip().endswith("="): 147 temp_str = line.strip() + \ 151 temp_str = line.strip() 210 if line.strip().endswith("="): 211 temp_str = line.strip() + \ 216 temp_str = line.strip() 286 elif line.strip() == "}": 353 temp_list.append(line) 360 elif line.strip() == "]": [all …]
|
/ohos5.0/foundation/multimedia/drm_framework/services/utils/ |
H A D | drm_api_operation.cpp | 48 std::string line; in LoadConfigurationFile() local 50 line = Trim(line); in LoadConfigurationFile() 51 if (!line.empty() && line[0] != '#') { in LoadConfigurationFile() 127 std::string line; in ParseReportConfig() local 129 line = Trim(line); in ParseReportConfig() 149 std::string line; in ParseEvent() local 151 line = Trim(line); in ParseEvent() 171 std::string line; in ParseEventConfig() local 173 line = Trim(line); in ParseEventConfig() 192 std::string line; in ParseApiOperationManagement() local [all …]
|
/ohos5.0/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_toolkit/config/ |
H A D | wifi_config_file_impl.h | 117 std::string line; in ReadFile() local 120 TrimString(line); in ReadFile() 121 if (line.empty()) { in ReadFile() 124 if (line[0] == '[' && line[line.length() - 1] == '{') { in ReadFile() 280 while (std::getline(fs, line)) { in ReadNetworkSection() 281 TrimString(line); in ReadNetworkSection() 282 if (line.empty()) { in ReadNetworkSection() 290 if (line[0] == '<' && line[line.length() - 1] == '>') { in ReadNetworkSection() 317 TrimString(line); in ReadNetwork() 318 if (line.empty()) { in ReadNetwork() [all …]
|
/ohos5.0/docs/en/application-dev/reference/apis-arkgraphics2d/ |
H A D | drawing__text__line_8h.md | 6 … obtaining the character position in a text line, obtaining the run information, and truncating te… 33 …line) | Releases the memory occupied by a text line object. This is applicable only to text line o… 34 …g_array) \*lines, size_t index) | Obtains the text line object with the specified index in a text … 35 …wing_textlinegetglyphcount) (OH_Drawing_TextLine \*line) | Obtains the number of glyphs in a text … 36 …ttextrange) (OH_Drawing_TextLine \*line, size_t \*start, size_t \*end) | Obtains the range of the … 37 …ing_textlinegetglyphruns) (OH_Drawing_TextLine \*line) | Obtains the array of glyph runs in a text… 40 …(OH_Drawing_TextLine \*line, [OH_Drawing_Canvas](_drawing.md#oh_drawing_canvas) \*canvas, double x… 41 …catedline) (OH_Drawing_TextLine \*line, double width, int mode, const char \*ellipsis) | Creates a… 44 …ttrailingspacewidth) (OH_Drawing_TextLine \*line) | Obtains the width of the spaces at the end of … 45 …Line \*line, [OH_Drawing_Point](_drawing.md#oh_drawing_point) \*point) | Obtains the index of a ch… [all …]
|
/ohos5.0/base/security/selinux_adapter/scripts/ |
H A D | build_ignore_cfg.py | 69 for line in lines: 73 if line.endswith(b"\r\n") or line.endswith(b"\r"): 110 line = line.strip() 111 if not line: 114 if len(line) >= len(existing_line) and line.startswith(existing_line): 116 elif len(line) < len(existing_line) and existing_line.startswith(line): 118 lines.append(line) 120 lines.append(line) 136 for line in lines: 137 if line and not line.startswith("#"): [all …]
|
/ohos5.0/base/hiviewdfx/faultloggerd/test/unittest/unwind/ |
H A D | elf_imitate.cpp | 583 std::string line {}; in ParseSectionHeaders() local 611 std::string tmpLine = line.substr(pos, line.length() - pos); in ParseSectionHeaders() 656 std::string line {}; in GetNextPhdrLine() local 662 line = ""; in GetNextPhdrLine() 670 return line; in GetNextPhdrLine() 676 std::string line {}; in GetNextShdrLine() local 682 line = ""; in GetNextShdrLine() 691 return line; in GetNextShdrLine() 766 std::string line {}; in GetNextSymLine() local 772 line = ""; in GetNextSymLine() [all …]
|
/ohos5.0/base/telephony/core_service/utils/vcard/src/ |
H A D | vcard_decoder_v21.cpp | 136 if (line == "") { in ReadBegin() 164 if (line == "") { in ParseItem() 246 …if (line.empty() || line[0] != ' ' || VCardUtils::ToUpper(line).find("END:VCARD") != std::string::… in DealV21Value() 306 std::string line = ""; in GetLine() local 308 return line; in GetLine() 313 std::string line = ""; in PeekLine() local 315 return line; in PeekLine() 320 std::string line = ""; in GetNonEmptyLine() local 322 line = VCardUtils::Trim(line); in GetNonEmptyLine() 327 return line; in GetNonEmptyLine() [all …]
|
/ohos5.0/foundation/communication/dhcp/services/dhcp_client/src/ |
H A D | dhcp_result_store_manager.cpp | 88 std::string line; in LoadAllIpCached() local 90 while (std::getline(fs, line)) { in LoadAllIpCached() 91 TrimString(line); in LoadAllIpCached() 92 if (line.empty()) { in LoadAllIpCached() 95 if (line[0] == '[' && ((line.length() > 0) && (line[line.length() - 1] == '{'))) { in LoadAllIpCached() 113 TrimString(line); in ReadNetworkSection() 114 if (line.empty()) { in ReadNetworkSection() 117 if (line[0] == '<' && ((line.length() > 0) && (line[line.length() - 1] == '>'))) { in ReadNetworkSection() 142 TrimString(line); in ReadNetwork() 143 if (line.empty()) { in ReadNetwork() [all …]
|
/ohos5.0/drivers/hdf_core/adapter/uhdf2/manager/src/ |
H A D | devmgr_dump.c | 202 char line[LINE_SIZE]; in DevMgrFillDeviceHostInfo() local 204 (void)memset_s(line, sizeof(line), ' ', sizeof(line)); in DevMgrFillDeviceHostInfo() 205 if (memcpy_s(line, sizeof(line), name, strlen(name)) != EOK) { in DevMgrFillDeviceHostInfo() 214 if (sprintf_s(&line[hostIdAlign], sizeof(line) - hostIdAlign, ":0x%x\n", hostId) == -1) { in DevMgrFillDeviceHostInfo() 225 char line[LINE_SIZE]; in DevMgrFillDeviceInfo() local 243 (void)memset_s(line, sizeof(line), ' ', sizeof(line)); in DevMgrFillDeviceInfo() 254 … int32_t devIdLen = sprintf_s(&line[devIdAlign], sizeof(line) - devIdAlign - 1, ":0x%x", devId); in DevMgrFillDeviceInfo() 281 char line[LINE_SIZE]; in DevMgrFillServiceInfo() local 295 (void)memset_s(line, sizeof(line), ' ', sizeof(line)); in DevMgrFillServiceInfo() 296 if (memcpy_s(line, sizeof(line), servName, strlen(servName)) != EOK) { in DevMgrFillServiceInfo() [all …]
|
/ohos5.0/build/hb/util/post_gn/ |
H A D | check_compilation_parameters.py | 25 def parse_cflags(line, cflags_check_list, whitelist): argument 27 for flag in line.split(): 35 def parse_ldflags(line, ldflags_check_list, whitelist): argument 37 for flag in line.split(): 47 for line in file: 48 … if line.startswith('cflags') or line.startswith('cflags_cc') or line.startswith('cflags_c'): 50 elif line.startswith('ldflags'): 52 elif line.startswith('label_name'): 53 label_name = line.split()[2] 54 elif line.startswith('target_out_dir'): [all …]
|
/ohos5.0/base/hiviewdfx/hiview/utility/common_utils/ |
H A D | tbox.cpp | 83 bool Tbox::IsCallStack(const string& line) in IsCallStack() argument 86 regex_search(line, regex("^\\s*at .*")) || in IsCallStack() 88 regex_search(line, regex("\\s+#\\d+")) || in IsCallStack() 90 regex_search(line, regex("#\\d+")) || in IsCallStack() 91 regex_search(line, regex("\\.*"))) { in IsCallStack() 97 bool Tbox::HasCausedBy(const string& line) in HasCausedBy() argument 99 if ((line.find(CAUSEDBY_HEADER) != string::npos) || in HasCausedBy() 110 string Tbox::GetStackName(const string& line) in GetStackName() argument 114 if (GetPartial(line, "^\\s+at (.*)\\).*", str) || in GetStackName() 128 } else if (IsCallStack(line)) { in GetStackName() [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/interfaces/innerkits/src/ |
H A D | scene_board_judgement.cpp | 33 std::ifstream& SceneBoardJudgement::SafeGetLine(std::ifstream& configFile, std::string& line) in SafeGetLine() argument 35 std::getline(configFile, line); in SafeGetLine() 36 if (line.size() && line[line.size() - 1] == '\r') { in SafeGetLine() 37 line = line.substr(0, line.size() - 1); in SafeGetLine() 45 std::string line; in InitWithConfigFile() local 46 if (configFile.is_open() && SafeGetLine(configFile, line) && line == "ENABLED") { in InitWithConfigFile()
|
/ohos5.0/foundation/multimedia/av_codec/test/unittest/resources/demuxer_res/ |
H A D | webvtt_test2.vtt | 4 00:00:00.030 --> 00:00:01.110 position:50% line:94% align:middle 7 00:00:02.030 --> 00:00:02.500 position:50% line:94% align:middle 10 00:00:02.900 --> 00:00:02.990 position:50% line:94% align:middle 13 00:00:03.000 --> 00:00:03.500 position:50% line:94% align:middle 16 00:00:10.100 --> 00:00:15.500 position:50% line:94% align:middle 19 00:00:13.000 --> 00:00:23.003 position:50% line:94% align:middle 22 00:00:30.123 --> 00:00:31.111 position:50% line:94% align:middle 25 00:00:35.123 --> 00:01:00.111 position:50% line:94% align:middle 28 00:00:35.123 --> 00:01:00.111 position:50% line:94% align:middle 31 00:01:04.223 --> 00:01:05.111 position:50% line:94% align:middle
|
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-svg-line.md | 1 # line chapter 8 The **\<line>** component is used to draw a line. 29 | x2 | <length>\|<percentage> | - | No| X-coordinate of the end point of the line. Attr… 30 | y2 | <length>\|<percentage> | - | No| Y-coordinate of the end point of the line. Attr… 39 <line x1="10" x2="300" y1="50" y2="50" stroke-width="4" fill="white" stroke="blue"></line> 40 <line x1="10" x2="300" y1="100" y2="100" stroke-width="4" fill="white" stroke="blue"></line> 41 … <line x1="10" x2="300" y1="150" y2="150" stroke-width="10" stroke="red" stroke-dasharray="5 3" 42 stroke-dashoffset="3"></line> 44 …<line x1="10" x2="300" y1="200" y2="200" stroke-width="10" stroke="black" stroke-linecap="round"><… 46 …<line x1="10" x2="300" y1="220" y2="220" stroke-width="10" stroke="black" stroke-linecap="butt"></… [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-js/ |
H A D | js-components-svg-line.md | 1 # line chapter 38 <line x1="10" x2="300" y1="50" y2="50" stroke-width="4" fill="white" stroke="blue"></line> 39 <line x1="10" x2="300" y1="100" y2="100" stroke-width="4" fill="white" stroke="blue"></line> 40 … <line x1="10" x2="300" y1="150" y2="150" stroke-width="10" stroke="red" stroke-dasharray="5 3" 41 stroke-dashoffset="3"></line> 43 …<line x1="10" x2="300" y1="200" y2="200" stroke-width="10" stroke="black" stroke-linecap="round"><… 45 …<line x1="10" x2="300" y1="220" y2="220" stroke-width="10" stroke="black" stroke-linecap="butt"></… 47 …<line x1="10" x2="300" y1="240" y2="240" stroke-width="10" stroke="black" stroke-linecap="square">…
|
/ohos5.0/build/tools/component_tools/static_check/ |
H A D | csct_online_prehandle.py | 37 def __diff_match_file_start(control_block: dict, line: str): 39 if not line.startswith(pattern): 53 if not line.startswith(pattern): 62 if re.match(pattern, line) is None: 71 if re.match(pattern, line) is None: 75 if re.search(key, line) is not None: 77 res = re.match(pattern, line) 93 res = re.match(pattern, line) 105 res = re.match(pattern2, line) 138 for line in gitee_pr_diff.splitlines(): [all …]
|
/ohos5.0/build/tools/component_tools/static_check/gn_check/ |
H A D | check_gn_online.py | 45 for line in values: 46 pos = line[0] 47 content = line[1] 73 if line[1].find(check_item) != -1 and line[1].find("==") != -1: 80 pos = "line:{} {}".format(line[0], line[1]) 101 pos = "line:{} {}".format(line[0], line[1]) 109 for line in modified_line: 115 target_pos = line[2].find(start_target) 184 for line in values: 187 self.check_have_product_name(key, line) [all …]
|
/ohos5.0/base/hiviewdfx/hiview/plugins/reliability/bbox_detectors/ |
H A D | bbox_detector_plugin.cpp | 134 string line; in StartBootScan() local 141 while (FileUtil::GetLastLine(fin, line) && num > 0) { in StartBootScan() 143 std::map<std::string, std::string> historyMap = GetValueFromHistory(line); in StartBootScan() 161 auto happenTime = GetHappenTime(line); in StartBootScan() 168 uint64_t BBoxDetectorPlugin::GetHappenTime(std::string& line) in GetHappenTime() argument 203 StringUtil::GetMidSubstr(line, "category[", "]")}, in GetValueFromHistory() 205 StringUtil::GetMidSubstr(line, "module[", "]")}, in GetValueFromHistory() 207 StringUtil::GetMidSubstr(line, "event[", "]")}, in GetValueFromHistory() 209 StringUtil::GetMidSubstr(line, "errdesc[", "]")}, in GetValueFromHistory() 211 BBOXPATH + StringUtil::GetMidSubstr(line, "time[", "]")}, in GetValueFromHistory() [all …]
|
/ohos5.0/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/test/ |
H A D | decorator_test.cpp | 130 bool IsMatchAnyRegex(const std::string& line, const std::vector<std::regex>& regs) in IsMatchAnyRegex() argument 132 …return std::any_of(regs.begin(), regs.end(), [line](std::regex reg) {return regex_match(line, reg)… in IsMatchAnyRegex() 138 if (strncmp(line.c_str(), name.c_str(), strlen(name.c_str())) == 0) { in RemoveCollectorNameIfMatched() 153 std::string line; in CheckContent() local 154 while (getline(file, line)) { in CheckContent() 155 if (line.size() > 0 && line[line.size() - 1] == '\r') { in CheckContent() 156 line.erase(line.size() - 1, 1); in CheckContent() 158 if (line.size() == 0) { in CheckContent() 161 if (!IsMatchAnyRegex(line, regs)) { in CheckContent() 163 std::cout << "line:" << line << " not match" << std::endl; in CheckContent() [all …]
|
/ohos5.0/foundation/bundlemanager/app_domain_verify/interfaces/kits/js/src/ |
H A D | config_parser.cpp | 43 std::string line; in load() local 44 while (std::getline(file, line)) { in load() 45 if (line.size() > MAX_LINE_SIZE) { in load() 49 line = trim(line); in load() 50 if (line.empty() || line[0] == ';' || line[0] == '#') { in load() 54 auto delimiterPos = line.find('='); in load() 56 std::string key = trim(line.substr(0, delimiterPos)); in load() 57 std::string value = trim(line.substr(delimiterPos + 1)); in load()
|