Searched defs:prefix (Results 1 - 25 of 44) sorted by relevance

12

/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());
H A Dppp_device.cc106 size_t prefix = IPAddress::GetMaxPrefixLength(properties.address_family); local
108 base::SizeTToString(prefix));
/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/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/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...]
H A Dip_address_unittest.cc182 EXPECT_EQ(0, address.prefix());
184 EXPECT_EQ(32, address.prefix());
188 EXPECT_EQ(10, address.prefix());
209 PrefixMapping() : family(IPAddress::kFamilyUnknown), prefix(0) {}
214 prefix(prefix_in),
217 size_t prefix; member in struct:shill::PrefixMapping
226 GetParam().prefix);
339 prefix(prefix_in),
344 size_t prefix; member in struct:shill::NetworkPartMapping
358 address.set_prefix(GetParam().prefix);
[all...]
/system/core/debuggerd/
H A Dbacktrace.cpp116 void dump_backtrace_to_log(Backtrace* backtrace, log_t* log, const char* prefix) { argument
118 _LOG(log, logtype::BACKTRACE, "%s%s\n", prefix, backtrace->FormatFrameData(i).c_str());
/system/core/init/
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
/system/extras/ext4_utils/
H A Dext4_crypt_init_extensions.cpp130 std::string prefix = "/data/"; local
132 if ((prefix + d) == dir) {
/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 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/core/libcutils/
H A Dfs_config.c51 char prefix[]; member in struct:fs_path_config_from_file
188 static bool fs_config_cmp(bool dir, const char *prefix, size_t len, argument
197 if (prefix[len - 1] == '*') {
198 return !strncmp(prefix, path, len - 1);
204 return !strncmp(prefix, path, len);
224 char *prefix; local
231 prefix = calloc(1, remainder);
232 if (!prefix) {
236 if (TEMP_FAILURE_RETRY(read(fd, prefix, remainder)) != remainder) {
237 free(prefix);
[all...]
/system/core/libpixelflinger/codeflinger/
H A DArm64Disassembler.cpp126 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/cpio/
H A Dmkbootfs.c273 void archive(const char *start, const char *prefix) argument
279 strcpy(out, prefix);
/system/core/logd/
H A DLogStatistics.cpp255 const char *prefix = (permille > 0) ? "+" : ""; local
260 prefix = "";
264 prefix,
270 prefix,
/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/update_engine/payload_generator/
H A Ddelta_diff_utils_unittest.cc92 string prefix = base::StringPrintf( local
94 brillo::Blob block_data(prefix.begin(), prefix.end());
95 TEST_AND_RETURN_FALSE(prefix.size() <= block_size);
/system/core/liblog/
H A Dpmsg_reader.c262 const char *prefix,
315 /* Validate incoming prefix, shift until it contains only 0 or 1 : or / */
317 if (prefix) {
318 const char *prev = NULL, *last = NULL, *cp = prefix;
325 prefix = prev + 1;
327 prefix_len = strlen(prefix);
362 if (prefix_len && strncmp(msg + sizeof(prio), prefix, prefix_len)) {
368 split = strchr(prefix, ':');
372 split = strchr(prefix, '/');
376 offset = split - prefix;
259 __android_log_pmsg_file_read( log_id_t logId, char prio, const char *prefix, __android_log_pmsg_file_read_fn fn, void *arg) argument
[all...]
/system/core/libmemunreachable/
H A DMemUnreachable.cpp204 static bool has_prefix(const allocator::string& s, const char* prefix) { argument
205 int ret = s.compare(0, strlen(prefix), prefix);
/system/core/libsysutils/src/
H A DNetlinkEvent.cpp262 asprintf(&mParams[0], "ALERT_NAME=%s", pm->prefix);
369 // - If the prefix length is zero, it's the default route.
370 // - If the prefix length is nonzero, there's something we don't understand.
561 * from the 'prefix' array, then return 'str + prefixlen', otherwise return
565 has_prefix(const char* str, const char* end, const char* prefix, size_t prefixlen) argument
567 if ((end-str) >= (ptrdiff_t)prefixlen && !memcmp(str, prefix, prefixlen))
577 #define HAS_CONST_PREFIX(str,end,prefix) has_prefix((str),(end),prefix,CONST_STRLEN(prefix))
/system/core/logd/tests/
H A Dlogd_test.cpp205 static void dump_log_msg(const char *prefix, argument
223 fprintf(stderr, "%s: v%u[%u] ", prefix, version, msg->len());
/system/extras/librank/
H A Dlibrank.c200 char *prefix; local
230 prefix = NULL;
287 prefix = optarg;
288 prefix_len = strlen(prefix);
350 if (prefix && (strncmp(pm_map_name(maps[j]), prefix, prefix_len)))
/system/netd/tests/
H A Dbinder_test.cpp241 std::string prefix = StringPrintf("%" PRIu32 ":", priority); local
245 if (android::base::StartsWith(line, prefix.c_str())

Completed in 501 milliseconds

12