/frameworks/base/tests/backup/src/com/android/backuptest/ |
BackupTestActivity.java | 60 StringBuffer str = new StringBuffer(); 61 str.append("Text is:"); 66 str.append("\n"); 67 str.append(reader.readLine()); 70 str.append("ERROR: "); 71 str.append(ex.toString()); 73 Log.d(TAG, str.toString()); 74 Toast.makeText(BackupTestActivity.this, str, Toast.LENGTH_SHORT).show(); 116 String str = "'" + PREF_KEY + "' is " + val; 117 Log.d(TAG, str); [all...] |
/development/ndk/samples/hello-neon/jni/ |
helloneon.c | 83 char* str; local 109 asprintf(&str, "FIR Filter benchmark:\nC version : %g ms\n", time_c); 110 strlcpy(buffer, str, sizeof buffer); 111 free(str); 143 asprintf(&str, "%g ms (x%g faster)\n", time_neon, time_c / (time_neon < 1e-6 ? 1. : time_neon)); 144 strlcat(buffer, str, sizeof buffer); 145 free(str);
|
/development/tools/emulator/opengl/host/tools/emugen/ |
TypeFactory.cpp | 80 std::string str = trim(line); local 81 if (str.size() == 0 || str.at(0) == '#') { 86 name = getNextToken(str, pos, &last, WHITESPACE); 93 size = getNextToken(str, pos, &last, WHITESPACE); 100 printString = getNextToken(str, pos, &last, WHITESPACE); 108 pointerDef = getNextToken(str, pos, &last, WHITESPACE);
|
EntryPoint.cpp | 54 std::string str = getNextToken(f, pos, &last, WHITESPACE); local 55 if (str.size() == 0) break; 59 if (str == "const") { 64 *vartype += str; 70 if (str.size() == 0) { 72 } else if (str == "*") { 78 while (str[0] == '*') { 80 str[0] = ' '; 81 str = trim(str); [all...] |
/device/sample/frameworks/PlatformLibrary/jni/ |
PlatformLibrary.cpp | 100 jstring str) { 102 if (str == NULL) { 112 const jchar* strChars = env->GetStringChars(str, NULL); 118 jsize strLength = env->GetStringLength(str); 124 const char* printable = env->GetStringUTFChars(str, NULL); 127 env->ReleaseStringUTFChars(str, printable); 142 env->ReleaseStringChars(str, strChars);
|
/external/apache-xml/src/main/java/org/apache/xml/serializer/utils/ |
SystemIDResolver.java | 188 * @param str The input string 191 private static String replaceChars(String str) 193 StringBuffer buf = new StringBuffer(str); 231 String str = systemId.substring(5); local 235 if (str != null && str.startsWith("/")) 237 if (str.startsWith("///") || !str.startsWith("//"))
|
/external/apache-xml/src/main/java/org/apache/xml/utils/ |
SystemIDResolver.java | 181 * @param str The input string 184 private static String replaceChars(String str) 186 StringBuffer buf = new StringBuffer(str); 224 String str = systemId.substring(5); local 228 if (str != null && str.startsWith("/")) 230 if (str.startsWith("///") || !str.startsWith("//"))
|
/external/chromium/third_party/libjingle/source/talk/base/ |
helpers.cc | 222 std::string str; local 223 CreateRandomString(len, &str); 224 return str; 227 bool CreateRandomString(size_t len, std::string* str) { 228 str->clear(); 234 str->reserve(len); 236 str->push_back(BASE64[bytes[i] & 63]);
|
/external/dbus/dbus/ |
dbus-shell.c | 43 unquote_string_inplace (char* str, char** end) 49 dest = s = str; 55 *end = str; 327 char *str; local 329 str = _dbus_strdup (_dbus_string_get_data (token)); 330 if (!str) 336 if (!_dbus_list_append (retval, str)) 338 dbus_free (str);
|
/external/grub/stage2/ |
boot.c | 47 char *str = 0, *str2 = 0; local 120 str = "elf"; 170 str = "kludge"; 217 str = "a.out"; 490 printf (" [%s-%s", str2, str); 492 str = ""; 497 str = "-and-data"; 499 printf (", loadaddr=0x%x, text%s=0x%x", cur_addr, str, text_len); 879 char *str; local 890 str = arg [all...] |
/external/oprofile/daemon/ |
opd_events.c | 48 char * str; local 59 str = op_xstrndup(tmp, tmp2 - tmp); 63 return str; 70 char * str = copy_token(c, delim); local 71 if (!str) 73 val = strtoul(str, NULL, 0); 74 free(str);
|
/external/qemu/audio/ |
dsoundaudio.c | 95 const char *str = "BUG"; local 99 str = "The method succeeded"; 103 str = "The buffer was created, but another 3D algorithm was substituted"; 108 str = "The method succeeded, but not all the optional effects were obtained"; 113 str = "The request failed because access was denied"; 118 str = "The request failed because resources, such as a priority level, were already in use by another caller"; 123 str = "The object is already initialized"; 128 str = "The specified wave format is not supported"; 133 str = "The GUID specified in an audiopath file does not match a valid mix-in buffer"; 138 str = "The buffer memory has been lost and must be restored" [all...] |
/external/webkit/Source/JavaScriptCore/tests/mozilla/ecma_3/RegExp/ |
regress-85721.js | 52 var str = ''; variable 80 str='<sql:connection id="conn1"> <sql:url>www.m.com</sql:url> <sql:driver>drive.class</sql:driver>\n<sql:userId>foo</sql:userId> <sql:password>goo</sql:password> </sql:connection>'; 89 var result = re.exec(str); 97 testRegExp([status], [re], [str], [result], [expect]); 255 str = 'Jeffy<"That Tall Guy"@ora.com (this address is no longer active)>'; 263 var result = re.exec(str); 271 testRegExp([status], [re], [str], [result], [expect]);
|
/frameworks/base/media/libstagefright/codecs/aacenc/src/asm/ARMV5E/ |
CalcWindowEnergy_v5.s | 50 str r8, [r13, #4] 51 str r0, [r13, #8] 52 str r3, [r13, #12] 92 str r6, [r4, #72] 94 str r7, [r4, #136] 100 str r10, [r0, #168] 101 str r11, [r0, #172]
|
/hardware/ril/mock-ril/src/cpp/ |
node_util.cpp | 84 v8::Local<v8::String> str = val->ToString(); local 86 if (encoding == UTF8) return str->Utf8Length(); 88 return str->Length(); 115 v8::Local<v8::String> str = val->ToString(); local 118 str->WriteUtf8(buf, buflen, NULL, v8::String::HINT_MANY_WRITES_EXPECTED); 123 str->WriteAscii(buf, 0, buflen, v8::String::HINT_MANY_WRITES_EXPECTED); 133 str->Write(twobytebuf, 0, buflen, v8::String::HINT_MANY_WRITES_EXPECTED);
|
/libcore/luni/src/main/java/java/io/ |
BufferedWriter.java | 244 * Writes {@code count} characters starting at {@code offset} in {@code str} 250 * @param str 253 * the start position in {@code str} for retrieving characters. 261 * than the length of {@code str}. 264 public void write(String str, int offset, int count) throws IOException { 270 if (offset < 0 || offset > str.length() - count) { 271 throw new StringIndexOutOfBoundsException(str, offset, count); 275 str.getChars(offset, offset + count, chars, 0); 284 str.getChars(offset, offset + available, buf, pos); 295 str.getChars(offset, offset + available, chars, 0) [all...] |
/external/dropbear/libtommath/mtest/ |
mpi.h | 191 mp_err mp_read_signed_bin(mp_int *mp, unsigned char *str, int len); 193 mp_err mp_to_signed_bin(mp_int *mp, unsigned char *str); 195 mp_err mp_read_unsigned_bin(mp_int *mp, unsigned char *str, int len); 197 mp_err mp_to_unsigned_bin(mp_int *mp, unsigned char *str); 202 #define mp_read_raw(mp, str, len) mp_read_signed_bin((mp), (str), (len)) 204 #define mp_toraw(mp, str) mp_to_signed_bin((mp), (str)) 205 #define mp_read_mag(mp, str, len) mp_read_unsigned_bin((mp), (str), (len) [all...] |
/external/mesa3d/src/glsl/glcpp/ |
glcpp-lex.l | 95 yylval->str = talloc_strdup (yyextra, yytext); 103 yylval->str = talloc_strdup (yyextra, yytext); 222 yylval->str = talloc_strdup (yyextra, yytext); 227 yylval->str = talloc_strdup (yyextra, yytext); 232 yylval->str = talloc_strdup (yyextra, yytext); 277 yylval->str = talloc_strdup (yyextra, yytext); 286 yylval->str = talloc_strdup (yyextra, yytext);
|
/external/valgrind/tsan/ |
ts_offline.cc | 170 bool ProcessCodePosition(FILE *input, int *pc, string *str) { 172 ok &= ReadANSI(input, str); 176 bool ProcessMessage(FILE *input, string *str) { 177 return ReadANSI(input, str); 235 string str; local 243 ok &= ProcessCodePosition(input, &pc, &str); 244 if (sscanf(str.c_str(), "%s %s %d", rtn, file, &line) == 3 && pc != 0) { 255 ok &= ProcessMessage(input, &str); 257 Printf("%s\n", str.c_str()); 273 string str; local [all...] |
/external/bluetooth/bluez/src/ |
textfile.c | 143 char *str; local 149 str = malloc(size + 1); 150 if (!str) 153 sprintf(str, "%s %s\n", key, value); 155 if (write(fd, str, size) < 0) 158 free(str); 188 char *map, *off, *end, *str; local 269 str = malloc(len); 270 if (!str) { 275 memcpy(str, end, len) 312 char *map, *off, *end, *str = NULL; local [all...] |
/frameworks/base/libs/camera/ |
CameraParameters.cpp | 248 char str[16]; local 249 sprintf(str, "%d", value); 250 set(key, str); 255 char str[16]; // 14 should be enough. We overestimate to be safe. local 256 snprintf(str, sizeof(str), "%g", value); 257 set(key, str); 289 static int parse_pair(const char *str, int *first, int *second, char delim, 294 int w = (int)strtol(str, &end, 10); 297 LOGE("Cannot find delimeter (%c) in str=%s", delim, str) 341 char str[32]; local 371 char str[32]; local 420 char str[32]; local [all...] |
/external/openssl/crypto/asn1/ |
asn1_gen.c | 73 #define ASN1_GEN_STR(str,val) {str, sizeof(str) - 1, val} 111 const char *str; member in struct:__anon8904 121 static ASN1_TYPE *asn1_str2type(const char *str, int format, int utype); 124 ASN1_TYPE *ASN1_generate_nconf(char *str, CONF *nconf) 129 return ASN1_generate_v3(str, NULL); 132 return ASN1_generate_v3(str, &cnf); 135 ASN1_TYPE *ASN1_generate_v3(char *str, X509V3_CTX *cnf) 156 if (CONF_parse_list(str, ',', 1, asn1_cb, &asn1_tags) != 0 [all...] |
/external/openssl/crypto/bio/ |
b_sock.c | 115 static int get_ip(const char *str,unsigned char *ip); 120 int BIO_get_host_ip(const char *str, unsigned char *ip) 127 i=get_ip(str,ip); 146 he=BIO_gethostbyname(str); 168 ERR_add_error_data(2,"host=",str); 175 int BIO_get_port(const char *str, unsigned short *port_ptr) 180 if (str == NULL) 185 i=atoi(str); 195 s=getservbyname((char *)str,"tcp"); 197 s=getservbyname(str,"tcp") 635 char *str=NULL,*e; local [all...] |
/external/icu4c/extra/uconv/ |
uconv.cpp | 290 UnicodeString str(name, ""); 292 u_wmsg(stderr, "cantGetAliases", str.getTerminatedBuffer(), 304 UnicodeString str(name, ""); 306 u_wmsg(stderr, "cantGetAliases", str.getTerminatedBuffer(), 652 UnicodeString str(translit), pestr; 659 t = Transliterator::createFromRules("Uconv", str, UTRANS_FORWARD, parse, err); 665 str.append((UChar32) 0); 672 u_wmsg(stderr, "cantCreateTranslitParseErr", str.getTerminatedBuffer(), 675 u_wmsg(stderr, "cantCreateTranslit", str.getTerminatedBuffer(), 696 UnicodeString str(fromcpage, "") 808 UnicodeString str; local 988 UnicodeString str; local [all...] |
/external/icu4c/test/intltest/ |
incaltst.cpp | 425 UnicodeString str; local 426 fmt2->format(aDate, str); 427 logln(UnicodeString() + "Test Date: " + str); 428 str.remove(); 429 fmt->format(aDate, str); 430 logln(UnicodeString() + "as Buddhist Calendar: " + escape(str)); 432 if(str != expected) { 433 errln("Expected " + escape(expected) + " but got " + escape(str)); 510 UnicodeString str; local 511 fmt2->format(aDate, str); 541 UnicodeString str; local 623 UnicodeString str; local 658 UnicodeString(" and era ") + expectEra +", but got year " + gotYear + " and era " + gotEra + " (Gregorian:" + str +")"); local 698 UnicodeString(" and era ") + expectEra +", but got year " + gotYear + " and era " + gotEra + " (Gregorian:" + str +")"); local 748 UnicodeString str; local [all...] |