| /external/libchrome/base/metrics/ |
| statistics_recorder.h | 18 #include <string> 38 // a string owned outside of this class, likely in the value of the map. 43 StringKey(const std::string& str) : StringPiece(str) {} 51 // Since order is unimportant in the map and string comparisons can be 58 // Fall back to an actual string comparison. The lengths are the same 134 // Methods for appending histogram data to a string. Only histograms which 135 // have |query| as a substring are written to |output| (an empty string will 137 static void WriteHTMLGraph(const std::string& query, std::string* output); 138 static void WriteGraph(const std::string& query, std::string* output) [all...] |
| /external/libchrome/crypto/ |
| p224_spake.cc | 24 // #include <string.h> 114 SHA256HashString(std::string(password.data(), password.length()), 137 const std::string& P224EncryptedKeyExchange::GetNextMessage() { 198 std::string client_masked_dh, server_masked_dh; 219 std::string(reinterpret_cast<const char*>(my_hash), kSHA256Length); 227 const std::string& client_masked_dh, 228 const std::string& server_masked_dh, 229 const std::string& k, 231 std::string hash_contents; 242 std::string(reinterpret_cast<const char *>(pw_), sizeof(pw_)) [all...] |
| /external/libmojo/mojo/edk/test/ |
| mojo_test_base.h | 9 #include <string> 39 ClientController(const std::string& client_name, 69 ClientController& StartClient(const std::string& client_name); 72 void StartClientWithHandler(const std::string& client_name, 88 // Writes a string to the pipe, transferring handles in the process. 90 const std::string& message, 94 // Writes a string to the pipe with no handles. 95 static void WriteMessage(MojoHandle mp, const std::string& message); 97 // Reads a string from the pipe, expecting to read an exact number of handles 98 // in the process. Returns the read string [all...] |
| /external/parameter-framework/upstream/parameter/ |
| SelectionCriterionType.cpp | 37 const std::string CSelectionCriterionType::_strDelimiter = "|"; 48 std::string CSelectionCriterionType::getKind() const 54 bool CSelectionCriterionType::addValuePair(int iValue, const std::string &strValue, 55 std::string &strError) 93 bool CSelectionCriterionType::getNumericalValue(const std::string &strValue, int &iValue) const 98 std::vector<std::string> astrValues = tok.split(); 104 // Looping on each std::string delimited by "|" token and adding the associated value 118 bool CSelectionCriterionType::getAtomicNumericalValue(const std::string &strValue, 132 bool CSelectionCriterionType::getLiteralValue(int iValue, std::string &strValue) const 154 std::string CSelectionCriterionType::listPossibleValues() cons [all...] |
| SystemClass.cpp | 53 using std::string; 77 string CSystemClass::getKind() const 82 bool CSystemClass::getMappingData(const std::string & /*strKey*/, 83 const std::string *& /*pStrValue*/) const 90 string CSystemClass::getFormattedMapping() const 95 bool CSystemClass::loadSubsystems(string &strError, const CSubsystemPlugins *pSubsystemPlugins, 125 list<string> lstrPluginFiles; 136 string strFolder(pPluginLocation->getFolder()); 141 list<string>::const_iterator it; 143 const list<string> &pluginList = pPluginLocation->getPluginList() [all...] |
| /external/perfetto/src/ftrace_reader/ |
| format_parser.cc | 19 #include <string.h> 25 #include <string> 40 bool IsCommonFieldName(const std::string& name) { 44 bool IsCIdentifier(const std::string& s) { 60 std::string GetNameFromTypeAndName(const std::string& type_and_name) { 67 if (right == std::string::npos) 72 if (left == std::string::npos) 76 std::string result = type_and_name.substr(left, right - left); 83 bool ParseFtraceEvent(const std::string& input, FtraceEvent* output) [all...] |
| /external/perfetto/src/traced/probes/ |
| process_stats_data_source.cc | 60 inline int ToInt(const std::string& str) { 124 std::string proc_status = ReadProcPidFile(pid, "status"); 139 const std::string& proc_status) { 145 std::string cmdline = ReadProcPidFile(pid, "cmdline"); 159 const std::string& proc_status) { 168 std::string ProcessStatsDataSource::ReadProcPidFile(int32_t pid, 169 const std::string& file) { 170 std::string contents; 177 std::string ProcessStatsDataSource::ReadProcStatusEntry(const std::string& buf [all...] |
| /external/swiftshader/third_party/subzero/src/ |
| IceRangeSpec.cpp | 29 #include <string> 47 /// If the string doesn't contain 1 or 2 ':' delimiters, or X>=Y, 49 void getRange(const std::string &Token, uint32_t *First, uint32_t *Last) { 71 void record(const std::string &Token, RangeSpec::Desc *D) { 97 std::vector<std::string> RangeSpec::tokenize(const std::string &Spec, 99 std::vector<std::string> Tokens; 101 std::string::size_type StartPos = 0; 102 std::string::size_type DelimPos = 0; 103 while (DelimPos != std::string::npos) [all...] |
| /external/tensorflow/tensorflow/core/graph/ |
| mkl_tfconversion_pass_test.cc | 22 #include <string> 46 static void InitGraph(const string& s, Graph* graph) { 55 void InitGraph(const string& s) { 62 static string EdgeId(const Node* n, int index) { 72 string CanonicalGraphString(Graph* g) { 73 std::vector<string> nodes; 74 std::vector<string> edges; 93 string DoRunMklToTfConversionPass() { 94 string before = CanonicalGraphString(&graph_); 100 string result = CanonicalGraphString(&graph_) [all...] |
| /external/tensorflow/tensorflow/core/kernels/ |
| whole_file_read_ops.cc | 35 static Status ReadEntireFile(Env* env, const string& filename, 36 string* contents) { 47 WholeFileReader(Env* env, const string& node_name) 51 Status ReadLocked(string* key, string* value, bool* produced, 62 Status SerializeStateLocked(string* state) override { 69 Status RestoreStateLocked(const string& state) override { 113 ReadEntireFile(context->env(), input->scalar<string>()(), 114 &output->scalar<string>()())); 136 const string& filename = filename_input->scalar<string>()() [all...] |
| /external/tensorflow/tensorflow/core/lib/gtl/ |
| edit_distance_test.cc | 32 std::string s1_; 33 std::string s1234_; 34 std::string s567_; 35 std::string kilo_; 36 std::string kilogram_; 37 std::string mother_; 38 std::string grandmother_; 39 std::string lower_; 40 std::string upper_; 107 LevenshteinDistance(std::string("algorithm"), std::string("altruistic") [all...] |
| /external/tensorflow/tensorflow/core/platform/cloud/ |
| gcs_dns_cache.cc | 31 const std::vector<string>& kCachedDomainNames = 32 *new std::vector<string>{"www.googleapis.com", "storage.googleapis.com"}; 34 inline void print_getaddrinfo_error(const string& name, int error_code) { 81 const string& name = kCachedDomainNames[i]; 82 const std::vector<string>& addresses = addresses_[i]; 84 const string& chosen_address = 94 /* static */ std::vector<string> GcsDnsCache::ResolveName(const string& name) { 104 std::vector<string> output; 143 std::vector<std::vector<string>> GcsDnsCache::ResolveNames [all...] |
| /external/tensorflow/tensorflow/core/profiler/internal/ |
| tfprof_show.h | 22 #include <string> 47 virtual const GraphNodeProto& Show(const string& prefix, 54 bool LookUpCheckPoint(const string& name, 66 const std::vector<string>& regexes) const; 70 string FormatNode(ShowNode* node, const Options& opts) const; 71 string FormatNodeMemory(ShowNode* node, int64 bytes, int64 total_bytes) const; 73 string FormatLegend(const Options& opts) const; 125 string FormatTotalExecTime(const T* node, const Options& opts) { 126 string time = FormatTime(node->proto().total_exec_micros()); 135 string FormatCPUExecTime(const T* node, const Options& opts) [all...] |
| /external/webrtc/webrtc/base/ |
| proxydetect_unittest.cc | 11 #include <string> 18 static const std::string kFirefoxProfilesIni = 25 static const std::string kFirefoxHeader = 33 static const std::string kFirefoxCorruptHeader = 36 static const std::string kProxyAddress = "proxy.net.com"; 45 const std::string& mode) { 47 std::string name = filename.basename(); 59 bool GetProxyInfo(const std::string prefs, ProxyInfo* info) { 89 std::string prefs(kFirefoxHeader); 105 std::string prefs(kFirefoxHeader) [all...] |
| /frameworks/base/cmds/incident_helper/src/ |
| ih_util.cpp | 33 std::string trim(const std::string& s, const std::string& charset) { 35 if (head == std::string::npos) return ""; 41 static inline std::string toLowerStr(const std::string& s) { 42 std::string res(s); 47 static inline std::string trimDefault(const std::string& s) { 51 static inline std::string trimHeader(const std::string& s) [all...] |
| /hardware/libhardware/modules/input/evdev/ |
| InputHub.h | 21 #include <string> 60 virtual const std::string& getPath() const = 0; 63 virtual const std::string& getName() const = 0; 65 virtual const std::string& getLocation() const = 0; 67 virtual const std::string& getUniqueId() const = 0; 135 virtual status_t registerDevicePath(const std::string& path) = 0; 136 virtual status_t unregisterDevicePath(const std::string& path) = 0; 161 virtual status_t registerDevicePath(const std::string& path) override; 162 virtual status_t unregisterDevicePath(const std::string& path) override; 171 status_t scanDir(const std::string& path) [all...] |
| /hardware/libhardware/tests/input/evdev/ |
| InputMocks.h | 22 #include <string> 35 virtual const std::string& getPath() const override { return mPath; } 36 virtual const std::string& getName() const override { return mName; } 37 virtual const std::string& getLocation() const override { return mLocation; } 38 virtual const std::string& getUniqueId() const override { return mUniqueId; } 40 void setPath(const std::string& path) { mPath = path; } 41 void setName(const std::string& name) { mName = name; } 42 void setLocation(const std::string& location) { mLocation = location; } 43 void setUniqueId(const std::string& uniqueId) { mUniqueId = uniqueId; } 104 std::string mPath = "/test" [all...] |
| /packages/apps/Messaging/src/com/android/messaging/datamodel/action/ |
| BugleActionToasts.java | 49 final String conversationId, 61 showToast(R.string.send_message_failure_airplane_mode); 63 showToast(R.string.download_message_failure_airplane_mode); 68 showToast(R.string.send_message_failure_no_data); 70 showToast(R.string.download_message_failure_no_data); 81 showToast(isSend ? R.string.send_message_success 82 : R.string.download_message_success); 92 showToast(isSend ? R.string.send_message_failure 93 : R.string.download_message_failure); 98 public static void onMessageReceived(final String conversationId [all...] |
| /packages/apps/Settings/src/com/android/settings/fuelgauge/anomaly/ |
| AnomalyDialogFragment.java | 37 private static final String ARG_ANOMALY = "anomaly"; 38 private static final String ARG_METRICS_KEY = "metrics_key"; 114 .setTitle(R.string.dialog_stop_title) 116 ? R.string.dialog_stop_message 117 : R.string.dialog_stop_message_wakeup_alarm, mAnomaly.displayName)) 118 .setPositiveButton(R.string.dialog_stop_ok, this) 119 .setNegativeButton(R.string.dlg_cancel, null) 123 .setTitle(R.string.dialog_background_check_title) 124 .setMessage(getString(R.string.dialog_background_check_message, 126 .setPositiveButton(R.string.dialog_background_check_ok, this [all...] |
| /packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/ |
| arguments_parser.cpp | 27 std::unordered_set<std::string> argumentNameSet; 49 void ArgumentsParser::printUsage(const std::string &commandName, 50 const std::string &description) const { 53 const std::string &optionName = option.first; 74 const std::string &optionName = option.first; 99 std::unordered_map<std::string, std::string> options; 101 const std::string &optionName = entry.first; 108 std::unordered_map<std::string, std::vector<std::string>> arguments [all...] |
| /prebuilts/go/darwin-x86/src/mime/ |
| type.go | 15 mimeTypes sync.Map // map[string]string; ".Z" => "application/x-compress" 16 mimeTypesLower sync.Map // map[string]string; ".z" => "application/x-compress" 21 extensions sync.Map // map[string][]string; slice values are append-only. 32 func setMimeTypes(lowerExt, mixExt map[string]string) { 51 var exts []string 53 exts = ei.([]string) [all...] |
| /prebuilts/go/linux-x86/src/mime/ |
| type.go | 15 mimeTypes sync.Map // map[string]string; ".Z" => "application/x-compress" 16 mimeTypesLower sync.Map // map[string]string; ".z" => "application/x-compress" 21 extensions sync.Map // map[string][]string; slice values are append-only. 32 func setMimeTypes(lowerExt, mixExt map[string]string) { 51 var exts []string 53 exts = ei.([]string) [all...] |
| /system/core/adb/ |
| adb_listeners_test.cpp | 30 static bool listener_is_installed(const std::string& serial, const std::string& source, 31 const std::string& dest) { 33 for (const std::string& line : android::base::Split(format_listeners(), "\n")) { 34 std::vector<std::string> info = android::base::Split(line, " "); 68 std::string error; 78 std::string error; 92 std::string error; 107 std::string error; 117 std::string error [all...] |
| /system/extras/simpleperf/ |
| cmd_report_sample_test.cpp | 53 std::string data; 55 ASSERT_NE(data.find("file:"), std::string::npos); 66 std::string data; 68 ASSERT_EQ(data.find("unknown"), std::string::npos); 78 std::string data; 80 ASSERT_NE(data.find("event_count:"), std::string::npos); 90 std::string data; 92 ASSERT_NE(data.find("thread:"), std::string::npos); 102 std::string data; 104 ASSERT_NE(data.find("event_type: sched:sched_switch"), std::string::npos) [all...] |
| environment.cpp | 93 std::vector<int> GetCpusFromString(const std::string& s) { 157 static void GetAllModuleFiles(const std::string& path, 158 std::unordered_map<std::string, std::string>* module_file_map) { 160 std::string entry_path = path + "/" + name; 162 std::string module_name = name.substr(0, name.size() - 3); 176 std::unordered_map<std::string, std::string> module_file_map; 189 std::string linux_version = uname_buf.release; 190 std::string module_dirpath = "/lib/modules/" + linux_version + "/kernel" [all...] |