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

12345

/system/core/libcutils/
H A Dandroid_get_control_env.h27 LIBCUTILS_HIDDEN int __android_get_control_from_env(const char* prefix,
H A Dfs_config.cpp270 static inline bool prefix_cmp(bool partial, const char* prefix, size_t len, const char* path, argument
272 return ((partial && plen >= len) || (plen == len)) && !strncmp(prefix, path, len);
277 static bool fs_config_cmp(bool partial, const char* prefix, size_t len, const char* path, argument
280 if (!partial && prefix[len - 1] == '*') {
285 if (prefix_cmp(partial, prefix, len, path, plen)) return true;
293 } else if (strncmp(prefix, system, strlen(system))) {
296 prefix += strlen(system);
299 return is_partition(prefix, len) && prefix_cmp(partial, prefix, len, path, plen);
323 char* prefix; local
[all...]
H A Dandroid_get_control_file.cpp47 LIBCUTILS_HIDDEN int __android_get_control_from_env(const char* prefix, argument
49 if (!prefix || !name) return -1;
52 if (asprintf(&key, "%s%s", prefix, name) < 0) return -1;
/system/core/libcutils/tests/
H A Dfs_config.cpp41 const char* prefix; member in struct:fs_config_cmp_test
66 const std::string& prefix) {
69 std::string alternate = "system/" + prefix;
84 if (android::base::StartsWith(path, prefix.c_str())) {
86 path = alternate + path.substr(prefix.size());
102 path = prefix + path.substr(alternate.size());
117 const std::string& prefix) {
124 for (size_t idx = 0; paths[idx].prefix; ++idx) {
126 GTEST_LOG_(WARNING) << config << ": has no end (missing null prefix)";
130 paths_tmp.push_back(paths[idx].prefix);
65 check_unique(std::vector<const char*>& paths, const std::string& config_name, const std::string& prefix) argument
116 check_unique(const fs_path_config* paths, const char* type_name, const std::string& prefix) argument
154 check_unique(const std::string& config, const std::string& prefix) argument
211 check_two(const fs_path_config* paths, const char* type_name, const char* prefix) argument
[all...]
/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.cpp54 void CallStack::log(const char* logtag, android_LogPriority priority, const char* prefix) const {
55 LogPrinter printer(logtag, priority, prefix, /*ignoreBlankLines*/false);
59 void CallStack::dump(int fd, int indent, const char* prefix) const {
60 FdPrinter printer(fd, indent, prefix);
64 String8 CallStack::toString(const char* prefix) const {
67 String8Printer printer(&str, prefix);
/system/netd/server/
H A DWakeupController.cpp49 std::string prefix;
53 const auto attrHandler = [&prefix, &uid, &gid, &timestampNs](const nlattr attr,
65 prefix = toString(take(payload, payload.size() - 1));
80 mReport(prefix, uid, gid, timestampNs);
85 Status WakeupController::addInterface(const std::string& ifName, const std::string& prefix, argument
87 return execIptables("-A", ifName, prefix, mark, mask);
90 Status WakeupController::delInterface(const std::string& ifName, const std::string& prefix, argument
92 return execIptables("-D", ifName, prefix, mark, mask);
96 const std::string& prefix, uint32_t mark, uint32_t mask) {
102 "*mangle\n%s %s -i %s -j NFLOG --nflog-prefix
95 execIptables(const std::string& action, const std::string& ifName, const std::string& prefix, uint32_t mark, uint32_t mask) argument
[all...]
H A DWakeupController.h47 // be delivered along with the arbitrary string |prefix| to
49 netdutils::Status addInterface(const std::string& ifName, const std::string& prefix,
53 // |ifName|, |prefix|, |mark| and |mask| must match precisely.
54 netdutils::Status delInterface(const std::string& ifName, const std::string& prefix,
59 const std::string& prefix, uint32_t mark, uint32_t mask);
H A DWakeupControllerTest.cpp40 void(const std::string& prefix, uid_t uid, gid_t gid, uint64_t timestampNs));
70 [this](const std::string& prefix, uid_t uid, gid_t gid, uint64_t timestampNs) { variable
71 mEventListener.onWakeupEvent(prefix, uid, gid, timestampNs);
78 const char kPrefix[] = "test:prefix";
94 char prefix[sizeof(kPrefix)]; member in struct:android::net::Msg
111 msg.prefixAttr.nla_len = sizeof(msg.prefixAttr) + sizeof(msg.prefix);
112 memcpy(msg.prefix, kPrefix, sizeof(kPrefix));
120 const char kPrefix[] = "test:prefix";
138 char prefix[sizeof(kPrefix)]; member in struct:android::net::Msg
160 msg.prefixAttr.nla_len = sizeof(msg.prefixAttr) + sizeof(msg.prefix);
176 char prefix[sizeof(ones)]; member in struct:android::net::Msg
[all...]
/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/core/libutils/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/core/libcutils/include/private/
H A Dfs_config.h48 char prefix[]; member in struct:fs_path_config_from_file
56 const char* prefix; member in struct:fs_path_config
/system/core/debuggerd/libdebuggerd/include/
H A Dopen_files_list.h34 void dump_open_files_list_to_log(const OpenFilesList& files, log_t* log, const char* prefix);
/system/core/healthd/
H A DAnimationParser.h27 bool remove_prefix(const std::string& str, const char* prefix, const char** rest);
/system/core/adb/
H A Dsocket_spec.cpp120 std::string prefix = it.first + ":"; local
121 if (StartsWith(spec, prefix.c_str())) {
130 std::string prefix = it.first + ":"; local
131 if (StartsWith(spec, prefix.c_str())) {
172 std::string prefix = it.first + ":"; local
173 if (StartsWith(spec, prefix.c_str())) {
180 return network_local_client(&spec[prefix.length()], it.second.socket_namespace,
215 std::string prefix = it.first + ":"; local
216 if (StartsWith(spec, prefix.c_str())) {
223 return network_local_server(&spec[prefix
[all...]
/system/core/base/
H A Dstrings.cpp90 bool StartsWith(const std::string& s, const char* prefix) { argument
91 return strncmp(s.c_str(), prefix, strlen(prefix)) == 0;
94 bool StartsWithIgnoreCase(const std::string& s, const char* prefix) { argument
95 return strncasecmp(s.c_str(), prefix, strlen(prefix)) == 0;
/system/media/audio_utils/
H A DErrorLog.cpp40 error_log_t *error_log, int fd, const char *prefix, size_t lines, int64_t limit_ns)
45 return reinterpret_cast<ErrorLog<int32_t> *>(error_log)->dump(fd, prefix, lines, limit_ns);
39 error_log_dump( error_log_t *error_log, int fd, const char *prefix, size_t lines, int64_t limit_ns) argument
/system/netd/server/binder/android/net/metrics/
H A DINetdEventListener.aidl66 * @param prefix arbitrary string provided via wakeupAddInterface()
72 void onWakeupEvent(String prefix, int uid, int gid, long timestampNs);
/system/media/audio_utils/include/audio_utils/
H A DPowerLog.h77 const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const;
88 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const;
146 * \param prefix displayed at start of each line.
154 power_log_t *power_log, int fd, const char *prefix, size_t lines, int64_t limit_ns);
H A DErrorLog.h92 * \param prefix the prefix to use for each line
98 std::string dumpToString(const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
109 ss << prefix << "Errors: " << mErrors << "\n";
127 ss << prefix << " Code Freq First time Last time\n"; local
132 ss << prefix << std::setw(5) << entry.mCode
144 * \param prefix the prefix to use for each line
151 status_t dump(int fd, const char *prefix = "", size_t lines = 0, int64_t limitNs = 0) const
154 const std::string s = dumpToString(prefix, line
[all...]
/system/extras/simpleperf/
H A DSampleDisplayer.h119 std::string prefix = " "; local
121 fprintf(fp, "%s[skipped in brief callgraph mode]\n", prefix.c_str());
124 fprintf(fp, "%s|\n", prefix.c_str());
125 fprintf(fp, "%s-- %s\n", prefix.c_str(), PrintSampleName(sample).c_str());
126 prefix.append(3, ' ');
128 DisplayCallGraphEntry(fp, 1, prefix, sample->callchain.children[i],
134 void DisplayCallGraphEntry(FILE* fp, size_t depth, std::string prefix, argument
149 prefix += "|";
150 fprintf(fp, "%s\n", prefix.c_str());
152 prefix
[all...]

Completed in 270 milliseconds

12345