Searched defs:str (Results 101 - 125 of 217) sorted by relevance

123456789

/frameworks/base/media/jni/
H A Dandroid_media_ExifInterface.cpp231 char str[2]; local
232 str[0] = image_data.gps.latitude_ref;
233 str[1] = 0;
234 map.add(String8("GPSLatitudeRef"), String8(str));
253 char str[2]; local
254 str[0] = image_data.gps.longitude_ref;
255 str[1] = 0;
256 map.add(String8("GPSLongitudeRef"), String8(str));
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
H A DUtil.java149 private static CharSequence emptyToNull(CharSequence str) { argument
150 return str == null || str.length() == 0 ? null : str;
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/
H A DNotificationTests.java177 static SpannableStringBuilder BOLD(CharSequence str) { argument
178 final SpannableStringBuilder ssb = new SpannableStringBuilder(str);
/frameworks/base/tools/aapt/
H A DAaptConfig.cpp34 bool parse(const String8& str, ConfigDescription* out) { argument
35 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '-');
44 if (str.length() == 0) {
233 bool parseCommaSeparatedList(const String8& str, std::set<ConfigDescription>* outSet) { argument
234 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, ',');
H A DPackage.cpp381 const char* str = others[i]; local
382 int pos = pathName.length() - strlen(str);
387 if (strcasecmp(path + pos, str) == 0) {
H A DStringPool.cpp80 String8 str = pool->string8ObjectAt(s); local
81 printf("String #" ZD ": %s\n", (ZD_TYPE) s, str.string());
391 #define ENCODE_LENGTH(str, chrsz, strSize) \
396 *str++ = maxMask | ((strSize>>(chrsz*8))&maxSize); \
398 *str++ = strSize; \
H A Dpseudolocalize.cpp45 const char16_t* str = text.string(); local
48 char16_t c = str[pos];
75 } else if (str[lastpos] == k_arg_start &&
76 str[nextpos - 1] == k_arg_end) {
/frameworks/base/tools/aapt2/
H A DConfigDescription.cpp580 bool ConfigDescription::parse(const StringPiece& str, ConfigDescription* out) { argument
581 std::vector<std::string> parts = util::splitAndLowercase(str, '-');
590 if (str.size() == 0) {
H A DResourceValues.cpp137 String* str = new String(newPool->makeRef(*value)); local
138 str->mComment = mComment;
139 str->mSource = mSource;
140 return str;
169 StyledString* str = new StyledString(newPool->makeRef(value)); local
170 str->mComment = mComment;
171 str->mSource = mSource;
172 return str;
176 *out << "(styled string) \"" << *value->str << "\"";
H A DStringPool.cpp120 return mEntry->str.getIndex();
124 return mEntry->str.getContext();
127 StringPool::Ref StringPool::makeRef(const StringPiece16& str) { argument
128 return makeRefImpl(str, Context{}, true);
131 StringPool::Ref StringPool::makeRef(const StringPiece16& str, const Context& context) { argument
132 return makeRefImpl(str, context, true);
135 StringPool::Ref StringPool::makeRefImpl(const StringPiece16& str, const Context& context, argument
138 auto iter = mIndexedStrings.find(str);
145 entry->value = str.toString();
154 StringPool::StyleRef StringPool::makeRef(const StyleString& str) { argument
158 makeRef(const StyleString& str, const Context& context) argument
[all...]
/frameworks/base/tools/aapt2/compile/
H A DPseudolocalizer.cpp87 const char16_t* str = text.data(); local
90 char16_t c = str[pos];
117 } else if (str[lastpos] == k_arg_start && str[nextpos - 1] == k_arg_end) {
/frameworks/base/tools/aapt2/flatten/
H A DXmlFlattener.cpp59 void addString(const StringPiece16& str, uint32_t priority, android::ResStringPool_ref* dest) { argument
60 if (!str.empty()) {
62 mPool.makeRef(str, StringPool::Context{ priority }),
287 for (const auto& str : visitor.mPool) {
288 ResourceId id = { str->context.priority };
/frameworks/base/tools/aapt2/test/
H A DBuilders.h62 ResourceTableBuilder& addString(const StringPiece16& name, const StringPiece16& str) { argument
63 return addString(name, {}, str);
67 const StringPiece16& str) {
68 return addValue(name, id, util::make_unique<String>(mTable->stringPool.makeRef(str)));
72 const ConfigDescription& config, const StringPiece16& str) {
74 util::make_unique<String>(mTable->stringPool.makeRef(str)));
159 ValueBuilder& setComment(const StringPiece16& str) { argument
160 mValue->setComment(str);
200 StyleBuilder& setParent(const StringPiece16& str) { argument
201 mStyle->parent = Reference(parseNameOrDie(str));
66 addString(const StringPiece16& name, const ResourceId id, const StringPiece16& str) argument
71 addString(const StringPiece16& name, const ResourceId id, const ConfigDescription& config, const StringPiece16& str) argument
205 addItem(const StringPiece16& str, std::unique_ptr<Item> value) argument
210 addItem(const StringPiece16& str, ResourceId id, std::unique_ptr<Item> value) argument
226 addItem(const StringPiece16& str, Maybe<ResourceId> id = {}) argument
237 buildXmlDom(const StringPiece& str) argument
239 in << "<?xml version=\\"1.0\\" encoding=\\"utf-8\\"?>\\n" << str; local
246 buildXmlDomForPackageName(IAaptContext* context, const StringPiece& str) argument
[all...]
/frameworks/base/tools/aapt2/unflatten/
H A DBinaryResourceParser.cpp391 StringPiece16 str = util::getString(mValuePool, data); local
397 StyleString styleStr = { str.toString() };
410 util::stringStartsWith<char16_t>(str, u"res/")) {
413 str, StringPool::Context{ 0, config }));
419 str, StringPool::Context{1, config}));
/frameworks/base/tools/aapt2/util/
H A DUtil.cpp31 static std::vector<std::string> splitAndTransform(const StringPiece& str, char sep, argument
34 const StringPiece::const_iterator end = std::end(str);
35 StringPiece::const_iterator start = std::begin(str);
39 parts.emplace_back(str.substr(start, current).toString());
49 std::vector<std::string> split(const StringPiece& str, char sep) { argument
50 return splitAndTransform(str, sep, nullptr);
53 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep) { argument
54 return splitAndTransform(str, sep, ::tolower);
57 StringPiece16 trimWhitespace(const StringPiece16& str) { argument
58 if (str
76 trimWhitespace(const StringPiece& str) argument
95 findNonAlphaNumericAndNotInSet(const StringPiece16& str, const StringPiece16& allowedChars) argument
121 isJavaClassName(const StringPiece16& str) argument
141 isJavaPackageName(const StringPiece16& str) argument
196 verifyJavaStringFormat(const StringPiece16& str) argument
308 append(const StringPiece16& str) argument
[all...]
H A DUtil.h34 std::vector<std::string> split(const StringPiece& str, char sep);
35 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep);
41 bool stringStartsWith(const BasicStringPiece<T>& str, const BasicStringPiece<T>& prefix) { argument
42 if (str.size() < prefix.size()) {
45 return str.substr(0, prefix.size()) == prefix;
52 bool stringEndsWith(const BasicStringPiece<T>& str, const BasicStringPiece<T>& suffix) { argument
53 if (str.size() < suffix.size()) {
56 return str.substr(str.size() - suffix.size(), suffix.size()) == suffix;
63 StringPiece16 trimWhitespace(const StringPiece16& str);
154 const char16_t* str = pool.stringAt(idx, &len); local
163 const char* str = pool.string8At(idx, &len); local
193 inline const std::u16string& StringBuilder::str() const { function in class:StringBuilder
259 tokenize(BasicStringPiece<Char> str, Char sep) argument
321 Tokenizer(BasicStringPiece<Char> str, Char sep) argument
[all...]
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/
H A DResourceHelper.java600 private static boolean parseUnit(String str, TypedValue outValue, float[] outScale) { argument
601 str = str.trim();
604 if (unit.name.equals(str)) {
/frameworks/compile/mclinker/lib/LD/
H A DGNUArchiveReader.cpp49 const char* str = region.begin(); local
52 assert(str != NULL);
54 if (isArchive(str) || isThinArchive(str))
75 const char* str = region.begin(); local
78 assert(str != NULL);
79 if (isThinArchive(str))
172 member_name.assign(name_field.substr(0, pos).str());
404 << member->path() << pConfig.targets().triple().str();
/frameworks/compile/slang/
H A Dllvm-rs-cc.cpp187 #define str(s) #s macro
188 #define wrap_str(s) str(s)
204 #undef str macro
264 llvm::errs() << DiagsBuffer.str();
300 llvm::errs() << DiagsBuffer.str();
/frameworks/minikin/tests/
H A DFontCollectionItemizeTest.cpp59 void itemize(FontCollection* collection, const char* str, FontStyle style, argument
66 ParseUnicode(buf, BUF_SIZE, str, &len, NULL);
/frameworks/native/include/binder/
H A DTextOutput.h69 TextOutput& operator<<(TextOutput& to, const char* str);
149 inline TextOutput& operator<<(TextOutput& to, const char* str) argument
151 to.print(str, strlen(str));
/frameworks/native/opengl/libs/EGL/
H A DLoader.cpp108 char *str = fgets(cmdline, sizeof(cmdline) - 1, file); local
110 if (str) {
/frameworks/native/opengl/tests/hwc/
H A DhwcColorEquiv.cpp171 string str; local
194 str = optarg;
197 char endChar = (str.length() > 1) ? str[str.length() - 1] : 0;
199 str += " " + string(argv[optind++]);
202 istringstream in(str);
206 || (((unsigned int) in.tellg() != in.str().length())
209 "reference color of: %s", str.c_str());
216 str
[all...]
H A DhwcRects.cpp207 string str; local
364 string str; local
371 in >> str; local
376 format = hwcTestGraphicFormatLookup(str.c_str());
403 while ((in.tellg() < (streampos) in.str().length())
417 string str; local
419 in >> str; local
420 if (str == "none") {
422 } else if (str == "fliph") {
424 } else if (str
438 string str; local
440 in >> str; local
[all...]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/cdma/sms/
H A DUserData.java105 public static byte[] stringToAscii(String str) { argument
106 int len = str.length();
109 int charCode = charToAscii.get(str.charAt(i), -1);

Completed in 593 milliseconds

123456789