/frameworks/base/tools/bit/ |
H A D | aapt.cpp | 194 string str = match[2]; local 195 size_t colon = str.find(':'); 197 element->name = str; 199 element->ns = scope->namespaces[string(str, 0, colon)]; 200 element->name.assign(str, colon+1, string::npos); 202 element->lineno = atoi(match[3].str().c_str()); 219 string str = match[2]; local 220 size_t colon = str.find(':'); 222 attr.name = str; 224 attr.ns = scope->namespaces[string(str, [all...] |
H A D | util.cpp | 149 escape_quotes(const char* str) argument 152 while (*str) { 153 if (*str == '"') { 157 result += *str; 164 escape_for_commandline(const char* str) argument 166 if (strchr(str, '"') != NULL || strchr(str, ' ') != NULL 167 || strchr(str, '\t') != NULL) { 168 return escape_quotes(str); 170 return str; 181 trim(const string& str) argument 196 starts_with(const string& str, const string& prefix) argument 202 ends_with(const string& str, const string& suffix) argument 212 split_lines(vector<string>* result, const string& str) argument [all...] |
/frameworks/base/tools/incident_report/ |
H A D | main.cpp | 66 string str; local 67 if (in->ReadString(&str, size)) { 68 message->addString(fieldId, str); 190 out->printf("%s", node.str->c_str());
|
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 685 private static boolean parseUnit(String str, TypedValue outValue, float[] outScale) { argument 686 str = str.trim(); 689 if (unit.name.equals(str)) {
|
/frameworks/compile/mclinker/lib/LD/ |
H A D | GNUArchiveReader.cpp | 49 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 D | llvm-rs-cc.cpp | 188 #define str(s) #s macro 189 #define wrap_str(s) str(s) 204 #undef str macro 264 llvm::errs() << DiagsBuffer.str(); 300 llvm::errs() << DiagsBuffer.str();
|
/frameworks/minikin/tests/unittest/ |
H A D | FontCollectionItemizeTest.cpp | 55 void itemize(const std::shared_ptr<FontCollection>& collection, const char* str, FontStyle style, argument 62 ParseUnicode(buf, BUF_SIZE, str, &len, NULL);
|
/frameworks/native/include/binder/ |
H A D | TextOutput.h | 73 std::string str = strbuf.str(); local 74 to.print(str.c_str(), str.size());
|
/frameworks/native/libs/binder/include/binder/ |
H A D | TextOutput.h | 73 std::string str = strbuf.str(); local 74 to.print(str.c_str(), str.size());
|
/frameworks/native/opengl/tests/hwc/ |
H A D | hwcColorEquiv.cpp | 171 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 D | hwcRects.cpp | 207 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/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
H A D | LegacyPasspointConfigParser.java | 480 * @param str The string to parse 484 private static long[] parseLongArray(String str) argument 486 String[] strArray = str.split(LONG_ARRAY_SEPARATOR);
|
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalConnection.java | 142 public void proceedAfterWildChar(String str) { argument 252 StringBuilder str = new StringBuilder(128); 253 str.append("[ImsExternalConnection dialogCallId:"); 254 str.append(mCallId); 255 str.append(" state:"); 257 str.append("Active"); 259 str.append("Disconnected"); 261 str.append("]"); 262 return str.toString();
|
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
H A D | SubscriptionMonitorTest.java | 43 static void failAndStack(String str) { argument 44 fail(str + "\n" + SubscriptionMonitorTest.stack()); 97 private void failAndStack(String str) { argument 98 SubscriptionMonitorTest.failAndStack(str);
|
/frameworks/opt/timezonepicker/src/com/android/timezonepicker/ |
H A D | TimeZoneFilterTypeAdapter.java | 46 void onSetFilter(int filterType, String str, int time); argument 51 String str; field in class:TimeZoneFilterTypeAdapter.ViewHolder 130 vh.str = filter.constraint; 152 mListener.onSetFilter(vh.filterType, vh.str, vh.time); 343 * @param str 347 public int parseNum(String str, int startIndex) { argument 353 char ch = str.charAt(idx++); 359 if (idx >= str.length()) { 364 ch = str.charAt(idx++); 377 if (idx < str [all...] |
H A D | TimeZoneResultAdapter.java | 120 public void onSetFilter(int filterType, String str, int time) { argument 122 Log.d(TAG, "onSetFilter: " + filterType + " [" + str + "] " + time); 126 mLastFilterString = str; 170 ArrayList<Integer> tzIds = mTimeZoneData.mTimeZonesByCountry.get(str);
|
/frameworks/support/core-utils/java/android/support/v4/text/ |
H A D | BidiFormatter.java | 290 * {@code str}'s directionality. 292 * @param str CharSequence after which the mark may need to appear. 293 * @param heuristic The text direction heuristic that will be used to estimate the {@code str}'s 298 private String markAfter(CharSequence str, TextDirectionHeuristicCompat heuristic) { argument 299 final boolean isRtl = heuristic.isRtl(str, 0, str.length()); 301 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) { 304 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) { 318 * {@code str}'s directionality. 320 * @param str CharSequenc 326 markBefore(CharSequence str, TextDirectionHeuristicCompat heuristic) argument 345 isRtl(String str) argument 356 isRtl(CharSequence str) argument 389 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic, boolean isolate) argument 408 unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic, boolean isolate) argument 439 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic) argument 454 unicodeWrap(CharSequence str, TextDirectionHeuristicCompat heuristic) argument 467 unicodeWrap(String str, boolean isolate) argument 481 unicodeWrap(CharSequence str, boolean isolate) argument 492 unicodeWrap(String str) argument 504 unicodeWrap(CharSequence str) argument 539 getExitDir(CharSequence str) argument 556 getEntryDir(CharSequence str) argument [all...] |
/frameworks/av/drm/mediacas/plugins/clearkey/ |
H A D | ClearKeyCasPlugin.cpp | 175 status_t ClearKeyCasPlugin::provision(const String8 &str) { argument 176 ALOGV("provision: provisionString=%s", str.string()); 181 status_t err = license_fetcher->Init(str.string()); 324 String8 str; local
|
/frameworks/av/media/libaudioclient/ |
H A D | AudioEffect.cpp | 447 status_t AudioEffect::stringToGuid(const char *str, effect_uuid_t *guid) argument 449 if (str == NULL || guid == NULL) { 455 if (sscanf(str, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x", 473 status_t AudioEffect::guidToString(const effect_uuid_t *guid, char *str, size_t maxLen) argument 475 if (guid == NULL || str == NULL) { 479 snprintf(str, maxLen, "%08x-%04x-%04x-%04x-%02x%02x%02x%02x%02x%02x",
|
/frameworks/base/core/java/com/android/internal/content/ |
H A D | PackageHelper.java | 670 public static String replaceEnd(String str, String before, String after) { argument 671 if (!str.endsWith(before)) { 673 "Expected " + str + " to end with " + before); 675 return str.substring(0, str.length() - before.length()) + after;
|
/frameworks/base/core/jni/ |
H A D | android_database_CursorWindow.cpp | 304 const char* str, size_t len) { 305 ssize_t size = utf8_to_utf16_length(reinterpret_cast<const uint8_t*>(str), len); 313 utf8_to_utf16_no_null_terminator(reinterpret_cast<const uint8_t*>(str), len, 303 fillCharArrayBufferUTF(JNIEnv* env, jobject bufferObj, const char* str, size_t len) argument
|
/frameworks/base/tools/aapt/ |
H A D | XMLNode.cpp | 57 bool isWhitespace(const char16_t* str) argument 59 while (*str != 0 && *str < 128 && isspace(*str)) { 60 str++; 62 return *str == 0; 103 const char16_t* str = str16.string(); local 104 const char16_t* p = str; 105 const char16_t* end = str + str16.size(); 295 const char16_t* str local 423 String8 str; local [all...] |
/frameworks/base/tools/aapt2/ |
H A D | ResourceValues.h | 70 void SetComment(const android::StringPiece& str) { comment_ = str.to_string(); } argument 72 void SetComment(std::string&& str) { comment_ = std::move(str); } argument
|
H A D | StringPool.cpp | 121 if (entry_->str != rhs.entry_->str) { 150 size_t StringPool::StyleRef::index() const { return entry_->str.index(); } 153 return entry_->str.GetContext(); 156 StringPool::Ref StringPool::MakeRef(const StringPiece& str) { argument 157 return MakeRefImpl(str, Context{}, true); 160 StringPool::Ref StringPool::MakeRef(const StringPiece& str, argument 162 return MakeRefImpl(str, context, true); 165 StringPool::Ref StringPool::MakeRefImpl(const StringPiece& str, argument 168 auto iter = indexed_strings_.find(str); 184 MakeRef(const StyleString& str) argument 188 MakeRef(const StyleString& str, const Context& context) argument [all...] |
/frameworks/base/tools/aapt2/proto/ |
H A D | TableProtoDeserializer.cpp | 185 const uint32_t idx = pb_item.str().idx(); 186 const std::string str = util::GetString(*value_pool_, idx); local 190 StyleString style_str = {str}; 202 pool->MakeRef(str, StringPool::Context(config))); 206 const std::string str = util::GetString(*value_pool_, idx); local 208 pool->MakeRef(str, StringPool::Context(config))); 212 const std::string str = util::GetString(*value_pool_, idx); local 214 str,
|