/frameworks/av/media/libstagefright/codecs/mp3dec/src/ |
D | pvmp3_get_side_info.cpp | 119 int32 ch, gr; in pvmp3_get_side_info() local 140 for (ch = 0; ch < stereo; ch++) in pvmp3_get_side_info() 143 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info() 144 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info() 145 si->ch[ch].scfsi[2] = (tmp << 30) >> 31; /* 1 */ in pvmp3_get_side_info() 146 si->ch[ch].scfsi[3] = tmp & 1; /* 1 */ in pvmp3_get_side_info() 151 for (ch = 0; ch < stereo; ch++) in pvmp3_get_side_info() 153 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() 156 si->ch[ch].gran[gr].big_values = (tmp << 10) >> 23; /* 9 */ in pvmp3_get_side_info() 157 si->ch[ch].gran[gr].global_gain = ((tmp << 19) >> 24) - 210; /* 8 */ in pvmp3_get_side_info() [all …]
|
D | pvmp3_framedecoder.cpp | 232 int32 ch; in pvmp3_framedecoder() local 362 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder() 369 pvmp3_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 372 ch, in pvmp3_framedecoder() 378 pvmp3_mpeg2_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 381 ch, in pvmp3_framedecoder() 387 … pChVars[ch]->used_freq_lines = pvmp3_huffman_parsing(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 388 &pVars->sideInfo.ch[ch].gran[gr], in pvmp3_framedecoder() 394 pvmp3_dequantize_sample(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 395 &pVars->scaleFactors[ch], in pvmp3_framedecoder() [all …]
|
D | pvmp3_mpeg2_get_scale_data.cpp | 129 int32 ch, in pvmp3_mpeg2_get_scale_data() argument 141 granuleInfo *gr_info = &(si->ch[ch].gran[gr]); in pvmp3_mpeg2_get_scale_data() 148 if ((((info->mode_ext &1)) && (ch == 1))) in pvmp3_mpeg2_get_scale_data() 177 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data() 187 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data() 198 si->ch[ch].gran[gr].preflag = 0; in pvmp3_mpeg2_get_scale_data() 208 si->ch[ch].gran[gr].preflag = 1; in pvmp3_mpeg2_get_scale_data()
|
D | pvmp3_get_scale_factors.cpp | 135 int32 ch, in pvmp3_get_scale_factors() argument 141 granuleInfo *gr_info = &(si->ch[ch].gran[gr]); in pvmp3_get_scale_factors() 194 if ((si->ch[ch].scfsi[i] == 0) || (gr == 0)) in pvmp3_get_scale_factors()
|
D | pvmp3_mpeg2_get_scale_factors.cpp | 121 int32 ch, in pvmp3_mpeg2_get_scale_factors() argument 132 granuleInfo *gr_info = &(si->ch[ch].gran[gr]); in pvmp3_mpeg2_get_scale_factors() 136 ch, in pvmp3_mpeg2_get_scale_factors()
|
/frameworks/av/media/mtp/ |
D | MtpStringBuffer.cpp | 61 char ch; in set() local 64 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) { in set() 65 if ((ch & 0x80) == 0) { in set() 67 *dest++ = ch; in set() 68 } else if ((ch & 0xE0) == 0xC0) { in set() 76 *dest++ = ch; in set() 78 } else if ((ch & 0xF0) == 0xE0) { in set() 91 *dest++ = ch; in set() 105 uint16_t ch; in set() local 108 while ((ch = *src++) != 0 && count < MTP_STRING_MAX_CHARACTER_NUMBER) { in set() [all …]
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
D | FwdLockConv.c | 152 unsigned char ch; member 288 static int FwdLockConv_IsBoundaryChar(int ch) { in FwdLockConv_IsBoundaryChar() argument 289 return isalnum(ch) || ch == '\'' || ch == '(' || ch == ')' || ch == '+' || ch == '_' || in FwdLockConv_IsBoundaryChar() 290 ch == ',' || ch == '-' || ch == '.' || ch == '/' || ch == ':' || ch == '=' || in FwdLockConv_IsBoundaryChar() 291 ch == '?' || ch == ' ' || ch == '%' || ch == '[' || ch == '&' || ch == '*' || ch == '^'; in FwdLockConv_IsBoundaryChar() 302 static int FwdLockConv_IsWhitespace(int ch) { in FwdLockConv_IsWhitespace() argument 303 return ch == ' ' || ch == '\t'; in FwdLockConv_IsWhitespace() 333 int ch) { in FwdLockConv_MatchOpenDelimiter() argument 337 if (ch == '-') { in FwdLockConv_MatchOpenDelimiter() 339 } else if (ch == '\r') { in FwdLockConv_MatchOpenDelimiter() [all …]
|
/frameworks/av/media/libstagefright/codecs/aacenc/src/ |
D | psy_main.c | 55 const Word16 ch); 66 const Word16 ch); 197 Word16 ch, err; in psyMainInit() local 222 for(ch=0;ch < channels;ch++){ in psyMainInit() 224 InitBlockSwitching(&hPsy->psyData[ch].blockSwitchingControl, in psyMainInit() 227 InitPreEchoControl(hPsy->psyData[ch].sfbThresholdnm1, in psyMainInit() 230 hPsy->psyData[ch].mdctScalenm1 = 0; in psyMainInit() 261 Word16 ch; /* counts through channels */ in psyMain() local 271 for(ch = 0; ch < channels; ch++) { in psyMain() 272 BlockSwitching(&psyData[ch].blockSwitchingControl, in psyMain() [all …]
|
D | qc_main.c | 267 Word32 ch; in QCMain() local 317 for (ch = 0; ch < nChannels; ch++) { in QCMain() 321 maxChDynBits[ch] = extract_l(chBitDistribution[ch] * maxDynBits / 1000); in QCMain() 325 for (ch = 0; ch < nChannels; ch++) { in QCMain() 333 QuantizeSpectrum(psyOutChannel[ch].sfbCnt, in QCMain() 334 psyOutChannel[ch].maxSfbPerGroup, in QCMain() 335 psyOutChannel[ch].sfbPerGroup, in QCMain() 336 psyOutChannel[ch].sfbOffsets, in QCMain() 337 psyOutChannel[ch].mdctSpectrum, in QCMain() 338 qcOutChannel[ch].globalGain, in QCMain() [all …]
|
D | adj_thr.c | 74 Word16 ch, sfb, sfbGrp; in calcThreshExp() local 76 for (ch=0; ch<nChannels; ch++) { in calcThreshExp() 77 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch]; in calcThreshExp() 79 pthrExp = &(thrExp[ch][sfbGrp]); in calcThreshExp() 99 Word16 ch, sfb, sfbOffs, shift; in adaptMinSnr() local 105 for (ch=0; ch<nChannels; ch++) { in adaptMinSnr() 106 PSY_OUT_CHANNEL* psyOutChan = &psyOutChannel[ch]; in adaptMinSnr() 134 dbRatio = log_avgEn - logSfbEnergy[ch][sfbOffs+sfb]; in adaptMinSnr() 170 Word16 ch, sfb, sfbGrp, shift; in initAvoidHoleFlag() local 174 for (ch=0; ch<nChannels; ch++) { in initAvoidHoleFlag() [all …]
|
D | line_pe.c | 48 Word32 ch; in prepareSfbPe() local 50 for(ch=0; ch<nChannels; ch++) { in prepareSfbPe() 51 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch]; in prepareSfbPe() 52 PE_CHANNEL_DATA *peChanData=&peData->peChannelData[ch]; in prepareSfbPe() 55 peChanData->sfbNLines4[sfbGrp+sfb] = sfbNRelevantLines[ch][sfbGrp+sfb]; in prepareSfbPe() 56 sfbNRelevantLines[ch][sfbGrp+sfb] = sfbNRelevantLines[ch][sfbGrp+sfb] >> 2; in prepareSfbPe() 57 peChanData->sfbLdEnergy[sfbGrp+sfb] = logSfbEnergy[ch][sfbGrp+sfb]; in prepareSfbPe() 75 Word32 ch; in calcSfbPe() local 84 for(ch=0; ch<nChannels; ch++) { in calcSfbPe() 85 PSY_OUT_CHANNEL *psyOutChan = &psyOutChannel[ch]; in calcSfbPe() [all …]
|
D | stat_bits.c | 185 Word32 ch; in countStaticBitdemand() local 229 for(ch=0; ch<2; ch++) in countStaticBitdemand() 230 statBits += countTnsBits(&(psyOutChannel[ch].tnsInfo), in countStaticBitdemand() 231 psyOutChannel[ch].windowSequence); in countStaticBitdemand()
|
/frameworks/opt/vcard/java/com/android/vcard/ |
D | VCardParserImpl_V40.java | 65 char ch = text.charAt(i); in unescapeText() local 66 if (ch == '\\' && i < length - 1) { in unescapeText() 74 builder.append(ch); in unescapeText() 80 public static String unescapeCharacter(final char ch) { in unescapeCharacter() argument 81 if (ch == 'n' || ch == 'N') { in unescapeCharacter() 84 return String.valueOf(ch); in unescapeCharacter()
|
D | VCardParserImpl_V30.java | 204 final char ch = paramValue.charAt(i); in splitAndPutParam() local 205 if (ch == '"') { in splitAndPutParam() 226 } else if (ch == ',' && !insideDquote) { in splitAndPutParam() 240 builder.append(ch); in splitAndPutParam() 321 char ch = text.charAt(i); in unescapeText() local 322 if (ch == '\\' && i < length - 1) { in unescapeText() 330 builder.append(ch); in unescapeText() 337 protected String maybeUnescapeCharacter(final char ch) { in maybeUnescapeCharacter() argument 338 return unescapeCharacter(ch); in maybeUnescapeCharacter() 341 public static String unescapeCharacter(final char ch) { in unescapeCharacter() argument [all …]
|
D | VCardParserImpl_V21.java | 377 final char ch = line.charAt(i); in constructPropertyData() local 380 if (ch == ':') { // End of a property name. in constructPropertyData() 385 } else if (ch == '.') { // Each group is followed by the dot. in constructPropertyData() 393 } else if (ch == ';') { // End of property name and beginneng of parameters. in constructPropertyData() 403 if (ch == '"') { in constructPropertyData() 409 } else if (ch == ';') { // Starts another param. in constructPropertyData() 412 } else if (ch == ':') { // End of param and beginenning of values. in constructPropertyData() 420 if (ch == '"') { in constructPropertyData() 555 private boolean isAsciiLetter(char ch) { 556 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { [all …]
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 304 char16_t ch = chars[i]; in getEvents() local 305 if (!findKey(ch, &keyCode, &metaState)) { in getEvents() 308 deviceId, toString(chars, numChars).string(), ch); in getEvents() 419 bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { in findKey() argument 420 if (!ch) { in findKey() 431 if (behavior->character == ch) { in findKey() 905 char ch = mTokenizer->nextChar(); in parseKeyProperty() local 906 if (ch == ':') { in parseKeyProperty() 908 } else if (ch == ',') { in parseKeyProperty() 928 char ch = mTokenizer->peekChar(); in parseKeyProperty() local [all …]
|
D | InputDevice.cpp | 39 static bool isValidNameChar(char ch) { in isValidNameChar() argument 40 return isascii(ch) && (isdigit(ch) || isalpha(ch) || ch == '-' || ch == '_'); in isValidNameChar() 47 char ch = name[i]; in appendInputDeviceConfigurationFileRelativePath() local 48 if (!isValidNameChar(ch)) { in appendInputDeviceConfigurationFileRelativePath() 49 ch = '_'; in appendInputDeviceConfigurationFileRelativePath() 51 path.append(&ch, 1); in appendInputDeviceConfigurationFileRelativePath()
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 270 char ch = text.charAt(nextChar++); in parseText() local 271 switch (ch) { in parseText() 278 default: buf.append(ch); break; in parseText() 372 char ch = text.charAt(index); in parseURL() local 373 if ((ch != '.') && !isDomainChar(ch)) { in parseURL() 390 char ch = text.charAt(index + 1); in parseURL() local 391 if (Character.isDigit(ch)) { in parseURL() 409 char ch = text.charAt(index); in parseURL() local 410 if (ch == '?') { in parseURL() 421 } else if (isPunctuation(ch)) { in parseURL() [all …]
|
/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 120 const FontCollection::FontInstance* FontCollection::getInstanceForChar(uint32_t ch, in getInstanceForChar() argument 122 if (ch >= mMaxChar) { in getInstanceForChar() 125 const Range& range = mRanges[ch >> kLogCharsPerPage]; in getInstanceForChar() 133 if (instance->mCoverage->get(ch)) { in getInstanceForChar() 154 int len = unorm2_getRawDecomposition(normalizer, ch, decomposed, 4, &errorCode); in getInstanceForChar() 157 U16_NEXT_UNSAFE(decomposed, off, ch); in getInstanceForChar() 158 return getInstanceForChar(ch, lang, variant); in getInstanceForChar() 191 uint32_t ch = string[i]; in itemize() local 193 if ((ch & 0xfc00) == 0xd800) { in itemize() 195 ch = 0x10000 + ((ch & 0x3ff) << 10) + (string[i + 1] & 0x3ff); in itemize() [all …]
|
/frameworks/base/tools/layoutlib/create/src/com/android/tools/layoutlib/java/ |
D | Charsets.java | 87 char ch = chars[i]; in toBigEndianUtf16Bytes() local 88 result[resultIndex++] = (byte) (ch >> 8); in toBigEndianUtf16Bytes() 89 result[resultIndex++] = (byte) ch; in toBigEndianUtf16Bytes() 109 char ch = (char) (bytes[start++] & 0xff); in asciiBytesToChars() local 110 chars[i] = (ch <= 0x7f) ? ch : REPLACEMENT_CHAR; in asciiBytesToChars()
|
/frameworks/av/media/libeffects/testlibs/ |
D | AudioBiquadFilter.cpp | 208 for (int ch = 0; ch < mNumChannels; ++ch) { in process_normal_multi() local 210 audio_sample_t x1 = mDelays[ch][0]; in process_normal_multi() 211 audio_sample_t x2 = mDelays[ch][1]; in process_normal_multi() 212 audio_sample_t y1 = mDelays[ch][2]; in process_normal_multi() 213 audio_sample_t y2 = mDelays[ch][3]; in process_normal_multi() 231 mDelays[ch][0] = x1; in process_normal_multi() 232 mDelays[ch][1] = x2; in process_normal_multi() 233 mDelays[ch][2] = y1; in process_normal_multi() 234 mDelays[ch][3] = y2; in process_normal_multi()
|
/frameworks/minikin/include/minikin/ |
D | SparseBitSet.h | 48 bool get(uint32_t ch) const { in get() argument 49 if (ch >= mMaxVal) return false; in get() 50 uint32_t *bitmap = &mBitmaps[mIndices[ch >> kLogValuesPerPage]]; in get() 51 uint32_t index = ch & kPageMask; in get()
|
/frameworks/base/core/tests/coretests/src/android/database/ |
D | DatabaseStressTest.java | 65 char[] ch = new char[100000]; in testSingleThreadInsertDelete() local 66 String str = new String(ch); in testSingleThreadInsertDelete() 87 char[] ch = new char[100000]; in testOutOfSpace() local 88 String str = new String(ch); in testOutOfSpace()
|
/frameworks/testing/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | AccessibilityNodeInfoDumper.java | 225 char ch; in stripInvalidXMLChars() local 227 ch = cs.charAt(i); in stripInvalidXMLChars() 231 if (ch >= 0xD800 && ch <= 0xDFFF) { in stripInvalidXMLChars() 232 if (ch < 0xDC00 && i + 1 < cs.length()) { in stripInvalidXMLChars() 239 } else if (ch > 0x7E || ch < ' ') { in stripInvalidXMLChars() 242 ret.append(ch); in stripInvalidXMLChars()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcTestLib.cpp | 215 char chStart, ch; in hwcTestParseHwcRect() local 228 in >> ch; in hwcTestParseHwcRect() 229 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 234 in >> ch; in hwcTestParseHwcRect() 235 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 240 in >> ch; in hwcTestParseHwcRect() 241 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 248 in >> ch; in hwcTestParseHwcRect() 250 if (((chStart == '<') && (ch != '>')) in hwcTestParseHwcRect() 251 || ((chStart == '[') && (ch != ']'))) { return rect; } in hwcTestParseHwcRect() [all …]
|