Home
last modified time | relevance | path

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

1234

/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/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/libcore/regression/
DStringToBytesPerfTest.java74 char[] chars = new char[length]; in makeString() local
76 chars[i] = (char) i; in makeString()
78 return new String(chars); in makeString()
82 char[] chars = new char[length]; in makeAsciiString() local
84 chars[i] = ((i & 0x7f) != 0) ? (char) (i & 0x7f) : '?'; in makeAsciiString()
86 return new String(chars); in makeAsciiString()
/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/text/
DGraphemeClusterSegmentFinder.java56 char[] chars = TemporaryBuffer.obtain(text.length()); in GraphemeClusterSegmentFinder() local
58 TextUtils.getChars(text, 0, text.length(), chars, 0); in GraphemeClusterSegmentFinder()
60 textPaint.getTextWidths(chars, 0, text.length(), advances); in GraphemeClusterSegmentFinder()
62 GraphemeBreak.isGraphemeBreak(advances, chars, /* start= */ 0, /* end= */ text.length(), in GraphemeClusterSegmentFinder()
64 TemporaryBuffer.recycle(chars); in GraphemeClusterSegmentFinder()
/frameworks/base/apct-tests/perftests/core/src/android/libcore/
DStringIterationPerfTest.java65 char[] chars = s.toCharArray(); in timeStringIteration2() local
66 for (int i = 0, length = chars.length; i < length; ++i) { in timeStringIteration2()
67 ch = chars[i]; in timeStringIteration2()
77 char[] chars = s.toCharArray(); in timeStringToCharArray() local
/frameworks/native/libs/gralloc/types/fuzzer/
Dutil.cpp28 char chars[] = "0123456789abcdef"; in hexString() local
33 result[2 * i] = chars[bytes8[i] >> 4]; in hexString()
34 result[2 * i + 1] = chars[bytes8[i] & 0xf]; in hexString()
/frameworks/native/libs/binder/
DUtils.cpp32 const char chars[] = "0123456789abcdef"; in HexString() local
38 result[2 * i] = chars[c >> 4]; in HexString()
39 result[2 * i + 1] = chars[c & 0xf]; in HexString()
/frameworks/opt/car/setupwizard/library/utils/src/com/android/car/setupwizardlib/
DInitialLockSetupHelper.java61 public static byte[] charSequenceToByteArray(CharSequence chars) { in charSequenceToByteArray() argument
62 if (chars == null) { in charSequenceToByteArray()
65 return chars.toString().getBytes(StandardCharsets.UTF_8); in charSequenceToByteArray()
/frameworks/av/camera/ndk/ndk_vendor/tests/
DACameraManagerTest.cpp205 ACameraMetadata* chars = nullptr; in TEST_F() local
206 ret = ACameraManager_getCameraCharacteristics(mCameraManager, cameraId, &chars); in TEST_F()
208 ASSERT_NE(chars, nullptr); in TEST_F()
213 chars, &physicalCameraCnt, &physicalCameraIds)) { in TEST_F()
214 ACameraMetadata_free(chars); in TEST_F()
220 ACameraMetadata_free(chars); in TEST_F()
/frameworks/base/core/java/com/android/internal/widget/
DLockscreenCredential.java408 private static boolean hasInvalidChars(CharSequence chars) { in hasInvalidChars() argument
426 for (int i = 0; i < chars.length(); i++) { in hasInvalidChars()
427 char c = chars.charAt(i); in hasInvalidChars()
442 private static byte[] charsToBytesTruncating(CharSequence chars) { in charsToBytesTruncating() argument
443 byte[] bytes = new byte[chars.length()]; in charsToBytesTruncating()
444 for (int i = 0; i < chars.length(); i++) { in charsToBytesTruncating()
445 bytes[i] = (byte) chars.charAt(i); in charsToBytesTruncating()
/frameworks/base/core/jni/
Dandroid_util_Log.cpp55 const char* chars = env->GetStringUTFChars(tag, NULL); in android_util_Log_isLoggable() local
56 if (!chars) { in android_util_Log_isLoggable()
60 jboolean result = isLoggable(chars, level); in android_util_Log_isLoggable()
62 env->ReleaseStringUTFChars(tag, chars); in android_util_Log_isLoggable()
Dandroid_view_KeyCharacterMap.cpp173 jchar* chars = static_cast<jchar*>(env->GetPrimitiveArrayCritical(charsArray, NULL)); in nativeGetMatch() local
174 if (!chars) { in nativeGetMatch()
178 char16_t result = map->getMap()->getMatch(keyCode, reinterpret_cast<char16_t*>(chars), in nativeGetMatch()
181 env->ReleasePrimitiveArrayCritical(charsArray, chars, JNI_ABORT); in nativeGetMatch()
209 jchar* chars = env->GetCharArrayElements(charsArray, NULL); in nativeGetEvents() local
210 if (!chars) { in nativeGetEvents()
217 if (map->getMap()->getEvents(map->getDeviceId(), reinterpret_cast<char16_t*>(chars), in nativeGetEvents()
230 env->ReleaseCharArrayElements(charsArray, chars, JNI_ABORT); in nativeGetEvents()
/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/base/core/java/android/view/
DKeyCharacterMap.java306 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
309 private static native KeyEvent[] nativeGetEvents(long ptr, char[] chars); in nativeGetEvents() argument
506 public char getMatch(int keyCode, char[] chars) { in getMatch() argument
507 return getMatch(keyCode, chars, 0); in getMatch()
521 public char getMatch(int keyCode, char[] chars, int metaState) { in getMatch() argument
522 if (chars == null) { in getMatch()
527 return nativeGetMatch(mPtr, keyCode, chars, metaState); in getMatch()
679 public KeyEvent[] getEvents(char[] chars) { in getEvents() argument
680 if (chars == null) { in getEvents()
683 return nativeGetEvents(mPtr, chars); in getEvents()
/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/native/libs/ftl/
Dstatic_vector_test.cpp77 const char chars[] = "abcdef"; in TEST() local
78 std::string string(chars); in TEST()
79 StaticVector<char, sizeof(chars)> vector(string.begin(), string.end()); in TEST()
81 EXPECT_STREQ(vector.begin(), chars); in TEST()
206 StaticVector<char, 10> chars; in TEST() local
208 std::generate_n(std::back_inserter(chars), chars.max_size(), [&c] { return c++; }); in TEST()
209 chars.back() = '\0'; in TEST()
211 EXPECT_STREQ(chars.begin(), "abcdefghi"); in TEST()
224 swap(chars, string); in TEST()
226 EXPECT_STREQ(chars.begin(), "12345"); in TEST()
/frameworks/base/core/java/android/util/
DJsonReader.java1109 private JsonToken decodeNumber(char[] chars, int offset, int length) { in decodeNumber() argument
1111 int c = chars[i]; in decodeNumber()
1114 c = chars[++i]; in decodeNumber()
1118 c = chars[++i]; in decodeNumber()
1120 c = chars[++i]; in decodeNumber()
1122 c = chars[++i]; in decodeNumber()
1129 c = chars[++i]; in decodeNumber()
1131 c = chars[++i]; in decodeNumber()
1136 c = chars[++i]; in decodeNumber()
1138 c = chars[++i]; in decodeNumber()
[all …]
/frameworks/base/tools/fonts/
Dfontchain_linter.py169 def assert_font_supports_any_of_chars(font, chars): argument
171 for char in chars:
174 sys.exit('None of characters in %s were found in %s' % (chars, font))
177 def assert_font_supports_all_of_chars(font, chars): argument
179 for char in chars:
184 def assert_font_supports_none_of_chars(font, chars, fallbackName): argument
186 for char in chars:
500 chars, prop = line.split(';')[:2]
501 chars = chars.strip()
504 if ' ' in chars: # character sequence
[all …]

1234