Searched refs:prefix (Results 1 - 25 of 123) 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.cpp254 static inline bool prefix_cmp(bool partial, const char* prefix, size_t len, const char* path, argument
256 return ((partial && plen >= len) || (plen == len)) && !strncmp(prefix, path, len);
261 static bool fs_config_cmp(bool partial, const char* prefix, size_t len, const char* path, argument
264 if (!partial && prefix[len - 1] == '*') {
269 if (prefix_cmp(partial, prefix, len, path, plen)) return true;
277 } else if (strncmp(prefix, system, strlen(system))) {
280 prefix += strlen(system);
283 return is_partition(prefix, len) && prefix_cmp(partial, prefix, len, path, plen);
307 char* prefix; local
[all...]
H A Dandroid_get_control_file.cpp48 LIBCUTILS_HIDDEN int __android_get_control_from_env(const char* prefix, argument
50 if (!prefix || !name) return -1;
53 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)) {
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/vold/
H A DProcess.cpp47 static bool checkMaps(const std::string& path, const std::string& prefix) { argument
55 if (android::base::StartsWith(line, prefix)) {
64 static bool checkSymlink(const std::string& path, const std::string& prefix) { argument
67 if (android::base::StartsWith(res, prefix)) {
75 int KillProcessesWithOpenFiles(const std::string& prefix, int signal) { argument
91 // Look for references to prefix
94 found |= checkMaps(path + "/maps", prefix);
95 found |= checkSymlink(path + "/cwd", prefix);
96 found |= checkSymlink(path + "/root", prefix);
97 found |= checkSymlink(path + "/exe", 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 StartsWith(const std::string& s, const std::string& prefix) { argument
95 return strncmp(s.c_str(), prefix.c_str(), prefix.size()) == 0;
98 bool StartsWithIgnoreCase(const std::string& s, const char* prefix) { argument
99 return strncasecmp(s.c_str(), prefix, strlen(prefix)) == 0;
102 bool StartsWithIgnoreCase(const std::string& s, const std::string& prefix) { argument
[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/debuggerd/libdebuggerd/include/libdebuggerd/
H A Dopen_files_list.h34 void dump_open_files_list(log_t* log, const OpenFilesList& files, const char* prefix);
/system/core/healthd/
H A DAnimationParser.h27 bool remove_prefix(const std::string& str, const char* prefix, const char** rest);
/system/netd/server/
H A DWakeupController.h35 std::string prefix; member in struct:android::net::WakeupController::ReportArgs
66 // be delivered along with the arbitrary string |prefix| to
68 netdutils::Status addInterface(const std::string& ifName, const std::string& prefix,
72 // |ifName|, |prefix|, |mark| and |mask| must match precisely.
73 netdutils::Status delInterface(const std::string& ifName, const std::string& prefix,
78 const std::string& prefix, uint32_t mark, uint32_t mask);
/system/core/adb/
H A Dsocket_spec.cpp120 std::string prefix = it.first + ":"; local
121 if (StartsWith(spec, prefix)) {
130 std::string prefix = it.first + ":"; local
131 if (StartsWith(spec, prefix)) {
172 std::string prefix = it.first + ":"; local
173 if (StartsWith(spec, prefix)) {
180 return network_local_client(&spec[prefix.length()], it.second.socket_namespace,
215 std::string prefix = it.first + ":"; local
216 if (StartsWith(spec, prefix)) {
223 return network_local_server(&spec[prefix
[all...]
/system/core/libcutils/include/private/
H A Dfs_config.h49 char prefix[]; member in struct:fs_path_config_from_file
57 const char* prefix; member in struct:fs_path_config
/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/core/base/include/android-base/
H A Dstrings.h59 // Tests whether 's' starts with 'prefix'.
61 bool StartsWith(const std::string& s, const char* prefix);
62 bool StartsWithIgnoreCase(const std::string& s, const char* prefix);
63 bool StartsWith(const std::string& s, const std::string& prefix);
64 bool StartsWithIgnoreCase(const std::string& s, const std::string& prefix);
/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...]
/system/tools/hidl/utils/include/hidl-util/
H A DStringHelper.h57 static bool StartsWith(const std::string &in, const std::string &prefix);
62 /* removes prefix once from in if in starts with prefix */
63 static std::string LTrim(const std::string &in, const std::string &prefix);
68 /* removes prefix repeatedly from in if in starts with prefix */
69 static std::string LTrimAll(const std::string &in, const std::string &prefix);

Completed in 294 milliseconds

12345