Home
last modified time | relevance | path

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

123

/frameworks/base/core/java/org/apache/http/conn/ssl/
DAndroidDistinguishedNameParser.java43 private char[] chars; field in AndroidDistinguishedNameParser
57 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
68 for (; pos < length && chars[pos] != '=' && chars[pos] != ' '; pos++) { in nextAT()
81 if (chars[pos] == ' ') { in nextAT()
82 for (; pos < length && chars[pos] != '=' && chars[pos] == ' '; pos++) { in nextAT()
85 if (chars[pos] != '=' || pos == length) { in nextAT()
94 for (; pos < length && chars[pos] == ' '; pos++) { in nextAT()
99 if ((end - beg > 4) && (chars[beg + 3] == '.') in nextAT()
100 && (chars[beg] == 'O' || chars[beg] == 'o') in nextAT()
101 && (chars[beg + 1] == 'I' || chars[beg + 1] == 'i') in nextAT()
[all …]
/frameworks/base/core/tests/coretests/src/android/text/
DAndroidCharacterTest.java35 char[] chars = new char[size]; in testGetDirectionalities_nonSupplementaryCharacters() local
40 chars[index] = (char) cp; in testGetDirectionalities_nonSupplementaryCharacters()
47 AndroidCharacter.getDirectionalities(chars, android_text_results, index); in testGetDirectionalities_nonSupplementaryCharacters()
56 char[] chars = new char[size]; in testGetDirectionalities_supplementaryCharacters() local
61 chars[index] = Character.highSurrogate(cp); in testGetDirectionalities_supplementaryCharacters()
62 chars[index + 1] = Character.lowSurrogate(cp); in testGetDirectionalities_supplementaryCharacters()
69 AndroidCharacter.getDirectionalities(chars, android_text_results, index); in testGetDirectionalities_supplementaryCharacters()
DStaticLayoutDirectionsTest.java108 char[] chars = src.toCharArray(); in pseudoBidiToReal() local
109 for (int j = 0; j < chars.length; ++j) { in pseudoBidiToReal()
110 char c = chars[j]; in pseudoBidiToReal()
112 chars[j] = (char)(ALEF + c - 'A'); in pseudoBidiToReal()
116 return new String(chars, 0, chars.length); in pseudoBidiToReal()
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/
DInitialLockSetupHelper.java60 public static byte[] charSequenceToByteArray(CharSequence chars) { in charSequenceToByteArray() argument
61 if (chars == null) { in charSequenceToByteArray()
64 byte[] byteArray = new byte[chars.length()]; in charSequenceToByteArray()
65 for (int i = 0; i < chars.length(); i++) { in charSequenceToByteArray()
66 byteArray[i] = (byte) chars.charAt(i); in charSequenceToByteArray()
/frameworks/base/core/java/android/text/method/
DTimeKeyListener.java68 final LinkedHashSet<Character> chars = new LinkedHashSet<>(); in TimeKeyListener() local
71 final boolean success = NumberKeyListener.addDigits(chars, locale) in TimeKeyListener()
72 && NumberKeyListener.addAmPmChars(chars, locale) in TimeKeyListener()
74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE) in TimeKeyListener()
76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE); in TimeKeyListener()
78 mCharacters = NumberKeyListener.collectionToArray(chars); in TimeKeyListener()
DDateTimeKeyListener.java68 final LinkedHashSet<Character> chars = new LinkedHashSet<>(); in DateTimeKeyListener() local
71 final boolean success = NumberKeyListener.addDigits(chars, locale) in DateTimeKeyListener()
72 && NumberKeyListener.addAmPmChars(chars, locale) in DateTimeKeyListener()
74 chars, locale, SKELETON_12HOUR, SYMBOLS_TO_IGNORE) in DateTimeKeyListener()
76 chars, locale, SKELETON_24HOUR, SYMBOLS_TO_IGNORE); in DateTimeKeyListener()
78 mCharacters = NumberKeyListener.collectionToArray(chars); in DateTimeKeyListener()
DDateKeyListener.java66 final LinkedHashSet<Character> chars = new LinkedHashSet<>(); in DateKeyListener() local
69 final boolean success = NumberKeyListener.addDigits(chars, locale) in DateKeyListener()
71 chars, locale, SKELETONS, SYMBOLS_TO_IGNORE); in DateKeyListener()
73 mCharacters = NumberKeyListener.collectionToArray(chars); in DateKeyListener()
DDigitsKeyListener.java164 LinkedHashSet<Character> chars = new LinkedHashSet<>(); in DigitsKeyListener() local
165 final boolean success = NumberKeyListener.addDigits(chars, locale); in DigitsKeyListener()
182 chars.add(Character.valueOf(minus)); in DigitsKeyListener()
183 chars.add(Character.valueOf(plus)); in DigitsKeyListener()
189 chars.add(HYPHEN_MINUS); in DigitsKeyListener()
201 chars.add(separatorChar); in DigitsKeyListener()
205 mAccepted = NumberKeyListener.collectionToArray(chars); in DigitsKeyListener()
/frameworks/base/apct-tests/perftests/core/src/android/text/
DTextPerfUtils.java82 ArrayList<Character> chars = new ArrayList<>(); in nextRandomParagraph() local
86 chars.add(' '); in nextRandomParagraph()
87 wordOffsets.add(chars.size()); in nextRandomParagraph()
91 chars.add(str.charAt(j)); in nextRandomParagraph()
95 wordOffsets.add(chars.size()); in nextRandomParagraph()
97 char[] buffer = new char[chars.size()]; in nextRandomParagraph()
99 buffer[i] = chars.get(i); in nextRandomParagraph()
/frameworks/base/core/java/android/view/
DKeyCharacterMap.java295 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
298 private static native KeyEvent[] nativeGetEvents(long ptr, char[] chars); in nativeGetEvents() argument
445 public char getMatch(int keyCode, char[] chars) { in getMatch() argument
446 return getMatch(keyCode, chars, 0); in getMatch()
460 public char getMatch(int keyCode, char[] chars, int metaState) { in getMatch() argument
461 if (chars == null) { in getMatch()
466 return nativeGetMatch(mPtr, keyCode, chars, metaState); in getMatch()
607 public KeyEvent[] getEvents(char[] chars) { in getEvents() argument
608 if (chars == null) { in getEvents()
611 return nativeGetEvents(mPtr, chars); in getEvents()
/frameworks/base/core/jni/
Dandroid_view_KeyCharacterMap.cpp148 jchar* chars = static_cast<jchar*>(env->GetPrimitiveArrayCritical(charsArray, NULL)); in nativeGetMatch() local
149 if (!chars) { in nativeGetMatch()
154 keyCode, reinterpret_cast<char16_t*>(chars), size_t(numChars), in nativeGetMatch()
157 env->ReleasePrimitiveArrayCritical(charsArray, chars, JNI_ABORT); in nativeGetMatch()
175 jchar* chars = env->GetCharArrayElements(charsArray, NULL); in nativeGetEvents() local
176 if (!chars) { in nativeGetEvents()
184 reinterpret_cast<char16_t*>(chars), in nativeGetEvents()
197 env->ReleaseCharArrayElements(charsArray, chars, JNI_ABORT); in nativeGetEvents()
Dandroid_util_Log.cpp56 const char* chars = env->GetStringUTFChars(tag, NULL); in android_util_Log_isLoggable() local
57 if (!chars) { in android_util_Log_isLoggable()
61 jboolean result = isLoggable(chars, level); in android_util_Log_isLoggable()
63 env->ReleaseStringUTFChars(tag, chars); in android_util_Log_isLoggable()
/frameworks/base/tools/fonts/
Dfontchain_linter.py151 def assert_font_supports_any_of_chars(font, chars): argument
153 for char in chars:
156 sys.exit('None of characters in %s were found in %s' % (chars, font))
159 def assert_font_supports_all_of_chars(font, chars): argument
161 for char in chars:
166 def assert_font_supports_none_of_chars(font, chars, fallbackName): argument
168 for char in chars:
404 chars, prop = line.split(';')[:2]
405 chars = chars.strip()
408 if ' ' in chars: # character sequence
[all …]
/frameworks/base/core/java/android/util/
DJsonReader.java1108 private JsonToken decodeNumber(char[] chars, int offset, int length) { in decodeNumber() argument
1110 int c = chars[i]; in decodeNumber()
1113 c = chars[++i]; in decodeNumber()
1117 c = chars[++i]; in decodeNumber()
1119 c = chars[++i]; in decodeNumber()
1121 c = chars[++i]; in decodeNumber()
1128 c = chars[++i]; in decodeNumber()
1130 c = chars[++i]; in decodeNumber()
1135 c = chars[++i]; in decodeNumber()
1137 c = chars[++i]; in decodeNumber()
[all …]
/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/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/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/packages/SystemUI/src/com/android/keyguard/
DKeyguardPinBasedInputView.java273 private static byte[] charSequenceToByteArray(CharSequence chars) { in charSequenceToByteArray() argument
274 if (chars == null) { in charSequenceToByteArray()
277 byte[] bytes = new byte[chars.length()]; in charSequenceToByteArray()
278 for (int i = 0; i < chars.length(); i++) { in charSequenceToByteArray()
279 bytes[i] = (byte) chars.charAt(i); in charSequenceToByteArray()
DKeyguardPasswordView.java386 private static byte[] charSequenceToByteArray(CharSequence chars) { in charSequenceToByteArray() argument
387 if (chars == null) { in charSequenceToByteArray()
390 byte[] bytes = new byte[chars.length()]; in charSequenceToByteArray()
391 for (int i = 0; i < chars.length(); i++) { in charSequenceToByteArray()
392 bytes[i] = (byte) chars.charAt(i); in charSequenceToByteArray()
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp163 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument
165 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics()
167 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics()
176 *chars = spChars.get(); in ACameraManager_getCameraCharacteristics()
/frameworks/minikin/libs/minikin/
DLayoutCore.cpp139 static hb_codepoint_t decodeUtf16(const uint16_t* chars, size_t len, ssize_t* iter) { in decodeUtf16() argument
141 U16_NEXT(chars, *iter, (ssize_t)len, result); in decodeUtf16()
148 static hb_script_t getScriptRun(const uint16_t* chars, size_t len, ssize_t* iter) { in getScriptRun() argument
152 uint32_t cp = decodeUtf16(chars, len, iter); in getScriptRun()
158 cp = decodeUtf16(chars, len, iter); in getScriptRun()
233 const uint32_t* chars; in addHyphenToHbBuffer() local
235 std::tie(chars, size) = getHyphenString(hyphen); in addHyphenToHbBuffer()
237 hb_buffer_add(buffer.get(), determineHyphenChar(chars[i], font.get()), cluster); in addHyphenToHbBuffer()
/frameworks/layoutlib/bridge/tests/res/testApp/MyApplication/src/main/java/com/android/layoutlib/test/myapplication/
DArraysCheckWidget.java40 for (CharSequence chars : resources.getTextArray(R.array.array)) { in ArraysCheckWidget()
41 addTextView(context, chars); in ArraysCheckWidget()
/frameworks/av/media/libstagefright/foundation/
DFoundationUtils.cpp42 const char *chars = uri.c_str(); in uriDebugString() local
44 const char c = chars[i]; in uriDebugString()
/frameworks/minikin/include/minikin/
DHyphenator.h135 #define MAKE_HYPHEN_STR(chars) std::make_pair((chars), ARRAYSIZE(chars)) argument
/frameworks/base/core/tests/coretests/src/android/graphics/
DPaintTest.java191 char chars[] = str.toCharArray(); in assertGetTextRunAdvances() local
192 final float advance = p.getTextRunAdvances(chars, start, count, in assertGetTextRunAdvances()
195 final float firstPartAdvance = p.getTextRunAdvances(chars, start, c, in assertGetTextRunAdvances()
197 final float secondPartAdvance = p.getTextRunAdvances(chars, start + c, count - c, in assertGetTextRunAdvances()
210 chars, start, count, contextStart, contextCount, isRtl, end), 1.0f); in assertGetTextRunAdvances()

123