Home
last modified time | relevance | path

Searched refs:chars (Results 1 – 25 of 66) 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/layoutlib/create/src/com/android/tools/layoutlib/java/
DCharsets.java52 public static byte[] toAsciiBytes(char[] chars, int offset, int length) { in toAsciiBytes() argument
54 cb.put(chars, offset, length); in toAsciiBytes()
62 public static byte[] toIsoLatin1Bytes(char[] chars, int offset, int length) { in toIsoLatin1Bytes() argument
64 cb.put(chars, offset, length); in toIsoLatin1Bytes()
72 public static byte[] toUtf8Bytes(char[] chars, int offset, int length) { in toUtf8Bytes() argument
74 cb.put(chars, offset, length); in toUtf8Bytes()
82 public static byte[] toBigEndianUtf16Bytes(char[] chars, int offset, int length) { in toBigEndianUtf16Bytes() argument
87 char ch = chars[i]; in toBigEndianUtf16Bytes()
102 public static void asciiBytesToChars(byte[] bytes, int offset, int length, char[] chars) { in asciiBytesToChars() argument
103 if (bytes == null || chars == null) { in asciiBytesToChars()
[all …]
/frameworks/base/core/java/android/util/
DByteStringUtils.java43 final char[] chars = new char[charCount]; in toHexString() local
47 chars[i * 2] = HEX_ARRAY[byteHex >>> 4]; in toHexString()
48 chars[i * 2 + 1] = HEX_ARRAY[byteHex & 0x0F]; in toHexString()
50 return new String(chars); in toHexString()
63 final char[] chars = str.toCharArray(); in fromHexToByteArray() local
64 final int charLength = chars.length; in fromHexToByteArray()
69 (byte)(((getIndex(chars[i * 2]) << 4) & 0xF0) | (getIndex(chars[i * 2 + 1]) & 0x0F)); in fromHexToByteArray()
DJsonReader.java1106 private JsonToken decodeNumber(char[] chars, int offset, int length) { in decodeNumber() argument
1108 int c = chars[i]; in decodeNumber()
1111 c = chars[++i]; in decodeNumber()
1115 c = chars[++i]; in decodeNumber()
1117 c = chars[++i]; in decodeNumber()
1119 c = chars[++i]; in decodeNumber()
1126 c = chars[++i]; in decodeNumber()
1128 c = chars[++i]; in decodeNumber()
1133 c = chars[++i]; in decodeNumber()
1135 c = chars[++i]; in decodeNumber()
[all …]
/frameworks/minikin/libs/minikin/
DLayoutUtils.cpp55 const uint16_t* chars, size_t offset, size_t len) { in getPrevWordBreakForCache() argument
58 if (isWordBreakBefore(chars[offset - 1])) { in getPrevWordBreakForCache()
62 if (isWordBreakBefore(chars[i]) || isWordBreakAfter(chars[i - 1])) { in getPrevWordBreakForCache()
73 const uint16_t* chars, size_t offset, size_t len) { in getNextWordBreakForCache() argument
75 if (isWordBreakAfter(chars[offset])) { in getNextWordBreakForCache()
82 if (isWordBreakBefore(chars[i])) { in getNextWordBreakForCache()
DLayoutUtils.h37 const uint16_t* chars, size_t offset, size_t len);
47 const uint16_t* chars, size_t offset, size_t len);
/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()
DNumberKeyListener.java247 static char[] collectionToArray(@NonNull Collection<Character> chars) { in collectionToArray() argument
248 final char[] result = new char[chars.size()]; in collectionToArray()
250 for (Character ch : chars) { in collectionToArray()
/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/core/java/android/view/
DKeyCharacterMap.java294 private static native char nativeGetMatch(long ptr, int keyCode, char[] chars, int metaState); in nativeGetMatch() argument
297 private static native KeyEvent[] nativeGetEvents(long 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()
458 public char getMatch(int keyCode, char[] chars, int metaState) { in getMatch() argument
459 if (chars == null) { in getMatch()
464 return nativeGetMatch(mPtr, keyCode, chars, metaState); in getMatch()
605 public KeyEvent[] getEvents(char[] chars) { in getEvents() argument
606 if (chars == null) { in getEvents()
609 return nativeGetEvents(mPtr, chars); in getEvents()
/frameworks/base/tools/fonts/
Dfontchain_lint.py149 def assert_font_supports_any_of_chars(font, chars): argument
151 for char in chars:
154 sys.exit('None of characters in %s were found in %s' % (chars, font))
157 def assert_font_supports_all_of_chars(font, chars): argument
159 for char in chars:
164 def assert_font_supports_none_of_chars(font, chars): argument
166 for char in chars:
367 chars, prop = line.split(';')[:2]
368 chars = chars.strip()
371 if ' ' in chars: # character sequence
[all …]
/frameworks/av/camera/ndk/
DNdkCameraManager.cpp103 ACameraManager* mgr, const char* cameraId, ACameraMetadata** chars){ in ACameraManager_getCameraCharacteristics() argument
105 if (mgr == nullptr || cameraId == nullptr || chars == nullptr) { in ACameraManager_getCameraCharacteristics()
107 __FUNCTION__, mgr, cameraId, chars); in ACameraManager_getCameraCharacteristics()
110 return mgr->getCameraCharacteristics(cameraId, chars); in ACameraManager_getCameraCharacteristics()
/frameworks/base/core/tests/coretests/src/android/text/
DStaticLayoutDirectionsTest.java104 char[] chars = src.toCharArray(); in pseudoBidiToReal() local
105 for (int j = 0; j < chars.length; ++j) { in pseudoBidiToReal()
106 char c = chars[j]; in pseudoBidiToReal()
108 chars[j] = (char)(ALEF + c - 'A'); in pseudoBidiToReal()
112 return new String(chars, 0, chars.length); in pseudoBidiToReal()
/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/layoutlib/bridge/src/android/text/
DAndroidBidi_Delegate.java35 /*package*/ static int runBidi(int dir, char[] chars, byte[] charInfo, int count, in runBidi() argument
56 Bidi bidi = new Bidi(chars, 0, null, 0, count, dir); in runBidi()
/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/base/tools/aapt2/tools/
Dextract_unicode_properties.py56 def flatten_unicode_properties(chars): argument
58 for char_prop in sorted(chars.values(), key=CharacterProperty.key):
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/
DBridgeXmlBlockParser.java219 char[] chars = null; in getTextCharacters() local
223 chars = new char[txt.length()]; in getTextCharacters()
224 txt.getChars(0, txt.length(), chars, 0); in getTextCharacters()
226 return chars; in getTextCharacters()
/frameworks/av/camera/ndk/impl/
DACameraDevice.h50 std::unique_ptr<ACameraMetadata> chars,
280 std::unique_ptr<ACameraMetadata> chars) : in ACameraDevice()
281 mDevice(new CameraDevice(id, cb, std::move(chars), this)) {} in ACameraDevice()

123