/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 + FORWORD_PORT_RM_BUF_SIZE; in ForwardPort() 239 const char *p = input + FORWORD_PORT_OTHER_BUF_SIZE; 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 | 119 public static byte[] read(InputStream input) throws IOException { in read() argument 123 while ((read = input.read(buffer)) != FILE_END) { in read() 128 close(input); in read() 141 try (FileInputStream input = new FileInputStream(file)) { in readFileByOffsetAndLength() argument 142 return readInputByOffsetAndLength(input, offset, length); in readFileByOffsetAndLength() 155 …public static byte[] readInputByOffsetAndLength(InputStream input, long offset, long length) throw… in readInputByOffsetAndLength() argument 156 input.skip(offset); in readInputByOffsetAndLength() 157 return readInputByLength(input, length); in readInputByOffsetAndLength() 167 public static byte[] readInputByLength(InputStream input, long length) throws IOException { in readInputByLength() argument 172 writeInputToOutPut(input, output, length); in readInputByLength() [all …]
|
/developtools/smartperf_host/ide/src/trace/component/setting/ |
D | SpSdkConfig.ts | 200 let input = this.selectConfig?.shadowRoot?.querySelector<HTMLInputElement>('#singleInput'); 201 if (input) { 207 this.changGpu(input!.value); 233 let input = document.createElement('input'); 234 input.className = 'sdk-config-input config'; 238 input.value = this.sdkConfigList.configuration[key].default; 240 input.setAttribute('configName', key); 242 input.setAttribute('type', this.sdkConfigList.configuration[key].type); 243 input.oninput = (): void => { 244 input.value = this.checkIntegerInput(input.value); [all …]
|
/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() 511 char *input = (char *)malloc(inputLen + 1); in CopyInputString() local 512 if (input == NULL) { in CopyInputString() 516 int32_t ret = strcpy_s(input, inputLen + 1, inputString); in CopyInputString() 519 free(input); in CopyInputString() 522 input[inputLen] = '\0'; in CopyInputString() 523 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/global_resource_tool/src/ |
D | file_manager.cpp | 35 for (auto input : inputs) { in ScanModules() local 36 if (ScanModule(input, output) != RESTOOL_SUCCESS) { in ScanModules() 53 uint32_t FileManager::ScanModule(const string &input, const string &output) in ScanModule() argument 55 ResourceModule resourceModule(input, output, moduleName_); in ScanModule()
|
/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: unknown): void => { 63 input.value = evt?.target.value; //@ts-ignore
|
/developtools/hdc/hdc_rust/src/host/ |
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()
|
D | parser.rs | 82 pub fn split_opt_and_cmd(input: Vec<String>) -> Parsed { in split_opt_and_cmd() 84 let mut cmd_index = input.len(); in split_opt_and_cmd() 86 for st in 0..input.len() { in split_opt_and_cmd() 87 if st + len > input.len() { in split_opt_and_cmd() 90 let cmd = input[st..st + len].join(" "); in split_opt_and_cmd() 109 options: input[..cmd_index].to_vec(), in split_opt_and_cmd() 111 parameters: input[cmd_index..].to_vec(), in split_opt_and_cmd() 116 let input = args.collect::<Vec<_>>()[1..].to_vec(); in parse_command() localVariable 117 let parsed = split_opt_and_cmd(input); in parse_command()
|
/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 return replacePlaceholders(html, 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/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 | 156 bool DecodeOsSyscap(const char input[PCID_MAIN_BYTES], char (**output)[SINGLE_SYSCAP_LEN], int *out… in DecodeOsSyscap() 163 uint8_t *osSyscap = (uint8_t *)(input + 8); // 8, int[2] of pcid header in DecodeOsSyscap() 206 int32_t GetPriSyscapCount(char *input) in GetPriSyscapCount() argument 210 char *inputPos = input; in GetPriSyscapCount() 221 bool DecodePrivateSyscap(char *input, char (**output)[SINGLE_SYSCAP_LEN], int *outputCnt) in DecodePrivateSyscap() argument 223 char *inputPos = input; in DecodePrivateSyscap() 226 if (input == NULL) { in DecodePrivateSyscap() 244 inputPos = input; in DecodePrivateSyscap() 287 static int32_t ParseRpcidToJson(char *input, uint32_t inputLen, cJSON *rpcidJson) in ParseRpcidToJson() argument 291 uint16_t sysCapLength = NtohsInter(*(uint16_t *)(input + sizeof(uint32_t))); in ParseRpcidToJson() [all …]
|
/developtools/hapsigner/hapsigntool/hap_sign_tool_lib/src/main/java/com/ohos/hapsigntool/codesigning/sign/ |
D | CodeSigning.java | 115 public byte[] getElfCodeSignBlock(File input, long offset, String inForm, String profileContent) in getElfCodeSignBlock() argument 121 long fileSize = input.length(); in getElfCodeSignBlock() 124 try (FileInputStream inputStream = new FileInputStream(input)) { in getElfCodeSignBlock() 167 …public byte[] getCodeSignBlock(File input, long offset, String inForm, String profileContent, Zip … in getCodeSignBlock() argument 187 try (FileInputStream inputStream = new FileInputStream(input)) { in getCodeSignBlock() 197 signNativeLibs(input, ownerID); in getCodeSignBlock() 232 …private void signNativeLibs(File input, String ownerID) throws IOException, FsVerityDigestExceptio… in signNativeLibs() argument 235 try (JarFile inputJar = new JarFile(input, false)) { in signNativeLibs()
|