Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 43) sorted by relevance

12

/frameworks/base/core/java/android/net/http/
DCharArrayBuffers.java42 char[] chars = buffer.buffer(); in containsIgnoreCaseTrimmed() local
43 while (beginIndex < len && HTTP.isWhitespace(chars[beginIndex])) { in containsIgnoreCaseTrimmed()
49 char a = chars[beginIndex+j]; in containsIgnoreCaseTrimmed()
68 char[] chars = buffer.buffer(); in setLowercaseIndexOf() local
71 char current = chars[i]; in setLowercaseIndexOf()
77 chars[i] = current; in setLowercaseIndexOf()
/frameworks/base/core/jni/
Dandroid_util_Log.cpp80 const char* chars = env->GetStringUTFChars(tag, NULL); in android_util_Log_isLoggable() local
81 if (!chars) { in android_util_Log_isLoggable()
86 if ((strlen(chars)+sizeof(LOG_NAMESPACE)) > PROPERTY_KEY_MAX) { in android_util_Log_isLoggable()
89 chars, PROPERTY_KEY_MAX - sizeof(LOG_NAMESPACE)); in android_util_Log_isLoggable()
93 result = isLoggable(chars, level); in android_util_Log_isLoggable()
96 env->ReleaseStringUTFChars(tag, chars); in android_util_Log_isLoggable()
Dandroid_view_KeyCharacterMap.cpp146 jchar* chars = static_cast<jchar*>(env->GetPrimitiveArrayCritical(charsArray, NULL)); in nativeGetMatch() local
147 if (!chars) { in nativeGetMatch()
151 char16_t result = map->getMap()->getMatch(keyCode, chars, size_t(numChars), metaState); in nativeGetMatch()
153 env->ReleasePrimitiveArrayCritical(charsArray, chars, JNI_ABORT); in nativeGetMatch()
171 jchar* chars = env->GetCharArrayElements(charsArray, NULL); in nativeGetEvents() local
172 if (!chars) { in nativeGetEvents()
179 if (map->getMap()->getEvents(map->getDeviceId(), chars, size_t(numChars), events)) { in nativeGetEvents()
191 env->ReleaseCharArrayElements(charsArray, chars, JNI_ABORT); in nativeGetEvents()
/frameworks/base/core/jni/android/graphics/
DTextLayoutCache.cpp349 …d TextLayoutShaper::computeValues(TextLayoutValue* value, const SkPaint* paint, const UChar* chars, in computeValues() argument
352 computeValues(paint, chars, start, count, contextCount, dirFlags, in computeValues()
360 void TextLayoutShaper::computeValues(const SkPaint* paint, const UChar* chars, in computeValues() argument
392 ALOGD(" -- string = '%s'", String8(chars + start, count).string()); in computeValues()
398 ubidi_setPara(bidi, chars, contextCount, bidiReq, NULL, &status); in computeValues()
414 String8(chars + start, count).string(), status, int(rc)); in computeValues()
457 computeRunValues(paint, chars, startRun, lengthRun, contextCount, isRTL, in computeValues()
481 computeRunValues(paint, chars, start, count, contextCount, isRTL, in computeValues()
505 utf16_to_code_point(const uint16_t *chars, size_t len, ssize_t *iter) { in utf16_to_code_point() argument
506 const uint16_t v = chars[(*iter)++]; in utf16_to_code_point()
[all …]
DTextLayoutCache.h183 void computeValues(TextLayoutValue* value, const SkPaint* paint, const UChar* chars,
209 void computeValues(const SkPaint* paint, const UChar* chars,
214 void computeRunValues(const SkPaint* paint, const UChar* chars,
DTextLayout.cpp67 void TextLayout::getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, in getTextRunAdvances() argument
71 chars, start, count, contextCount, dirFlags); in getTextRunAdvances()
DTextLayout.h65 static void getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start,
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java295 private static native char nativeGetMatch(int ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
298 private static native KeyEvent[] nativeGetEvents(int ptr, char[] chars); in nativeGetEvents() argument
443 public char getMatch(int keyCode, char[] chars) { in getMatch() argument
444 return getMatch(keyCode, chars, 0); in getMatch()
457 public char getMatch(int keyCode, char[] chars, int metaState) { in getMatch() argument
458 if (chars == null) { in getMatch()
463 return nativeGetMatch(mPtr, keyCode, chars, metaState); in getMatch()
603 public KeyEvent[] getEvents(char[] chars) { in getEvents() argument
604 if (chars == null) { in getEvents()
607 return nativeGetEvents(mPtr, chars); in getEvents()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutDirectionsTest.java98 char[] chars = src.toCharArray(); in pseudoBidiToReal() local
99 for (int j = 0; j < chars.length; ++j) { in pseudoBidiToReal()
100 char c = chars[j]; in pseudoBidiToReal()
102 chars[j] = (char)(ALEF + c - 'A'); in pseudoBidiToReal()
106 return new String(chars, 0, chars.length); in pseudoBidiToReal()
/frameworks/base/core/java/android/util/
DJsonReader.java1103 private JsonToken decodeNumber(char[] chars, int offset, int length) { in decodeNumber() argument
1105 int c = chars[i]; in decodeNumber()
1108 c = chars[++i]; in decodeNumber()
1112 c = chars[++i]; in decodeNumber()
1114 c = chars[++i]; in decodeNumber()
1116 c = chars[++i]; in decodeNumber()
1123 c = chars[++i]; in decodeNumber()
1125 c = chars[++i]; in decodeNumber()
1130 c = chars[++i]; in decodeNumber()
1132 c = chars[++i]; in decodeNumber()
[all …]
/frameworks/native/opengl/tools/glgen/stubs/gles11/
DglGetString.cpp3 const char* chars = (const char*) glGetString((GLenum) name); in android_glGetString() local
4 return _env->NewStringUTF(chars); in android_glGetString()
/frameworks/native/opengl/tools/glgen/stubs/jsr239/
DglGetString.cpp3 const char* chars = (const char*) glGetString((GLenum) name); in android_glGetString() local
4 return _env->NewStringUTF(chars); in android_glGetString()
/frameworks/native/opengl/tools/glgen/stubs/egl/
DeglQueryString.cpp5 const char* chars = (const char*) eglQueryString( in android_eglQueryString__Landroind_opengl_EGLDisplay_2I() local
9 return _env->NewStringUTF(chars); in android_eglQueryString__Landroind_opengl_EGLDisplay_2I()
/frameworks/base/services/jni/
Dcom_android_server_connectivity_Vpn.cpp132 int chars; in set_addresses() local
135 while (sscanf(addresses, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_addresses()
136 addresses += chars; in set_addresses()
211 int chars; in set_routes() local
214 while (sscanf(routes, " %64[^/]/%d %n", address, &prefix, &chars) == 2) { in set_routes()
215 routes += chars; in set_routes()
Dcom_android_server_power_PowerManagerService.cpp200 const char *chars = env->GetStringUTFChars(reason, NULL); in nativeReboot() local
201 android_reboot(ANDROID_RB_RESTART2, 0, (char *) chars); in nativeReboot()
202 env->ReleaseStringUTFChars(reason, chars); // In case it fails. in nativeReboot()
/frameworks/base/wifi/java/android/net/wifi/p2p/nsd/
DWifiP2pServiceRequest.java171 char[] chars = query.toCharArray(); in validateQuery() local
172 for (char c: chars) { in validateQuery()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java218 char[] chars = null; in getTextCharacters() local
222 chars = new char[txt.length()]; in getTextCharacters()
223 txt.getChars(0, txt.length(), chars, 0); in getTextCharacters()
225 return chars; in getTextCharacters()
/frameworks/base/core/java/android/text/
DAndroidBidi.java62 char[] chars, int cstart, int len) { in directions() argument
81 char ch = chars[cstart + visLen]; in directions()
DTextLine.java165 char[] chars = mChars; in set() local
170 chars[i - start] = '\ufffc'; in set()
172 chars[j] = '\ufeff'; // used as ZWNBS, marks positions to skip in set()
300 char[] chars = mChars; in measure() local
316 codept = chars[j]; in measure()
318 codept = Character.codePointAt(chars, j); in measure()
/frameworks/base/core/java/android/content/res/
DXmlBlock.java160 char[] chars = null; in getTextCharacters() local
164 chars = new char[txt.length()]; in getTextCharacters()
165 txt.getChars(0, txt.length(), chars, 0); in getTextCharacters()
167 return chars; in getTextCharacters()
/frameworks/base/libs/androidfw/
DKeyCharacterMap.cpp74 static String8 toString(const char16_t* chars, size_t numChars) { in toString() argument
77 result.appendFormat(i == 0 ? "%d" : ", %d", chars[i]); in toString()
266 char16_t KeyCharacterMap::getMatch(int32_t keyCode, const char16_t* chars, size_t numChars, in getMatch() argument
277 if (behavior->character == chars[i]) { in getMatch()
291 keyCode, toString(chars, numChars).string(), metaState, result); in getMatch()
296 bool KeyCharacterMap::getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, in getEvents() argument
302 char16_t ch = chars[i]; in getEvents()
306 deviceId, toString(chars, numChars).string(), ch); in getEvents()
319 deviceId, toString(chars, numChars).string(), int32_t(outEvents.size())); in getEvents()
/frameworks/base/include/androidfw/
DKeyCharacterMap.h114 char16_t getMatch(int32_t keyCode, const char16_t* chars,
120 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java160 char[] chars = buff.toString().toCharArray(); in sendText() local
163 KeyEvent[] events = kcm.getEvents(chars); in sendText()
/frameworks/base/graphics/java/android/graphics/
DPaint.java1717 public float getTextRunAdvances(char[] chars, int index, int count, in getTextRunAdvances() argument
1721 if (chars == null) { in getTextRunAdvances()
1730 | (chars.length - (contextIndex + contextCount)) in getTextRunAdvances()
1736 if (chars.length == 0 || count == 0){ in getTextRunAdvances()
1740 return native_getTextRunAdvances(mNativePaint, chars, index, count, in getTextRunAdvances()
1746 float res = native_getTextRunAdvances(mNativePaint, chars, index, count, in getTextRunAdvances()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java790 final char[] chars = mChars; in append()
793 chars[index++] = '0'; in append()
799 chars[index++] = '-'; in append()
808 chars[index++] = '0'; in append()
816 chars[index++] = (char) (digit + '0'); in append()

12