Searched refs:prefix (Results 1 - 25 of 89) sorted by relevance

1234

/system/core/init/
H A Ddevices.h26 unsigned int gid, unsigned short prefix,
H A Dueventd.cpp103 int prefix = 0; local
140 prefix = 1;
170 add_dev_perms(name, attr, perm, uid, gid, prefix, wildcard);
/system/core/libutils/
H A DPrinter.cpp67 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 DCallStack.cpp53 void CallStack::log(const char* logtag, android_LogPriority priority, const char* prefix) const {
54 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false);
58 void CallStack::dump(int fd, int indent, const char* prefix) const {
59 FdPrinter printer(fd, indent, prefix);
63 String8 CallStack::toString(const char* prefix) const {
66 String8Printer printer(&str, prefix);
H A DProcessCallStack.cpp206 const char* prefix) const {
207 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false);
214 * Print the callstack with an additional two spaces as the prefix for legibility.
238 void ProcessCallStack::dump(int fd, int indent, const char* prefix) const {
245 FdPrinter printer(fd, static_cast<unsigned int>(indent), prefix);
249 String8 ProcessCallStack::toString(const char* prefix) const {
252 String8Printer printer(&dest, prefix);
/system/core/libcutils/
H A Dfs_config.c51 char prefix[]; member in struct:fs_path_config_from_file
192 static bool fs_config_cmp(bool dir, const char *prefix, size_t len, argument
201 if (prefix[len - 1] == '*') {
202 return !strncmp(prefix, path, len - 1);
208 return !strncmp(prefix, path, len);
228 char *prefix; local
235 prefix = calloc(1, remainder);
236 if (!prefix) {
240 if (TEMP_FAILURE_RETRY(read(fd, prefix, remainder)) != remainder) {
241 free(prefix);
[all...]
/system/connectivity/shill/
H A Dcrypto_provider.cc51 const string prefix = crypto->GetID() + ":"; local
52 return prefix + ciphertext;
61 const string prefix = crypto->GetID() + ":"; local
62 if (base::StartsWith(ciphertext, prefix, base::CompareCase::SENSITIVE)) {
64 to_decrypt.erase(0, prefix.size());
/system/core/include/utils/
H A DCallStack.h52 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 DProcessCallStack.h46 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 DPrinter.h48 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.
/system/update_engine/update_manager/
H A Dreal_config_provider.h46 // Used for testing. Sets the root prefix, which is by default "". Call this
49 void SetRootPrefix(const std::string& prefix) { argument
50 root_prefix_ = prefix;
/system/core/debuggerd/
H A Dbacktrace.h36 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix);
/system/core/include/ziparchive/
H A Dzip_archive.h54 bool StartsWith(const ZipString& prefix) const {
55 return name && (name_length >= prefix.name_length) &&
56 (memcmp(name, prefix.name, prefix.name_length) == 0);
170 * This method also accepts optional prefix and suffix to restrict iteration to
/system/connectivity/shill/net/
H A Dip_address.h50 IPAddress(Family family, const ByteString& address, unsigned int prefix);
69 // Returns the maximum prefix length for address family |family|, i.e.,
73 // Provides a guideline for the minimum sensible prefix for this IP
76 // smallest prefix that makes sense for this class of address to have.
80 // making guesses as to the mimimal plausible prefix that might be
81 // viable for an address when the supplied prefix is obviously incorrect.
84 // Returns the prefix length given an address |family| and a |mask|. For
88 // Returns an IPAddress of type |family| that has all the high-order |prefix|
90 static IPAddress GetAddressMaskFromPrefix(Family family, size_t prefix);
99 unsigned int prefix() cons function in class:shill::IPAddress
100 set_prefix(unsigned int prefix) argument
[all...]
H A Dip_address.cc61 unsigned int prefix)
64 prefix_(prefix) {}
164 IPAddress IPAddress::GetAddressMaskFromPrefix(Family family, size_t prefix) { argument
168 size_t bits = prefix;
179 // if the prefix is the maximum, the loop above will end before we assign
224 size_t prefix; local
225 if (!base::StringToSizeT(address_parts[1], &prefix) ||
226 prefix > GetMaxPrefixLength(family_)) {
227 LOG(ERROR) << "Cannot parse address prefix " << address_parts[1];
230 set_prefix(prefix);
59 IPAddress(Family family, const ByteString& address, unsigned int prefix) argument
[all...]
/system/core/base/
H A Dstrings.cpp89 bool StartsWith(const std::string& s, const char* prefix) { argument
90 return s.compare(0, strlen(prefix), prefix) == 0;
/system/connectivity/shill/cellular/
H A Dcellular_bearer.cc45 const char kPropertyPrefix[] = "prefix";
132 uint32_t prefix; local
134 prefix = IPAddress::GetMaxPrefixLength(address_family);
136 prefix = properties.GetUint(kPropertyPrefix);
138 (*ipconfig_properties)->subnet_prefix = prefix;
/system/core/adb/
H A Dsysdeps_win32_test.cpp169 // Vary a prefix of bytes in front of the sequence that we're actually interested in parsing.
170 for (const auto& prefix : all_sequences) {
171 // Parse (prefix + one byte of the sequence at a time)
173 std::vector<char> buffer(prefix);
182 TestParseCompleteUTF8(buffer.data(), buffer.size(), prefix.size(),
191 // Parse (prefix (aka sequence) + invalid trailing bytes) to verify that the invalid
194 std::vector<char> buffer(prefix);
H A Dsocket_test.cpp306 // Check <prefix>:<serial>:<command> format.
308 for (const std::string& prefix : {"usb:", "product:", "model:", "device:"}) {
309 VerifySkipHostSerial(prefix, nullptr);
310 VerifySkipHostSerial(prefix + "foo", nullptr);
312 VerifySkipHostSerial(prefix + "foo:bar", ":bar");
313 VerifySkipHostSerial(prefix + "foo:bar:baz", ":bar:baz");
314 VerifySkipHostSerial(prefix + "foo:123:bar", ":123:bar");
H A Dadb_client.cpp316 const char* prefix = "host"; local
318 prefix = "host-usb";
320 prefix = "host-local";
322 return android::base::StringPrintf("%s:%s", prefix, command);
/system/netd/server/
H A DNetdConstants.cpp184 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen) { argument
185 if (!prefix || !family || !address || !prefixlen) {
189 // Find the '/' separating address from prefix length.
190 const char *slash = strchr(prefix, '/');
195 // Convert the prefix length to a uint8_t.
204 // Copy the address part of the prefix to a local buffer. We have to copy
206 // strings, but prefix is const and has '/' after the address.
207 std::string addressString(prefix, slash - prefix);
/system/security/keystore/
H A Dtest-keystore19 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/ext4_utils/
H A Dext4_crypt_init_extensions.cpp130 std::string prefix = "/data/"; local
132 if ((prefix + d) == dir) {
/system/core/base/include/android-base/
H A Dstrings.h59 // Tests whether 's' starts with 'prefix'.
60 bool StartsWith(const std::string& s, const char* prefix);
/system/core/include/private/
H A Dandroid_logger.h125 log_id_t logId, char prio, const char *prefix,

Completed in 549 milliseconds

1234