/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/stubs/ |
D | stringpiece_unittest.cc | 45 TEST(StringPiece, Ctor) { in TEST() argument 48 StringPiece s10; in TEST() 56 StringPiece s20(hello); in TEST() 61 StringPiece s21(hello, 4); in TEST() 66 StringPiece s22(hello, 6); in TEST() 74 StringPiece s30(hola); in TEST() 82 StringPiece s31(hola); in TEST() 91 StringPiece s40(bonjour); in TEST() 102 TEST(StringPiece, STLComparator) { in TEST() argument 107 StringPiece p1(s1); in TEST() [all …]
|
D | stringpiece.cc | 40 std::ostream& operator<<(std::ostream& o, StringPiece piece) { in operator <<() 46 void StringPiece::LogFatalSizeTooBig(size_t size, const char* details) { in LogFatalSizeTooBig() 50 StringPiece::StringPiece(StringPiece x, stringpiece_ssize_type pos) in StringPiece() function in google::protobuf::StringPiece 56 StringPiece::StringPiece(StringPiece x, in StringPiece() function in google::protobuf::StringPiece 65 void StringPiece::CopyToString(string* target) const { in CopyToString() 69 void StringPiece::AppendToString(string* target) const { in AppendToString() 73 bool StringPiece::Consume(StringPiece x) { in Consume() 82 bool StringPiece::ConsumeFromEnd(StringPiece x) { in ConsumeFromEnd() 90 stringpiece_ssize_type StringPiece::copy(char* buf, in copy() 98 bool StringPiece::contains(StringPiece s) const { in contains() [all …]
|
D | stringpiece.h | 178 class LIBPROTOBUF_EXPORT StringPiece { 210 StringPiece() : ptr_(NULL), length_(0) {} in StringPiece() function 212 StringPiece(const char* str) // NOLINT(runtime/explicit) in StringPiece() function 220 StringPiece( // NOLINT(runtime/explicit) in StringPiece() function 226 StringPiece(const char* offset, stringpiece_ssize_type len) in StringPiece() function 233 StringPiece(StringPiece x, stringpiece_ssize_type pos); 237 StringPiece(StringPiece x, 292 int compare(StringPiece x) const { in compare() 323 bool starts_with(StringPiece x) const { in starts_with() 327 bool ends_with(StringPiece x) const { in ends_with() [all …]
|
/frameworks/base/libs/androidfw/tests/ |
D | StringPiece_test.cpp | 28 StringPiece a("hello world", 5); in TEST() 29 StringPiece b("hello moon", 5); in TEST() 42 EXPECT_TRUE(StringPiece(testing) > banana); in TEST() 43 EXPECT_TRUE(StringPiece(testing) > car); in TEST() 44 EXPECT_TRUE(StringPiece(banana) < testing); in TEST() 45 EXPECT_TRUE(StringPiece(banana) < car); in TEST() 46 EXPECT_TRUE(StringPiece(car) < testing); in TEST() 47 EXPECT_TRUE(StringPiece(car) > banana); in TEST() 55 EXPECT_TRUE(StringPiece(testing) > banana); in TEST() 56 EXPECT_TRUE(StringPiece(testing) > car); in TEST() [all …]
|
/frameworks/base/tools/aapt2/util/ |
D | Util.h | 53 std::vector<std::string> Split(const android::StringPiece& str, char sep); 54 std::vector<std::string> SplitAndLowercase(const android::StringPiece& str, char sep); 57 bool StartsWith(const android::StringPiece& str, const android::StringPiece& prefix); 60 bool EndsWith(const android::StringPiece& str, const android::StringPiece& suffix); 64 android::StringPiece TrimLeadingWhitespace(const android::StringPiece& str); 68 android::StringPiece TrimTrailingWhitespace(const android::StringPiece& str); 72 android::StringPiece TrimWhitespace(const android::StringPiece& str); 75 bool IsJavaClassName(const android::StringPiece& str); 78 bool IsJavaPackageName(const android::StringPiece& str); 84 bool IsAndroidPackageName(const android::StringPiece& str); [all …]
|
D | Util.cpp | 35 using ::android::StringPiece; 42 const StringPiece& str, char sep, const std::function<char(char)>& f) { in SplitAndTransform() 44 const StringPiece::const_iterator end = std::end(str); in SplitAndTransform() 45 StringPiece::const_iterator start = std::begin(str); in SplitAndTransform() 46 StringPiece::const_iterator current; in SplitAndTransform() 59 std::vector<std::string> Split(const StringPiece& str, char sep) { in Split() 63 std::vector<std::string> SplitAndLowercase(const StringPiece& str, char sep) { in SplitAndLowercase() 67 bool StartsWith(const StringPiece& str, const StringPiece& prefix) { in StartsWith() 74 bool EndsWith(const StringPiece& str, const StringPiece& suffix) { in EndsWith() 81 StringPiece TrimLeadingWhitespace(const StringPiece& str) { in TrimLeadingWhitespace() [all …]
|
D | Files.h | 59 void AppendPath(std::string* base, android::StringPiece part); 62 std::string BuildPath(std::vector<const android::StringPiece>&& args); 68 android::StringPiece GetStem(const android::StringPiece& path); 71 android::StringPiece GetFilename(const android::StringPiece& path); 75 android::StringPiece GetExtension(const android::StringPiece& path); 78 bool IsHidden(const android::StringPiece& path); 81 std::string PackageToPath(const android::StringPiece& package); 87 bool AppendArgsFromFile(const android::StringPiece& path, std::vector<std::string>* out_arglist, 91 bool AppendSetArgsFromFile(const android::StringPiece& path, 113 bool SetPattern(const android::StringPiece& pattern); [all …]
|
/frameworks/opt/gamesdk/third_party/protobuf-3.0.0/src/google/protobuf/util/internal/ |
D | json_stream_parser_test.cc | 89 util::Status RunTest(StringPiece json, int split, bool coerce_utf8 = false) { in RunTest() 96 StringPiece single = json.substr(i, 1); in RunTest() 106 StringPiece first = json.substr(0, split); in RunTest() 107 StringPiece rest = json.substr(split); in RunTest() 119 void DoTest(StringPiece json, int split, bool coerce_utf8 = false) { in DoTest() 127 void DoErrorTest(StringPiece json, int split, StringPiece error_prefix, in DoErrorTest() 131 StringPiece error_message(result.error_message()); in DoErrorTest() 145 StringPiece str = "true"; in TEST_F() 153 StringPiece str = "false"; in TEST_F() 161 StringPiece str = "null"; in TEST_F() [all …]
|
D | object_writer.h | 63 virtual ObjectWriter* StartObject(StringPiece name) = 0; 69 virtual ObjectWriter* StartList(StringPiece name) = 0; 75 virtual ObjectWriter* RenderBool(StringPiece name, bool value) = 0; 78 virtual ObjectWriter* RenderInt32(StringPiece name, int32 value) = 0; 81 virtual ObjectWriter* RenderUint32(StringPiece name, uint32 value) = 0; 84 virtual ObjectWriter* RenderInt64(StringPiece name, int64 value) = 0; 87 virtual ObjectWriter* RenderUint64(StringPiece name, uint64 value) = 0; 90 virtual ObjectWriter* RenderDouble(StringPiece name, double value) = 0; 93 virtual ObjectWriter* RenderFloat(StringPiece name, float value) = 0; 96 virtual ObjectWriter* RenderString(StringPiece name, StringPiece value) = 0; [all …]
|
D | expecting_objectwriter.h | 73 MOCK_METHOD1(StartObject, ObjectWriter*(StringPiece)); 75 MOCK_METHOD1(StartList, ObjectWriter*(StringPiece)); 77 MOCK_METHOD2(RenderBool, ObjectWriter*(StringPiece, bool)); 78 MOCK_METHOD2(RenderInt32, ObjectWriter*(StringPiece, int32)); 79 MOCK_METHOD2(RenderUint32, ObjectWriter*(StringPiece, uint32)); 80 MOCK_METHOD2(RenderInt64, ObjectWriter*(StringPiece, int64)); 81 MOCK_METHOD2(RenderUint64, ObjectWriter*(StringPiece, uint64)); 82 MOCK_METHOD2(RenderDouble, ObjectWriter*(StringPiece, double)); 83 MOCK_METHOD2(RenderFloat, ObjectWriter*(StringPiece, float)); 84 MOCK_METHOD2(RenderString, ObjectWriter*(StringPiece, StringPiece)); [all …]
|
D | protostream_objectwriter_test.cc | 379 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 380 StringPiece("\"Infinity\""))) in TEST_P() 382 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_UINT32"), in TEST_P() 383 StringPiece("\"Infinity\""))) in TEST_P() 385 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_SFIXED64"), in TEST_P() 386 StringPiece("\"-Infinity\""))) in TEST_P() 388 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_BOOL"), in TEST_P() 389 StringPiece("\"Infinity\""))) in TEST_P() 412 EXPECT_CALL(listener_, InvalidValue(_, StringPiece("TYPE_INT32"), in TEST_P() 413 StringPiece("\"NaN\""))) in TEST_P() [all …]
|
D | protostream_objectsource.h | 83 virtual util::Status NamedWriteTo(StringPiece name, ObjectWriter* ow) const; 128 StringPiece name, const uint32 end_tag, 139 StringPiece, ObjectWriter*); 152 StringPiece name, uint32 list_tag, 158 StringPiece name, uint32 list_tag, 170 StringPiece name, ObjectWriter* ow); 175 StringPiece name, ObjectWriter* ow); 181 StringPiece name, ObjectWriter* ow); 184 StringPiece name, ObjectWriter* ow); 187 StringPiece name, ObjectWriter* ow); [all …]
|
D | error_listener.h | 60 StringPiece unknown_name, StringPiece message) = 0; 64 StringPiece type_name, StringPiece value) = 0; 68 StringPiece missing_name) = 0; 85 StringPiece unknown_name, StringPiece message) {} in InvalidName() 88 StringPiece type_name, StringPiece value) {} in InvalidValue() 91 StringPiece missing_name) {} in MissingField()
|
D | json_objectwriter.h | 90 JsonObjectWriter(StringPiece indent_string, in JsonObjectWriter() 100 virtual JsonObjectWriter* StartObject(StringPiece name); 102 virtual JsonObjectWriter* StartList(StringPiece name); 104 virtual JsonObjectWriter* RenderBool(StringPiece name, bool value); 105 virtual JsonObjectWriter* RenderInt32(StringPiece name, int32 value); 106 virtual JsonObjectWriter* RenderUint32(StringPiece name, uint32 value); 107 virtual JsonObjectWriter* RenderInt64(StringPiece name, int64 value); 108 virtual JsonObjectWriter* RenderUint64(StringPiece name, uint64 value); 109 virtual JsonObjectWriter* RenderDouble(StringPiece name, double value); 110 virtual JsonObjectWriter* RenderFloat(StringPiece name, float value); [all …]
|
D | json_objectwriter.cc | 57 JsonObjectWriter* JsonObjectWriter::StartObject(StringPiece name) { in StartObject() 71 JsonObjectWriter* JsonObjectWriter::StartList(StringPiece name) { in StartList() 85 JsonObjectWriter* JsonObjectWriter::RenderBool(StringPiece name, bool value) { in RenderBool() 89 JsonObjectWriter* JsonObjectWriter::RenderInt32(StringPiece name, int32 value) { in RenderInt32() 93 JsonObjectWriter* JsonObjectWriter::RenderUint32(StringPiece name, in RenderUint32() 98 JsonObjectWriter* JsonObjectWriter::RenderInt64(StringPiece name, int64 value) { in RenderInt64() 106 JsonObjectWriter* JsonObjectWriter::RenderUint64(StringPiece name, in RenderUint64() 115 JsonObjectWriter* JsonObjectWriter::RenderDouble(StringPiece name, in RenderDouble() 125 JsonObjectWriter* JsonObjectWriter::RenderFloat(StringPiece name, float value) { in RenderFloat() 134 JsonObjectWriter* JsonObjectWriter::RenderString(StringPiece name, in RenderString() [all …]
|
D | type_info.cc | 62 StringPiece type_url) const { in ResolveTypeUrl() 63 map<StringPiece, StatusOrType>::iterator it = cached_types_.find(type_url); in ResolveTypeUrl() 81 StringPiece type_url) const { in GetTypeByTypeUrl() 87 StringPiece type_url) const { in GetEnumByTypeUrl() 88 map<StringPiece, StatusOrEnum>::iterator it = cached_enums_.find(type_url); in GetEnumByTypeUrl() 107 const google::protobuf::Type* type, StringPiece camel_case_name) const { in FindField() 112 StringPiece name = in FindField() 113 FindWithDefault(camel_case_name_table_, camel_case_name, StringPiece()); in FindField() 126 static void DeleteCachedTypes(map<StringPiece, T>* cached_types) { in DeleteCachedTypes() argument 127 for (typename map<StringPiece, T>::iterator it = cached_types->begin(); in DeleteCachedTypes() [all …]
|
D | proto_writer.h | 84 virtual ProtoWriter* StartObject(StringPiece name); 86 virtual ProtoWriter* StartList(StringPiece name); 88 virtual ProtoWriter* RenderBool(StringPiece name, bool value) { in RenderBool() 91 virtual ProtoWriter* RenderInt32(StringPiece name, int32 value) { in RenderInt32() 94 virtual ProtoWriter* RenderUint32(StringPiece name, uint32 value) { in RenderUint32() 97 virtual ProtoWriter* RenderInt64(StringPiece name, int64 value) { in RenderInt64() 100 virtual ProtoWriter* RenderUint64(StringPiece name, uint64 value) { in RenderUint64() 103 virtual ProtoWriter* RenderDouble(StringPiece name, double value) { in RenderDouble() 106 virtual ProtoWriter* RenderFloat(StringPiece name, float value) { in RenderFloat() 109 virtual ProtoWriter* RenderString(StringPiece name, StringPiece value) { in RenderString() [all …]
|
/frameworks/base/tools/aapt2/cmd/ |
D | Command.h | 34 explicit Command(const android::StringPiece& name) : name_(name.to_string()), in Command() 38 explicit Command(const android::StringPiece& name, const android::StringPiece& short_name) in Command() 53 void AddRequiredFlag(const android::StringPiece& name, const android::StringPiece& description, 56 void AddRequiredFlagList(const android::StringPiece& name, 57 const android::StringPiece& description, std::vector<std::string>* value, 60 void AddOptionalFlag(const android::StringPiece& name, const android::StringPiece& description, 63 void AddOptionalFlagList(const android::StringPiece& name, 64 const android::StringPiece& description, std::vector<std::string>* value, 67 void AddOptionalFlagList(const android::StringPiece& name, 68 const android::StringPiece& description, [all …]
|
D | Command.cpp | 32 using android::StringPiece; 36 std::string GetSafePath(const StringPiece& arg) { in GetSafePath() 54 void Command::AddRequiredFlag(const StringPiece& name, const StringPiece& description, in AddRequiredFlag() 56 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlag() 64 void Command::AddRequiredFlagList(const StringPiece& name, const StringPiece& description, in AddRequiredFlagList() 66 auto func = [value, flags](const StringPiece& arg) -> bool { in AddRequiredFlagList() 74 void Command::AddOptionalFlag(const StringPiece& name, const StringPiece& description, in AddOptionalFlag() 76 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlag() 84 void Command::AddOptionalFlagList(const StringPiece& name, const StringPiece& description, in AddOptionalFlagList() 86 auto func = [value, flags](const StringPiece& arg) -> bool { in AddOptionalFlagList() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | StringPiece.h | 26 class StringPiece { 28 StringPiece() : mData(nullptr), mLength(0) {} in StringPiece() function 29 StringPiece(const char* data) : mData(data), mLength(data == nullptr ? 0 : strlen(data)) {} in StringPiece() function 30 StringPiece(const char* data, size_t length) : mData(data), mLength(length) {} in StringPiece() function 31 StringPiece(const std::string& str) : mData(str.data()), mLength(str.size()) {} in StringPiece() function 40 inline StringPiece substr(size_t from, size_t length) const { in substr() 41 return StringPiece(mData + from, length); in substr() 59 inline bool operator==(const StringPiece& l, const StringPiece& r) { 72 inline bool operator==(const StringPiece& l, const char* s) { 80 inline bool operator!=(const StringPiece& l, const StringPiece& r) { [all …]
|
/frameworks/base/tools/aapt2/ |
D | ResourceUtils.h | 42 bool ParseResourceName(const android::StringPiece& str, ResourceNameRef* out_resource, 53 bool ParseReference(const android::StringPiece& str, ResourceNameRef* out_reference, 60 bool IsReference(const android::StringPiece& str); 67 bool ParseAttributeReference(const android::StringPiece& str, ResourceNameRef* out_reference); 73 bool IsAttributeReference(const android::StringPiece& str); 91 Maybe<bool> ParseBool(const android::StringPiece& str); 96 Maybe<uint32_t> ParseInt(const android::StringPiece& str); 101 Maybe<ResourceId> ParseResourceId(const android::StringPiece& str); 106 Maybe<int> ParseSdkVersion(const android::StringPiece& str); 119 Maybe<Reference> ParseStyleParentReference(const android::StringPiece& str, std::string* out_error); [all …]
|
/frameworks/base/tools/aapt2/test/ |
D | Builders.h | 42 ResourceTableBuilder& SetPackageId(const android::StringPiece& package_name, uint8_t id); 43 ResourceTableBuilder& AddSimple(const android::StringPiece& name, const ResourceId& id = {}); 44 ResourceTableBuilder& AddSimple(const android::StringPiece& name, 47 ResourceTableBuilder& AddReference(const android::StringPiece& name, 48 const android::StringPiece& ref); 49 ResourceTableBuilder& AddReference(const android::StringPiece& name, const ResourceId& id, 50 const android::StringPiece& ref); 51 ResourceTableBuilder& AddString(const android::StringPiece& name, 52 const android::StringPiece& str); 53 ResourceTableBuilder& AddString(const android::StringPiece& name, const ResourceId& id, [all …]
|
D | Builders.cpp | 32 using ::android::StringPiece; 37 ResourceTableBuilder& ResourceTableBuilder::SetPackageId(const StringPiece& package_name, in SetPackageId() 44 ResourceTableBuilder& ResourceTableBuilder::AddSimple(const StringPiece& name, in AddSimple() 49 ResourceTableBuilder& ResourceTableBuilder::AddSimple(const StringPiece& name, in AddSimple() 55 ResourceTableBuilder& ResourceTableBuilder::AddReference(const StringPiece& name, in AddReference() 56 const StringPiece& ref) { in AddReference() 60 ResourceTableBuilder& ResourceTableBuilder::AddReference(const StringPiece& name, in AddReference() 62 const StringPiece& ref) { in AddReference() 66 ResourceTableBuilder& ResourceTableBuilder::AddString(const StringPiece& name, in AddString() 67 const StringPiece& str) { in AddString() [all …]
|
/frameworks/base/tools/aapt2/xml/ |
D | XmlDom.h | 100 Attribute* FindAttribute(const android::StringPiece& ns, const android::StringPiece& name); 101 const Attribute* FindAttribute(const android::StringPiece& ns, 102 const android::StringPiece& name) const; 103 Attribute* FindOrCreateAttribute(const android::StringPiece& ns, 104 const android::StringPiece& name); 105 void RemoveAttribute(const android::StringPiece& ns, 106 const android::StringPiece& name); 108 Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name); 109 const Element* FindChild(const android::StringPiece& ns, const android::StringPiece& name) const; 111 Element* FindChildWithAttribute(const android::StringPiece& ns, const android::StringPiece& name, [all …]
|
/frameworks/minikin/tests/unittest/ |
D | StringPieceTest.cpp | 25 StringPiece s(nullptr); in TEST() 31 StringPiece s(""); in TEST() 37 StringPiece s("", 0); in TEST() 43 StringPiece s("abcde"); in TEST() 51 StringPiece s("abcde", 5); in TEST() 59 StringPiece s("abcde", 3); in TEST() 68 StringPiece s(kText + 2, 3); in TEST() 77 StringPiece s(kText + 2); in TEST() 87 StringPiece s("abcde"); in TEST() 97 StringPiece s("mississippi"); in TEST() [all …]
|