/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 = (int32)((tmp << 19) >> 24) - 210; /* 8 */ in pvmp3_get_side_info() [all …]
|
D | pvmp3_framedecoder.cpp | 232 int32 ch; in pvmp3_framedecoder() local 366 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder() 373 pvmp3_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 376 ch, in pvmp3_framedecoder() 382 pvmp3_mpeg2_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 385 ch, in pvmp3_framedecoder() 391 … pChVars[ch]->used_freq_lines = pvmp3_huffman_parsing(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 392 &pVars->sideInfo.ch[ch].gran[gr], in pvmp3_framedecoder() 398 pvmp3_dequantize_sample(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 399 &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()
|
/frameworks/av/drm/libdrmframework/plugins/forward-lock/internal-format/converter/ |
D | FwdLockConv.c | 153 unsigned char ch; member 289 static int FwdLockConv_IsBoundaryChar(int ch) { in FwdLockConv_IsBoundaryChar() argument 290 return isalnum(ch) || ch == '\'' || ch == '(' || ch == ')' || ch == '+' || ch == '_' || in FwdLockConv_IsBoundaryChar() 291 ch == ',' || ch == '-' || ch == '.' || ch == '/' || ch == ':' || ch == '=' || in FwdLockConv_IsBoundaryChar() 292 ch == '?' || ch == ' ' || ch == '%' || ch == '[' || ch == '&' || ch == '*' || ch == '^'; in FwdLockConv_IsBoundaryChar() 303 static int FwdLockConv_IsWhitespace(int ch) { in FwdLockConv_IsWhitespace() argument 304 return ch == ' ' || ch == '\t'; in FwdLockConv_IsWhitespace() 334 int ch) { in FwdLockConv_MatchOpenDelimiter() argument 338 if (ch == '-') { in FwdLockConv_MatchOpenDelimiter() 340 } else if (ch == '\r') { in FwdLockConv_MatchOpenDelimiter() [all …]
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | AccessibilityNodeInfoDumper.java | 220 char ch; in stripInvalidXMLChars() local 231 ch = cs.charAt(i); in stripInvalidXMLChars() 233 if((ch >= 0x1 && ch <= 0x8) || (ch >= 0xB && ch <= 0xC) || (ch >= 0xE && ch <= 0x1F) || in stripInvalidXMLChars() 234 (ch >= 0x7F && ch <= 0x84) || (ch >= 0x86 && ch <= 0x9f) || in stripInvalidXMLChars() 235 (ch >= 0xFDD0 && ch <= 0xFDDF) || (ch >= 0x1FFFE && ch <= 0x1FFFF) || in stripInvalidXMLChars() 236 (ch >= 0x2FFFE && ch <= 0x2FFFF) || (ch >= 0x3FFFE && ch <= 0x3FFFF) || in stripInvalidXMLChars() 237 (ch >= 0x4FFFE && ch <= 0x4FFFF) || (ch >= 0x5FFFE && ch <= 0x5FFFF) || in stripInvalidXMLChars() 238 (ch >= 0x6FFFE && ch <= 0x6FFFF) || (ch >= 0x7FFFE && ch <= 0x7FFFF) || in stripInvalidXMLChars() 239 (ch >= 0x8FFFE && ch <= 0x8FFFF) || (ch >= 0x9FFFE && ch <= 0x9FFFF) || in stripInvalidXMLChars() 240 (ch >= 0xAFFFE && ch <= 0xAFFFF) || (ch >= 0xBFFFE && ch <= 0xBFFFF) || in stripInvalidXMLChars() [all …]
|
/frameworks/base/core/java/android/database/sqlite/ |
D | SQLiteTokenizer.java | 40 private static boolean isAlpha(char ch) { in isAlpha() argument 41 return ('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z') || (ch == '_'); in isAlpha() 44 private static boolean isNum(char ch) { in isNum() argument 45 return ('0' <= ch && ch <= '9'); in isNum() 48 private static boolean isAlNum(char ch) { in isAlNum() argument 49 return isAlpha(ch) || isNum(ch); in isAlNum() 52 private static boolean isAnyOf(char ch, String set) { in isAnyOf() argument 53 return set.indexOf(ch) >= 0; in isAnyOf() 96 final char ch = peek(sql, pos); in tokenize() local 99 if (isAlpha(ch)) { in tokenize() [all …]
|
/frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
D | SettingsStateTest.java | 53 for (char ch = 0x20; ch < 0xd800; ch++) { in testIsBinary() 54 assertFalse("ch=" + Integer.toString(ch, 16), in testIsBinary() 55 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary() 57 for (char ch = 0xe000; ch < 0xfffe; ch++) { in testIsBinary() 58 assertFalse("ch=" + Integer.toString(ch, 16), in testIsBinary() 59 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary() 62 for (char ch = 0x0000; ch < 0x20; ch++) { in testIsBinary() 63 assertTrue("ch=" + Integer.toString(ch, 16), in testIsBinary() 64 SettingsState.isBinary(String.valueOf(ch))); in testIsBinary() 66 for (char ch = 0xd800; ch < 0xe000; ch++) { in testIsBinary() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | SparseBitSetTest.cpp | 38 uint32_t ch = 0; in TEST() local 43 for (; ch < start; ch++) { in TEST() 44 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch; in TEST() 46 for (; ch < end; ch++) { in TEST() 47 ASSERT_TRUE(bitset.get(ch)) << std::hex << ch; in TEST() 50 for (; ch < 0x1FFFFFF; ++ch) { in TEST() 51 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch; in TEST()
|
/frameworks/base/media/java/android/media/audiofx/ |
D | DynamicsProcessing.java | 220 for (int ch = 0; ch < mChannelCount; ch++) { in DynamicsProcessing() 221 updateEngineChannelByChannelIndex(ch, config.getChannelByChannelIndex(ch)); in DynamicsProcessing() 258 for (int ch = 0; ch < mChannelCount; ch++) { in getConfig() 259 Channel channel = queryEngineByChannelIndex(ch); in getConfig() 260 config.setChannelTo(ch, channel); in getConfig() 1286 for (int ch = 0; ch < mChannelCount; ch++) { in Config() 1287 if (ch < channel.length) { in Config() 1288 mChannel[ch] = new Channel(channel[ch]); //copy create in Config() 1325 for (int ch = 0; ch < channelCount; ch++) { in Config() 1326 if (ch < mChannelCount) { in Config() [all …]
|
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/hotspot2/ |
D | Utils.java | 99 char ch = prefix.charAt(n); in getMccMnc() local 100 if (ch < '0' || ch > '9') { in getMccMnc() 179 char ch = s.charAt(n); in toUnicodeEscapedString() local 180 if (ch>= ' ' && ch < 127) { in toUnicodeEscapedString() 181 sb.append(ch); in toUnicodeEscapedString() 184 sb.append("\\u").append(String.format("%04x", (int)ch)); in toUnicodeEscapedString() 231 public static int fromHex(char ch, boolean lenient) throws NumberFormatException { in fromHex() argument 232 if (ch <= '9' && ch >= '0') { in fromHex() 233 return ch - '0'; in fromHex() 234 } else if (ch >= 'a' && ch <= 'f') { in fromHex() [all …]
|
/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 | 214 final char ch = paramValue.charAt(i); in splitAndPutParam() local 215 if (ch == '"') { in splitAndPutParam() 236 } else if (ch == ',' && !insideDquote) { in splitAndPutParam() 250 builder.append(ch); in splitAndPutParam() 331 char ch = text.charAt(i); in unescapeText() local 332 if (ch == '\\' && i < length - 1) { in unescapeText() 340 builder.append(ch); in unescapeText() 347 protected String maybeUnescapeCharacter(final char ch) { in maybeUnescapeCharacter() argument 348 return unescapeCharacter(ch); in maybeUnescapeCharacter() 351 public static String unescapeCharacter(final char ch) { in unescapeCharacter() argument [all …]
|
D | VCardParserImpl_V21.java | 378 final char ch = line.charAt(i); in constructPropertyData() local 381 if (ch == ':') { // End of a property name. in constructPropertyData() 386 } else if (ch == '.') { // Each group is followed by the dot. in constructPropertyData() 394 } else if (ch == ';') { // End of property name and beginneng of parameters. in constructPropertyData() 404 if (ch == '"') { in constructPropertyData() 410 } else if (ch == ';') { // Starts another param. in constructPropertyData() 413 } else if (ch == ':') { // End of param and beginenning of values. in constructPropertyData() 421 if (ch == '"') { in constructPropertyData() 556 private boolean isAsciiLetter(char ch) { 557 if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/dsp/ |
D | DPFrequency.cpp | 158 for (int ch = 0; ch < channelcount; ch++) { in configure() local 159 mChannelBuffers[ch].initBuffers(mBlockSize, mOverlapSize, mHalfFFTSize, in configure() 384 for (int ch = 0; ch < channelCount; ch++) { in processSamples() local 385 updateParameters(mChannelBuffers[ch], ch); in processSamples() 390 for (int ch = 0; ch < channelCount; ch++) { in processSamples() local 391 mChannelBuffers[ch].cBInput.write(*pIn++); in processSamples() 400 for (int ch = 1; ch < channelCount; ch++) { in processSamples() local 401 available = std::min(available, mChannelBuffers[ch].cBOutput.availableToRead()); in processSamples() 417 for (int ch = 0; ch < channelCount; ch++) { in processSamples() local 418 *pOut++ = mChannelBuffers[ch].cBOutput.read(); in processSamples() [all …]
|
/frameworks/base/core/java/com/google/android/util/ |
D | AbstractMessageParser.java | 271 char ch = text.charAt(nextChar++); in parseText() local 272 switch (ch) { in parseText() 279 default: buf.append(ch); break; in parseText() 373 char ch = text.charAt(index); in parseURL() local 374 if ((ch != '.') && !isDomainChar(ch)) { in parseURL() 391 char ch = text.charAt(index + 1); in parseURL() local 392 if (Character.isDigit(ch)) { in parseURL() 410 char ch = text.charAt(index); in parseURL() local 411 if (ch == '?') { in parseURL() 422 } else if (isPunctuation(ch)) { in parseURL() [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() 461 bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { in findKey() argument 462 if (!ch) { in findKey() 473 if (behavior->character == ch) { in findKey() 958 char ch = mTokenizer->nextChar(); in parseKeyProperty() local 959 if (ch == ':') { in parseKeyProperty() 961 } else if (ch == ',') { in parseKeyProperty() 982 char ch = mTokenizer->peekChar(); in parseKeyProperty() local [all …]
|
D | InputDevice.cpp | 43 static bool isValidNameChar(char ch) { in isValidNameChar() argument 44 return isascii(ch) && (isdigit(ch) || isalpha(ch) || ch == '-' || ch == '_'); in isValidNameChar() 141 for (char& ch : replacedName) { in getCanonicalName() local 142 if (!isValidNameChar(ch)) { in getCanonicalName() 143 ch = '_'; in getCanonicalName()
|
/frameworks/av/media/libeffects/lvm/lib/Common/src/ |
D | LVC_Core_MixSoft_1St_2i_D16C31_WRA.c | 156 LVM_INT32 ii, ch; in LVC_Core_MixSoft_1St_MC_float_WRA() local 159 for (ch = 0; ch < NrChannels; ch++) in LVC_Core_MixSoft_1St_MC_float_WRA() 161 tempCurrent[ch] = ptrInstance[ch]->Current; in LVC_Core_MixSoft_1St_MC_float_WRA() 165 for (ch = 0; ch < NrChannels; ch++) in LVC_Core_MixSoft_1St_MC_float_WRA() 167 Mix_Private_FLOAT_st *pInstance = ptrInstance[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA() 169 LVM_FLOAT Current = tempCurrent[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA() 185 tempCurrent[ch] = Current; in LVC_Core_MixSoft_1St_MC_float_WRA() 188 for (ch = 0; ch < NrChannels; ch++) in LVC_Core_MixSoft_1St_MC_float_WRA() 190 ptrInstance[ch]->Current = tempCurrent[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA()
|
/frameworks/minikin/libs/minikin/ |
D | FontCollection.cpp | 126 uint32_t FontCollection::calcFamilyScore(uint32_t ch, uint32_t vs, FamilyVariant variant, in calcFamilyScore() argument 129 const uint32_t coverageScore = calcCoverageScore(ch, vs, localeListId, fontFamily); in calcFamilyScore() 154 uint32_t FontCollection::calcCoverageScore(uint32_t ch, uint32_t vs, uint32_t localeListId, in calcCoverageScore() argument 156 const bool hasVSGlyph = (vs != 0) && fontFamily->hasGlyph(ch, vs); in calcCoverageScore() 157 if (!hasVSGlyph && !fontFamily->getCoverage().get(ch)) { in calcCoverageScore() 252 const std::shared_ptr<FontFamily>& FontCollection::getFamilyForChar(uint32_t ch, uint32_t vs, in getFamilyForChar() argument 255 if (ch >= mMaxChar) { in getFamilyForChar() 259 Range range = mRanges[ch >> kLogCharsPerPage]; in getFamilyForChar() 270 const uint32_t score = calcFamilyScore(ch, vs, variant, localeListId, family); in getFamilyForChar() 286 int len = unorm2_getRawDecomposition(normalizer, ch, decomposed, 4, &errorCode); in getFamilyForChar() [all …]
|
/frameworks/base/core/java/android/text/method/ |
D | NumberKeyListener.java | 182 final char ch = pattern.charAt(i); in addFormatCharsFromSkeleton() local 183 if (Character.isSurrogate(ch)) { // characters outside BMP are not supported. in addFormatCharsFromSkeleton() 185 } else if (ch == SINGLE_QUOTE) { in addFormatCharsFromSkeleton() 195 if (symbolsToIgnore.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 198 } else if (DATE_TIME_FORMAT_SYMBOLS.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 205 collection.add(Character.valueOf(ch)); in addFormatCharsFromSkeleton() 234 final char ch = amPm[i].charAt(j); in addAmPmChars() local 235 if (Character.isBmpCodePoint(ch)) { in addAmPmChars() 236 collection.add(Character.valueOf(ch)); in addAmPmChars() 250 for (Character ch : chars) { in collectionToArray() [all …]
|
/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/av/media/libaudiohal/impl/ |
D | ConversionHelperHidl.cpp | 199 size_t ch; in microphoneInfoToHal() local 200 for (ch = 0; ch < src.channelMapping.size() && ch < AUDIO_CHANNEL_COUNT_MAX; ch++) { in microphoneInfoToHal() 201 pDst->channel_mapping[ch] = channelMappingToHal(src.channelMapping[ch]); in microphoneInfoToHal() 203 for (; ch < AUDIO_CHANNEL_COUNT_MAX; ch++) { in microphoneInfoToHal() 204 pDst->channel_mapping[ch] = AUDIO_MICROPHONE_CHANNEL_MAPPING_UNUSED; in microphoneInfoToHal()
|
/frameworks/native/opengl/tests/hwc/ |
D | hwcTestLib.cpp | 213 char chStart, ch; in hwcTestParseHwcRect() local 226 in >> ch; in hwcTestParseHwcRect() 227 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 232 in >> ch; in hwcTestParseHwcRect() 233 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 238 in >> ch; in hwcTestParseHwcRect() 239 if (!in || (ch != ',')) { return rect; } in hwcTestParseHwcRect() 246 in >> ch; in hwcTestParseHwcRect() 248 if (((chStart == '<') && (ch != '>')) in hwcTestParseHwcRect() 249 || ((chStart == '[') && (ch != ']'))) { return rect; } in hwcTestParseHwcRect() [all …]
|
/frameworks/minikin/include/minikin/ |
D | SparseBitSet.h | 49 bool get(uint32_t ch) const { in get() argument 50 if (ch >= mMaxVal) return false; in get() 51 const uint32_t* bitmap = &mBitmaps[mIndices[ch >> kLogValuesPerPage]]; in get() 52 uint32_t index = ch & kPageMask; in get()
|