/third_party/python/Lib/test/ |
H A D | test_inspect.py | 287 self.assertTrue(inspect.isroutine(str.join)) 294 self.assertFalse(inspect.isroutine(str())) 563 self.assertEqual(inspect.getmodule(str), sys.modules["builtins"]) 604 self.assertTrue(str(e.exception).startswith('<module')) 609 self.assertTrue(str(e.exception).startswith('<class')) 614 self.assertIn('expected, got', str(e_abs.exception)) 617 self.assertIn('expected, got', str(e_append.exception)) 1331 def foo(a:int, b:str): pass 1332 self.assertEqual(inspect.get_annotations(foo), {'a': int, 'b': str}) 1334 foo.__annotations__ = {'a': 'foo', 'b':'str'} [all...] |
/test/xts/acts/graphic/acts_drawing_native/ |
H A D | DrawingNativeCanvasTestPart3.cpp | 597 const char *str = "123456"; in HWTEST_F() local 601 OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, OH_Drawing_TextEncoding::TEXT_ENCODING_UTF8); in HWTEST_F() 622 const char *str = "123456"; in HWTEST_F() local 626 OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, OH_Drawing_TextEncoding::TEXT_ENCODING_UTF8); in HWTEST_F() 653 const char *str = "123456"; in HWTEST_F() local 656 OH_Drawing_TextBlobCreateFromText(str, strlen(str), font, OH_Drawing_TextEncoding::TEXT_ENCODING_UTF8); in HWTEST_F() 680 const char *str in HWTEST_F() local [all...] |
/third_party/gn/src/gn/ |
H A D | functions.cc | 1229 return Value(function, stream.str()); 1240 result = string_replace(str, old, new[, max]) 1242 Returns a copy of the string str in which the occurrences of old have been 1268 const std::string str = args[0].string_value(); 1290 std::string val(str); 1309 result = string_split(str[, sep]) 1315 any leading/trailing whitespace is ignored; similar to Python's str.split(). 1337 "Usage: string_split(str[, sep])"); 1341 // Check usage: str is a string. 1345 const std::string str [all...] |
/third_party/backends/backend/ |
H A D | st400.c | 173 static int str_at_offset(char *str, size_t offset, unsigned char *data) in str_at_offset() argument 177 len = strlen(str); in str_at_offset() 178 return !strncmp((char *)&data[offset], str, len); in str_at_offset() 687 char line[PATH_MAX], *str; in sane_init() local 694 str = line; in sane_init() 695 if( str[0] == '#' ) in sane_init() 697 str = (char *)sanei_config_skip_whitespace(str); in sane_init() 698 len = strlen(str); in sane_init() 701 if( strncmp(str, "optio in sane_init() [all...] |
H A D | u12.c | 921 char str[PATH_MAX] = _DEFAULT_DEVICE; in sane_init() local 953 while( sanei_config_read( str, sizeof(str), fp)) { in sane_init() 955 DBG( _DBG_SANE_INIT, ">%s<\n", str ); in sane_init() 956 if( str[0] == '#') /* ignore line comments */ in sane_init() 959 len = strlen(str); in sane_init() 964 if( 0 == strncmp(str, "option", 6)) { in sane_init() 970 decodeVal( str, "warmup", _INT, &config.adj.warmup, &ival); in sane_init() 971 decodeVal( str, "lampOff", _INT, &config.adj.lampOff, &ival); in sane_init() 972 decodeVal( str, "lOffOnEn in sane_init() [all...] |
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/number/ |
H A D | DecimalQuantityTest.java | 109 for (String str : cases) { in testBehavior() 110 testDecimalQuantity(i++, str, formats, 0); in testBehavior() 114 for (String str : hardCases) { in testBehavior() 115 testDecimalQuantity(i++, str, formats, 1); in testBehavior() 119 for (String str : doubleCases) { in testBehavior() 120 testDecimalQuantity(i++, str, formats, 2); in testBehavior() 126 String str, in testDecimalQuantity() 130 assertEquals("Double is not valid", Double.toString(Double.parseDouble(str)), str); in testDecimalQuantity() 134 BigDecimal d = new BigDecimal(str); in testDecimalQuantity() 124 testDecimalQuantity( int t, String str, List<LocalizedNumberFormatter> formats, int mode) testDecimalQuantity() argument [all...] |
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/number/ |
H A D | DecimalQuantityTest.java | 106 for (String str : cases) { in testBehavior() 107 testDecimalQuantity(i++, str, formats, 0); in testBehavior() 111 for (String str : hardCases) { in testBehavior() 112 testDecimalQuantity(i++, str, formats, 1); in testBehavior() 116 for (String str : doubleCases) { in testBehavior() 117 testDecimalQuantity(i++, str, formats, 2); in testBehavior() 123 String str, in testDecimalQuantity() 127 assertEquals("Double is not valid", Double.toString(Double.parseDouble(str)), str); in testDecimalQuantity() 131 BigDecimal d = new BigDecimal(str); in testDecimalQuantity() 121 testDecimalQuantity( int t, String str, List<LocalizedNumberFormatter> formats, int mode) testDecimalQuantity() argument [all...] |
/third_party/mesa3d/src/gtest/include/gtest/internal/ |
H A D | gtest-port.h | 889 // FullMatch(str, re) returns true if and only if regular expression re 890 // matches the entire str. 891 // PartialMatch(str, re) returns true if and only if regular expression re 892 // matches a substring of str (including str itself). 893 static bool FullMatch(const ::std::string& str, const RE& re) { in FullMatch() argument 894 return FullMatch(str.c_str(), re); in FullMatch() 896 static bool PartialMatch(const ::std::string& str, const RE& re) { in PartialMatch() argument 897 return PartialMatch(str.c_str(), re); in PartialMatch() 900 static bool FullMatch(const char* str, cons 1944 StripTrailingSpaces(std::string str) StripTrailingSpaces() argument [all...] |
/third_party/node/deps/openssl/openssl/crypto/bn/asm/ |
H A D | armv4-mont.pl | 171 str $tp,[$_bpend] @ save &bp[num] 174 str $n0,[$_n0] @ save n0 value 189 str $nlo,[$tp],#4 @ tp[j-1]=,tp++ 199 str $nlo,[$num] @ tp[num-1]= 201 str $nhi,[$num,#4] @ tp[num]= 216 str $tp,[$_bp] @ save bp 233 str $nlo,[$tp],#4 @ tp[j-1]=,tp++ 246 str $nlo,[$num] @ tp[num-1]= 247 str $nhi,[$num,#4] @ tp[num]= 269 str [all...] |
/third_party/rust/crates/bindgen/bindgen/ir/ |
H A D | comp.rs | 138 fn name(&self) -> Option<&str>; in name() 144 fn comment(&self) -> Option<&str>; in comment() 372 pub fn getter_name(&self) -> &str { in getter_name() 387 pub fn setter_name(&self) -> &str { in setter_name() 400 fn name(&self) -> Option<&str> { in name() 408 fn comment(&self) -> Option<&str> { in comment() 460 fn name(&self) -> Option<&str> { in name() 468 fn comment(&self) -> Option<&str> { in comment() 768 name: &str, in deanonymize_fields() 893 fn name(&self) -> Option<&str> { in name() [all...] |
/third_party/python/Tools/demo/ |
H A D | spreadsheet.py | 163 full[0, y] = text, alignment = str(y), RIGHT 173 assert isinstance(text, str) 176 text = str(cell) 177 if isinstance(cell, str): 287 elif isinstance(self.value, str): 332 text = str(self.value) 357 assert isinstance(text, str) 398 self.value = str(exc) 405 text = str(self.value) 453 return colnum2name(x) + str( [all...] |
/third_party/python/Lib/re/ |
H A D | _parser.py | 120 print(level*" " + str(op), end='') 125 print((level+1)*" " + str(op), a) 223 self.istext = isinstance(string, str) 226 string = str(string, 'latin1') 903 msg = "bad inline flags: cannot use 'L' flag with a str pattern" 955 # Check and fix flags according to the type of pattern (str or bytes) 956 if isinstance(src, str): 958 raise ValueError("cannot use LOCALE flag with a str pattern") 970 def parse(str, flags=0, state=None): 973 source = Tokenizer(str) [all...] |
/third_party/openssl/crypto/bn/asm/ |
H A D | armv4-mont.pl | 171 str $tp,[$_bpend] @ save &bp[num] 174 str $n0,[$_n0] @ save n0 value 189 str $nlo,[$tp],#4 @ tp[j-1]=,tp++ 199 str $nlo,[$num] @ tp[num-1]= 201 str $nhi,[$num,#4] @ tp[num]= 216 str $tp,[$_bp] @ save bp 233 str $nlo,[$tp],#4 @ tp[j-1]=,tp++ 246 str $nlo,[$num] @ tp[num-1]= 247 str $nhi,[$num,#4] @ tp[num]= 269 str [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawShaderViewportIndexTests.cpp | 467 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); in initVertexTestPrograms() 468 programCollection.glslSources.add("vert_1_2") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_5, 0u, true); in initVertexTestPrograms() 484 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str()); in initVertexTestPrograms() 507 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); in initFragmentTestPrograms() 508 programCollection.glslSources.add("vert_1_2") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_5, 0u, true); in initFragmentTestPrograms() 528 programCollection.glslSources.add("frag") << glu::FragmentSource(src.str()); in initFragmentTestPrograms() 549 programCollection.glslSources.add("vert") << glu::VertexSource(src.str()); in initTessellationTestPrograms() 550 programCollection.glslSources.add("vert_1_2") << glu::VertexSource(src.str()) << vk::ShaderBuildOptions(programCollection.usedVulkanVersion, vk::SPIRV_VERSION_1_5, 0u, true); in initTessellationTestPrograms() 577 programCollection.glslSources.add("tesc") << glu::TessellationControlSource(src.str()); in initTessellationTestPrograms() 603 programCollection.glslSources.add("tese") << glu::TessellationEvaluationSource(src.str()); in initTessellationTestPrograms() [all...] |
/third_party/protobuf/ruby/ext/google/protobuf_c/ |
H A D | storage.c | 861 const char *str = upb_fielddef_defaultstr(field, &size); in layout_get_default() local 862 return get_frozen_string(str, size, in layout_get_default() 1176 VALUE str = rb_str_new2(""); in layout_inspect() local 1187 str = rb_str_cat2(str, ", "); in layout_inspect() 1191 str = rb_str_cat2(str, upb_fielddef_name(field)); in layout_inspect() 1192 str = rb_str_cat2(str, ": "); in layout_inspect() 1194 str in layout_inspect() [all...] |
/third_party/rust/crates/rust-openssl/openssl/src/x509/ |
H A D | mod.rs | 24 use std::str; 903 name: &str, in new() 904 value: &str, in new() 956 value: &str, in new_nid() 1072 /// Add a field entry by str. 1077 pub fn append_entry_by_text(&mut self, field: &str, value: &str) -> Result<(), ErrorStack> { in append_entry_by_text() 1094 /// Add a field entry by str with a specific type. 1101 field: &str, in append_entry_by_text_with_type() 1102 value: &str, in append_entry_by_text_with_type() [all...] |
/kernel/linux/linux-5.10/scripts/ |
H A D | get_maintainer.pl | 1877 my $str = substr($nr, 1); 1879 $val = $1 if $str =~ /^(\d+)$/; 1900 if (lc($str) eq "m") { 1905 } elsif (lc($str) eq "g") { 1910 } elsif (lc($str) eq "l") { 1915 } elsif (lc($str) eq "s") { 1924 } elsif ($str eq '*' || $str eq '^') { 1926 $toggle = 1 if ($str eq '*'); 1934 } elsif ($str e [all...] |
/kernel/linux/linux-6.6/arch/x86/kernel/ |
H A D | alternative.c | 49 static int __init debug_alt(char *str) in debug_alt() argument 51 if (str && *str == '=') in debug_alt() 52 str++; in debug_alt() 54 if (!str || kstrtouint(str, 0, &debug_alternative)) in debug_alt() 63 static int __init setup_noreplace_smp(char *str) in setup_noreplace_smp() argument 873 static __init int cfi_parse_cmdline(char *str) in cfi_parse_cmdline() argument 875 if (!str) in cfi_parse_cmdline() 878 while (str) { in cfi_parse_cmdline() [all...] |
/kernel/linux/linux-6.6/scripts/ |
H A D | get_maintainer.pl | 1878 my $str = substr($nr, 1); 1880 $val = $1 if $str =~ /^(\d+)$/; 1901 if (lc($str) eq "m") { 1906 } elsif (lc($str) eq "g") { 1911 } elsif (lc($str) eq "l") { 1916 } elsif (lc($str) eq "s") { 1925 } elsif ($str eq '*' || $str eq '^') { 1927 $toggle = 1 if ($str eq '*'); 1935 } elsif ($str e [all...] |
/test/testfwk/xdevice/src/xdevice/_core/report/ |
H A D | reporter_helper.py | 184 element.set(key, str(value)) 211 suite.set(ReportConstant.time, str(update_time)) 212 update_tests = str(int(suite.get(ReportConstant.tests, 0))+1) 215 update_failures = str(int(suite.get(ReportConstant.failures, 0))+1) 285 summary_element.set(attribute, str(updated_value)) 290 summary_element.set(ReportConstant.time, str(updated_time)) 317 return str( 529 exec_info.product_info = literal_eval(str(product_info)) 542 execute_time = "{}sec".format(str(int(second))) 544 execute_time = "{}min {}".format(str(in [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/mesh_shader/ |
H A D | vktMeshShaderInOutTestsEXT.cpp | 169 return name.str(); 204 return decl.str(); 219 return decl.str(); 256 check << "(" << name << " <= " << maxElem.str() << ") && (" << name << " >= " << minElem.str() << ")"; 260 check << "all(lessThanEqual(" << name << ", " << maxElem.str() << ")) && " 261 << "all(greaterThanEqual(" << name << ", " << minElem.str() << "))"; 273 return check.str(); 284 return stmt.str(); 762 const auto bindingsDecl = bindings.str(); [all...] |
H A D | vktMeshShaderSmokeTestsEXT.cpp | 291 dst.glslSources.add("mesh") << glu::MeshSource(mesh.str()) << buildOptions; in initPrograms() 327 dst.glslSources.add("task") << glu::TaskSource(task.str()) << buildOptions; in initPrograms() 375 dst.glslSources.add("mesh") << glu::MeshSource(mesh.str()) << buildOptions; in initPrograms() 397 dst.glslSources.add("task") << glu::TaskSource(task.str()) << buildOptions; in initPrograms() 436 dst.glslSources.add("mesh") << glu::MeshSource(mesh.str()) << buildOptions; in initPrograms() 695 programCollection.glslSources.add("frag") << glu::FragmentSource(frag.str()); in initGradientPrograms() 797 programCollection.glslSources.add("mesh") << glu::MeshSource(mesh.str()) << buildOptions; in initGradientPrograms() 804 return msg.str(); in coordColorFormat() 975 log << tcu::TestLog::Message << msg.str() << tcu::TestLog::EndMessage; in testFullscreenGradient() 985 log << tcu::TestLog::Message << msg.str() << tc in testFullscreenGradient() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/mesh_shader/ |
H A D | vktMeshShaderInOutTestsEXT.cpp | 169 return name.str(); 204 return decl.str(); 219 return decl.str(); 256 check << "(" << name << " <= " << maxElem.str() << ") && (" << name << " >= " << minElem.str() << ")"; 260 check << "all(lessThanEqual(" << name << ", " << maxElem.str() << ")) && " 261 << "all(greaterThanEqual(" << name << ", " << minElem.str() << "))"; 273 return check.str(); 284 return stmt.str(); 762 const auto bindingsDecl = bindings.str(); [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/geometry_shader/ |
H A D | esextcGeometryShaderLimits.cpp | 1327 m_max_uniform_vectors_string = stream.str(); in getShaderParts() 1502 m_max_uniform_blocks_string = stream.str(); in getShaderParts() 1510 stream.str(std::string()); in getShaderParts() 1516 m_uniform_block_access_string = stream.str(); in getShaderParts() 1672 m_max_geometry_input_vectors_string = stream.str(); in getShaderParts() 1948 out_shader_code = stream.str(); in prepareFragmentShader() 1979 out_shader_code = stream.str(); in prepareGeometryShader() 2025 valid_output_vertices_string = stream_valid.str(); in iterate() 2029 invalid_output_vertices_string = stream_invalid.str(); in iterate() 2265 out_shader_code = stream.str(); in prepareFragmentShader() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Support/ |
H A D | FileCheck.cpp | 591 RegExStr += RS.str(); in AddRegExToRegEx() 743 SM.PrintMessage(MatchRange.Start, SourceMgr::DK_Note, OS.str(), in printSubstitutions() 747 SourceMgr::DK_Note, OS.str()); in printSubstitutions() 948 return Prefix.str() + "-COUNT"; in getDescription() 951 return Prefix.str() + "-NEXT"; in getDescription() 953 return Prefix.str() + "-SAME"; in getDescription() 955 return Prefix.str() + "-NOT"; in getDescription() 957 return Prefix.str() + "-DAG"; in getDescription() 959 return Prefix.str() + "-LABEL"; in getDescription() 961 return Prefix.str() in getDescription() [all...] |