/third_party/vk-gl-cts/external/vulkancts/vkscserver/ |
H A D | vksNetwork.cpp | 31 void StringToAddress (const string& str, string& host, int& port) in StringToAddress() argument 33 auto pos = str.find_last_of(':'); in StringToAddress() 36 host = str.c_str(); in StringToAddress() 41 host = str.substr(0, pos); in StringToAddress() 42 std::stringstream{str.substr(pos+1)} >> port; in StringToAddress()
|
/third_party/vk-gl-cts/framework/common/ |
H A D | tcuStringTemplate.cpp | 42 StringTemplate::StringTemplate (const std::string& str) in StringTemplate() argument 44 setString(str); in StringTemplate() 55 void StringTemplate::setString (const std::string& str) in setString() argument 57 m_template = str; in setString() 146 return res.str(); in specialize()
|
/third_party/vk-gl-cts/framework/delibs/decpp/ |
H A D | deSha1.hpp | 41 static Sha1 parse (const std::string& str); 132 inline Sha1Stream& operator<< (Sha1Stream& stream, const std::string& str) in operator <<() argument 134 stream << (deUint64)str.size(); in operator <<() 135 stream.process(str.size(), str.c_str()); in operator <<()
|
/kernel/linux/linux-5.10/arch/arm/mach-omap1/ |
H A D | sleep.S | 85 str r9, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff] 90 str r9, [r6, #EMIFS_CONFIG_ASM_OFFSET & 0xff] 134 str r7, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff] 135 str r8, [r6, #EMIFS_CONFIG_ASM_OFFSET & 0xff] 160 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff] 164 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff] 170 str r5, [r4, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff] 175 str r5, [r4, #EMIFS_CONFIG_ASM_OFFSET & 0xff] 240 str r9, [r6, #EMIFF_SDRAM_CONFIG_ASM_OFFSET & 0xff] 245 str r [all...] |
/kernel/linux/linux-5.10/arch/mips/pci/ |
H A D | ops-tx4927.c | 196 char *tx4927_pcibios_setup(char *str) in tx4927_pcibios_setup() argument 198 if (!strncmp(str, "trdyto=", 7)) { in tx4927_pcibios_setup() 200 if (kstrtou8(str + 7, 0, &val) == 0) in tx4927_pcibios_setup() 204 if (!strncmp(str, "retryto=", 8)) { in tx4927_pcibios_setup() 206 if (kstrtou8(str + 8, 0, &val) == 0) in tx4927_pcibios_setup() 210 if (!strncmp(str, "gbwc=", 5)) { in tx4927_pcibios_setup() 212 if (kstrtou16(str + 5, 0, &val) == 0) in tx4927_pcibios_setup() 216 return str; in tx4927_pcibios_setup() 373 const char *str; in tx4927_report_pcic_status1() member 402 cont++ ? " " : "", pcistat_tbl[i].str); in tx4927_report_pcic_status1() [all...] |
/kernel/linux/linux-6.6/arch/arm/kernel/ |
H A D | entry-common.S | 55 str r0, [sp, #S_R0+S_OFF]! @ returned r0 68 str r0, [sp, #S_R0 + S_OFF]! @ save returned r0 93 str scno, [tsk, #TI_ABI_SYSCALL] @ make sure tracers see update 181 str saved_pc, [sp, #S_PC] @ Save calling PC 182 str saved_psr, [sp, #S_PSR] @ Save CPSR 183 str r0, [sp, #S_OLD_R0] @ Save OLD_R0 248 str scno, [tsk, #TI_ABI_SYSCALL] 251 str scno, [tsk, #TI_ABI_SYSCALL] 286 str lr, [sp, #S_PC] 313 str r [all...] |
/kernel/linux/linux-6.6/arch/mips/pci/ |
H A D | ops-tx4927.c | 196 char *tx4927_pcibios_setup(char *str) in tx4927_pcibios_setup() argument 198 if (!strncmp(str, "trdyto=", 7)) { in tx4927_pcibios_setup() 200 if (kstrtou8(str + 7, 0, &val) == 0) in tx4927_pcibios_setup() 204 if (!strncmp(str, "retryto=", 8)) { in tx4927_pcibios_setup() 206 if (kstrtou8(str + 8, 0, &val) == 0) in tx4927_pcibios_setup() 210 if (!strncmp(str, "gbwc=", 5)) { in tx4927_pcibios_setup() 212 if (kstrtou16(str + 5, 0, &val) == 0) in tx4927_pcibios_setup() 216 return str; in tx4927_pcibios_setup() 373 const char *str; in tx4927_report_pcic_status1() member 402 cont++ ? " " : "", pcistat_tbl[i].str); in tx4927_report_pcic_status1() [all...] |
/kernel/linux/linux-5.10/drivers/nvdimm/ |
H A D | core.c | 220 const char *str = buf; in nd_uuid_parse() local 225 if (!isxdigit(str[0]) || !isxdigit(str[1])) { in nd_uuid_parse() 227 i, str - buf, str[0], in nd_uuid_parse() 228 str + 1 - buf, str[1]); in nd_uuid_parse() 232 uuid[i] = (hex_to_bin(str[0]) << 4) | hex_to_bin(str[1]); in nd_uuid_parse() 233 str in nd_uuid_parse() [all...] |
/kernel/linux/linux-6.6/tools/perf/util/ |
H A D | auxtrace.h | 407 const char *str); 431 * @str: allocated string that contains the other string members 445 char *str; member 576 const char *str); 579 struct record_opts *opts, const char *str); 621 const char *str, int unset); 622 int itrace_parse_synth_opts(const struct option *opt, const char *str, 761 const char *str __maybe_unused, int unset __maybe_unused) in itrace_do_parse_synth_opts() 769 const char *str __maybe_unused, in itrace_parse_synth_opts() 779 const char *str) in auxtrace_parse_snapshot_options() 777 auxtrace_parse_snapshot_options(struct auxtrace_record *itr __maybe_unused, struct record_opts *opts __maybe_unused, const char *str) auxtrace_parse_snapshot_options() argument 788 auxtrace_parse_sample_options(struct auxtrace_record *itr __maybe_unused, struct evlist *evlist __maybe_unused, struct record_opts *opts __maybe_unused, const char *str) auxtrace_parse_sample_options() argument [all...] |
/test/xts/acts/notification/ces_standard/actsCommonEventSubscribeNDKTest/entry/src/main/cpp/ |
H A D | subscribe.cpp | 149 char* str = new char[1024];
in CreateSubscribeInfo() local 150 napi_get_value_string_utf8(env, event, str, 1024 - 1, &strLen);
in CreateSubscribeInfo() 151 events[i] = str;
in CreateSubscribeInfo() 152 OH_LOG_Print(LOG_APP, LOG_INFO, 1, "CES_TEST", "Get event %{public}s.", str);
in CreateSubscribeInfo() 175 char str[1024] = {0};
in SetPublisherPermission() local 183 napi_get_value_string_utf8(env, result, str, 1024 - 1, &strLen);
in SetPublisherPermission() 184 int32_t ret = OH_CommonEvent_SetPublisherPermission(information, str);
in SetPublisherPermission() 185 OH_LOG_Print(LOG_APP, LOG_INFO, 1, "CES_TEST", "Get permission %{public}s.", str);
in SetPublisherPermission() 208 char str[1024] = {0};
in SetPublisherBundleName() local 209 napi_get_value_string_utf8(env, result, str, 102 in SetPublisherBundleName() [all...] |
/test/xts/hats/kernel/purgeableMem/ |
H A D | purgeable_cpp_test.cpp | 49 char *str = static_cast<char *>(data); in Build() local 52 str[len++] = ch; in Build() 54 str[size - 1] = 0; in Build() 55 std::cout << "rebuild addr("<< (unsigned long long)str <<") " << in Build() 56 start << "~" << end << ", data=[" << str << "]" << std::endl; in Build() 79 char *str = static_cast<char *>(data); in Build() local 80 for (size_t i = 0; i < size && str[i]; i++) { in Build() 81 if (str[i] == from) { in Build() 82 str[i] = to; in Build() 109 char *str in Build() local [all...] |
/third_party/f2fs-tools/lib/ |
H A D | nls_utf8.c | 177 utf8decode3(const char *str) in utf8decode3() argument 181 uc = *str++ & 0x0F; in utf8decode3() 183 uc |= *str++ & 0x3F; in utf8decode3() 185 uc |= *str++ & 0x3F; in utf8decode3() 194 utf8encode3(char *str, unsigned int val) in utf8encode3() argument 196 str[2] = (val & 0x3F) | 0x80; in utf8encode3() 198 str[1] = (val & 0x3F) | 0x80; in utf8encode3() 200 str[0] = val | 0xE0; in utf8encode3() 350 utf8hangul(const char *str, unsigned char *hangul) in utf8hangul() argument 359 si = utf8decode3(str) in utf8hangul() 889 utf8_casefold(const struct f2fs_nls_table *table, const unsigned char *str, size_t len, unsigned char *dest, size_t dlen) utf8_casefold() argument [all...] |
/third_party/backends/japi/ |
H A D | Sane.c | 183 jstring str; /* Gets strings. */ in Java_Sane_getOptionNative() local 202 str = sopt->title ? (*env)->NewStringUTF(env, sopt->title) : 0; in Java_Sane_getOptionNative() 203 (*env)->SetObjectField(env, optObj, fid, str); in Java_Sane_getOptionNative() 324 char *str; in Java_Sane_getControlOption__II_3B_3I() local 326 str = (*env)->GetByteArrayElements(env, value, 0); in Java_Sane_getControlOption__II_3B_3I() 328 SANE_ACTION_GET_VALUE, str, &i); in Java_Sane_getControlOption__II_3B_3I() 329 (*env)->ReleaseByteArrayElements(env, value, str, 0); in Java_Sane_getControlOption__II_3B_3I() 360 const char *str in String_length() 364 for (ptr = str; *ptr > 0; ptr++) in String_length() 366 return ((int) (ptr - str)); in String_length() 485 const char *str = sane_strstatus(status); Java_Sane_strstatus() local [all...] |
/third_party/alsa-lib/src/pcm/ |
H A D | pcm_hooks.c | 345 const char *str, *id; in snd_pcm_hook_add_conf() local 383 err = snd_config_get_string(type, &str); in snd_pcm_hook_add_conf() 388 err = snd_config_search_definition(root, "pcm_hook_type", str, &type); in snd_pcm_hook_add_conf() 391 SNDERR("Invalid type for PCM type %s definition", str); in snd_pcm_hook_add_conf() 425 snprintf(buf, sizeof(buf), "_snd_pcm_hook_%s_install", str); in snd_pcm_hook_add_conf() 446 if (args && snd_config_get_string(args, &str) >= 0) { in snd_pcm_hook_add_conf() 447 err = snd_config_search_definition(root, "hook_args", str, &args); in snd_pcm_hook_add_conf() 449 SNDERR("unknown hook_args %s", str); in snd_pcm_hook_add_conf() 531 const char *str; in _snd_pcm_hooks_open() local 532 if (snd_config_get_string(n, &str) > in _snd_pcm_hooks_open() [all...] |
/third_party/node/deps/v8/src/compiler/ |
H A D | memory-optimizer.cc | 147 std::stringstream str; in WriteBarrierAssertFailed() local 148 str << "MemoryOptimizer could not remove write barrier for node #" in WriteBarrierAssertFailed() 150 str << " Run mksnapshot with --csa-trap-on-node=" << name << "," in WriteBarrierAssertFailed() 161 str << "\n There is a potentially allocating node in between:\n"; in WriteBarrierAssertFailed() 162 str << " " << *allocating_node << "\n"; in WriteBarrierAssertFailed() 163 str << " Run mksnapshot with --csa-trap-on-node=" << name << "," in WriteBarrierAssertFailed() 166 str << " If this is a never-allocating runtime call, you can add an " in WriteBarrierAssertFailed() 170 str << "\n It seems the store happened to something different than a " in WriteBarrierAssertFailed() 173 str << " " << *object << "\n"; in WriteBarrierAssertFailed() 174 str << " Ru in WriteBarrierAssertFailed() [all...] |
/third_party/node/deps/v8/src/strings/ |
H A D | string-stream.cc | 225 char* str = NewArray<char>(length_ + 1); in ToCString() local 226 MemCopy(str, buffer_, length_); in ToCString() 227 str[length_] = '\0'; in ToCString() 228 return std::unique_ptr<char[]>(str); in ToCString() 271 bool StringStream::Put(String str) { return Put(str, 0, str.length()); } in Put() argument 273 bool StringStream::Put(String str, int start, int end) { in Put() argument 274 StringCharacterStream stream(str, start); in Put() 289 String str in PrintName() local [all...] |
/third_party/rust/crates/clap/tests/builder/ |
H A D | subcommands.rs | 100 static DYM_SUBCMD: &str = "\ in subcmd_did_you_mean_output() 120 static DYM_SUBCMD_AMBIGUOUS: &str = "\ in subcmd_did_you_mean_output_ambiguous() 141 static EXPECTED: &str = "\ in subcmd_did_you_mean_output_arg() 161 static EXPECTED: &str = "\ in subcmd_did_you_mean_output_arg_false_positives() 186 static VISIBLE_ALIAS_HELP: &str = "\ in visible_aliases_help_output() 210 static INVISIBLE_ALIAS_HELP: &str = "\ in invisible_aliases_help_output() 353 static SUBCMD_AFTER_DOUBLE_DASH: &str = "\ in subcommand_used_after_double_dash() 504 static HELLO_EXPECTED: &str = "\ in bad_multicall_command_error() 517 static BAZ_EXPECTED: &str = "\ in bad_multicall_command_error() 560 static EXPECTED: &str in multicall_help_flag() [all...] |
/third_party/python/Tools/scripts/ |
H A D | stable_abi.py | 126 name: str 127 kind: str 128 added: str = None 130 ifdef: str = None 135 name: str 136 doc: str 143 struct_abi_kind: str 377 str(path), '<expected>', 535 + [str(file) for file in headers], 578 + [str(fil [all...] |
/third_party/vk-gl-cts/external/amber/src/src/vkscript/ |
H A D | parser.cc | 165 std::string str = token->AsString(); in ProcessRequireBlock() local 166 if (script_->IsKnownFeature(str)) { in ProcessRequireBlock() 167 script_->AddRequiredFeature(str); in ProcessRequireBlock() 168 } else if (str == Pipeline::kGeneratedColorBuffer) { in ProcessRequireBlock() 188 } else if (str == "depthstencil") { in ProcessRequireBlock() 220 } else if (str == "fence_timeout") { in ProcessRequireBlock() 227 } else if (str == "fbsize") { in ProcessRequireBlock() 255 auto it = std::find_if(str.begin(), str.end(), in ProcessRequireBlock() 257 if (it != str in ProcessRequireBlock() [all...] |
/third_party/openssl/ohos_lite/include/openssl/ |
H A D | crypto.h | 129 # define OPENSSL_memdup(str, s) \ 130 CRYPTO_memdup((str), s, OPENSSL_FILE, OPENSSL_LINE) 131 # define OPENSSL_strdup(str) \ 132 CRYPTO_strdup(str, OPENSSL_FILE, OPENSSL_LINE) 133 # define OPENSSL_strndup(str, n) \ 134 CRYPTO_strndup(str, n, OPENSSL_FILE, OPENSSL_LINE) 148 size_t OPENSSL_strnlen(const char *str, size_t maxlen); 150 unsigned char *OPENSSL_hexstr2buf(const char *str, long *len); 268 void *CRYPTO_memdup(const void *str, size_t siz, const char *file, int line); 269 char *CRYPTO_strdup(const char *str, cons [all...] |
/third_party/skia/third_party/externals/tint/src/transform/ |
H A D | decompose_strided_matrix_test.cc | 40 EXPECT_EQ(expect, str(got)); in TEST_F() 50 EXPECT_EQ(expect, str(got)); in TEST_F() 116 EXPECT_EQ(expect, str(got)); in TEST_F() 178 EXPECT_EQ(expect, str(got)); in TEST_F() 241 EXPECT_EQ(expect, str(got)); in TEST_F() 307 EXPECT_EQ(expect, str(got)); in TEST_F() 369 EXPECT_EQ(expect, str(got)); in TEST_F() 436 EXPECT_EQ(expect, str(got)); in TEST_F() 498 EXPECT_EQ(expect, str(got)); in TEST_F() 587 EXPECT_EQ(expect, str(go in TEST_F() [all...] |
/third_party/skia/tools/fonts/ |
H A D | create_test_font.cpp | 82 static ptrdiff_t last_line_length(const SkString& str) { in last_line_length() argument 83 const char* first = str.c_str(); in last_line_length() 84 const char* last = first + str.size(); in last_line_length() 102 SkString str; in output_scalar() local 103 str.printf("%1.6g", num); in output_scalar() 104 int width = (int) str.size(); in output_scalar() 105 const char* cStr = str.c_str(); in output_scalar() 109 str.remove(width, str.size() - width); in output_scalar() 110 out->appendf("%sf", str in output_scalar() 178 strip_final(const SkString& str) strip_final() argument [all...] |
/third_party/spirv-tools/source/ |
H A D | disassemble.cpp | 118 size_t length = text_.str().size(); in SaveTextResult() 119 char* str = new char[length + 1]; in SaveTextResult() local 120 if (!str) return SPV_ERROR_OUT_OF_MEMORY; in SaveTextResult() 121 strncpy(str, text_.str().c_str(), length + 1); in SaveTextResult() 124 delete[] str; in SaveTextResult() 127 text->str = str; in SaveTextResult() 370 std::string str = spvDecodeLiteralStringOperand(inst, operand_index); in EmitOperand() 371 for (char const& c : str) { in EmitOperand() [all...] |
/third_party/rust/crates/which-rs/tests/ |
H A D | basic.rs | 21 const SUBDIRS: &[&str] = &["a", "b", "c"]; 22 const BIN_NAME: &str = "bin"; 25 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() 36 fn touch(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in touch() 42 fn mk_bin(dir: &Path, path: &str, extension: &str) -> io::Result<PathBuf> { in mk_bin() 82 pub fn touch(&self, path: &str, extension: &str) [all...] |
/third_party/zlib/examples/ |
H A D | enough.c | 175 char *str; // pointer to allocated string member 182 s->str[0] = 0; in string_clear() 189 s->str = malloc(s->size); in string_init() 190 assert(s->str != NULL && "out of memory"); in string_init() 196 free(s->str); in string_free() 197 s->str = NULL; in string_free() 208 int ret = vsnprintf(s->str + len, s->size - len, fmt, ap); in string_printf() 216 s->str = realloc(s->str, s->size); in string_printf() 217 assert(s->str ! in string_printf() [all...] |