/frameworks/av/media/module/codecs/mp3dec/src/ |
D | pvmp3_get_side_info.cpp | 120 int32 ch, gr; in pvmp3_get_side_info() local 151 for (ch = 0; ch < stereo; ch++) in pvmp3_get_side_info() 159 si->ch[ch].scfsi[0] = (tmp << 28) >> 31; /* 1 */ in pvmp3_get_side_info() 160 si->ch[ch].scfsi[1] = (tmp << 29) >> 31; /* 1 */ in pvmp3_get_side_info() 161 si->ch[ch].scfsi[2] = (tmp << 30) >> 31; /* 1 */ in pvmp3_get_side_info() 162 si->ch[ch].scfsi[3] = tmp & 1; /* 1 */ in pvmp3_get_side_info() 167 for (ch = 0; ch < stereo; ch++) in pvmp3_get_side_info() 174 … si->ch[ch].gran[gr].part2_3_length = getbits_crc(inputStream, 12, crc, info->error_protection); in pvmp3_get_side_info() 177 si->ch[ch].gran[gr].big_values = (tmp << 10) >> 23; /* 9 */ in pvmp3_get_side_info() 178 si->ch[ch].gran[gr].global_gain = (int32)((tmp << 19) >> 24) - 210; /* 8 */ in pvmp3_get_side_info() [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_framedecoder.cpp | 427 int32 ch; in pvmp3_framedecoder() local 561 for (ch = 0; ch < pVars->num_channels; ch++) in pvmp3_framedecoder() 568 pvmp3_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 571 ch, in pvmp3_framedecoder() 577 pvmp3_mpeg2_get_scale_factors(&pVars->scaleFactors[ch], in pvmp3_framedecoder() 580 ch, in pvmp3_framedecoder() 586 … pChVars[ch]->used_freq_lines = pvmp3_huffman_parsing(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 587 &pVars->sideInfo.ch[ch].gran[gr], in pvmp3_framedecoder() 593 pvmp3_dequantize_sample(pChVars[ch]->work_buf_int32, in pvmp3_framedecoder() 594 &pVars->scaleFactors[ch], in pvmp3_framedecoder() [all …]
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/regression/ |
D | CharacterPerfTest.java | 90 for (int ch = 0; ch < 65536; ++ch) { in timeIsSpace() 91 fake ^= ((char) ch == ' '); in timeIsSpace() 96 for (int ch = 0; ch < 65536; ++ch) { in timeIsSpace() 97 fake ^= (ch == ' '); in timeIsSpace() 110 for (int ch = 0; ch < 65536; ++ch) { in timeDigit() 111 Character.digit(mChars[ch], 10); in timeDigit() 116 for (int ch = 0; ch < 65536; ++ch) { in timeDigit() 117 Character.digit((int) mChars[ch], 10); in timeDigit() 130 for (int ch = 0; ch < 65536; ++ch) { in timeGetNumericValue() 131 Character.getNumericValue(mChars[ch]); in timeGetNumericValue() [all …]
|
/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/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/av/media/libeffects/lvm/lib/Common/src/ |
D | LVC_Core_MixSoft_1St_2i_D16C31_WRA.cpp | 30 LVM_INT32 ii, ch; in LVC_Core_MixSoft_1St_MC_float_WRA() local 32 for (ch = 0; ch < NrChannels; ch++) { in LVC_Core_MixSoft_1St_MC_float_WRA() 33 tempCurrent[ch] = ptrInstance[ch]->Current; in LVC_Core_MixSoft_1St_MC_float_WRA() 36 for (ch = 0; ch < NrChannels; ch++) { in LVC_Core_MixSoft_1St_MC_float_WRA() 37 Mix_Private_FLOAT_st* pInstance = ptrInstance[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA() 39 LVM_FLOAT Current = tempCurrent[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA() 49 tempCurrent[ch] = Current; in LVC_Core_MixSoft_1St_MC_float_WRA() 52 for (ch = 0; ch < NrChannels; ch++) { in LVC_Core_MixSoft_1St_MC_float_WRA() 53 ptrInstance[ch]->Current = tempCurrent[ch]; in LVC_Core_MixSoft_1St_MC_float_WRA()
|
/frameworks/base/cmds/uiautomator/library/core-src/com/android/uiautomator/core/ |
D | AccessibilityNodeInfoDumper.java | 320 char ch; in stripInvalidXMLChars() local 331 ch = cs.charAt(i); in stripInvalidXMLChars() 333 if((ch >= 0x1 && ch <= 0x8) || (ch >= 0xB && ch <= 0xC) || (ch >= 0xE && ch <= 0x1F) || in stripInvalidXMLChars() 334 (ch >= 0x7F && ch <= 0x84) || (ch >= 0x86 && ch <= 0x9f) || in stripInvalidXMLChars() 335 (ch >= 0xFDD0 && ch <= 0xFDDF) || (ch >= 0x1FFFE && ch <= 0x1FFFF) || in stripInvalidXMLChars() 336 (ch >= 0x2FFFE && ch <= 0x2FFFF) || (ch >= 0x3FFFE && ch <= 0x3FFFF) || in stripInvalidXMLChars() 337 (ch >= 0x4FFFE && ch <= 0x4FFFF) || (ch >= 0x5FFFE && ch <= 0x5FFFF) || in stripInvalidXMLChars() 338 (ch >= 0x6FFFE && ch <= 0x6FFFF) || (ch >= 0x7FFFE && ch <= 0x7FFFF) || in stripInvalidXMLChars() 339 (ch >= 0x8FFFE && ch <= 0x8FFFF) || (ch >= 0x9FFFE && ch <= 0x9FFFF) || in stripInvalidXMLChars() 340 (ch >= 0xAFFFE && ch <= 0xAFFFF) || (ch >= 0xBFFFE && ch <= 0xBFFFF) || in stripInvalidXMLChars() [all …]
|
/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/libs/modules-utils/java/com/android/modules/utils/ |
D | ModifiedUtf8.java | 71 char ch = s.charAt(i); in countBytes() local 72 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes. in countBytes() 74 } else if (ch <= 2047) { in countBytes() 93 char ch = s.charAt(i); in encode() local 94 if (ch != 0 && ch <= 127) { // U+0000 uses two bytes. in encode() 95 dst[offset++] = (byte) ch; in encode() 96 } else if (ch <= 2047) { in encode() 97 dst[offset++] = (byte) (0xc0 | (0x1f & (ch >> 6))); in encode() 98 dst[offset++] = (byte) (0x80 | (0x3f & ch)); in encode() 100 dst[offset++] = (byte) (0xe0 | (0x0f & (ch >> 12))); in encode() [all …]
|
/frameworks/minikin/tests/unittest/ |
D | SparseBitSetTest.cpp | 40 uint32_t ch = 0; in TEST() local 45 for (; ch < start; ch++) { in TEST() 46 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch; in TEST() 48 for (; ch < end; ch++) { in TEST() 49 ASSERT_TRUE(bitset.get(ch)) << std::hex << ch; in TEST() 52 for (; ch < 0x1FFFFFF; ++ch) { in TEST() 53 ASSERT_FALSE(bitset.get(ch)) << std::hex << ch; in TEST()
|
/frameworks/av/services/camera/libcameraservice/device3/ |
D | RotateAndCropMapper.cpp | 77 int32_t ch = mArrayHeight; in updateCaptureRequest() local 83 ch = entry.data.i32[3]; in updateCaptureRequest() 129 float cropAspect = static_cast<float>(cw) / ch; in updateCaptureRequest() 139 yShift = ch; in updateCaptureRequest() 142 ch * mRotateAspect : // pillarbox, not full width in updateCaptureRequest() 145 ch : // pillarbox or 1:1, full height in updateCaptureRequest() 149 transformMat[1] = -rw / ch; // +y -> -x in updateCaptureRequest() 152 yShift = (ch - rh) / 2; // top edge of crop to top edge of rotated in updateCaptureRequest() 155 transformMat[1] = rw / ch; // +y -> +x in updateCaptureRequest() 158 yShift = (ch + rh) / 2; // top edge of crop to bottom edge of rotated in updateCaptureRequest() [all …]
|
/frameworks/av/media/libeffects/dynamicsproc/aidl/ |
D | DynamicsProcessingContext.cpp | 199 for (int32_t ch = 0; ch < mChannelCount; ch++) { in getMbcBand() local 200 auto mbc = getMbc_l(ch); in getMbcBand() 209 bands.push_back({.channel = ch, in getMbcBand() 229 for (int32_t ch = 0; ch < mChannelCount; ch++) { in getLimiter() local 230 auto limiter = getLimiter_l(ch); in getLimiter() 234 ret.push_back({.channel = ch, in getLimiter() 248 for (int32_t ch = 0; ch < mChannelCount; ch++) { in getInputGain() local 249 auto channel = getChannel_l(ch); in getInputGain() 253 ret.push_back({.channel = ch, .gainDb = channel->getInputGain()}); in getInputGain() 286 dp_fx::DPEq* DynamicsProcessingContext::getPreEq_l(int ch) { in getPreEq_l() argument [all …]
|
D | DynamicsProcessingContext.h | 93 dp_fx::DPChannel* getChannel_l(int ch); 94 dp_fx::DPEq* getPreEq_l(int ch); 95 dp_fx::DPEq* getPostEq_l(int ch); 96 dp_fx::DPMbc* getMbc_l(int ch); 97 dp_fx::DPLimiter* getLimiter_l(int ch); 98 dp_fx::DPBandStage* getStageWithType_l(StageType type, int ch); 99 dp_fx::DPEq* getEqWithType_l(StageType type, int ch); 118 inline bool validateChannel(int ch, int maxCh) { return ch >= 0 && ch < maxCh; } in validateChannel() argument
|
/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 …]
|
/frameworks/base/core/java/android/content/pm/ |
D | LauncherActivityInfo.java | 227 private static boolean isTrimmable(@NonNull Paint paint, @NonNull CharSequence ch) { in isTrimmable() argument 229 Objects.requireNonNull(ch); in isTrimmable() 233 if (TextUtils.isEmpty(ch) in isTrimmable() 234 || Character.codePointCount(ch, /* beginIndex= */ 0, ch.length()) != 1) { in isTrimmable() 241 return TRIMMABLE_CHARACTERS.contains(ch) || !paint.hasGlyph(ch.toString()); in isTrimmable() 271 String ch = new String(new int[]{codePoints[i]}, /* offset= */ 0, /* count= */ 1); in trimStart() local 272 if (!isTrimmable(paint, ch)) { in trimStart() 275 trimCount += ch.length(); in trimStart() 310 String ch = new String(new int[]{codePoints[i]}, /* offset= */ 0, /* count= */ 1); in trimEnd() local 311 if (!isTrimmable(paint, ch)) { in trimEnd() [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 | 272 char ch = text.charAt(nextChar++); in parseText() local 273 switch (ch) { in parseText() 280 default: buf.append(ch); break; in parseText() 374 char ch = text.charAt(index); in parseURL() local 375 if ((ch != '.') && !isDomainChar(ch)) { in parseURL() 392 char ch = text.charAt(index + 1); in parseURL() local 393 if (Character.isDigit(ch)) { in parseURL() 411 char ch = text.charAt(index); in parseURL() local 412 if (ch == '?') { in parseURL() 423 } else if (isPunctuation(ch)) { in parseURL() [all …]
|
/frameworks/native/libs/input/ |
D | KeyCharacterMap.cpp | 293 char16_t ch = chars[i]; in getEvents() local 294 if (!findKey(ch, &keyCode, &metaState)) { in getEvents() 297 deviceId, toString(chars, numChars).c_str(), ch); in getEvents() 473 bool KeyCharacterMap::findKey(char16_t ch, int32_t* outKeyCode, int32_t* outMetaState) const { in findKey() argument 474 if (!ch) { in findKey() 483 if (behavior.character == ch) { in findKey() 979 char ch = mTokenizer->nextChar(); in parseKeyProperty() local 980 if (ch == ':') { in parseKeyProperty() 982 } else if (ch == ',') { in parseKeyProperty() 1002 char ch = mTokenizer->peekChar(); in parseKeyProperty() local [all …]
|
/frameworks/av/media/libaaudio/src/flowgraph/ |
D | ManyToMultiConverter.cpp | 34 for (int ch = 0; ch < channelCount; ch++) { in onProcess() local 35 const float *inputBuffer = inputs[ch]->getBuffer(); in onProcess() 36 float *outputBuffer = output.getBuffer() + ch; in onProcess()
|
D | MultiToManyConverter.cpp | 36 for (int ch = 0; ch < channelCount; ch++) { in onProcess() local 37 const float *inputBuffer = input.getBuffer() + ch; in onProcess() 38 float *outputBuffer = outputs[ch]->getBuffer(); in onProcess()
|
/frameworks/base/apct-tests/perftests/core/src/android/libcore/ |
D | StringIterationPerfTest.java | 40 char ch; in timeStringIteration0() local 42 ch = s.charAt(i); in timeStringIteration0() 52 char ch; in timeStringIteration1() local 54 ch = s.charAt(i); in timeStringIteration1() 64 char ch; in timeStringIteration2() local 67 ch = chars[i]; in timeStringIteration2()
|
/frameworks/base/core/java/android/text/method/ |
D | NumberKeyListener.java | 180 final char ch = pattern.charAt(i); in addFormatCharsFromSkeleton() local 181 if (Character.isSurrogate(ch)) { // characters outside BMP are not supported. in addFormatCharsFromSkeleton() 183 } else if (ch == SINGLE_QUOTE) { in addFormatCharsFromSkeleton() 193 if (symbolsToIgnore.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 196 } else if (DATE_TIME_FORMAT_SYMBOLS.indexOf(ch) != -1) { in addFormatCharsFromSkeleton() 203 collection.add(Character.valueOf(ch)); in addFormatCharsFromSkeleton() 232 final char ch = amPm[i].charAt(j); in addAmPmChars() local 233 if (Character.isBmpCodePoint(ch)) { in addAmPmChars() 234 collection.add(Character.valueOf(ch)); in addAmPmChars() 248 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()
|