/third_party/skia/demos.skia.org/demos/textedit/ |
H A D | textapi_utils.js | 164 function string_del(str, start, end) { 165 return str.slice(0, start) + str.slice(end, str.length);
|
/third_party/rust/crates/rust-openssl/openssl/src/ |
H A D | cipher_ctx.rs | 944 fn cipher_wrap_test(cipher: &CipherRef, pt: &str, ct: &str, key: &str, iv: Option<&str>) { in cipher_wrap_test()
|
/third_party/vk-gl-cts/modules/gles3/functional/ |
H A D | es3fShaderLoopTests.cpp | 431 StringTemplate vertTemplate(vtx.str().c_str()); in createGenericLoopCase() 432 StringTemplate fragTemplate(frag.str().c_str()); in createGenericLoopCase() 1119 StringTemplate vertTemplate(vtx.str().c_str()); in createSpecialLoopCase() 1120 StringTemplate fragTemplate(frag.str().c_str()); in createSpecialLoopCase()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_tracing/ |
H A D | vktRayTracingNullASTests.cpp | 346 programCollection.glslSources.add("sect") << glu::IntersectionSource(updateRayTracingGLSL(css.str())) << buildOptions; in initPrograms() 364 programCollection.glslSources.add("ahit") << glu::AnyHitSource(updateRayTracingGLSL(css.str())) << buildOptions; in initPrograms() 382 programCollection.glslSources.add("chit") << glu::ClosestHitSource(updateRayTracingGLSL(css.str())) << buildOptions; in initPrograms() 399 programCollection.glslSources.add("miss") << glu::MissSource(updateRayTracingGLSL(css.str())) << buildOptions; in initPrograms()
|
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/tessellation/ |
H A D | vktTessellationPrimitiveDiscardTests.cpp | 274 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); 304 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); 350 programCollection.glslSources.add(needPointSizeWrite ? "tese_psw" : "tese") << glu::TessellationEvaluationSource(src.str()); 366 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str());
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/dbus/ |
H A D | dbus_dict_helpers.c | 689 char *str; in _wpa_dbus_dict_entry_get_string_array() local 707 str = os_strdup(value); in _wpa_dbus_dict_entry_get_string_array() 708 if (str == NULL) { in _wpa_dbus_dict_entry_get_string_array() 714 buffer[count++] = str; in _wpa_dbus_dict_entry_get_string_array()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/dbus/ |
H A D | dbus_dict_helpers.c | 689 char *str; in _wpa_dbus_dict_entry_get_string_array() local 707 str = os_strdup(value); in _wpa_dbus_dict_entry_get_string_array() 708 if (str == NULL) { in _wpa_dbus_dict_entry_get_string_array() 714 buffer[count++] = str; in _wpa_dbus_dict_entry_get_string_array()
|
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_utils.cpp | 826 std::string ThumbnailUtils::GetHighlightValue(const std::string &str, const std::string &key) in GetHighlightValue() argument 828 std::size_t keyPos = str.find(key); in GetHighlightValue() 832 std::size_t colonPos = str.find(":", keyPos); in GetHighlightValue() 836 std::size_t commaPos = str.find(",", colonPos); in GetHighlightValue() 838 commaPos = str.find("}", colonPos); in GetHighlightValue() 843 std::string valueStr = str.substr(colonPos + 1, commaPos - colonPos - 1); in GetHighlightValue() 2501 bool ThumbnailUtils::ConvertStrToInt32(const std::string &str, int32_t &ret) in ConvertStrToInt32() argument 2503 if (str.empty() || str.length() > INT32_MAX_VALUE_LENGTH) { in ConvertStrToInt32() 2504 MEDIA_ERR_LOG("convert failed, str in ConvertStrToInt32() [all...] |
/kernel/linux/linux-6.6/drivers/accel/habanalabs/common/ |
H A D | firmware_if.c | 45 char *str, *fw_ver, *whitespace; in extract_fw_ver_from_str() local 52 str = strnstr(fw_str, "fw-", VERSION_MAX_LEN); in extract_fw_ver_from_str() 53 if (!str) in extract_fw_ver_from_str() 57 str += 3; in extract_fw_ver_from_str() 58 ver_offset = str - fw_str; in extract_fw_ver_from_str() 61 whitespace = strnstr(str, " ", VERSION_MAX_LEN - ver_offset); in extract_fw_ver_from_str() 65 strscpy(fw_ver, str, whitespace - str + 1); in extract_fw_ver_from_str() 76 * @str: the given string 82 static char *extract_u32_until_given_char(char *str, u3 argument [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl4cSparseTextureTests.cpp | 374 mLog.str(""); in iterate() 386 m_testCtx.getLog() << tcu::TestLog::Message << mLog.str() << "Fail [positive tests]" in iterate() 399 mLog.str(""); in iterate() 410 m_testCtx.getLog() << tcu::TestLog::Message << mLog.str() << "Fail [positive tests]" in iterate() 903 m_testCtx.getLog() << tcu::TestLog::Message << mLog.str() << "Fail" << tcu::TestLog::EndMessage; in iterate() 990 TCU_FAIL(log.str().c_str()); in testSipmleQueries() 1097 mLog.str(""); in iterate() 1107 m_testCtx.getLog() << tcu::TestLog::Message << mLog.str() << "Fail" << tcu::TestLog::EndMessage; in iterate() 1124 mLog.str(""); in iterate() 1132 m_testCtx.getLog() << tcu::TestLog::Message << mLog.str() << "Fai in iterate() [all...] |
/third_party/python/Lib/test/ |
H A D | test_configparser.py | 625 self.assertEqual(str(e), "Section 'Foo' already exists") 639 self.assertEqual(str(e), "While reading from '<foo-bar>' " 646 self.assertEqual(str(e), "While reading from '<dict>': option " 709 class mystr(str): 1146 self.assertEqual(str(err), "'int' object has no attribute 'lower'") 1555 str(dse.exception), 1567 str(dse.exception), 1578 str(dse.exception), 1588 str(dse.exception), 1604 self.assertEqual(str(erro [all...] |
/third_party/python/Lib/test/test_email/ |
H A D | test__header_value_parser.py | 15 self.assertEqual(str(x), '') 24 self.assertEqual(str(tl), string) 52 rfc_dtext_chars = rfc_printable_ascii.translate(str.maketrans('','',r'\[]')) 2424 self.assertEqual([str(x) for x in address_list.mailboxes], 2425 [str(x) for x in address_list.addresses]) 2441 self.assertEqual([str(x) for x in address_list.mailboxes], 2442 [str(x) for x in address_list.addresses]) 2464 self.assertEqual([str(x) for x in address_list.mailboxes], 2465 [str(x) for x in address_list.addresses]) 2494 self.assertEqual([str( [all...] |
/third_party/protobuf/python/google/protobuf/internal/ |
H A D | text_format_test.py | 85 return (f.readlines() if str is bytes else # PY3 364 # MessageToString always returns a native str. 449 self.assertEqual('c: 123\n', str(message)) 1053 message.my_string = 'str' 1075 'my_string: "str"\n' 1097 'my_string: "str"\n' 1181 str(message), 1190 str(message), 1232 message.message_set.Extensions[ext2].str = 'foo' 1239 ' str [all...] |
/third_party/python/Lib/ |
H A D | typing.py | 9 All subscripted types like X[int], Union[int, str] are generic aliases. 163 if isinstance(arg, str): 173 special forms like Union are not valid, while Union[int, str] is OK, etc. 212 collections.abc.Callable[[int, int], str].__args__ == (int, int, str) 213 collections.abc.Callable[ParamSpec, str].__args__ == (ParamSpec, str) 375 ForwardRef(arg) if isinstance(arg, str) else arg 551 def int_or_str(arg: int | str) -> None: 556 case str() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/renderpass/ |
H A D | vktRenderPassFragmentDensityMapTests.cpp | 2833 std::stringstream str; in createChildren() local 2834 str << "_" << area.x() << "_" << area.y(); in createChildren() 2855 sampleGroup->addChild(new FragmentDensityMapTest(testCtx, std::string("static_subsampled") + str.str(), "", params)); in createChildren() 2857 sampleGroup->addChild(new FragmentDensityMapTest(testCtx, std::string("deferred_subsampled") + str.str(), "", params)); in createChildren() 2860 sampleGroup->addChild(new FragmentDensityMapTest(testCtx, std::string("dynamic_subsampled") + str.str(), "", params)); in createChildren() 2867 sampleGroup->addChild(new FragmentDensityMapTest(testCtx, std::string("static_nonsubsampled") + str.str(), "", param in createChildren() [all...] |
/drivers/peripheral/distributed_audio/hdi_service/audio/v1_0/src/ |
H A D | audio_adapter_interface_impl.cpp | 867 DHLOGE("String is not number. str:%{public}s.", val.c_str()); in getEventTypeFromCondition() 902 DHLOGE("String is not number. str:%{public}s.", val.c_str()); in ConvertString2Int() 985 std::string res = ss.str(); in GetVolumeChangeString() 1006 DHLOGE("String is not number. str:%{public}s.", val.c_str()); in GetVolFromEvent() 1028 DHLOGI("get ss : %{public}s", ss.str().c_str()); in HandleFocusChangeEvent() 1031 int32_t ret = paramCallback_->ParamCallback(AUDIO_EXT_PARAM_KEY_FOCUS, ss.str(), "", reserved, cookie); in HandleFocusChangeEvent() 1050 DHLOGI("get ss : %{public}s", ss.str().c_str()); in HandleRenderStateChangeEvent() 1053 int32_t ret = paramCallback_->ParamCallback(AUDIO_EXT_PARAM_KEY_STATUS, ss.str(), "", reserved, cookie); in HandleRenderStateChangeEvent() 1183 DHLOGI("get ss : %{public}s", ss.str().c_str()); in HandleDeviceClosed() 1186 int32_t ret = paramCallback_->ParamCallback(AUDIO_EXT_PARAM_KEY_STATUS, ss.str(), in HandleDeviceClosed() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | jsi_base_utils.cpp | 389 std::string str = tag; in TranslateStack() local 391 replace(str.begin(), str.end(), '/', '\\'); in TranslateStack() 393 char* ch = strrchr((char*)str.c_str(), '.'); in TranslateStack() 395 int index = ch - str.c_str(); in TranslateStack() 396 str.insert(index, "_"); in TranslateStack() 398 runningPageTag = str; in TranslateStack()
|
/foundation/graphic/graphic_2d/interfaces/kits/napi/graphic/text/utils/ |
H A D | napi_common.cpp | 66 bool SetColorFromJS(napi_env env, napi_value argValue, const std::string& str, Drawing::Color& colorSrc)
in SetColorFromJS() argument 70 napi_get_named_property(env, argValue, str.c_str(), &tempValue);
in SetColorFromJS() 94 bool GetDecorationFromJS(napi_env env, napi_value argValue, const std::string& str, TextStyle& textStyle)
in GetDecorationFromJS() argument 100 napi_get_named_property(env, argValue, str.c_str(), &tempValue);
in GetDecorationFromJS() 174 bool GetNamePropertyFromJS(napi_env env, napi_value argValue, const std::string& str, napi_value& propertyValue)
in GetNamePropertyFromJS() argument 177 if (napi_has_named_property(env, argValue, str.c_str(), &result) != napi_ok || (!result)) {
in GetNamePropertyFromJS() 181 if (napi_get_named_property(env, argValue, str.c_str(), &propertyValue) != napi_ok) {
in GetNamePropertyFromJS()
|
/kernel/linux/linux-6.6/arch/arm64/kernel/ |
H A D | entry.S | 309 str w21, [sp, #S_SYSCALLNO] 318 str x20, [sp, #S_PMR_SAVE] 561 str x0, [sp, #S_SP] 836 str lr, [x8] 939 1: str x4, [x1, #(SDEI_EVENT_INTREGS + S_SDEI_TTBR1)] 1003 2: str x19, [x5] 1076 2: str xzr, [x5]
|
/kernel/linux/linux-5.10/tools/testing/selftests/vm/ |
H A D | protection_keys.c | 57 void cat_into_file(char *str, char *file) in cat_into_file() argument 62 dprintf2("%s(): writing '%s' to '%s'\n", __func__, str, file); in cat_into_file() 68 fprintf(stderr, "error opening '%s'\n", str); in cat_into_file() 73 ret = write(fd, str, strlen(str)); in cat_into_file() 74 if (ret != strlen(str)) { in cat_into_file() 76 fprintf(stderr, "filename: '%s' str: '%s'\n", file, str); in cat_into_file()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
H A D | atom.c | 1269 char *str; in atom_parse() local 1309 str = CSTR(CU16(base + ATOM_ROM_MSG_PTR)); in atom_parse() 1310 while (*str && ((*str == '\n') || (*str == '\r'))) in atom_parse() 1311 str++; in atom_parse() 1314 name[i] = str[i]; in atom_parse()
|
/kernel/linux/linux-5.10/drivers/media/platform/ |
H A D | rcar_drif.c | 506 u32 str; in rcar_drif_channel_complete() local 511 str = rcar_drif_read(ch, RCAR_DRIF_SISTR); in rcar_drif_channel_complete() 512 if (unlikely(str & RCAR_DRIF_RFOVF)) { in rcar_drif_channel_complete() 514 rcar_drif_write(ch, RCAR_DRIF_SISTR, str); in rcar_drif_channel_complete() 712 u32 ctr, str; in rcar_drif_start_channel() local 731 str = RCAR_DRIF_RFFUL | RCAR_DRIF_REOF | RCAR_DRIF_RFSERR | in rcar_drif_start_channel() 733 rcar_drif_write(ch, RCAR_DRIF_SISTR, str); in rcar_drif_start_channel()
|
/kernel/linux/linux-5.10/drivers/net/plip/ |
H A D | plip.c | 1376 static int __init plip_setup(char *str) in plip_setup() argument 1380 str = get_options(str, ARRAY_SIZE(ints), ints); in plip_setup() 1383 if (!strncmp(str, "parport", 7)) { in plip_setup() 1384 int n = simple_strtoul(str+7, NULL, 10); in plip_setup() 1389 str); in plip_setup() 1390 } else if (!strcmp(str, "timid")) { in plip_setup()
|
/kernel/linux/linux-5.10/drivers/s390/char/ |
H A D | tape_core.c | 189 const char *str; in tape_state_set() local 198 str = tape_state_verbose[device->tape_state]; in tape_state_set() 200 str = "UNKNOWN TS"; in tape_state_set() 201 DBF_EVENT(4, "%s\n", str); in tape_state_set() 204 str = tape_state_verbose[newstate]; in tape_state_set() 206 str = "UNKNOWN TS"; in tape_state_set() 207 DBF_EVENT(4, "%s\n", str); in tape_state_set()
|
/kernel/linux/linux-5.10/drivers/scsi/ |
H A D | xen-scsifront.c | 971 char str[64]; in scsifront_do_lun_hotplug() local 988 snprintf(str, sizeof(str), "vscsi-devs/%s/state", dir[i]); in scsifront_do_lun_hotplug() 989 err = xenbus_scanf(XBT_NIL, dev->otherend, str, "%u", in scsifront_do_lun_hotplug() 995 snprintf(str, sizeof(str), "vscsi-devs/%s/v-dev", dir[i]); in scsifront_do_lun_hotplug() 996 err = xenbus_scanf(XBT_NIL, dev->otherend, str, in scsifront_do_lun_hotplug()
|