/system/core/init/ |
H A D | devices.h | 26 unsigned int gid, unsigned short prefix,
|
H A D | log.cpp | 28 char prefix[64]; local 29 snprintf(prefix, sizeof(prefix), "<%d>%s: ", level, tag); 35 iov[0].iov_base = prefix; 36 iov[0].iov_len = strlen(prefix);
|
H A D | ueventd.cpp | 104 int prefix = 0; local 141 prefix = 1; 171 add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard);
|
/system/core/libutils/ |
H A D | Printer.cpp | 67 const char* prefix, 71 mPrefix(prefix ?: ""), 98 FdPrinter::FdPrinter(int fd, unsigned int indent, const char* prefix) : argument 99 mFd(fd), mIndent(indent), mPrefix(prefix ?: "") { 105 // <indent><prefix><line> -- e.g. '%-4s%s\n' for indent=4 126 String8Printer::String8Printer(String8* target, const char* prefix) : argument 128 mPrefix(prefix ?: "") { 152 PrefixPrinter::PrefixPrinter(Printer& printer, const char* prefix) : argument 153 mPrinter(printer), mPrefix(prefix ?: "") { 65 LogPrinter(const char* logtag, android_LogPriority priority, const char* prefix, bool ignoreBlankLines) argument
|
H A D | CallStack.cpp | 52 void CallStack::log(const char* logtag, android_LogPriority priority, const char* prefix) const { 53 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false); 57 void CallStack::dump(int fd, int indent, const char* prefix) const { 58 FdPrinter printer(fd, indent, prefix); 62 String8 CallStack::toString(const char* prefix) const { 65 String8Printer printer(&str, prefix);
|
H A D | ProcessCallStack.cpp | 207 const char* prefix) const { 208 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false); 215 * Print the callstack with an additional two spaces as the prefix for legibility. 239 void ProcessCallStack::dump(int fd, int indent, const char* prefix) const { 246 FdPrinter printer(fd, static_cast<unsigned int>(indent), prefix); 250 String8 ProcessCallStack::toString(const char* prefix) const { 253 String8Printer printer(&dest, prefix);
|
H A D | String16.cpp | 328 bool String16::startsWith(const String16& prefix) const 330 const size_t ps = prefix.size(); 332 return strzcmp16(mString, ps, prefix.string(), ps) == 0; 335 bool String16::startsWith(const char16_t* prefix) const 337 const size_t ps = strlen16(prefix); 339 return strncmp16(mString, prefix, ps) == 0;
|
/system/core/libcutils/ |
H A D | fs_config.c | 51 char prefix[]; member in struct:fs_path_config_from_file 178 static bool fs_config_cmp(bool dir, const char *prefix, size_t len, argument 187 if (prefix[len - 1] == '*') { 188 return !strncmp(prefix, path, len - 1); 194 return !strncmp(prefix, path, len); 214 char *prefix; local 221 prefix = calloc(1, remainder); 222 if (!prefix) { 226 if (TEMP_FAILURE_RETRY(read(fd, prefix, remainder)) != remainder) { 227 free(prefix); [all...] |
/system/core/include/utils/ |
H A D | CallStack.h | 52 const char* prefix = 0) const; 55 void dump(int fd, int indent = 0, const char* prefix = 0) const; 58 String8 toString(const char* prefix = 0) const;
|
H A D | ProcessCallStack.h | 46 const char* prefix = 0) const; 49 void dump(int fd, int indent = 0, const char* prefix = 0) const; 52 String8 toString(const char* prefix = 0) const;
|
H A D | Printer.h | 48 const char* prefix = 0, 68 // - In addition, each line will be prefixed with the 'prefix' string. 69 FdPrinter(int fd, unsigned int indent = 0, const char* prefix = 0); 91 // - In addition, each line will be prefixed with the 'prefix' string. 93 String8Printer(String8* target, const char* prefix = 0); 103 // Print to an existing Printer by adding a prefix to each line 107 PrefixPrinter(Printer& printer, const char* prefix); 109 // Print the line (prefixed with prefix) using the printer.
|
H A D | String16.h | 93 bool startsWith(const String16& prefix) const; 94 bool startsWith(const char16_t* prefix) const;
|
/system/core/debuggerd/ |
H A D | backtrace.h | 32 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix);
|
H A D | backtrace.cpp | 146 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix) { argument 148 _LOG(log, logtype::BACKTRACE, "%s%s\n", prefix, backtrace->FormatFrameData(i).c_str());
|
/system/core/base/include/base/ |
H A D | strings.h | 41 // Tests whether 's' starts with 'prefix'. 42 bool StartsWith(const std::string& s, const char* prefix);
|
/system/netd/server/ |
H A D | NetdConstants.cpp | 145 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument 146 if (!prefix || !family || !address || !prefixlen) { 150 // Find the '/' separating address from prefix length. 151 const char *slash = strchr(prefix, '/'); 156 // Convert the prefix length to a uint8_t. 165 // Copy the address part of the prefix to a local buffer. We have to copy 167 // strings, but prefix is const and has '/' after the address. 168 std::string addressString(prefix, slash - prefix);
|
H A D | NetdConstants.h | 39 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
|
/system/core/base/ |
H A D | strings.cpp | 102 bool StartsWith(const std::string& s, const char* prefix) { argument 103 return s.compare(0, strlen(prefix), prefix) == 0;
|
/system/security/keystore/ |
H A D | test-keystore | 19 prefix=$0 20 log_file=$prefix.log 21 baseline_file=$prefix.baseline 172 log "note that saw returns the suffix of prefix matches"
|
/system/extras/librank/ |
H A D | librank.c | 200 char *prefix; local 230 prefix = NULL; 287 prefix = optarg; 288 prefix_len = strlen(prefix); 349 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len)))
|
/system/core/include/private/ |
H A D | android_filesystem_config.h | 198 const char *prefix; member in struct:fs_path_config
|
/system/core/libpixelflinger/codeflinger/ |
H A D | Arm64Disassembler.cpp | 126 static void decode_rx_zr_token(uint32_t reg, const char *prefix, char *instr_part) argument 129 sprintf(instr_part, "%s%s", prefix, "zr"); 131 sprintf(instr_part, "%s%d", prefix, reg);
|
/system/core/libsysutils/src/ |
H A D | NetlinkEvent.cpp | 264 asprintf(&mParams[0], "ALERT_NAME=%s", pm->prefix); 371 // - If the prefix length is zero, it's the default route. 372 // - If the prefix length is nonzero, there's something we don't understand. 563 * from the 'prefix' array, then return 'str + prefixlen', otherwise return 567 has_prefix(const char* str, const char* end, const char* prefix, size_t prefixlen) argument 569 if ((end-str) >= (ptrdiff_t)prefixlen && !memcmp(str, prefix, prefixlen)) 579 #define HAS_CONST_PREFIX(str,end,prefix) has_prefix((str),(end),prefix,CONST_STRLEN(prefix))
|
/system/core/libziparchive/ |
H A D | zip_archive_test.cc | 154 ZipEntryName prefix("b/"); 155 ASSERT_EQ(0, StartIteration(handle, &iteration_cookie, &prefix, NULL)); 216 ZipEntryName prefix("b"); 218 ASSERT_EQ(0, StartIteration(handle, &iteration_cookie, &prefix, &suffix)); 246 ZipEntryName prefix("x"); 248 ASSERT_EQ(0, StartIteration(handle, &iteration_cookie, &prefix, &suffix));
|
/system/extras/tests/net_test/ |
H A D | multinetwork_base.py | 198 def GetRandomDestination(prefix): 199 if "." in prefix: 200 return prefix + "%d.%d" % (random.randint(0, 31), random.randint(0, 255)) 202 return prefix + "%x:%x" % (random.randint(0, 65535), 244 scapy.ICMPv6NDOptPrefixInfo(prefix=cls.IPv6Prefix(netid),
|