Searched refs:needle (Results 1 – 6 of 6) sorted by relevance
/system/logging/logd/ |
D | LogUtils.h | 47 const char* needle) { in strnstr() argument 50 const char c = *needle++; in strnstr() 51 const size_t needleLen = strlen(needle); in strnstr() 57 } while (fastcmp<memcmp>(s, needle, needleLen)); in strnstr()
|
/system/core/bootstat/ |
D | bootstat.cpp | 630 size_t rfind(const std::string& needle) const { in rfind() 631 size_t pos = console.rfind(needle); // exact match? in rfind() 636 if (needle.length() > pos) return std::string::npos; in rfind() 637 pos -= needle.length(); in rfind() 640 if (numError(pos, needle) != std::string::npos) return pos; in rfind() 648 size_t find(const std::string& needle, size_t start = 0) const { in find() argument 650 if (needle.length() > console.length()) return std::string::npos; in find() 651 const size_t last_pos = console.length() - needle.length(); in find() 654 if (numError(pos, needle) != std::string::npos) return pos; in find() 664 bool correctForBitError(std::string& reason, const std::string& needle) { in correctForBitError() argument [all …]
|
/system/teeui/libteeui/prebuilt/localization/ |
D | ConfirmationUITranslations.cpp | 1307 static int findStr(const char* const* haystack, const char* needle) { in findStr() argument 1309 if (strcmp(needle, haystack[n]) == 0) { in findStr()
|
/system/core/libutils/binder/ |
D | Unicode.cpp | 247 const char16_t needle = *target; in strstr16() local 248 if (needle == '\0') return (char16_t*)src; in strstr16() 256 } while (*src++ != needle); in strstr16()
|
/system/update_engine/payload_consumer/ |
D | postinstall_runner_action.cc | 53 std::string_view needle) { in Contains() argument 54 return haystack.find(needle) != std::string::npos; in Contains()
|
/system/logging/logcat/tests/ |
D | logcat_test.cpp | 188 char needle[32]; in TEST() local 193 strftime(needle, sizeof(needle), "[ %Y-", ptm); in TEST() 203 if (!strncmp(buffer, needle, strlen(needle))) { in TEST()
|