/art/libdexfile/dex/ |
D | utf.cc | 84 const uint32_t ch = GetUtf16FromUtf8(&utf8_data_in); in ConvertModifiedUtf8ToUtf16() local 85 const uint16_t leading = GetLeadingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16() 86 const uint16_t trailing = GetTrailingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16() 113 const uint32_t ch = GetUtf16FromUtf8(&p); in ConvertModifiedUtf8ToUtf16() local 114 const uint16_t leading = GetLeadingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16() 115 const uint16_t trailing = GetTrailingUtf16Char(ch); in ConvertModifiedUtf8ToUtf16() 137 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8() local 138 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8() 139 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8() 145 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8() [all …]
|
D | descriptors_names.cc | 64 char ch = *p++; in AppendPrettyDescriptor() local 65 if (ch == '/') { in AppendPrettyDescriptor() 66 ch = '.'; in AppendPrettyDescriptor() 68 result->push_back(ch); in AppendPrettyDescriptor() 104 uint32_t ch = GetUtf16FromUtf8(&cp); in MangleForJni() local 105 if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9')) { in MangleForJni() 106 result.push_back(ch); in MangleForJni() 107 } else if (ch == '.' || ch == '/') { in MangleForJni() 109 } else if (ch == '_') { in MangleForJni() 111 } else if (ch == ';') { in MangleForJni() [all …]
|
D | utf_test.cc | 235 const uint16_t ch = *chars++; in CountUtf8Bytes_reference() local 236 if (ch > 0 && ch <= 0x7f) { in CountUtf8Bytes_reference() 238 } else if (ch >= 0xd800 && ch <= 0xdbff) { in CountUtf8Bytes_reference() 257 } else if (ch > 0x7ff) { in CountUtf8Bytes_reference() 269 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8_reference() local 270 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8_reference() 271 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8_reference() 277 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8_reference() 286 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; in ConvertUtf16ToModifiedUtf8_reference() 295 if (ch > 0x07ff) { in ConvertUtf16ToModifiedUtf8_reference() [all …]
|
D | utf.h | 127 std::string PrintableChar(uint16_t ch);
|
/art/test/ti-agent/ |
D | ti_utf.h | 122 const uint16_t ch = *utf16_in++; in ConvertUtf16ToModifiedUtf8() local 123 if (ch > 0 && ch <= 0x7f) { in ConvertUtf16ToModifiedUtf8() 124 *utf8_out++ = ch; in ConvertUtf16ToModifiedUtf8() 130 if ((ch >= 0xd800 && ch <= 0xdbff) && (char_count > 0)) { in ConvertUtf16ToModifiedUtf8() 139 const uint32_t code_point = (ch << 10) + ch2 - 0x035fdc00; in ConvertUtf16ToModifiedUtf8() 148 if (ch > 0x07ff) { in ConvertUtf16ToModifiedUtf8() 150 *utf8_out++ = (ch >> 12) | 0xe0; in ConvertUtf16ToModifiedUtf8() 151 *utf8_out++ = ((ch >> 6) & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8() 152 *utf8_out++ = (ch & 0x3f) | 0x80; in ConvertUtf16ToModifiedUtf8() 155 *utf8_out++ = (ch >> 6) | 0xc0; in ConvertUtf16ToModifiedUtf8() [all …]
|
D | jni_binder.cc | 38 uint32_t ch = ti::GetUtf16FromUtf8(&cp); in MangleForJni() local 39 if ((ch >= 'A' && ch <= 'Z') || (ch >= 'a' && ch <= 'z') || (ch >= '0' && ch <= '9')) { in MangleForJni() 40 result.push_back(ch); in MangleForJni() 41 } else if (ch == '.' || ch == '/') { in MangleForJni() 43 } else if (ch == '_') { in MangleForJni() 45 } else if (ch == ';') { in MangleForJni() 47 } else if (ch == '[') { in MangleForJni() 50 const uint16_t leading = ti::GetLeadingUtf16Char(ch); in MangleForJni() 51 const uint32_t trailing = ti::GetTrailingUtf16Char(ch); in MangleForJni()
|
/art/runtime/native/ |
D | libcore_util_CharsetUtils.cc | 129 jchar ch = static_cast<jchar>(*src++ & 0xff); in CharsetUtils_asciiBytesToChars() local 130 *dst++ = (ch <= 0x7f) ? ch : REPLACEMENT_CHAR; in CharsetUtils_asciiBytesToChars() 174 jchar ch = string->CharAt(offset + i); in charsToBytes() local 175 if (ch > maxValidChar) { in charsToBytes() 176 ch = '?'; in charsToBytes() 178 *dst++ = static_cast<jbyte>(ch); in charsToBytes() 210 jint ch = string->CharAt(i); in CharsetUtils_toUtf8Bytes() local 211 if (ch < 0x80) { in CharsetUtils_toUtf8Bytes() 213 if (!out.append(ch)) { in CharsetUtils_toUtf8Bytes() 216 } else if (ch < 0x800) { in CharsetUtils_toUtf8Bytes() [all …]
|
/art/test/530-regression-lse/src/ |
D | Main.java | 42 FileChannel ch = raf.getChannel(); in allocateMapped() local 43 MappedByteBuffer result = ch.map(FileChannel.MapMode.READ_WRITE, 0, size); in allocateMapped() 44 ch.close(); in allocateMapped()
|
/art/compiler/jni/quick/ |
D | calling_convention.h | 92 char ch = shorty_[i]; in CallingConvention() local 93 switch (ch) { in CallingConvention() 124 char ch = shorty_[param]; in IsParamALongOrDouble() local 125 return (ch == 'J' || ch == 'D'); in IsParamALongOrDouble() 134 char ch = shorty_[param]; in IsParamAFloatOrDouble() local 135 return (ch == 'F' || ch == 'D'); in IsParamAFloatOrDouble()
|
/art/runtime/mirror/ |
D | string-inl.h | 59 int32_t String::FastIndexOf(MemoryType* chars, int32_t ch, int32_t start) { in FastIndexOf() argument 63 if (*p++ == ch) { in FastIndexOf()
|
D | string.cc | 37 int32_t String::FastIndexOf(int32_t ch, int32_t start) { in FastIndexOf() argument 45 return FastIndexOf<uint8_t>(GetValueCompressed(), ch, start); in FastIndexOf() 47 return FastIndexOf<uint16_t>(GetValue(), ch, start); in FastIndexOf() 245 const uint32_t ch = GetUtf16FromUtf8(&modified_utf8); in Equals() local 246 if (ch == '\0') { in Equals() 250 if (GetLeadingUtf16Char(ch) != CharAt(i++)) { in Equals() 254 const uint16_t trailing = GetTrailingUtf16Char(ch); in Equals()
|
D | string.h | 182 int32_t FastIndexOf(int32_t ch, int32_t start) REQUIRES_SHARED(Locks::mutator_lock_); 185 int32_t FastIndexOf(MemoryType* chars, int32_t ch, int32_t start)
|
D | object_test.cc | 60 uint16_t ch = (((utf16_expected_le[i*2 + 0] & 0xff) << 8) | in AssertString() local 62 utf16_expected[i] = ch; in AssertString()
|
/art/test/458-checker-instruct-simplification/src/ |
D | Main.java | 2473 public static int $noinline$emptyStringIndexOf(int ch) { in $noinline$emptyStringIndexOf() argument 2474 return "".indexOf(ch); in $noinline$emptyStringIndexOf() 2490 public static int $noinline$emptyStringIndexOfAfter(int ch, int fromIndex) { in $noinline$emptyStringIndexOfAfter() argument 2491 return "".indexOf(ch, fromIndex); in $noinline$emptyStringIndexOfAfter() 2511 public static int $noinline$singleCharStringIndexOf(int ch) { in $noinline$singleCharStringIndexOf() argument 2512 return "x".indexOf(ch); in $noinline$singleCharStringIndexOf() 2528 public static int $noinline$singleCharStringIndexOfAfter(int ch, int fromIndex) { in $noinline$singleCharStringIndexOfAfter() argument 2529 return "x".indexOf(ch, fromIndex); // Not simplified. in $noinline$singleCharStringIndexOfAfter()
|
/art/cmdline/ |
D | token_range.h | 214 auto it = std::remove_if(token.begin(), token.end(), [&](char ch) { in RemoveCharacter() 215 if (ch == c) { in RemoveCharacter()
|
/art/test/021-string2/src/ |
D | Main.java | 883 public static int $noinline$indexOf(String lhs, int ch) { in $noinline$indexOf() argument 884 return lhs.indexOf(ch); in $noinline$indexOf() 887 public static int $noinline$indexOf(String lhs, int ch, int fromIndex) { in $noinline$indexOf() argument 888 return lhs.indexOf(ch, fromIndex); in $noinline$indexOf()
|
/art/runtime/interpreter/ |
D | interpreter_intrinsics.cc | 231 int ch = shadow_frame->GetVReg(arg[1]); \ 232 if (ch >= 0x10000) { \ 236 result_register->SetI(str->FastIndexOf(ch, starting_pos)); \
|
/art/runtime/ |
D | class_linker_test.cc | 912 for (int ch = 1; ch < 256; ++ch) { in TEST_F() local 914 descriptor.push_back(ch); in TEST_F() 915 if (expected.find(ch) == std::string::npos) { in TEST_F()
|
/art/build/apex/ |
D | art_apex_test.py | 140 def is_exec_bit(ch): argument 141 return int(ch) & 1 == 1
|
/art/dexdump/ |
D | dexdump.cc | 161 const char ch = str[offset + i]; in descriptorToDot() local 162 newStr[i] = (ch == '/') ? '.' : ch; in descriptorToDot()
|