| /external/jsoncpp/src/jsontestrunner/ |
| main.cpp | 17 static std::string normalizeFloatingPointStr(double value) { 25 std::string s(buffer); 26 std::string::size_type index = s.find_last_of("eE"); 27 if (index != std::string::npos) { 28 std::string::size_type hasSign = 30 std::string::size_type exponentStartIndex = index + 1 + hasSign; 31 std::string normalized = s.substr(0, exponentStartIndex); 32 std::string::size_type indexDigit = 34 std::string exponent = "0"; 36 std::string::npos) // There is an exponent different from [all...] |
| /external/perf_data_converter/src/ |
| perf_data_converter_test.cc | 38 typedef std::unordered_map<string, std::pair<int64, int64>> MapCounts; 99 std::unordered_set<string> AllBuildIDs(const ProcessProfiles& pps) { 100 std::unordered_set<string> ret; 109 std::unordered_set<string> AllComments(const ProcessProfiles& pps) { 110 std::unordered_set<string> ret; 122 // Reads the content of the file at path into a string. Aborts if it is unable 124 void GetContents(const string& path, string* content) { 133 bool GetCurrentDirectory(string* dir) { 143 // Gets the string after the last '/' or returns the entire string if there ar [all...] |
| /system/tpm/trunks/ |
| hmac_authorization_delegate_test.cc | 17 #include <string> 27 std::string dummy; 28 std::string p_hash("test"); 42 EXPECT_TRUE(delegate.InitSession(dummy_handle, nonce, nonce, std::string(), 43 std::string(), false)); 46 std::string dummy_auth = std::string("authorization"); 47 std::string dummy_salt = std::string("salt"); 52 std::string expected_key [all...] |
| /bootable/recovery/tests/component/ |
| updater_test.cpp | 25 #include <string> 62 std::string result; 79 static void BuildUpdatePackage(const std::unordered_map<std::string, std::string>& entries, 96 static std::string get_sha1(const std::string& content) { 168 std::string src_file = from_testdata_base("old.file"); 169 std::string src_content; 172 std::string src_hash = get_sha1(src_content); 175 std::string filename = android::base::Join [all...] |
| /build/blueprint/ |
| ninja_strings_test.go | 23 input string 24 vars []string 25 strs []string 26 err string 30 vars: []string{"ghi"}, 31 strs: []string{"abc def ", " jkl"}, 35 vars: []string{"ghi", "jkl"}, 36 strs: []string{"abc def ", "", ""}, 40 vars: []string{"012_-345xyz_"}, 41 strs: []string{"foo ", "! bar"} [all...] |
| /build/kati/ |
| fileutil.cc | 63 int RunCommand(const string& shell, 64 const string& shellflag, 65 const string& cmd, 67 string* s) { 69 string cmd_with_shell; 70 if (shell[0] != '/' || shell.find_first_of(" $") != string::npos) { 71 string cmd_escaped = cmd; 135 void GetExecutablePath(string* path) { 163 void Get(const char* pat, vector<string>** files) { 166 vector<string>* files = p.first->second = new vector<string> [all...] |
| strutil.h | 18 #include <string> 52 explicit WordWriter(string* o); 57 string* out_; 72 template <class String> 73 inline string JoinStrings(vector<String> v, const char* sep) { 74 string r; 84 void AppendString(StringPiece str, string* out); 104 void AppendSubst(StringPiece str, StringPiece subst, string* out) const; 106 void AppendSubstRef(StringPiece str, StringPiece subst, string* out) const [all...] |
| /build/make/tools/atree/ |
| files.cpp | 3 #include <string.h> 10 #include <string.h> 22 static string 23 path_append(const string& base, const string& leaf) 25 string full = base; 62 split_line(const char* p, vector<string>* out) 94 out->push_back(string(start, len)); 109 out->push_back(string(start, len)); 115 const string& listFile, int listLine [all...] |
| /cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/ |
| TurnOffWorkActivity.java | 42 private static final String TAG = "TurnOffWorkActivity"; 59 R.string.provisioning_byod_turn_off_work, 60 R.string.provisioning_byod_turn_off_work_info, 61 R.string.provisioning_byod_turn_off_work_instructions); 68 mPrepareTestButton.setText(R.string.provisioning_byod_turn_off_work_prepare_button); 100 R.string.provisioning_byod_turn_off_work_prepare_notifications, 102 R.string.provisioning_byod_turn_off_work_prepare_notifications_instruction, 106 R.string.provisioning_byod_turn_off_work_turned_off, 111 R.string.provisioning_byod_turn_off_work_turned_off_toast, 118 R.string.provisioning_byod_turn_off_work_notifications [all...] |
| /external/deqp/executor/ |
| xeXMLParser.hpp | 35 #include <string> 46 TOKEN_END_OF_STRING, //!< End of document string. 50 TOKEN_STRING, //!< String (in tags). 69 ELEMENT_END_OF_STRING, //!< End of document string. 80 ParseError (const std::string& message) : xe::ParseError(message) {} 97 void getTokenStr (std::string& dst) const; 98 void appendTokenStr (std::string& dst) const; 100 void getString (std::string& dst) const; 108 void error (const std::string& what); 124 END_OF_STRING = 0, //!< End of string (0) [all...] |
| /external/deqp/framework/common/ |
| tcuTestLog.hpp | 164 void startSampleList (const std::string& name, const std::string& description); 166 void writeValueInfo (const std::string& name, const std::string& description, const std::string& unit, qpSampleValueTag tag); 187 std::string toString (void) const { return m_str.str(); } 238 LogImageSet (const std::string& name, const std::string& description) 247 std::string m_name; 248 std::string m_description [all...] |
| /external/google-benchmark/src/ |
| string_util.cc | 31 double one_k, std::string* mantissa, 86 std::string ExponentToPrefix(int64_t exponent, bool iec) { 95 return array[index] + std::string("i"); 97 return std::string(1, array[index]); 100 std::string ToBinaryStringFullySpecified(double value, double threshold, 102 std::string mantissa; 111 void AppendHumanReadable(int n, std::string* str) { 118 std::string HumanReadableNumber(double n, double one_k) { 125 std::string StringPrintFImp(const char* msg, va_list args) { 141 if (ret == 0) return std::string{}; [all...] |
| /external/libbrillo/brillo/ |
| data_encoding_unittest.cc | 16 std::string test = "\"http://sample/path/0014.html \""; 17 std::string encoded = UrlEncode(test.c_str()); 28 std::string encoded = 43 const std::string text1 = "hello world"; 44 const std::string encoded1 = "aGVsbG8gd29ybGQ="; 46 const std::string text2 = 50 const std::string encoded2 = 58 const std::string encoded3 = 71 const std::string text1 = "hello world"; 72 const std::string encoded1 = "aGVsbG8gd29ybGQ=\n" [all...] |
| /external/libcxx/utils/google-benchmark/src/ |
| string_util.cc | 31 double one_k, std::string* mantissa, 86 std::string ExponentToPrefix(int64_t exponent, bool iec) { 95 return array[index] + std::string("i"); 97 return std::string(1, array[index]); 100 std::string ToBinaryStringFullySpecified(double value, double threshold, 102 std::string mantissa; 111 void AppendHumanReadable(int n, std::string* str) { 118 std::string HumanReadableNumber(double n, double one_k) { 125 std::string StringPrintFImp(const char* msg, va_list args) { 141 if (ret == 0) return std::string{}; [all...] |
| /external/parameter-framework/upstream/utility/test/ |
| utility.cpp | 39 using std::string; 72 string title; 73 list<string> input; 74 string separator; 75 string result; 76 string resultNoSep; 101 using Map = map<string, string>; 105 string itemSep; 106 string keyValueSep [all...] |
| /external/parameter-framework/upstream/xmlserializer/ |
| XmlDocSource.cpp | 41 using std::string; 51 const string &strRootElementType, const string &strRootElementName, 52 const string &strNameAttributeName) 73 string CXmlDocSource::getRootElementName() const 78 string CXmlDocSource::getRootElementAttributeString(const string &strAttributeName) const 82 string attribute; 87 void CXmlDocSource::setSchemaBaseUri(const string &uri) 92 string CXmlDocSource::getSchemaBaseUri( [all...] |
| /external/perf_data_converter/src/quipper/ |
| dso.cc | 11 #include <string.h> 20 #include "compat/string.h" 29 Elf_Scn *FindElfSection(Elf *elf, const std::vector<string> &names) { 30 size_t shstrndx; // section index of the section names string table. 35 // Ensure the section header string table is available 46 LOG(ERROR) << "Couldn't get string: " << shdr.sh_name << " " << shstrndx; 49 const string name(n); 61 bool GetBuildID(Elf *elf, string *buildid) { 68 static const std::vector<string> kNoteSectionNames{".note.gnu.build-id", 87 string name(buf + name_off, strnlen(buf + name_off, note_header.n_namesz)) [all...] |
| /external/protobuf/src/google/protobuf/compiler/csharp/ |
| csharp_helpers.cc | 109 std::string StripDotProto(const std::string& proto_file) { 114 std::string GetFileNamespace(const FileDescriptor* descriptor) { 123 std::string GetFileNameBase(const FileDescriptor* descriptor) { 124 std::string proto_file = descriptor->name(); 126 std::string base = proto_file.substr(lastslash + 1); 130 std::string GetReflectionClassUnqualifiedName(const FileDescriptor* descriptor) { 137 std::string UnderscoresToCamelCase(const std::string& input, 140 string result [all...] |
| /external/protobuf/src/google/protobuf/testing/ |
| file.cc | 61 bool File::Exists(const string& name) { 65 bool File::ReadFileToString(const string& name, string* output) { 81 void File::ReadFileToStringOrDie(const string& name, string* output) { 85 bool File::WriteStringToFile(const string& contents, const string& name) { 103 void File::WriteStringToFileOrDie(const string& contents, const string& name) { 114 bool File::CreateDir(const string& name, int mode) [all...] |
| /external/tensorflow/tensorflow/tools/graph_transforms/ |
| insert_logging.cc | 34 std::unordered_set<string> ops; 38 for (const string& op : context.params.at("op")) { 45 std::unordered_set<string> prefixes; 49 for (const string& prefix : context.params.at("prefix")) { 56 string message; 73 std::unordered_map<string, std::set<int>> node_outputs; 75 for (const string& input : node.input()) { 76 const string canonical_input = CanonicalInputName(input); 77 string prefix; 78 string name [all...] |
| strip_unused_nodes.cc | 33 const string& node_name, DataType* result) { 44 const string& type_string = context.params.at("type")[0]; 65 const string& type_string = context.params.at("type_for_name")[i]; 78 const string& node_name, TensorShape* result) { 89 const string& shape_string = context.params.at("shape")[0]; 107 const string& shape_string = context.params.at("shape_for_name")[i]; 121 std::set<string> required_nodes; 122 std::set<string> input_nodes; 123 for (const string& input : context.input_names) { 127 for (const string& output : context.output_names) [all...] |
| /external/webrtc/webrtc/libjingle/xmpp/ |
| xmppengineimpl.h | 69 virtual XmppReturnStatus SetTlsServer(const std::string& proxy_hostname, 70 const std::string& proxy_domain); 78 virtual XmppReturnStatus SetRequestedResource(const std::string& resource); 81 virtual const std::string& GetRequestedResource(); 84 virtual void SetLanguage(const std::string& lang) { 139 virtual XmppReturnStatus SendRaw(const std::string& text); 157 const std::string& text); 167 virtual std::string NextId(); 177 void InternalSendStart(const std::string& domainName); 179 std::string ChooseBestSaslMechanism [all...] |
| /external/webrtc/webrtc/video/ |
| video_loopback.cc | 68 std::string Codec() { 69 return static_cast<std::string>(FLAGS_codec); 88 std::string OutputFilename() { 89 return static_cast<std::string>(FLAGS_output_filename); 95 std::string GraphTitle() { 96 return static_cast<std::string>(FLAGS_graph_title); 150 std::string Stream0() { 151 return static_cast<std::string>(FLAGS_stream0); 157 std::string Stream1() { 158 return static_cast<std::string>(FLAGS_stream1) [all...] |
| /frameworks/av/media/libstagefright/xmlparser/include/media/stagefright/xmlparser/ |
| MediaCodecsXmlParser.h | 25 #include <string> 52 typedef std::pair<std::string, std::string> Attribute; 53 typedef std::map<std::string, std::string> AttributeMap; 55 typedef std::pair<std::string, AttributeMap> Type; 56 typedef std::map<std::string, AttributeMap> TypeMap; 58 typedef std::set<std::string> QuirkSet; 70 typedef std::pair<std::string, CodecProperties> Codec; 71 typedef std::map<std::string, CodecProperties> CodecMap [all...] |
| /frameworks/base/tools/bit/ |
| command.cpp | 23 #include <string.h> 32 Command::Command(const string& prog) 42 Command::AddArg(const string& arg) 48 Command::AddEnv(const string& name, const string& value) 75 map<string,string> copy; 84 for (map<string,string>::const_iterator it=env.begin(); it!=env.end(); it++) { 89 for (map<string,string>::const_iterator it=copy.begin(); it!=copy.end(); it++) [all...] |