/frameworks/base/core/java/com/android/internal/net/ |
D | DNParser.java | 56 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/ |
D | CharArrayBuffers.java | 42 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/ |
D | android_view_KeyCharacterMap.cpp | 88 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()
|
D | android_util_Log.cpp | 71 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()
|
D | android_os_Power.cpp | 81 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/ |
D | TextDirectionHeuristics.java | 92 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()
|
D | AndroidBidi.java | 62 char[] chars, int cstart, int len) { in directions() argument 81 char ch = chars[cstart + visLen]; in directions()
|
D | TextLine.java | 157 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/ |
D | StaticLayoutDirectionsTest.java | 98 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/ |
D | TextLayout.cpp | 236 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 …]
|
D | TextLayout.h | 68 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,
|
D | TextLayoutCache.h | 125 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);
|
D | TextLayoutCache.cpp | 314 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/ |
D | KeyCharacterMap.java | 150 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/ |
D | JsonReader.java | 1103 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/ |
D | glGetString.cpp | 3 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/ |
D | glGetString.cpp | 3 const char* chars = (const char*) glGetString((GLenum) name); in android_glGetString() local 4 return _env->NewStringUTF(chars); in android_glGetString()
|
/frameworks/base/services/jni/ |
D | com_android_server_connectivity_Vpn.cpp | 132 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/ |
D | BridgeXmlBlockParser.java | 197 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/ |
D | KeyCharacterMap.cpp | 69 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/ |
D | Input.java | 91 char[] chars = buff.toString().toCharArray(); in sendText() local 96 KeyEvent[] events = mKeyCharacterMap.getEvents(chars); in sendText()
|
/frameworks/base/include/ui/ |
D | KeyCharacterMap.h | 87 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/ |
D | XmlBlock.java | 160 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/ |
D | Paint.java | 1646 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/ |
D | PointerLocationView.java | 680 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()
|