Searched refs:str (Results 1 - 25 of 245) sorted by relevance

12345678910

/frameworks/base/core/java/android/net/
H A DDhcpInfo.java54 StringBuffer str = new StringBuffer();
56 str.append("ipaddr "); putAddress(str, ipAddress);
57 str.append(" gateway "); putAddress(str, gateway);
58 str.append(" netmask "); putAddress(str, netmask);
59 str.append(" dns1 "); putAddress(str, dns1);
60 str
[all...]
/frameworks/compile/libbcc/include/bcc/Support/
H A DProperties.h27 static inline uint32_t getProperty(const char *str) { argument
30 property_get(str, buf, "0");
/frameworks/opt/calendar/tests/src/com/android/calendarcommon2/
H A DDurationTest.java26 private void verifyDuration(String str, argument
31 duration.parse(str);
33 assertEquals("Duration sign is not equal for " + str, sign, duration.sign);
34 assertEquals("Duration weeks is not equal for " + str, weeks, duration.weeks);
35 assertEquals("Duration days is not equal for " + str, days, duration.days);
36 assertEquals("Duration hours is not equal for " + str, hours, duration.hours);
37 assertEquals("Duration minutes is not equal for " + str, minutes, duration.minutes);
38 assertEquals("Duration seconds is not equal for " + str, seconds, duration.seconds);
/frameworks/wilhelm/src/
H A Dtrace.c49 const char *str = slesutResultToString(result); local
50 if (NULL != str) {
51 SL_LOGW("Leaving %s (%s)", function, str);
112 const char *str = slesutResultToString(result); local
114 if (NULL != str) {
116 &underscore[1], str);
122 if (NULL != str) {
123 SL_LOGW("Leaving %s (%s)", function, str);
/frameworks/base/core/java/android/util/
H A DAtomicFile.java100 FileOutputStream str = null;
102 str = new FileOutputStream(mBaseName);
113 str = new FileOutputStream(mBaseName);
118 return str;
127 public void finishWrite(FileOutputStream str) { argument
128 if (str != null) {
129 FileUtils.sync(str);
131 str.close();
144 public void failWrite(FileOutputStream str) { argument
145 if (str !
[all...]
H A DPrefixPrinter.java47 public void println(String str) { argument
48 mPrinter.println(mPrefix + str);
H A DSpline.java142 StringBuilder str = new StringBuilder();
144 str.append("[");
147 str.append(", ");
149 str.append("(").append(mX[i]);
150 str.append(", ").append(mY[i]);
151 str.append(": ").append(mM[i]).append(")");
153 str.append("]");
154 return str.toString();
/frameworks/base/core/java/com/android/internal/os/
H A DAtomicFile.java68 FileOutputStream str = null;
70 str = new FileOutputStream(mBaseName);
81 str = new FileOutputStream(mBaseName);
86 return str;
89 public void finishWrite(FileOutputStream str) { argument
90 if (str != null) {
91 FileUtils.sync(str);
93 str.close();
101 public void failWrite(FileOutputStream str) { argument
102 if (str !
[all...]
/frameworks/support/v4/java/android/support/v4/util/
H A DAtomicFile.java98 FileOutputStream str = null;
100 str = new FileOutputStream(mBaseName);
107 str = new FileOutputStream(mBaseName);
112 return str;
121 public void finishWrite(FileOutputStream str) { argument
122 if (str != null) {
123 sync(str);
125 str.close();
138 public void failWrite(FileOutputStream str) { argument
139 if (str !
[all...]
/frameworks/av/media/libmedia/
H A DAudioParameter.cpp38 char *str = new char[keyValuePairs.length()+1]; local
41 strcpy(str, keyValuePairs.string());
42 char *pair = strtok(str, ";");
64 delete[] str;
74 String8 str = String8(""); local
78 str += mParameters.keyAt(i);
79 str += "=";
80 str += mParameters.valueAt(i);
81 if (i < (size - 1)) str += ";";
83 return str;
99 char str[12]; local
110 char str[23]; local
[all...]
H A DStringArray.h39 bool push_back(const char* str);
73 void setEntry(int idx, const char* str);
H A DStringArray.cpp45 bool StringArray::push_back(const char* str) { argument
63 int len = strlen(str);
65 memcpy(mArray[mCurrent], str, len+1);
103 void StringArray::setEntry(int idx, const char* str) { argument
107 int len = strlen(str);
109 memcpy(mArray[idx], str, len+1);
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/
H A Dh264bsd_container.h60 char str[H264DEC_TRACE_STR_LEN]; member in struct:__anon830
H A DH264SwDecApi.c66 #define DEC_API_TRC(str) H264SwDecTrace(str)
68 #define DEC_API_TRC(str)
152 sprintf(pDecCont->str, "H264SwDecInit# decInst %p noOutputReordering %d",
154 DEC_API_TRC(pDecCont->str);
168 sprintf(pDecCont->str, "H264SwDecInit# OK: return %p", (void*)pDecCont);
169 DEC_API_TRC(pDecCont->str);
222 sprintf(((decContainer_t*)decInst)->str,
224 DEC_API_TRC(((decContainer_t*)decInst)->str);
291 sprintf(pDecCont->str, "H264SwDecReleas
[all...]
/frameworks/opt/calendar/src/com/android/calendarcommon2/
H A DDuration.java47 public void parse(String str) throws DateException argument
56 int len = str.length();
64 c = str.charAt(0);
77 c = str.charAt(index);
80 "Duration.parse(str='" + str + "') expected 'P' at index="
84 c = str.charAt(index);
91 c = str.charAt(index);
120 "Duration.parse(str='" + str
[all...]
/frameworks/base/core/java/android/text/
H A DBidiFormatter.java292 * given explicitly by a heuristic to estimate the {@code str}'s directionality.
294 * @param str String after which the mark may need to appear.
295 * @param heuristic The text direction heuristic that will be used to estimate the {@code str}'s
302 public String markAfter(String str, TextDirectionHeuristic heuristic) { argument
303 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
305 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) {
308 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) {
321 * directionality is given explicitly by a heuristic to estimate the {@code str}'s directionality.
323 * @param str Strin
331 markBefore(String str, TextDirectionHeuristic heuristic) argument
350 isRtl(String str) argument
382 unicodeWrap(String str, TextDirectionHeuristic heuristic, boolean isolate) argument
412 unicodeWrap(String str, TextDirectionHeuristic heuristic) argument
425 unicodeWrap(String str, boolean isolate) argument
436 unicodeWrap(String str) argument
471 getExitDir(String str) argument
488 getEntryDir(String str) argument
[all...]
/frameworks/support/v4/java/android/support/v4/text/
H A DBidiFormatter.java288 * given explicitly by a heuristic to estimate the {@code str}'s directionality.
290 * @param str String after which the mark may need to appear.
291 * @param heuristic The text direction heuristic that will be used to estimate the {@code str}'s
296 private String markAfter(String str, TextDirectionHeuristicCompat heuristic) { argument
297 final boolean isRtl = heuristic.isRtl(str, 0, str.length());
299 if (!mIsRtlContext && (isRtl || getExitDir(str) == DIR_RTL)) {
302 if (mIsRtlContext && (!isRtl || getExitDir(str) == DIR_LTR)) {
315 * directionality is given explicitly by a heuristic to estimate the {@code str}'s directionality.
317 * @param str Strin
323 markBefore(String str, TextDirectionHeuristicCompat heuristic) argument
342 isRtl(String str) argument
373 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic, boolean isolate) argument
402 unicodeWrap(String str, TextDirectionHeuristicCompat heuristic) argument
415 unicodeWrap(String str, boolean isolate) argument
426 unicodeWrap(String str) argument
461 getExitDir(String str) argument
478 getEntryDir(String str) argument
[all...]
/frameworks/av/media/libstagefright/codecs/mp3dec/src/asm/
H A 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 r1
[all...]
H A 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 r1
[all...]
H A 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 r1
[all...]
/frameworks/base/packages/services/PacProcessor/jni/
H A Dcom_android_pacprocessor_PacNative.cpp36 String8 str(message);
37 ALOGD("Alert: %s", str.string());
40 String8 str(message);
41 ALOGE("Error: %s", str.string());
50 const jchar* str = env->GetStringCritical(jstr, 0); local
51 String16 str16(str, env->GetStringLength(jstr));
52 env->ReleaseStringCritical(jstr, str);
57 const char16_t* str = string.string(); local
60 return env->NewString(str, len);
/frameworks/base/core/tests/bandwidthtests/src/com/android/bandwidthtest/
H A DNetworkState.java141 StringBuffer str = new StringBuffer ("States: ");
142 str.append(printStates());
144 str.append(String.format(" Initial state should be CONNECTED, but it is %s.",
146 mReason = str.toString();
151 str.append(String.format(" Last state should be DISCONNECTED, but it is %s",
153 mReason = str.toString();
167 str.append(String.format(" Transition state from %s to %s is not valid",
169 mReason = str.toString();
173 mReason = str.toString();
182 StringBuffer str
[all...]
/frameworks/base/core/jni/android/graphics/
H A DTypeface.cpp14 AutoJavaStringToUTF8(JNIEnv* env, jstring str) : fEnv(env), fJStr(str) argument
16 fCStr = env->GetStringUTFChars(str, NULL);
35 AutoJavaStringToUTF8 str(env, name);
36 face = SkTypeface::CreateFromName(str.c_str(), style);
39 face = SkTypeface::CreateFromName(str.c_str(), (SkTypeface::Style)(style ^ SkTypeface::kItalic));
42 face = SkTypeface::CreateFromName(str.c_str(), (SkTypeface::Style)i);
147 AutoJavaStringToUTF8 str(env, jpath);
148 Asset* asset = mgr->open(str.c_str(), Asset::ACCESS_BUFFER);
165 AutoJavaStringToUTF8 str(en
[all...]
/frameworks/base/core/java/android/hardware/
H A DCamera.java2340 String str = get(KEY_PREVIEW_SIZE + SUPPORTED_VALUES_SUFFIX);
2341 return splitSize(str);
2360 String str = get(KEY_VIDEO_SIZE + SUPPORTED_VALUES_SUFFIX);
2361 return splitSize(str);
2420 String str = get(KEY_JPEG_THUMBNAIL_SIZE + SUPPORTED_VALUES_SUFFIX);
2421 return splitSize(str);
2496 String str = get(KEY_PREVIEW_FRAME_RATE + SUPPORTED_VALUES_SUFFIX);
2497 return splitInt(str);
2551 String str = get(KEY_PREVIEW_FPS_RANGE + SUPPORTED_VALUES_SUFFIX);
2552 return splitRange(str);
3744 split(String str) argument
3758 splitInt(String str) argument
3771 splitInt(String str, int[] output) argument
3783 splitFloat(String str, float[] output) argument
3814 splitSize(String str) argument
3830 strToSize(String str) argument
3847 splitRange(String str) argument
3872 splitArea(String str) argument
[all...]
/frameworks/base/core/tests/coretests/src/android/database/
H A DDatabaseStressTest.java66 String str = new String(ch);
68 strArr[0] = str;
88 String str = new String(ch);
90 strArr[0] = str;

Completed in 666 milliseconds

12345678910