Searched refs:haystack (Results 1 – 3 of 3) sorted by relevance
/system/vold/ |
D | CheckEncryption.cpp | 59 auto haystack = android::vold::BlockDeviceForPath(needle); in check_file() local 60 if (haystack.empty()) { in check_file() 89 unique_fd haystack_fd(open(haystack.c_str(), O_RDONLY | O_CLOEXEC)); in check_file() 91 PLOG(ERROR) << "Failed to open " << haystack; in check_file()
|
/system/iorap/src/inode2filename/ |
D | main.cc | 125 bool StartsWith(std::string_view haystack, std::string_view needle) { in StartsWith() argument 126 return haystack.size() >= needle.size() in StartsWith() 127 && haystack.compare(0, needle.size(), needle) == 0; in StartsWith() 130 bool EndsWith(std::string_view haystack, std::string_view needle) { in EndsWith() argument 131 return haystack.size() >= needle.size() in EndsWith() 132 && haystack.compare(haystack.size() - needle.size(), haystack.npos, needle) == 0; in EndsWith() 135 bool StartsWithOneOf(std::string_view haystack, in StartsWithOneOf() argument 138 return StartsWith(haystack, needle) || StartsWith(haystack, needle2); in StartsWithOneOf()
|
/system/teeui/libteeui/prebuilt/localization/ |
D | ConfirmationUITranslations.c | 1087 static int ConfirmationUITranslations_find_str(const char** haystack, const char* needle) { in ConfirmationUITranslations_find_str() argument 1088 for (int n = 0; haystack[n] != NULL; n++) { in ConfirmationUITranslations_find_str() 1089 if (strcmp(needle, haystack[n]) == 0) { in ConfirmationUITranslations_find_str()
|