| /developtools/hdc/src/host/ |
| D | translate.cpp | 227 string ForwardPort(const char *input, FormatCommand *outCmd) in ForwardPort() argument 230 const char *pExtra = input + 6; // CMDSTR_FORWARD_FPORT CMDSTR_FORWARD_RPORT + " " size in ForwardPort() 231 …if (!strncmp(input, CMDSTR_FORWARD_FPORT.c_str(), CMDSTR_FORWARD_FPORT.size()) && !strcmp(pExtra, … in ForwardPort() 236 outCmd->parameters = input + 9; in ForwardPort() 239 const char *p = input + 6; in ForwardPort() 253 outCmd->parameters = input; in ForwardPort() 258 string RunMode(const char *input, FormatCommand *outCmd) in RunMode() argument 262 outCmd->parameters = input + CMDSTR_TARGET_MODE.size() + 1; // with ' ' in RunMode() 270 int port = atoi(input + strlen("tmode port ")); in RunMode() 279 void TargetReboot(const char *input, FormatCommand *outCmd) in TargetReboot() argument [all …]
|
| /developtools/ace_js2bundle/ace-loader/test/lite/testcase/pages/event/ |
| D | event.hml | 12 <input @click="handleInput('(')" /> 15 <input @click="handleInput('(')" /> 18 <input @click="handleInput(')')" /> 21 <input @click="handleInput(')')" /> 24 <input @click="handleInput('kk', value, 'dd')" /> 27 <input @click="handleInput(value, time , '(')" /> 30 <input @click="handleInput('(', value, time)" />
|
| /developtools/ace_js2bundle/ace-loader/test/rich/testcase/pages/expression/ |
| D | expression.hml | 44 <input value='{{"ABCDEFG".toLowerCase()}}'></input> 45 <input value="{{ns[1]}}"></input> 46 <input value="{{a.b.c.d}}"></input> 47 <input value="{{a.b.c[1]}}"></input> 48 <input value="{{(a.b.c)[1]}}"></input>
|
| /developtools/profiler/device/plugins/diskio_plugin/src/ |
| D | io_stats.cpp | 47 std::ifstream input(SYSTIME_PATH, std::ios::in); in GetSystime() local 48 …CHECK_TRUE(!input.fail(), systime, "%s:open %s failed, errno = %d", __func__, SYSTIME_PATH, errno); in GetSystime() 50 if (!input.good()) { in GetSystime() 54 getline(input, line); in GetSystime() 65 input.close(); in GetSystime() 83 std::ifstream input(CPU_PATH, std::ios::in); in ParseCpuStats() local 84 CHECK_TRUE(!input.fail(), false, "%s: open %s failed, errno = %d", __func__, CPU_PATH, errno); in ParseCpuStats() 86 if (!input.good()) { in ParseCpuStats() 90 getline(input, line); in ParseCpuStats() 97 } while (!input.eof()); in ParseCpuStats() [all …]
|
| /developtools/hdc/hdc_rust/src/serializer/ |
| D | serialize.rs | 110 fn parse(&mut self, input: Vec<u8>) -> io::Result<()> { in parse() 121 ptr: input.as_ptr() as *const libc::c_char, in parse() 122 size: input.len() as u64, in parse() 154 fn parse(&mut self, input: Vec<u8>) -> io::Result<()> { in parse() 158 ptr: input.as_ptr() as *const libc::c_char, in parse() 159 size: input.len() as u64, in parse() 206 fn parse(&mut self, input: Vec<u8>) -> io::Result<()> { in parse() 223 ptr: input.as_ptr() as *const libc::c_char, in parse() 224 size: input.len() as u64, in parse() 264 fn parse(&mut self, input: Vec<u8>) -> io::Result<()> { in parse() [all …]
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/zip/ |
| D | ZipEntryData.java | 65 try (FileInputStream input = new FileInputStream(file)) { in getZipEntry() argument 68 …byte[] headBytes = FileUtils.readInputByOffsetAndLength(input, entryOffset, ZipEntryHeader.HEADER_… in getZipEntry() 74 … byte[] fileNameBytes = FileUtils.readInputByLength(input, entryHeader.getFileNameLength()); in getZipEntry() 80 … byte[] extraBytes = FileUtils.readInputByLength(input, entryHeader.getExtraLength()); in getZipEntry() 89 input.skip(fileSize); in getZipEntry() 97 byte[] desBytes = FileUtils.readInputByLength(input, DataDescriptor.DES_LENGTH); in getZipEntry()
|
| /developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/utils/ |
| D | FileUtils.java | 127 public static byte[] read(InputStream input) throws IOException { in read() argument 131 while ((read = input.read(buffer)) != FILE_END) { in read() 136 close(input); in read() 149 try (FileInputStream input = new FileInputStream(file)) { in readFileByOffsetAndLength() argument 150 return readInputByOffsetAndLength(input, offset, length); in readFileByOffsetAndLength() 163 …public static byte[] readInputByOffsetAndLength(InputStream input, long offset, long length) throw… in readInputByOffsetAndLength() argument 164 input.skip(offset); in readInputByOffsetAndLength() 165 return readInputByLength(input, length); in readInputByOffsetAndLength() 175 public static byte[] readInputByLength(InputStream input, long length) throws IOException { in readInputByLength() argument 180 writeInputToOutPut(input, output, length); in readInputByLength() [all …]
|
| /developtools/smartperf_host/ide/src/trace/component/setting/ |
| D | SpSdkConfig.ts | 193 let input = this.selectConfig?.shadowRoot?.querySelector<HTMLInputElement>('#singleInput'); 194 if (input) { 200 this.changGpu(input!.value); 225 let input = document.createElement('input'); 226 input.className = 'sdk-config-input config'; 228 input.value = this.sdkConfigList.configuration[key]['default']; 230 input.setAttribute('configName', key); 231 input.setAttribute('type', this.sdkConfigList.configuration[key].type); 232 input.oninput = (): void => { 233 input.value = this.checkIntegerInput(input.value); [all …]
|
| /developtools/global_resource_tool/src/ |
| D | file_manager.cpp | 34 for (auto input : inputs) { in ScanModules() local 36 if (ScanModule(input, output, resTypeOfDirs) != RESTOOL_SUCCESS) { in ScanModules() 49 uint32_t FileManager::ScanModule(const string &input, const string &output, in ScanModule() argument 52 ResourceModule resourceModule(input, output, moduleName_); in ScanModule()
|
| /developtools/profiler/device/plugins/process_plugin/src/ |
| D | process_data_plugin.cpp | 390 std::ifstream input(path, std::ios::in); in ReadBootTime() local 391 … CHECK_TRUE(!input.fail(), false, "%s open %s failed, errno = %d", __func__, path.c_str(), errno); in ReadBootTime() 393 if (!input.good()) { in ReadBootTime() 397 getline(input, line); in ReadBootTime() 405 input.close(); in ReadBootTime() 438 std::ifstream input(path, std::ios::in); in ReadCpuUsage() local 439 … CHECK_TRUE(!input.fail(), false, "%s open %s failed, errno = %d", __func__, path.c_str(), errno); in ReadCpuUsage() 441 if (!input.good()) { in ReadCpuUsage() 445 getline(input, line); in ReadCpuUsage() 449 input.close(); in ReadCpuUsage() [all …]
|
| /developtools/syscap_codec/src/ |
| D | syscap_tool.c | 189 static int32_t ParseRpcidToJson(char *input, uint32_t inputLen, cJSON *rpcidJson) in ParseRpcidToJson() argument 193 uint16_t sysCapLength = NtohsInter(*(uint16_t *)(input + sizeof(uint32_t))); in ParseRpcidToJson() 199 char *sysCapBegin = input + sizeof(RPCIDHead) + sizeof(uint32_t); in ParseRpcidToJson() 200 RPCIDHead *rpcidHeader = (RPCIDHead *)input; in ParseRpcidToJson() 509 char *input = (char *)malloc(inputLen + 1); in CopyInputString() local 510 if (input == NULL) { in CopyInputString() 514 int32_t ret = strcpy_s(input, inputLen + 1, inputString); in CopyInputString() 517 free(input); in CopyInputString() 520 input[inputLen] = '\0'; in CopyInputString() 521 return input; in CopyInputString() [all …]
|
| /developtools/ace_js2bundle/ace-loader/src/ |
| D | resource-plugin.js | 28 let input = ''; variable 38 function copyFile(input, output) { argument 40 if (fs.existsSync(input)) { 45 const pathInfo = path.parse(input); 55 if (themeFileBuild(input, output)) { 59 const readStream = fs.createReadStream(input);
|
| D | gen-abc.js | 28 const input = inputPaths[i].path.replace(/\.temp\.js$/, "_.js"); 36 … console.debug(red, `ERROR Failed to convert file ${input} to abc. Error message: ${e}`, reset);
|
| /developtools/hdc/hdc_rust/src/host/ |
| D | parser.rs | 77 pub fn split_opt_and_cmd(input: Vec<String>) -> Parsed { in split_opt_and_cmd() 79 let mut cmd_index = input.len(); in split_opt_and_cmd() 81 for st in 0..input.len() { in split_opt_and_cmd() 82 if st + len > input.len() { in split_opt_and_cmd() 85 let cmd = input[st..st + len].join(" "); in split_opt_and_cmd() 97 options: input[..cmd_index].to_vec(), in split_opt_and_cmd() 99 parameters: input[cmd_index..].to_vec(), in split_opt_and_cmd() 104 let input = args.collect::<Vec<_>>()[1..].to_vec(); in parse_command() localVariable 105 let parsed = split_opt_and_cmd(input); in parse_command()
|
| D | unittest.rs | 25 let input = "file recv file1 /data/local/tmp/file" in if_parse_cmd_param_works() localVariable 37 let actual = parser::split_opt_and_cmd(input); in if_parse_cmd_param_works() 45 let input = "-l5 checkserver" in if_parse_opt_cmd_works() localVariable 54 let actual = parser::split_opt_and_cmd(input); in if_parse_opt_cmd_works() 61 let input = "-l5 file recv file1 /data/local/tmp/file" in if_parse_opt_cmd_param_works() localVariable 73 let actual = parser::split_opt_and_cmd(input); in if_parse_opt_cmd_param_works()
|
| /developtools/smartperf_host/ide/src/trace/component/trace/base/ |
| D | CustomThemeColor.ts | 55 let input = document.createElement('input'); 56 input.type = 'color'; 57 input.className = 'color'; 58 input.value = this.colorsArray![i]; 59 div.appendChild(input); 61 input.addEventListener('change', (evt: any) => { 62 input.value = evt?.target.value;
|
| /developtools/profiler/hidebug/frameworks/native/ |
| D | hidebug_base.c | 67 static void ParseKeyValue(const char *input) in ParseKeyValue() argument 73 const char *colonPos = strchr(input, COLON_CHR); in ParseKeyValue() 78 errno_t err = strncpy_s(g_params[g_paramCnt].key, MAX_PARA_LEN, input, colonPos - input); in ParseKeyValue() 91 static void SplitParams(char *input) in SplitParams() argument 97 param = strtok_s(input, space, &next); in SplitParams()
|
| /developtools/smartperf_host/ide/src/trace/component/trace/sheet/ |
| D | TabPaneFilter.html.ts | 325 export const TabPaneFilterHtml = (input: string): string => { 326 inputPlace = input;
|
| /developtools/packing_tool/adapter/ohos/ |
| D | UncompressEntrance.java | 269 …public static UncompressResult parseApp(InputStream input, String parseMode, String deviceType, St… in parseApp() argument 273 if (input == null) { in parseApp() 292 compressResult = Uncompress.uncompressAppByInput(utility, input); in parseApp() 338 …public static UncompressResult parseApp(InputStream input, ParseAppMode parseAppMode, String hapNa… in parseApp() argument 340 if (input == null) { in parseApp() 355 compressResult = Uncompress.uncompressAppByInput(utility, input); in parseApp() 388 public static UncompressResult parseHap(InputStream input) { in parseHap() argument 391 if (input == null) { in parseHap() 399 compressResult = Uncompress.uncompressHapByInput(utility, input); in parseHap()
|
| /developtools/ace_js2bundle/ace-loader/test/rich/testcase/pages/event/ |
| D | event.hml | 21 <input @click="handleInput('(')" /> 24 <input @click="handleInput(')')" /> 27 <input @click="handleInput('(', value, time)" />
|
| /developtools/hdc/scripts/ |
| D | dev_hdc_test.py | 90 cls.device_name = cls.targets[int(input()) - 1] 163 if opt := input(f"Default hdc execution? [{cls.hdc_exe}]\n").strip(): 165 if opt := input(f"Default local storage path? [{cls.local_path}]\n").strip(): 167 if opt := input(f"Default remote storage path? [{cls.remote_path}]\n").strip(): 169 if opt := input(f"Default remote ip? [{cls.remote_ip}]\n").strip(): 171 if opt := input(f"Default remote port? [{cls.remote_port}]\n").strip(): 173 if opt := input(f"Default device name? [{cls.device_name}], opts: {cls.targets}\n").strip(): 175 if opt := input(f"Default connect type? [{cls.tmode}], opt: [usb, tcp]\n").strip(): 191 if opt := input(f"Change default testcase?(Y/n) [{cls.changed_testcase}]\n").strip(): 195 if opt := input(f"Use default testcase path?(Y/n) [{cls.testcase_path}]\n").strip(): [all …]
|
| /developtools/hiperf/demo/js/entry/src/main/js/MainAbility/pages/second/ |
| D | second.hml | 5 <input class="btn" type="button" value="{{ $t('strings.back') }}" onclick="onclick"></input>
|
| /developtools/profiler/device/plugins/ftrace_plugin/test/unittest/ |
| D | printk_formats_parser_test.cpp | 159 std::string input = "test"; variable 160 EXPECT_FALSE(PrintkFormatsParser::GetInstance().Parse(input)); 191 std::string input = "1 : \"test\""; variable 192 EXPECT_NE(input, ""); 194 EXPECT_TRUE(PrintkFormatsParser::GetInstance().Parse(input));
|
| /developtools/syscap_codec/interfaces/inner_api/ |
| D | syscap_interface.h | 47 bool DecodeOsSyscap(const char input[PCID_MAIN_BYTES], char (**output)[SINGLE_SYSCAP_LEN], int *out… 49 bool DecodePrivateSyscap(char *input, char (**output)[SINGLE_SYSCAP_LEN], int *outputCnt);
|
| D | syscap_interface.c | 149 bool DecodeOsSyscap(const char input[PCID_MAIN_BYTES], char (**output)[SINGLE_SYSCAP_LEN], int *out… in DecodeOsSyscap() 156 uint8_t *osSyscap = (uint8_t *)(input + 8); // 8, int[2] of pcid header in DecodeOsSyscap() 198 int32_t GetPriSyscapCount(char *input) in GetPriSyscapCount() argument 202 char *inputPos = input; in GetPriSyscapCount() 213 bool DecodePrivateSyscap(char *input, char (**output)[SINGLE_SYSCAP_LEN], int *outputCnt) in DecodePrivateSyscap() argument 215 char *inputPos = input; in DecodePrivateSyscap() 218 if (input == NULL) { in DecodePrivateSyscap() 236 inputPos = input; in DecodePrivateSyscap() 278 static int32_t ParseRpcidToJson(char *input, uint32_t inputLen, cJSON *rpcidJson) in ParseRpcidToJson() argument 282 uint16_t sysCapLength = NtohsInter(*(uint16_t *)(input + sizeof(uint32_t))); in ParseRpcidToJson() [all …]
|