Searched refs:prefix (Results 26 - 50 of 89) sorted by relevance

1234

/system/connectivity/shill/net/
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/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/extras/simpleperf/
H A Dcmd_report.cpp302 void PrintCallGraphEntry(size_t depth, std::string prefix, const std::unique_ptr<CallChainNode>& node,
742 std::string prefix = " "; local
743 fprintf(report_fp_, "%s|\n", prefix.c_str());
744 fprintf(report_fp_, "%s-- %s\n", prefix.c_str(), sample.symbol->DemangledName());
745 prefix.append(3, ' ');
747 PrintCallGraphEntry(1, prefix, sample.callchain.children[i], sample.callchain.children_period,
752 void ReportCommand::PrintCallGraphEntry(size_t depth, std::string prefix, argument
759 prefix += "|";
760 fprintf(report_fp_, "%s\n", prefix.c_str());
762 prefix
[all...]
/system/core/libutils/
H A DString16.cpp334 bool String16::startsWith(const String16& prefix) const
336 const size_t ps = prefix.size();
338 return strzcmp16(mString, ps, prefix.string(), ps) == 0;
341 bool String16::startsWith(const char16_t* prefix) const
343 const size_t ps = strlen16(prefix);
345 return strncmp16(mString, prefix, ps) == 0;
/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/bt/osi/src/socket_utils/
H A DREADME23 "osi_" prefix is added to all functions. The developers who want to pull sockets
/system/connectivity/shill/
H A Dppp_device.cc106 size_t prefix = IPAddress::GetMaxPrefixLength(properties.address_family); local
108 base::SizeTToString(prefix));
H A Drouting_table.cc433 __func__, entry.dst.ToString().c_str(), entry.dst.prefix(),
434 entry.src.ToString().c_str(), entry.src.prefix(),
447 entry.dst.prefix(),
448 entry.src.prefix(),
527 status.dst_prefix = address.prefix();
H A Dconnection_unittest.cc247 MATCHER_P2(IsIPAddress, address, prefix, "") {
249 match_address.set_prefix(prefix);
268 arg.dst.prefix() ==
385 RequestRouteToHost(IsIPAddress(address1, address1.prefix()), -1,
527 // Assign a prefix that makes the gateway unreachable.
818 RequestRouteToHost(IsIPAddress(trusted_ip, trusted_ip.prefix()),
824 RequestRouteToHost(IsIPAddress(trusted_ip, trusted_ip.prefix()),
847 EXPECT_EQ(kPrefix, local.prefix());
851 // Should succeed because with the given prefix, this gateway is reachable.
859 EXPECT_EQ(kPrefix, local.prefix());
[all...]
/system/core/crash_reporter/
H A Duser_collector.h110 // Returns, via |line|, the first line in |lines| that starts with |prefix|.
113 const char *prefix, std::string *line);
116 // the line starting with |prefix|. |status_lines| contains the lines in
118 bool GetIdFromStatus(const char *prefix,
H A Duser_collector.cc132 const char *prefix, std::string *line) {
136 if (line_iterator->find(prefix) == 0) {
145 const char *prefix, IdKind kind,
150 if (!GetFirstLineWithPrefix(status_lines, prefix, &id_line)) {
153 std::string id_substring = id_line.substr(strlen(prefix), std::string::npos);
130 GetFirstLineWithPrefix( const std::vector<std::string> &lines, const char *prefix, std::string *line) argument
144 GetIdFromStatus( const char *prefix, IdKind kind, const std::vector<std::string> &status_lines, int *id) argument
/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/netd/server/
H A DNetdConstants.h49 int parsePrefix(const char *prefix, uint8_t *family, void *address, int size, uint8_t *prefixlen);
/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/extras/tests/net_test/
H A Dnetlink.py79 def _GetConstantName(self, module, value, prefix):
84 if (name.startswith(prefix) and
85 not name.startswith(prefix + "F_") and
H A Dmultinetwork_base.py203 def GetRandomDestination(prefix):
204 if "." in prefix:
205 return prefix + "%d.%d" % (random.randint(0, 31), random.randint(0, 255))
207 return prefix + "%x:%x" % (random.randint(0, 65535),
252 scapy.ICMPv6NDOptPrefixInfo(prefix=cls.IPv6Prefix(netid),
/system/tpm/attestation/common/
H A Dproto_print.py146 prefix = ''
148 prefix = '::'.join([m.name for m in current_message_stack]) + '::'
149 current_message_stack.append(Message(prefix + match.group(1)))
/system/security/keystore/
H A Dkeystore_cli_v2.cpp41 printf("Commands: brillo-platform-test [--prefix=<test_name_prefix>]\n"
50 " list [--prefix=<key_name_prefix>]\n"
208 int BrilloPlatformTest(const std::string& prefix) { argument
213 if (!prefix.empty() && test_case.name.find(prefix) != 0) {
327 int List(const std::string& prefix) { argument
330 if (!keystore->listKeys(prefix, &key_list)) {
435 return BrilloPlatformTest(command_line->GetSwitchValueASCII("prefix"));
453 return List(command_line->GetSwitchValueASCII("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/include/private/
H A Dandroid_filesystem_config.h239 const char *prefix; member in struct:fs_path_config
/system/security/keystore/include/keystore/
H A Dkeystore_client.h48 // 2) Although both pollute the global namespace, KM_ERROR_OK has a prefix per
60 // have |key_name| as a prefix.
171 // caller's key store starting with |prefix|. Returns true on success.
172 virtual bool listKeys(const std::string& prefix, std::vector<std::string>* key_name_list) = 0;
H A Dkeystore_client_mock.h80 bool(const std::string& prefix, std::vector<std::string>* key_name_list));
/system/core/include/utils/
H A DString16.h91 bool startsWith(const String16& prefix) const;
92 bool startsWith(const char16_t* prefix) const;
/system/core/libziparchive/
H A Dzip_archive.cc653 ZipString prefix; member in struct:IterationHandle
662 prefix.name = name_copy;
663 prefix.name_length = in_prefix->name_length;
665 prefix.name = NULL;
666 prefix.name_length = 0;
680 delete[] prefix.name;
744 (handle->prefix.name_length == 0 ||
745 hash_table[i].StartsWith(handle->prefix)) &&
/system/update_engine/
H A Domaha_request_params.h138 inline void set_target_version_prefix(const std::string& prefix) { argument
139 target_version_prefix_ = prefix;

Completed in 670 milliseconds

1234