Home
last modified time | relevance | path

Searched refs:needle (Results 1 – 5 of 5) sorted by relevance

/system/vold/
DCheckEncryption.cpp57 bool check_file(const std::string& needle) { in check_file() argument
58 LOG(DEBUG) << "checkEncryption check_file: " << needle; in check_file()
59 auto haystack = android::vold::BlockDeviceForPath(needle); in check_file()
61 LOG(ERROR) << "Failed to find device for path: " << needle; in check_file()
76 if (access(needle.c_str(), F_OK) == 0) { in check_file()
77 if (unlink(needle.c_str()) != 0) { in check_file()
78 PLOG(ERROR) << "Failed to unlink " << needle; in check_file()
82 LOG(DEBUG) << "Writing to " << needle; in check_file()
83 if (!WriteStringToFile(towrite, needle)) { in check_file()
84 PLOG(ERROR) << "Failed to write " << needle; in check_file()
[all …]
/system/core/logd/
DLogUtils.h53 const char* needle) { in strnstr() argument
56 const char c = *needle++; in strnstr()
57 const size_t needleLen = strlen(needle); in strnstr()
63 } while (fastcmp<memcmp>(s, needle, needleLen)); in strnstr()
/system/core/bootstat/
Dbootstat.cpp465 size_t rfind(const std::string& needle) const { in rfind()
466 size_t pos = console.rfind(needle); // exact match? in rfind()
471 if (needle.length() > pos) return std::string::npos; in rfind()
472 pos -= needle.length(); in rfind()
475 if (numError(pos, needle) != std::string::npos) return pos; in rfind()
483 size_t find(const std::string& needle, size_t start = 0) const { in find() argument
485 if (needle.length() > console.length()) return std::string::npos; in find()
486 const size_t last_pos = console.length() - needle.length(); in find()
489 if (numError(pos, needle) != std::string::npos) return pos; in find()
499 bool correctForBitError(std::string& reason, const std::string& needle) { in correctForBitError() argument
[all …]
/system/core/libutils/
DUnicode.cpp293 const char16_t needle = *target; in strstr16() local
294 if (needle == '\0') return (char16_t*)src; in strstr16()
302 } while (*src++ != needle); in strstr16()
/system/core/logcat/tests/
Dlogcat_test.cpp188 char needle[32]; in TEST() local
198 strftime(needle, sizeof(needle), "[ %Y-", ptm); in TEST()
208 if (!strncmp(buffer, needle, strlen(needle))) { in TEST()