Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 234) sorted by relevance

12345678910

/frameworks/native/libs/utils/tests/
DUnicode_test.cpp37 const uint8_t str[] = { }; in TEST_F() local
39 measured = utf8_to_utf16_length(str, 0); in TEST_F()
48 const uint8_t str[] = { 0x30 }; in TEST_F() local
50 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F()
59 const uint8_t str[] = { 0xE2, 0x8C, 0xA3 }; in TEST_F() local
61 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F()
70 const uint8_t str[] = { 0xF0, 0x90, 0x80, 0x80 }; in TEST_F() local
72 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F()
82 const uint8_t str[] = { 0xE2, 0x8C }; in TEST_F() local
84 measured = utf8_to_utf16_length(str, sizeof(str)); in TEST_F()
[all …]
/frameworks/native/libs/utils/
DString16.cpp47 char16_t* str = (char16_t*)buf->data(); in initialize_string16() local
48 *str = 0; in initialize_string16()
50 gEmptyString = str; in initialize_string16()
117 char16_t* str = (char16_t*)buf->data(); in String16() local
118 strcpy16(str, o); in String16()
119 mString = str; in String16()
131 char16_t* str = (char16_t*)buf->data(); in String16() local
132 memcpy(str, o, len*sizeof(char16_t)); in String16()
133 str[len] = 0; in String16()
134 mString = str; in String16()
[all …]
DString8.cpp64 char* str = (char*)buf->data(); in initialize_string8() local
65 *str = 0; in initialize_string8()
67 gEmptyString = str; in initialize_string8()
85 char* str = (char*)buf->data(); in allocFromUTF8() local
86 memcpy(str, in, len); in allocFromUTF8()
87 str[len] = 0; in allocFromUTF8()
88 return str; in allocFromUTF8()
111 char* str = (char*)buf->data(); in allocFromUTF16() local
112 utf16_to_utf8(in, len, str); in allocFromUTF16()
113 return str; in allocFromUTF16()
[all …]
DStringArray.cpp45 bool StringArray::push_back(const char* str) { in push_back() argument
63 int len = strlen(str); in push_back()
65 memcpy(mArray[mCurrent], str, len+1); in push_back()
103 void StringArray::setEntry(int idx, const char* str) { in setEntry() argument
107 int len = strlen(str); in setEntry()
109 memcpy(mArray[idx], str, len+1); in setEntry()
/frameworks/av/media/libstagefright/codecs/mp3dec/src/asm/
Dpvmp3_mdct_18_gcc.s83 str r9,[r0],#4
87 str lr,[r1],#-4
99 str r0,[r5,#0x40]
102 str r0,[r5,#0x38]
105 str r1,[r5,#0x30]
108 str r12,[r5,#0x28]
110 str r12,[r5,#0x20]
112 str r12,[r5,#0x18]
114 str r12,[r5,#0x10]
116 str r12,[r5,#8]
[all …]
Dpvmp3_mdct_18_arm.s85 str r9,[r0],#4
89 str lr,[r1],#-4
101 str r0,[r5,#0x40]
104 str r0,[r5,#0x38]
107 str r1,[r5,#0x30]
110 str r12,[r5,#0x28]
112 str r12,[r5,#0x20]
114 str r12,[r5,#0x18]
116 str r12,[r5,#0x10]
118 str r12,[r5,#8]
[all …]
Dpvmp3_mdct_18_wm.asm83 str r9,[r0],#4
87 str lr,[r1],#-4
99 str r0,[r5,#0x40]
102 str r0,[r5,#0x38]
105 str r1,[r5,#0x30]
108 str r12,[r5,#0x28]
110 str r12,[r5,#0x20]
112 str r12,[r5,#0x18]
114 str r12,[r5,#0x10]
116 str r12,[r5,#8]
[all …]
Dpvmp3_dct_16_gcc.s56 str r2,[sp,#0x14]
65 str r3,[sp]
87 str r4,[sp,#4]
95 str lr,[sp,#0x10]
112 str r9,[sp,#0xc]
115 str r9,[sp,#0x18]
120 str r9,[sp,#8]
140 str r8,[r0]
143 str r8,[r0,#0x20]
148 str r3,[r0,#0x10]
[all …]
/frameworks/base/core/java/android/net/
DDhcpInfo.java55 StringBuffer str = new StringBuffer(); in toString() local
57 str.append("ipaddr "); putAddress(str, ipAddress); in toString()
58 str.append(" gateway "); putAddress(str, gateway); in toString()
59 str.append(" netmask "); putAddress(str, netmask); in toString()
60 str.append(" dns1 "); putAddress(str, dns1); in toString()
61 str.append(" dns2 "); putAddress(str, dns2); in toString()
62 str.append(" DHCP server "); putAddress(str, serverAddress); in toString()
63 str.append(" lease ").append(leaseDuration).append(" seconds"); in toString()
65 return str.toString(); in toString()
/frameworks/base/core/java/android/hardware/
DCamera.java2180 String str = get(KEY_PREVIEW_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewSizes() local
2181 return splitSize(str); in getSupportedPreviewSizes()
2200 String str = get(KEY_VIDEO_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedVideoSizes() local
2201 return splitSize(str); in getSupportedVideoSizes()
2260 String str = get(KEY_JPEG_THUMBNAIL_SIZE + SUPPORTED_VALUES_SUFFIX); in getSupportedJpegThumbnailSizes() local
2261 return splitSize(str); in getSupportedJpegThumbnailSizes()
2336 String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFrameRates() local
2337 return splitInt(str); in getSupportedPreviewFrameRates()
2391 String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX); in getSupportedPreviewFpsRange() local
2392 return splitRange(str); in getSupportedPreviewFpsRange()
[all …]
/frameworks/av/media/libmedia/
DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; in AudioParameter() local
41 strcpy(str, keyValuePairs.string()); in AudioParameter()
42 char *pair = strtok(str, ";"); in AudioParameter()
64 delete[] str; in AudioParameter()
74 String8 str = String8(""); in toString() local
78 str += mParameters.keyAt(i); in toString()
79 str += "="; in toString()
80 str += mParameters.valueAt(i); in toString()
81 if (i < (size - 1)) str += ";"; in toString()
83 return str; in toString()
[all …]
/frameworks/support/v4/java/android/support/v4/util/
DAtomicFile.java98 FileOutputStream str = null; in startWrite() local
100 str = new FileOutputStream(mBaseName); in startWrite()
107 str = new FileOutputStream(mBaseName); in startWrite()
112 return str; in startWrite()
121 public void finishWrite(FileOutputStream str) { in finishWrite() argument
122 if (str != null) { in finishWrite()
123 sync(str); in finishWrite()
125 str.close(); in finishWrite()
138 public void failWrite(FileOutputStream str) { in failWrite() argument
139 if (str != null) { in failWrite()
[all …]
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
DNetworkState.java141 StringBuffer str = new StringBuffer ("States: "); in validateNetworkDisconnection() local
142 str.append(printStates()); in validateNetworkDisconnection()
144 str.append(String.format(" Initial state should be CONNECTED, but it is %s.", in validateNetworkDisconnection()
146 mReason = str.toString(); in validateNetworkDisconnection()
151 str.append(String.format(" Last state should be DISCONNECTED, but it is %s", in validateNetworkDisconnection()
153 mReason = str.toString(); in validateNetworkDisconnection()
167 str.append(String.format(" Transition state from %s to %s is not valid", in validateNetworkDisconnection()
169 mReason = str.toString(); in validateNetworkDisconnection()
173 mReason = str.toString(); in validateNetworkDisconnection()
182 StringBuffer str = new StringBuffer("States "); in validateNetworkConnection() local
[all …]
/frameworks/base/core/java/android/util/
DAtomicFile.java100 FileOutputStream str = null; in startWrite() local
102 str = new FileOutputStream(mBaseName); in startWrite()
113 str = new FileOutputStream(mBaseName); in startWrite()
118 return str; in startWrite()
127 public void finishWrite(FileOutputStream str) { in finishWrite() argument
128 if (str != null) { in finishWrite()
129 FileUtils.sync(str); in finishWrite()
131 str.close(); in finishWrite()
144 public void failWrite(FileOutputStream str) { in failWrite() argument
145 if (str != null) { in failWrite()
[all …]
DSpline.java142 StringBuilder str = new StringBuilder(); in toString() local
144 str.append("["); in toString()
147 str.append(", "); in toString()
149 str.append("(").append(mX[i]); in toString()
150 str.append(", ").append(mY[i]); in toString()
151 str.append(": ").append(mM[i]).append(")"); in toString()
153 str.append("]"); in toString()
154 return str.toString(); in toString()
/frameworks/base/core/java/com/android/internal/os/
DAtomicFile.java68 FileOutputStream str = null; in startWrite() local
70 str = new FileOutputStream(mBaseName); in startWrite()
81 str = new FileOutputStream(mBaseName); in startWrite()
86 return str; in startWrite()
89 public void finishWrite(FileOutputStream str) { in finishWrite() argument
90 if (str != null) { in finishWrite()
91 FileUtils.sync(str); in finishWrite()
93 str.close(); in finishWrite()
101 public void failWrite(FileOutputStream str) { in failWrite() argument
102 if (str != null) { in failWrite()
[all …]
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
DDurationTest.java26 private void verifyDuration(String str, in verifyDuration() argument
31 duration.parse(str); in verifyDuration()
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign); in verifyDuration()
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks); in verifyDuration()
35 assertEquals("Duration days is not equal for " + str, days, duration.days); in verifyDuration()
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours); in verifyDuration()
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes); in verifyDuration()
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds); in verifyDuration()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
DH264SwDecApi.c66 #define DEC_API_TRC(str) H264SwDecTrace(str) argument
68 #define DEC_API_TRC(str) argument
152 sprintf(pDecCont->str, "H264SwDecInit# decInst %p noOutputReordering %d", in H264SwDecInit()
154 DEC_API_TRC(pDecCont->str); in H264SwDecInit()
168 sprintf(pDecCont->str, "H264SwDecInit# OK: return %p", (void*)pDecCont); in H264SwDecInit()
169 DEC_API_TRC(pDecCont->str); in H264SwDecInit()
222 sprintf(((decContainer_t*)decInst)->str, in H264SwDecGetInfo()
224 DEC_API_TRC(((decContainer_t*)decInst)->str); in H264SwDecGetInfo()
291 sprintf(pDecCont->str, "H264SwDecRelease# decInst %p",decInst); in H264SwDecRelease()
292 DEC_API_TRC(pDecCont->str); in H264SwDecRelease()
[all …]
/frameworks/compile/libbcc/gdb_plugin/
Dandroid-commands.py63 e.output = str(out) + str(err)
148 print "### " + str(largs)
152 raise gdb.GdbError("Error starting background adb " + str(largs))
154 raise gdb.GdbError("Unknown error starting background adb " + str(largs))
163 print "### " + str(largs)
166 raise gdb.GdbError("Error starting adb " + str(largs))
168 raise gdb.GdbError("Unknown error starting adb " + str(largs))
257 if self.current_device == str(serial):
258 print "Current device already is: " + str(serial)
262 self.current_device = str(serial)
[all …]
/frameworks/native/opengl/tests/hwc/
DhwcRects.cpp209 string str; in main() local
366 string str; in parseRect() local
374 in >> str; in parseRect()
379 format = hwcTestGraphicFormatLookup(str.c_str()); in parseRect()
406 while ((in.tellg() < (streampos) in.str().length()) in parseRect()
420 string str; in parseRect() local
422 in >> str; in parseRect()
423 if (str == "none") { in parseRect()
425 } else if (str == "fliph") { in parseRect()
427 } else if (str == "flipv") { in parseRect()
[all …]
DhwcColorEquiv.cpp172 string str; in main() local
195 str = optarg; in main()
198 char endChar = (str.length() > 1) ? str[str.length() - 1] : 0; in main()
200 str += " " + string(argv[optind++]); in main()
203 istringstream in(str); in main()
207 || (((unsigned int) in.tellg() != in.str().length()) in main()
210 "reference color of: %s", str.c_str()); in main()
217 str = optarg; in main()
220 char endChar = (str.length() > 1) ? str[str.length() - 1] : 0; in main()
222 str += " " + string(argv[optind++]); in main()
[all …]
/frameworks/wilhelm/src/
Dtrace.c49 const char *str = slesutResultToString(result); in slTraceLeaveGlobal() local
50 if (NULL != str) { in slTraceLeaveGlobal()
51 SL_LOGW("Leaving %s (%s)", function, str); in slTraceLeaveGlobal()
112 const char *str = slesutResultToString(result); in slTraceLeaveInterface() local
114 if (NULL != str) { in slTraceLeaveInterface()
116 &underscore[1], str); in slTraceLeaveInterface()
122 if (NULL != str) { in slTraceLeaveInterface()
123 SL_LOGW("Leaving %s (%s)", function, str); in slTraceLeaveInterface()
/frameworks/opt/calendar/src/com/android/calendarcommon2/
DDuration.java47 public void parse(String str) throws DateException in parse() argument
56 int len = str.length(); in parse()
64 c = str.charAt(0); in parse()
77 c = str.charAt(index); in parse()
80 "Duration.parse(str='" + str + "') expected 'P' at index=" in parse()
84 c = str.charAt(index); in parse()
91 c = str.charAt(index); in parse()
120 "Duration.parse(str='" + str + "') unexpected char '" in parse()
/frameworks/av/camera/
DCameraParameters.cpp250 char str[16]; in set() local
251 sprintf(str, "%d", value); in set()
252 set(key, str); in set()
257 char str[16]; // 14 should be enough. We overestimate to be safe. in setFloat() local
258 snprintf(str, sizeof(str), "%g", value); in setFloat()
259 set(key, str); in setFloat()
291 static int parse_pair(const char *str, int *first, int *second, char delim, in parse_pair() argument
296 int w = (int)strtol(str, &end, 10); in parse_pair()
299 ALOGE("Cannot find delimeter (%c) in str=%s", delim, str); in parse_pair()
343 char str[32]; in setPreviewSize() local
[all …]
/frameworks/base/core/jni/android/graphics/
DTypeface.cpp14 AutoJavaStringToUTF8(JNIEnv* env, jstring str) : fEnv(env), fJStr(str) in AutoJavaStringToUTF8() argument
16 fCStr = env->GetStringUTFChars(str, NULL); in AutoJavaStringToUTF8()
38 AutoJavaStringToUTF8 str(env, name); in Typeface_create() local
39 face = SkTypeface::CreateFromName(str.c_str(), style); in Typeface_create()
127 AutoJavaStringToUTF8 str(env, jpath); in Typeface_createFromAsset() local
128 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER); in Typeface_createFromAsset()
145 AutoJavaStringToUTF8 str(env, jpath); in Typeface_createFromFile() local
147 return SkTypeface::CreateFromFile(str.c_str()); in Typeface_createFromFile()

12345678910