Home
last modified time | relevance | path

Searched refs:EndsWith (Results 1 – 23 of 23) sorted by relevance

/frameworks/base/core/jni/
Dfd_utils.cpp91 android::base::EndsWith(path, kJarSuffix)) { in IsAllowed()
99 if (android::base::StartsWith(path, kApexPrefix) && android::base::EndsWith(path, kJarSuffix) && in IsAllowed()
100 android::base::EndsWith(android::base::Dirname(path), kApexJavalibPathSuffix)) { in IsAllowed()
141 android::base::EndsWith(path, kApkSuffix) && path.find("/../") == std::string::npos) { in IsAllowed()
148 android::base::EndsWith(android::base::Dirname(path), kOverlayPathSuffix) && in IsAllowed()
149 android::base::EndsWith(path, kApkSuffix) && path.find("/../") == std::string::npos) { in IsAllowed()
156 android::base::EndsWith(path, kOverlayIdmapSuffix) && in IsAllowed()
/frameworks/native/libs/binder/tests/
DbinderUtilsHostTest.cpp55 return android::base::EndsWith(commandResult.stdoutStr, "\n"); in TEST()
80 return android::base::EndsWith(commandResult.stdoutStr, "\n"); in TEST()
DbinderHostDeviceTest.cpp35 using ::android::base::EndsWith;
/frameworks/libs/binary_translation/base/include/berberis/base/
Dstrings.h25 using android::base::EndsWith;
/frameworks/base/services/core/xsd/vts/
DValidateDefaultPermissions.cpp41 if (android::base::EndsWith(de->d_name, ".xml")) { in get_files_in_dirs()
/frameworks/base/services/core/jni/
Dcom_android_server_UsbAlsaJackDetector.cpp47 if (android::base::EndsWith(name, suffix)) { in find_mixer_with_suffix()
/frameworks/native/libs/binder/ndk/tests/
DbinderVendorDoubleLoadTest.cpp37 using ::android::base::EndsWith;
/frameworks/base/tools/aapt2/io/
DZipArchive.cpp137 if (util::EndsWith(zip_entry_path, "/")) { in Create()
/frameworks/base/tools/aapt2/cmd/
DLink.cpp345 if (util::EndsWith(str, extension)) { in GetCompressionFlags()
1569 if (util::EndsWith(path, ".flata") || util::EndsWith(path, ".jar") || in MergePath()
1570 util::EndsWith(path, ".jack") || util::EndsWith(path, ".zip")) { in MergePath()
1572 } else if (util::EndsWith(path, ".apk")) { in MergePath()
1589 if (util::EndsWith(src.path, ".xml") || util::EndsWith(src.path, ".png")) { in MergeFile()
1592 const StringPiece file_type = util::EndsWith(src.path, ".xml") ? "XML" : "PNG"; in MergeFile()
1598 } else if (!util::EndsWith(src.path, ".apc") && !util::EndsWith(src.path, ".flat")) { in MergeFile()
/frameworks/native/cmds/installd/
Dotapreopt.cpp62 using android::base::EndsWith;
486 CHECK(EndsWith(path, "/")); in ShouldSkipPreopt()
Dutils.cpp56 using android::base::EndsWith;
1350 if (EndsWith(name, PROFILE_EXT)) { in collect_profiles()
Ddexopt.cpp70 using android::base::EndsWith;
916 if (EndsWith(oat_path, ".dex")) { in replace_file_extension()
919 CHECK(EndsWith(new_path, new_ext)); in replace_file_extension()
DInstalldNativeService.cpp1167 if (!base::EndsWith(profileName, ".prof")) { in clearAppProfiles()
3211 if (!base::EndsWith(systemProfile, ".prof")) { in copySystemProfile()
3218 if (!base::EndsWith(profileName, ".prof")) { in copySystemProfile()
/frameworks/base/tools/aapt2/util/
DUtil.h58 bool EndsWith(android::StringPiece str, android::StringPiece suffix);
DUtil_test.cpp48 EXPECT_TRUE(util::EndsWith("hello.xml", ".xml")); in TEST()
DUtil.cpp79 bool EndsWith(StringPiece str, StringPiece suffix) { in EndsWith() function
/frameworks/native/cmds/dumpstate/tests/
Ddumpstate_test.cpp55 using ::testing::EndsWith;
797 EXPECT_THAT(out, EndsWith("root " + kSimpleCommand + "' on user build.\n")); in TEST_F()
1508 EXPECT_THAT(out, EndsWith("stdout line1\n*** command '" + kSimpleCommand + in TEST_F()
1533 EXPECT_THAT(out, EndsWith("root " + kSimpleCommand + "' on user build.\n")); in TEST_F()
1688 EXPECT_THAT(out, EndsWith("skipped on dry run\n")); in TEST_F()
/frameworks/native/cmds/servicemanager/
Dtest_sm.cpp35 using android::base::EndsWith;
87 return StartsWith(device, "vsoc_") && EndsWith(product, "_phone"); in isCuttlefishPhone()
/frameworks/native/vulkan/libvulkan/
Dlayers_extensions.cpp436 android::base::EndsWith(filename, ".so")) { in DiscoverLayersInPathList()
/frameworks/base/tools/aapt2/
DResourceUtils.cpp797 } else if (util::EndsWith(*file_ref->path, ".xml")) { in ParseBinaryResValue()
799 } else if (util::EndsWith(*file_ref->path, ".png")) { in ParseBinaryResValue()
/frameworks/base/tools/aapt2/configuration/
DConfigurationParser.cpp373 if (!util::EndsWith(result, ext)) { in ToBaseName()
/frameworks/native/cmds/lshal/
Dtest.cpp1152 EXPECT_THAT(err.str(), EndsWith(errStr)) in TEST_F()
/frameworks/base/libs/androidfw/
DPng.cpp1218 if (android::base::EndsWith(source.path, ".9.png")) { in process()