/frameworks/base/telephony/java/com/android/internal/telephony/cdma/ |
H A D | UserData.java | 113 public static byte[] stringToAscii(String str) { argument 114 int len = str.length(); 117 int charCode = charToAscii.get(str.charAt(i), -1);
|
/frameworks/base/tests/notification/src/com/android/frameworks/tests/notification/ |
H A D | NotificationTests.java | 177 static SpannableStringBuilder BOLD(CharSequence str) { argument 178 final SpannableStringBuilder ssb = new SpannableStringBuilder(str);
|
/frameworks/base/tools/aapt/ |
H A D | AaptConfig.cpp | 34 bool parse(const String8& str, ConfigDescription* out) { argument 35 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, '-'); 44 if (str.length() == 0) { 249 bool parseCommaSeparatedList(const String8& str, std::set<ConfigDescription>* outSet) { argument 250 Vector<String8> parts = AaptUtil::splitAndLowerCase(str, ',');
|
H A D | Package.cpp | 381 const char* str = others[i]; local 382 int pos = pathName.length() - strlen(str); 387 if (strcasecmp(path + pos, str) == 0) {
|
H A D | pseudolocalize.cpp | 45 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 D | ConfigDescription.cpp | 646 bool ConfigDescription::Parse(const StringPiece& str, ConfigDescription* out) { argument 647 std::vector<std::string> parts = util::SplitAndLowercase(str, '-'); 656 if (str.size() == 0) { 886 const android::String8 str = toString(); local 887 return std::string(str.string(), str.size());
|
/frameworks/base/tools/aapt2/compile/ |
H A D | Pseudolocalizer.cpp | 92 const char* str = text.data(); local 95 char16_t c = str[pos]; 122 } else if (str[lastpos] == kArgStart && str[nextpos - 1] == kArgEnd) {
|
/frameworks/base/tools/aapt2/format/binary/ |
H A D | XmlFlattener.cpp | 171 void AddString(const StringPiece& str, uint32_t priority, android::ResStringPool_ref* dest, argument 173 if (str.empty() && treat_empty_string_as_null) { 178 StringFlattenDest{pool.MakeRef(str, StringPool::Context(priority)), dest}); 353 for (const auto& str : visitor.pool.strings()) { 354 ResourceId id(str->context.priority); 355 if (str->context.priority == kLowPriority || !id.is_valid()) {
|
/frameworks/base/tools/aapt2/util/ |
H A 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); 257 Tokenize(const android::StringPiece& str, char sep) argument [all...] |
/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 | 148 escape_quotes(const char* str) argument 151 while (*str) { 152 if (*str == '"') { 156 result += *str; 163 escape_for_commandline(const char* str) argument 165 if (strchr(str, '"') != NULL || strchr(str, ' ') != NULL 166 || strchr(str, '\t') != NULL) { 167 return escape_quotes(str); 169 return str; 180 trim(const string& str) argument 195 starts_with(const string& str, const string& prefix) argument 201 ends_with(const string& str, const string& suffix) argument 211 split_lines(vector<string>* result, const string& str) argument [all...] |
/frameworks/base/tools/incident_report/ |
H A D | main.cpp | 67 string str; local 68 if (in->ReadString(&str, size)) { 69 message->addString(fieldId, str); 73 field->full_name().c_str(), size, str.size()); 74 fprintf(stderr, "String read \"%s\"\n", str.c_str()); 212 out->printf("%s", node.str->c_str());
|
/frameworks/base/tools/stats_log_api_gen/ |
H A D | main.cpp | 31 make_constant_name(const string& str) argument 34 const int N = str.size(); 37 char c = str[i]; 888 fprintf(out, " const char* str%d;\n", argIndex); 890 fprintf(out, " str%d = env->GetStringUTFChars(arg%d, NULL);\n", 893 fprintf(out, " str%d = NULL;\n", argIndex); 961 const char *argName = (*arg == JAVA_TYPE_STRING) ? "str" : "arg"; 974 fprintf(out, " if (str%d != NULL) {\n", argIndex); 975 fprintf(out, " env->ReleaseStringUTFChars(arg%d, str%d);\n",
|
/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 | 189 #define str(s) #s macro 190 #define wrap_str(s) str(s) 205 #undef str macro 265 llvm::errs() << DiagsBuffer.str(); 303 llvm::errs() << DiagsBuffer.str();
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/impl/ |
H A D | ResourceHelper.java | 638 private static boolean parseUnit(String str, TypedValue outValue, float[] outScale) { argument 639 str = str.trim(); 642 if (unit.name.equals(str)) {
|
/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/libs/EGL/ |
H A D | egl_object.cpp | 316 std::string str; local 318 while (ss >> str) { 319 tokenized_gl_extensions.push_back(str);
|
/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/net/wifi/service/java/com/android/server/wifi/util/ |
H A D | NativeUtil.java | 49 * @return the UTF_8 char byte values of str, as an ArrayList. 52 public static ArrayList<Byte> stringToByteArrayList(String str) { argument 53 if (str == null) { 59 ByteBuffer encoded = encoder.encode(CharBuffer.wrap(str)); 90 * @return the UTF_8 char byte values of str, as an Array. 93 public static byte[] stringToByteArray(String str) { argument 94 if (str == null) { 97 return str.getBytes(StandardCharsets.UTF_8); 209 * @param str String to be uoted. 212 public static String addEnclosingQuotes(String str) { argument 225 hexOrQuotedStringToBytes(String str) argument [all...] |
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/ |
H A D | ImsExternalConnection.java | 146 public void proceedAfterWildChar(String str) { argument 256 StringBuilder str = new StringBuilder(128); 257 str.append("[ImsExternalConnection dialogCallId:"); 258 str.append(mCallId); 259 str.append(" state:"); 261 str.append("Active"); 263 str.append("Disconnected"); 265 str.append("]"); 266 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);
|