/aosp_15_r20/external/apache-commons-lang/src/test/java/org/apache/commons/lang3/ |
H A D | StringUtilsStartsEndsWithTest.java | 26 * Unit tests {@link org.apache.commons.lang3.StringUtils} - StartsWith/EndsWith methods 104 * Test StringUtils.endsWith() 108 assertTrue(StringUtils.endsWith(null, null), "endsWith(null, null)"); in testEndsWith() 109 assertFalse(StringUtils.endsWith(FOOBAR, null), "endsWith(FOOBAR, null)"); in testEndsWith() 110 assertFalse(StringUtils.endsWith(null, FOO), "endsWith(null, FOO)"); in testEndsWith() 111 assertTrue(StringUtils.endsWith(FOOBAR, ""), "endsWith(FOOBAR, \"\")"); in testEndsWith() 113 assertFalse(StringUtils.endsWith(foobar, foo), "endsWith(foobar, foo)"); in testEndsWith() 114 assertFalse(StringUtils.endsWith(FOOBAR, FOO), "endsWith(FOOBAR, FOO)"); in testEndsWith() 115 assertFalse(StringUtils.endsWith(foobar, FOO), "endsWith(foobar, FOO)"); in testEndsWith() 116 assertFalse(StringUtils.endsWith(FOOBAR, foo), "endsWith(FOOBAR, foo)"); in testEndsWith() [all …]
|
/aosp_15_r20/external/capstone/suite/ |
H A D | autogen_x86imm.py | 17 if name.endswith("_DB"): # pseudo instruction 22 if name.endswith("16mi8"): 24 elif name.endswith("16ri8"): 26 elif name.endswith("32ri8"): 28 elif name.endswith("32mi8"): 30 elif name.endswith("64i32"): 32 elif name.endswith("64mi32"): 34 elif name.endswith("64ri32"): 36 elif name.endswith("64ri8"): 38 elif name.endswith("64mi8"): [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-16.0/llvm/lib/Target/Lanai/ |
H A D | LanaiCondCode.h | 75 .EndsWith("f", LPCC::ICC_F) in suffixToLanaiCondCode() 76 .EndsWith("hi", LPCC::ICC_HI) in suffixToLanaiCondCode() 77 .EndsWith("ugt", LPCC::ICC_UGT) in suffixToLanaiCondCode() 78 .EndsWith("ls", LPCC::ICC_LS) in suffixToLanaiCondCode() 79 .EndsWith("ule", LPCC::ICC_ULE) in suffixToLanaiCondCode() 80 .EndsWith("cc", LPCC::ICC_CC) in suffixToLanaiCondCode() 81 .EndsWith("ult", LPCC::ICC_ULT) in suffixToLanaiCondCode() 82 .EndsWith("cs", LPCC::ICC_CS) in suffixToLanaiCondCode() 83 .EndsWith("uge", LPCC::ICC_UGE) in suffixToLanaiCondCode() 84 .EndsWith("ne", LPCC::ICC_NE) in suffixToLanaiCondCode() [all …]
|
/aosp_15_r20/external/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Lanai/ |
H A D | LanaiCondCode.h | 75 .EndsWith("f", LPCC::ICC_F) in suffixToLanaiCondCode() 76 .EndsWith("hi", LPCC::ICC_HI) in suffixToLanaiCondCode() 77 .EndsWith("ugt", LPCC::ICC_UGT) in suffixToLanaiCondCode() 78 .EndsWith("ls", LPCC::ICC_LS) in suffixToLanaiCondCode() 79 .EndsWith("ule", LPCC::ICC_ULE) in suffixToLanaiCondCode() 80 .EndsWith("cc", LPCC::ICC_CC) in suffixToLanaiCondCode() 81 .EndsWith("ult", LPCC::ICC_ULT) in suffixToLanaiCondCode() 82 .EndsWith("cs", LPCC::ICC_CS) in suffixToLanaiCondCode() 83 .EndsWith("uge", LPCC::ICC_UGE) in suffixToLanaiCondCode() 84 .EndsWith("ne", LPCC::ICC_NE) in suffixToLanaiCondCode() [all …]
|
/aosp_15_r20/external/llvm/lib/Target/Lanai/ |
H A D | LanaiCondCode.h | 75 .EndsWith("f", LPCC::ICC_F) in suffixToLanaiCondCode() 76 .EndsWith("hi", LPCC::ICC_HI) in suffixToLanaiCondCode() 77 .EndsWith("ugt", LPCC::ICC_UGT) in suffixToLanaiCondCode() 78 .EndsWith("ls", LPCC::ICC_LS) in suffixToLanaiCondCode() 79 .EndsWith("ule", LPCC::ICC_ULE) in suffixToLanaiCondCode() 80 .EndsWith("cc", LPCC::ICC_CC) in suffixToLanaiCondCode() 81 .EndsWith("ult", LPCC::ICC_ULT) in suffixToLanaiCondCode() 82 .EndsWith("cs", LPCC::ICC_CS) in suffixToLanaiCondCode() 83 .EndsWith("uge", LPCC::ICC_UGE) in suffixToLanaiCondCode() 84 .EndsWith("ne", LPCC::ICC_NE) in suffixToLanaiCondCode() [all …]
|
/aosp_15_r20/external/exoplayer/tree_15dc86382f17a24a3e881e52e31a810c1ea44b49/library/common/src/main/java/com/google/android/exoplayer2/util/ |
H A D | FileTypes.java | 181 } else if (filename.endsWith(EXTENSION_AC3) || filename.endsWith(EXTENSION_EC3)) { in inferFileTypeFromUri() 183 } else if (filename.endsWith(EXTENSION_AC4)) { in inferFileTypeFromUri() 185 } else if (filename.endsWith(EXTENSION_ADTS) || filename.endsWith(EXTENSION_AAC)) { in inferFileTypeFromUri() 187 } else if (filename.endsWith(EXTENSION_AMR)) { in inferFileTypeFromUri() 189 } else if (filename.endsWith(EXTENSION_FLAC)) { in inferFileTypeFromUri() 191 } else if (filename.endsWith(EXTENSION_FLV)) { in inferFileTypeFromUri() 196 || filename.endsWith(EXTENSION_WEBM)) { in inferFileTypeFromUri() 198 } else if (filename.endsWith(EXTENSION_MP3)) { in inferFileTypeFromUri() 200 } else if (filename.endsWith(EXTENSION_MP4) in inferFileTypeFromUri() 214 || filename.endsWith(EXTENSION_OPUS)) { in inferFileTypeFromUri() [all …]
|
/aosp_15_r20/external/exoplayer/tree_8e57d3715f9092d5ec54ebe2e538f34bfcc34479/library/common/src/main/java/com/google/android/exoplayer2/util/ |
H A D | FileTypes.java | 182 } else if (filename.endsWith(EXTENSION_AC3) || filename.endsWith(EXTENSION_EC3)) { in inferFileTypeFromUri() 184 } else if (filename.endsWith(EXTENSION_AC4)) { in inferFileTypeFromUri() 186 } else if (filename.endsWith(EXTENSION_ADTS) || filename.endsWith(EXTENSION_AAC)) { in inferFileTypeFromUri() 188 } else if (filename.endsWith(EXTENSION_AMR)) { in inferFileTypeFromUri() 190 } else if (filename.endsWith(EXTENSION_FLAC)) { in inferFileTypeFromUri() 192 } else if (filename.endsWith(EXTENSION_FLV)) { in inferFileTypeFromUri() 197 || filename.endsWith(EXTENSION_WEBM)) { in inferFileTypeFromUri() 199 } else if (filename.endsWith(EXTENSION_MP3)) { in inferFileTypeFromUri() 201 } else if (filename.endsWith(EXTENSION_MP4) in inferFileTypeFromUri() 215 || filename.endsWith(EXTENSION_OPUS)) { in inferFileTypeFromUri() [all …]
|
/aosp_15_r20/external/selinux/python/sepolicy/sepolicy/ |
H A D | __init__.py | 524 if i['target'].endswith("_t"): 552 if p.endswith("(/.*)?"): 573 if exe.endswith("_exec_t") and exe not in exclude_list: 583 if exe.endswith("_exec_t") and exe not in exclude_list: 1015 if f.endswith("_var_run_t"): 1017 if f.endswith("_pid_t"): 1019 if f.endswith("_var_lib_t"): 1021 if f.endswith("_var_t"): 1023 if f.endswith("_var_spool_t"): 1025 if f.endswith("_spool_t"): [all …]
|
/aosp_15_r20/external/skia/ |
H A D | PRESUBMIT.py | 55 is_json = affected_file_path.endswith('.json') 57 affected_file_path.endswith('/METADATA')) 92 if affected_file_path.endswith('.cpp') or affected_file_path.endswith('.h'): 128 affected_file.LocalPath().endswith('gen.go')): 157 if (f.LocalPath().endswith('.gn') or 158 f.LocalPath().endswith('.gni')): 189 if f.LocalPath().endswith('.md'): 314 if (affected_file_path.endswith('.go') or 315 affected_file_path.endswith('BUILD.bazel')): 329 is_bazel = affected_file_path.endswith('BUILD.bazel') [all …]
|
/aosp_15_r20/cts/tools/release-parser/src/com/android/cts/releaseparser/ |
H A D | FileParser.java | 66 } else if (fName.endsWith(APK_EXT_TAG)) { in getParser() 68 } else if (fName.endsWith(CONFIG_EXT_TAG)) { in getParser() 70 } else if (fName.endsWith(TEST_SUITE_TRADEFED_TAG)) { in getParser() 72 } else if (fName.endsWith(JAR_EXT_TAG)) { in getParser() 75 } else if (fName.endsWith(SO_EXT_TAG)) { in getParser() 77 } else if (fName.endsWith(ART_EXT_TAG)) { in getParser() 79 } else if (fName.endsWith(OAT_EXT_TAG)) { in getParser() 81 } else if (fName.endsWith(ODEX_EXT_TAG)) { in getParser() 83 } else if (fName.endsWith(VDEX_EXT_TAG)) { in getParser() 85 } else if (fName.endsWith(BUILD_PROP_EXT_TAG)) { in getParser() [all …]
|
/aosp_15_r20/external/python/cpython3/Lib/test/ |
D | string_tests.py | 1136 self.checkequal(True, 'hello', 'endswith', 'lo') 1137 self.checkequal(False, 'hello', 'endswith', 'he') 1138 self.checkequal(True, 'hello', 'endswith', '') 1139 self.checkequal(False, 'hello', 'endswith', 'hello world') 1140 self.checkequal(False, 'helloworld', 'endswith', 'worl') 1141 self.checkequal(True, 'helloworld', 'endswith', 'worl', 3, 9) 1142 self.checkequal(True, 'helloworld', 'endswith', 'world', 3, 12) 1143 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 1, 7) 1144 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 2, 7) 1145 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 3, 7) [all …]
|
/aosp_15_r20/external/python/cpython2/Lib/test/ |
D | string_tests.py | 978 self.checkequal(True, 'hello', 'endswith', 'lo') 979 self.checkequal(False, 'hello', 'endswith', 'he') 980 self.checkequal(True, 'hello', 'endswith', '') 981 self.checkequal(False, 'hello', 'endswith', 'hello world') 982 self.checkequal(False, 'helloworld', 'endswith', 'worl') 983 self.checkequal(True, 'helloworld', 'endswith', 'worl', 3, 9) 984 self.checkequal(True, 'helloworld', 'endswith', 'world', 3, 12) 985 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 1, 7) 986 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 2, 7) 987 self.checkequal(True, 'helloworld', 'endswith', 'lowo', 3, 7) [all …]
|
/aosp_15_r20/external/openscreen/third_party/abseil/src/absl/strings/ |
H A D | match_test.cc | 38 TEST(MatchTest, EndsWith) { in TEST() argument 43 EXPECT_TRUE(absl::EndsWith(a, a)); in TEST() 44 EXPECT_TRUE(absl::EndsWith(a, "bar")); in TEST() 45 EXPECT_TRUE(absl::EndsWith(a, e)); in TEST() 46 EXPECT_TRUE(absl::EndsWith(b, s1)); in TEST() 47 EXPECT_TRUE(absl::EndsWith(b, b)); in TEST() 48 EXPECT_TRUE(absl::EndsWith(b, e)); in TEST() 49 EXPECT_TRUE(absl::EndsWith(e, "")); in TEST() 50 EXPECT_FALSE(absl::EndsWith(a, b)); in TEST() 51 EXPECT_FALSE(absl::EndsWith(b, a)); in TEST() [all …]
|
/aosp_15_r20/external/private-join-and-compute/third_party/abseil-cpp-20230125.2/absl/strings/ |
H A D | match_test.cc | 38 TEST(MatchTest, EndsWith) { in TEST() argument 43 EXPECT_TRUE(absl::EndsWith(a, a)); in TEST() 44 EXPECT_TRUE(absl::EndsWith(a, "bar")); in TEST() 45 EXPECT_TRUE(absl::EndsWith(a, e)); in TEST() 46 EXPECT_TRUE(absl::EndsWith(b, s1)); in TEST() 47 EXPECT_TRUE(absl::EndsWith(b, b)); in TEST() 48 EXPECT_TRUE(absl::EndsWith(b, e)); in TEST() 49 EXPECT_TRUE(absl::EndsWith(e, "")); in TEST() 50 EXPECT_FALSE(absl::EndsWith(a, b)); in TEST() 51 EXPECT_FALSE(absl::EndsWith(b, a)); in TEST() [all …]
|
/aosp_15_r20/external/rust/android-crates-io/crates/grpcio-sys/grpc/third_party/abseil-cpp/absl/strings/ |
D | match_test.cc | 38 TEST(MatchTest, EndsWith) { in TEST() argument 43 EXPECT_TRUE(absl::EndsWith(a, a)); in TEST() 44 EXPECT_TRUE(absl::EndsWith(a, "bar")); in TEST() 45 EXPECT_TRUE(absl::EndsWith(a, e)); in TEST() 46 EXPECT_TRUE(absl::EndsWith(b, s1)); in TEST() 47 EXPECT_TRUE(absl::EndsWith(b, b)); in TEST() 48 EXPECT_TRUE(absl::EndsWith(b, e)); in TEST() 49 EXPECT_TRUE(absl::EndsWith(e, "")); in TEST() 50 EXPECT_FALSE(absl::EndsWith(a, b)); in TEST() 51 EXPECT_FALSE(absl::EndsWith(b, a)); in TEST() [all …]
|
/aosp_15_r20/external/webrtc/third_party/abseil-cpp/absl/strings/ |
H A D | match_test.cc | 38 TEST(MatchTest, EndsWith) { in TEST() argument 43 EXPECT_TRUE(absl::EndsWith(a, a)); in TEST() 44 EXPECT_TRUE(absl::EndsWith(a, "bar")); in TEST() 45 EXPECT_TRUE(absl::EndsWith(a, e)); in TEST() 46 EXPECT_TRUE(absl::EndsWith(b, s1)); in TEST() 47 EXPECT_TRUE(absl::EndsWith(b, b)); in TEST() 48 EXPECT_TRUE(absl::EndsWith(b, e)); in TEST() 49 EXPECT_TRUE(absl::EndsWith(e, "")); in TEST() 50 EXPECT_FALSE(absl::EndsWith(a, b)); in TEST() 51 EXPECT_FALSE(absl::EndsWith(b, a)); in TEST() [all …]
|
/aosp_15_r20/external/pytorch/benchmarks/dynamo/ |
H A D | huggingface.py | 191 if model_name.endswith("MultipleChoice"): 232 if model_name.endswith("PreTraining"): 245 elif model_name.endswith("QuestionAnswering"): 251 model_name.endswith("MaskedLM") 252 or model_name.endswith("HeadModel") 253 or model_name.endswith("CausalLM") 254 or model_name.endswith("DoubleHeadsModel") 259 elif model_name.endswith("TokenClassification"): 263 elif model_name.endswith("MultipleChoice"): 265 elif model_name.endswith("SequenceClassification"): [all …]
|
/aosp_15_r20/system/tools/hidl/test/host_utils_test/ |
D | main.cpp | 29 EXPECT_TRUE(StringHelper::EndsWith("", "")); in TEST_F() 30 EXPECT_TRUE(StringHelper::EndsWith("a", "")); in TEST_F() 31 EXPECT_TRUE(StringHelper::EndsWith("b", "b")); in TEST_F() 32 EXPECT_TRUE(StringHelper::EndsWith("ab", "b")); in TEST_F() 33 EXPECT_TRUE(StringHelper::EndsWith("ab", "ab")); in TEST_F() 34 EXPECT_TRUE(StringHelper::EndsWith("abcd", "bcd")); in TEST_F() 35 EXPECT_TRUE(StringHelper::EndsWith("abcd", "abcd")); in TEST_F() 36 EXPECT_TRUE(StringHelper::EndsWith("abcdefghijk", "ijk")); in TEST_F() 37 EXPECT_TRUE(StringHelper::EndsWith("abcdefghijk", "bcdefghijk")); in TEST_F() 39 EXPECT_FALSE(StringHelper::EndsWith("", "a")); in TEST_F() [all …]
|
/aosp_15_r20/frameworks/libs/binary_translation/assembler/ |
D | gen_asm_tests_x86.py | 302 assert insn_name.endswith('CC') 321 if arc_name.endswith('ByOne'): 322 assert insn_name.endswith('BYONE') 324 elif arc_name.endswith('Imm2'): 325 assert insn_name.endswith('IMM2') 327 elif arc_name.endswith('Imm8'): 328 assert insn_name.endswith('IMM8') 330 elif arc_name.endswith('Accumulator'): 331 assert insn_name.endswith('ACCUMULATOR') 333 elif arc_name.endswith('ByCl'): [all …]
|
/aosp_15_r20/external/angle/src/common/ |
H A D | string_utils_unittest.cpp | 328 return EndsWith(str, suffix); in runEndsWith() 332 return EndsWith(std::string(str), suffix); in runEndsWith() 334 return EndsWith(std::string(str), std::string(suffix)); in runEndsWith() 339 ASSERT_FALSE(EndsWith("foo", "bar")); in runTest() 340 ASSERT_FALSE(EndsWith("", "bar")); in runTest() 341 ASSERT_FALSE(EndsWith("foo", "foobar")); in runTest() 343 ASSERT_TRUE(EndsWith("foobar", "bar")); in runTest() 344 ASSERT_TRUE(EndsWith("foobar", "")); in runTest() 345 ASSERT_TRUE(EndsWith("bar", "bar")); in runTest() 346 ASSERT_TRUE(EndsWith("", "")); in runTest() [all …]
|
/aosp_15_r20/external/perfetto/src/base/ |
H A D | string_view_unittest.cc | 177 // Test EndsWith. in TEST() 178 EXPECT_TRUE(StringView().EndsWith(StringView())); in TEST() 179 EXPECT_TRUE(StringView().EndsWith(StringView(""))); in TEST() 180 EXPECT_TRUE(StringView("").EndsWith(StringView(""))); in TEST() 181 EXPECT_TRUE(StringView("").EndsWith(StringView())); in TEST() 182 EXPECT_TRUE(StringView("foo").EndsWith(StringView())); in TEST() 183 EXPECT_TRUE(StringView("foo").EndsWith(StringView(""))); in TEST() 184 EXPECT_FALSE(StringView().EndsWith("foo")); in TEST() 185 EXPECT_FALSE(StringView("").EndsWith("foo")); in TEST() 186 EXPECT_TRUE(StringView("foo").EndsWith("foo")); in TEST() [all …]
|
/aosp_15_r20/external/pytorch/test/ |
H A D | test_jit_string.py | 105 "hello".endswith("lo"), 106 "hello".endswith("lo", 0), 107 "hello".endswith("lo", -2), 108 "hello".endswith("lo", -8), 109 "hello".endswith("lo", 0, -5), 110 "hello".endswith("lo", -2, 3), 111 "hello".endswith("lo", -8, 4), 112 "hello".endswith("l"), 113 "hello".endswith("l", 0), 114 "hello".endswith("l", -2), [all …]
|
/aosp_15_r20/tools/asuite/atest/ |
H A D | unittest_utils.py | 115 if value.endswith('.cc'): 117 if value.endswith('.cpp'): 119 if value.endswith('.java'): 121 if value.endswith('.kt'): 123 if value.endswith(uc.INT_NAME + '.xml'): 125 if value.endswith(uc.GTF_INT_NAME + '.xml'): 127 if value.endswith( 131 if value.endswith('/%s/%s' % (uc.SINGLE_CONFIG_PATH, uc.SINGLE_CONFIG_NAME)): 133 if value.endswith('/%s/%s' % (uc.MULTIPLE_CONFIG_PATH, uc.MAIN_CONFIG_NAME)): 135 if value.endswith('/%s/%s' % (uc.MULTIPLE_CONFIG_PATH, uc.SUB_CONFIG_NAME_2)):
|
/aosp_15_r20/external/cronet/third_party/boringssl/src/util/fipstools/acvp/acvptool/ |
H A D | interactive.go | 546 case "endsWith": 547 ret.Relation = acvp.EndsWith 585 "name": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 586 "website": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 587 "email": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 588 "phoneNumber": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 614 "fullName": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 615 "email": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 616 "phoneNumber": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 625 "name": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, [all …]
|
/aosp_15_r20/external/boringssl/src/util/fipstools/acvp/acvptool/ |
H A D | interactive.go | 546 case "endsWith": 547 ret.Relation = acvp.EndsWith 585 "name": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 586 "website": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 587 "email": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 588 "phoneNumber": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 614 "fullName": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 615 "email": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 616 "phoneNumber": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, 625 "name": []acvp.Relation{acvp.Equals, acvp.StartsWith, acvp.EndsWith, acvp.Contains}, [all …]
|