Home
last modified time | relevance | path

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

12

/frameworks/base/core/java/com/android/internal/net/
DDNParser.java56 private char[] chars; field in DNParser
79 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
90 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
104 if (chars[pos] == ' ') { in nextAT()
105 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
108 if (chars[pos] != '=' || pos == length) { in nextAT()
118 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
123 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
124 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
125 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT()
[all …]
/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_view_KeyCharacterMap.cpp88 jchar* chars = static_cast<jchar*>(env->GetPrimitiveArrayCritical(charsArray, NULL)); in nativeGetMatch() local
89 if (!chars) { in nativeGetMatch()
93 char16_t result = map->getMatch(keyCode, chars, size_t(numChars), metaState); in nativeGetMatch()
95 env->ReleasePrimitiveArrayCritical(charsArray, chars, JNI_ABORT); in nativeGetMatch()
113 jchar* chars = env->GetCharArrayElements(charsArray, NULL); in nativeGetEvents() local
114 if (!chars) { in nativeGetEvents()
121 if (map->getEvents(deviceId, chars, size_t(numChars), events)) { in nativeGetEvents()
133 env->ReleaseCharArrayElements(charsArray, chars, JNI_ABORT); in nativeGetEvents()
Dandroid_util_Log.cpp71 const char* chars = env->GetStringUTFChars(tag, NULL); in android_util_Log_isLoggable() local
73 if ((strlen(chars)+sizeof(LOG_NAMESPACE)) > PROPERTY_KEY_MAX) { in android_util_Log_isLoggable()
76 chars, PROPERTY_KEY_MAX - sizeof(LOG_NAMESPACE)); in android_util_Log_isLoggable()
79 env->ReleaseStringUTFChars(tag, chars); in android_util_Log_isLoggable()
85 strcpy(key + sizeof(LOG_NAMESPACE) - 1, chars); in android_util_Log_isLoggable()
88 env->ReleaseStringUTFChars(tag, chars); in android_util_Log_isLoggable()
Dandroid_os_Power.cpp81 const char *chars = env->GetStringUTFChars(reason, NULL); in android_os_Power_reboot() local
82 android_reboot(ANDROID_RB_RESTART2, 0, (char *) chars); in android_os_Power_reboot()
83 env->ReleaseStringUTFChars(reason, chars); // In case it fails. in android_os_Power_reboot()
/frameworks/base/core/java/android/text/
DTextDirectionHeuristics.java92 public boolean isRtl(char[] chars, int start, int count) { in isRtl() argument
93 if (chars == null || start < 0 || count < 0 || chars.length - count < start) { in isRtl()
99 return doCheck(chars, start, count); in isRtl()
102 private boolean doCheck(char[] chars, int start, int count) { in doCheck() argument
103 switch(mAlgorithm.checkRtl(chars, start, count)) { in doCheck()
DAndroidBidi.java62 char[] chars, int cstart, int len) { in directions() argument
81 char ch = chars[cstart + visLen]; in directions()
DTextLine.java157 char[] chars = mChars; in set() local
164 chars[i - start] = '\ufffc'; in set()
166 chars[j] = '\ufeff'; // used as ZWNBS, marks positions to skip in set()
294 char[] chars = mChars; in measure() local
310 codept = chars[j]; in measure()
312 codept = Character.codePointAt(chars, j); in measure()
/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/jni/android/graphics/
DTextLayout.cpp236 void TextLayout::drawTextRun(SkPaint* paint, const jchar* chars, in drawTextRun() argument
246 if (prepareRtlTextRun(chars, start, count, contextCount, buffer.get())) { in drawTextRun()
250 canvas->drawText(chars + start, count << 1, x_, y_, *paint); in drawTextRun()
254 void TextLayout::getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start, in getTextRunAdvances() argument
260 value = TextLayoutCache::getInstance().getValue(paint, chars, start, count, in getTextRunAdvances()
264 value->computeValues(paint, chars, start, count, contextCount, dirFlags); in getTextRunAdvances()
276 void TextLayout::getTextRunAdvancesICU(SkPaint* paint, const jchar* chars, jint start, in getTextRunAdvancesICU() argument
280 computeAdvancesWithICU(paint, chars, start, count, contextCount, dirFlags, in getTextRunAdvancesICU()
318 void TextLayout::computeAdvancesWithICU(SkPaint* paint, const UChar* chars, in computeAdvancesWithICU() argument
332 u_shapeArabic(chars, contextCount, buffer, contextCount, in computeAdvancesWithICU()
[all …]
DTextLayout.h68 static void drawTextRun(SkPaint* paint, const jchar* chars,
72 static void getTextRunAdvances(SkPaint* paint, const jchar* chars, jint start,
76 static void getTextRunAdvancesICU(SkPaint* paint, const jchar* chars, jint start,
106 static void computeAdvancesWithICU(SkPaint* paint, const UChar* chars,
DTextLayoutCache.h125 void computeValues(SkPaint* paint, const UChar* chars, size_t start, size_t count,
160 static void computeValuesWithHarfbuzz(SkPaint* paint, const UChar* chars,
171 SkPaint* paint, const UChar* chars, size_t contextCount);
DTextLayoutCache.cpp314 void TextLayoutCacheValue::computeValues(SkPaint* paint, const UChar* chars, in computeValues() argument
320 computeValuesWithHarfbuzz(paint, chars, start, count, contextCount, dirFlags, in computeValues()
334 FontData* fontData, SkPaint* paint, const UChar* chars, size_t contextCount) { in initShaperItem() argument
375 shaperItem.string = chars; in initShaperItem()
403 void TextLayoutCacheValue::computeValuesWithHarfbuzz(SkPaint* paint, const UChar* chars, in computeValuesWithHarfbuzz() argument
426 initShaperItem(shaperItem, &font, &fontData, paint, chars, contextCount); in computeValuesWithHarfbuzz()
439 ubidi_setPara(bidi, chars, contextCount, bidiReq, NULL, &status); in computeValuesWithHarfbuzz()
553 LOGD(" -- string= '%s'", String8(chars + start, count).string()); in computeRunValuesWithHarfbuzz()
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java150 private static native char nativeGetMatch(int ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
153 private static native KeyEvent[] nativeGetEvents(int ptr, int deviceId, char[] chars); in nativeGetEvents() argument
287 public char getMatch(int keyCode, char[] chars) { in getMatch() argument
288 return getMatch(keyCode, chars, 0); in getMatch()
301 public char getMatch(int keyCode, char[] chars, int metaState) { in getMatch() argument
302 if (chars == null) { in getMatch()
307 return nativeGetMatch(mPtr, keyCode, chars, metaState); in getMatch()
419 public KeyEvent[] getEvents(char[] chars) { in getEvents() argument
420 if (chars == null) { in getEvents()
423 return nativeGetEvents(mPtr, mDeviceId, chars); in getEvents()
/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/base/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/base/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/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()
/frameworks/base/tools/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java197 char[] chars = null; in getTextCharacters() local
201 chars = new char[txt.length()]; in getTextCharacters()
202 txt.getChars(0, txt.length(), chars, 0); in getTextCharacters()
204 return chars; in getTextCharacters()
/frameworks/base/libs/ui/
DKeyCharacterMap.cpp69 static String8 toString(const char16_t* chars, size_t numChars) { in toString() argument
72 result.appendFormat(i == 0 ? "%d" : ", %d", chars[i]); in toString()
203 char16_t KeyCharacterMap::getMatch(int32_t keyCode, const char16_t* chars, size_t numChars, in getMatch() argument
214 if (behavior->character == chars[i]) { in getMatch()
228 keyCode, toString(chars, numChars).string(), metaState, result); in getMatch()
233 bool KeyCharacterMap::getEvents(int32_t deviceId, const char16_t* chars, size_t numChars, in getEvents() argument
239 char16_t ch = chars[i]; in getEvents()
243 deviceId, toString(chars, numChars).string(), ch); in getEvents()
256 deviceId, toString(chars, numChars).string(), int32_t(outEvents.size())); in getEvents()
/frameworks/base/cmds/input/src/com/android/commands/input/
DInput.java91 char[] chars = buff.toString().toCharArray(); in sendText() local
96 KeyEvent[] events = mKeyCharacterMap.getEvents(chars); in sendText()
/frameworks/base/include/ui/
DKeyCharacterMap.h87 char16_t getMatch(int32_t keyCode, const char16_t* chars,
93 bool getEvents(int32_t deviceId, const char16_t* chars, size_t numChars,
/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/graphics/java/android/graphics/
DPaint.java1646 public float getTextRunAdvances(char[] chars, int index, int count, in getTextRunAdvances() argument
1649 return getTextRunAdvances(chars, index, count, contextIndex, contextCount, flags, in getTextRunAdvances()
1660 public float getTextRunAdvances(char[] chars, int index, int count, in getTextRunAdvances() argument
1664 if (chars == null) { in getTextRunAdvances()
1673 | (chars.length - (contextIndex + contextCount)) in getTextRunAdvances()
1679 if (chars.length == 0 || count == 0){ in getTextRunAdvances()
1683 return native_getTextRunAdvances(mNativePaint, chars, index, count, in getTextRunAdvances()
1689 float res = native_getTextRunAdvances(mNativePaint, chars, index, count, in getTextRunAdvances()
/frameworks/base/core/java/com/android/internal/widget/
DPointerLocationView.java680 final char[] chars = mChars; in append()
683 chars[index++] = '0'; in append()
689 chars[index++] = '-'; in append()
698 chars[index++] = '0'; in append()
706 chars[index++] = (char) (digit + '0'); in append()

12