/system/bt/embdrv/sbc/decoder/srce/ |
D | dequant.c | 133 INLINE float dequant_float(uint32_t raw, OI_UINT scale_factor, OI_UINT bits) { in dequant_float() argument 135 ((raw * 2.0f + 1.0f) / ((1 << bits) - 1.0f) - 1.0f); in dequant_float() 152 OI_UINT bits) { in OI_SBC_Dequant() argument 157 OI_ASSERT(bits <= 16); in OI_SBC_Dequant() 159 if (bits <= 1) { in OI_SBC_Dequant() 164 d *= dequant_long_scaled[bits]; in OI_SBC_Dequant() 172 float_result = dequant_float(raw, scale_factor, bits); in OI_SBC_Dequant() 191 OI_UINT bits) { in OI_SBC_Dequant_Unscaled() argument 196 OI_ASSERT(bits <= 16); in OI_SBC_Dequant_Unscaled() 198 if (bits <= 1) { in OI_SBC_Dequant_Unscaled() [all …]
|
D | bitalloc.c | 143 OI_INT bits = scale_factor[sb]; in computeBitneed() local 144 if (bits > maxBits) { in computeBitneed() 145 maxBits = bits; in computeBitneed() 147 bitneeds[sb] = bits; in computeBitneed() 149 bitcount += bits; in computeBitneed() 151 prefBits += 2 + bits; in computeBitneed() 161 OI_INT bits = scale_factor[sb]; in computeBitneed() local 162 if (bits > maxBits) { in computeBitneed() 163 maxBits = bits; in computeBitneed() 165 prefBits += 2 + bits; in computeBitneed() [all …]
|
D | bitalloc-sbc.c | 73 excess = allocAdjustedBits(&common->bits.uint8[sbL], in stereoBitAllocation() 76 excess = allocAdjustedBits(&common->bits.uint8[sbR], in stereoBitAllocation() 83 excess = allocExcessBits(&common->bits.uint8[sbL], excess); in stereoBitAllocation() 88 excess = allocExcessBits(&common->bits.uint8[sbR], excess); in stereoBitAllocation() 134 uint16_t bits; in OI_CODEC_SBC_CalculateBitpool() local 148 bits = 8 * (frameLen - SBC_HEADER_LEN) - hdr; in OI_CODEC_SBC_CalculateBitpool() 149 return DIVIDE(bits, nrof_blocks); in OI_CODEC_SBC_CalculateBitpool()
|
D | decoder-private.c | 193 uint32_t bits_by4 = common->bits.uint32[i]; in OI_SBC_ReadSamples() 197 OI_UINT bits; in OI_SBC_ReadSamples() local 201 bits = bits_by4 & 0xFF; in OI_SBC_ReadSamples() 206 bits = (bits_by4 >> 24) & 0xFF; in OI_SBC_ReadSamples() 211 if (bits) { in OI_SBC_ReadSamples() 213 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); in OI_SBC_ReadSamples() 214 dequant = OI_SBC_Dequant(raw, sf, bits); in OI_SBC_ReadSamples()
|
D | readsamplesjoint.inc | 70 uint8_t *bits_array = &common->bits.uint8[0]; 80 uint8_t bits = *bits_array++; 83 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); 84 dequant = OI_SBC_Dequant(raw, sf, bits); 94 uint8_t bits = *bits_array++; 97 OI_BITSTREAM_READUINT(raw, bits, ptr, value, bitPtr); 98 dequant = OI_SBC_Dequant(raw, sf, bits);
|
D | bitstream-decode.c | 48 PRIVATE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits) { in OI_BITSTREAM_ReadUINT() argument 51 OI_BITSTREAM_READUINT(result, bits, bs->ptr.r, bs->value, bs->bitPtr); in OI_BITSTREAM_ReadUINT()
|
/system/bt/embdrv/sbc/decoder/include/ |
D | oi_bitstream.h | 47 INLINE uint32_t OI_BITSTREAM_ReadUINT(OI_BITSTREAM* bs, OI_UINT bits); 54 OI_UINT bits); 78 #define OI_BITSTREAM_READUINT(result, bits, ptr, value, bitPtr) \ argument 80 OI_ASSERT((bits) <= 16); \ 85 (result) >>= 32 - (bits); \ 87 (bitPtr) += (bits); \ 92 OI_ASSERT(((bits) == 0) || ((result) < (1u << (bits)))); \ 95 #define OI_BITSTREAM_WRITEUINT(ptr, value, bitPtr, datum, bits) \ argument 97 (bitPtr) -= (bits); \
|
/system/bt/gd/packet/parser/fields/ |
D | scalar_field.cc | 55 num_leading_bits = start_offset.bits() % 8; in GenBounds() 58 num_leading_bits = GetShiftBits(end_offset.bits() + size.bits()); in GenBounds() 59 Size byte_offset = Size(num_leading_bits + size.bits()) + end_offset; in GenBounds() 72 std::string extract_type = util::GetTypeForSize(size.bits() + num_leading_bits); in GenExtractor() 80 if (util::RoundSizeUp(size.bits()) != size.bits()) { in GenExtractor() 82 for (int i = 0; i < size.bits(); i++) { in GenExtractor() 114 return util::RoundSizeUp(GetSize().bits()) != GetSize().bits(); in HasParameterValidator() 118 s << "ASSERT(" << GetName() << " < (static_cast<uint64_t>(1) << " << GetSize().bits() << "));"; in GenParameterValidator() 122 if (GetSize().bits() == 8) { in GenInserter() 125 s << "insert(" << GetName() << "_, i," << GetSize().bits() << ");"; in GenInserter()
|
D | reserved_field.cc | 63 …(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">(0) /* Reserved */, i, " << GetSize(… in GenInserter()
|
D | enum_field.cc | 47 s << "insert(static_cast<" << util::GetTypeForSize(GetSize().bits()) << ">("; in GenInserter() 48 s << GetName() << "_), i, " << GetSize().bits() << ");"; in GenInserter()
|
/system/media/audio/include/system/ |
D | audio.h | 227 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_channel_mask_is_valid() local 234 bits = 0; in audio_channel_mask_is_valid() 237 return bits != 0; in audio_channel_mask_is_valid() 242 audio_channel_representation_t representation, uint32_t bits) in audio_channel_mask_from_representation_and_bits() argument 244 return (audio_channel_mask_t) ((representation << AUDIO_CHANNEL_COUNT_MAX) | bits); in audio_channel_mask_from_representation_and_bits() 813 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_input_channel() local 816 if (bits & ~AUDIO_CHANNEL_IN_ALL) { in audio_is_input_channel() 817 bits = 0; in audio_is_input_channel() 821 return bits != 0; in audio_is_input_channel() 835 uint32_t bits = audio_channel_mask_get_bits(channel); in audio_is_output_channel() local [all …]
|
/system/tools/hidl/test/ |
D | run_all_host_tests.sh | 30 for bits in ${BITNESS[@]}; do 32 echo $bits $test 33 $ANDROID_BUILD_TOP/out/host/linux-x86/$bits/$test/$test || 34 FAILED_TESTS+=("$bits:$test")
|
D | run_all_device_tests.sh | 38 for bits in ${BITNESS[@]}; do 39 local test_binary="/data/$bits/$test/$test" 45 SKIPPED_TESTS+=("$bits:$test") 50 adb shell $test_binary || FAILED_TESTS+=("$bits:$test")
|
/system/bt/gd/packet/parser/ |
D | size.h | 28 Size(int bits) { in Size() argument 30 bits_ = bits; in Size() 38 Size(int bits, std::string dynamic) { in Size() argument 40 bits_ = bits; in Size() 77 int bits() const { in bits() function
|
D | util.h | 54 inline uint64_t GetMaxValueForBits(int bits) { in GetMaxValueForBits() argument 55 if (bits > 64) { in GetMaxValueForBits() 56 ERROR() << __func__ << ": Cannot use a type larger than 64 bits. (" << bits << ")\n"; in GetMaxValueForBits() 60 return ~(static_cast<uint64_t>(0)) >> (64 - bits); in GetMaxValueForBits()
|
D | parent_def.cc | 140 if (offset.bits() % 8 != 0) { in GetSize() 143 if (offset.has_bits()) custom_field_size << " + " << offset.bits() / 8; in GetSize() 368 … s << "ASSERT(payload_bytes < (static_cast<size_t>(1) << " << field->GetSize().bits() << "));"; in GenSerialize() 369 …static_cast<" << field->GetDataType() << ">(payload_bytes), i," << field->GetSize().bits() << ");"; in GenSerialize() 374 …s << "ASSERT((size() - local_size) < (static_cast<size_t>(1) << " << field->GetSize().bits() << ")… in GenSerialize() 375 …rt(static_cast<" << field->GetDataType() << ">(size() - local_size), i," << field->GetSize().bits() in GenSerialize() 397 s << "ASSERT(" << vector_name + "bytes < (1 << " << field->GetSize().bits() << "));"; in GenSerialize() 399 s << field->GetSize().bits() << ");"; in GenSerialize() 420 s << "insert(" << vector_name << ".size(), i, " << field->GetSize().bits() << ");"; in GenSerialize()
|
/system/core/toolbox/ |
D | getevent.c | 65 uint8_t bits[INPUT_PROP_CNT / 8]; in print_input_props() local 72 res = ioctl(fd, EVIOCGPROP(sizeof(bits)), bits); in print_input_props() 80 if (bits[i] & 1 << j) { in print_input_props() 97 uint8_t *bits = NULL; in print_possible_events() local 109 res = ioctl(fd, EVIOCGBIT(i, bits_size), bits); in print_possible_events() 113 bits = realloc(bits, bits_size * 2); in print_possible_events() 114 if(bits == NULL) in print_possible_events() 120 res2 = ioctl(fd, EVIOCGKEY(res), bits + bits_size); in print_possible_events() 137 res2 = ioctl(fd, EVIOCGLED(res), bits + bits_size); in print_possible_events() 142 res2 = ioctl(fd, EVIOCGSND(res), bits + bits_size); in print_possible_events() [all …]
|
/system/media/alsa_utils/ |
D | alsa_format.c | 88 int num_slots = ARRAY_SIZE(mask->bits); in get_pcm_format_for_mask() 89 int bits_per_slot = sizeof(mask->bits[0]) * 8; in get_pcm_format_for_mask() 99 if (table_index >= 2 && (mask->bits[slot_index] & bit_mask) != 0) { in get_pcm_format_for_mask()
|
D | alsa_logging.c | 33 const size_t num_slots = ARRAY_SIZE(mask->bits); in log_pcm_mask() 34 const size_t bits_per_slot = (sizeof(mask->bits[0]) * 8); in log_pcm_mask() 47 strcat(buff, (mask->bits[slot_index] & bit_mask) != 0 ? "1" : "0"); in log_pcm_mask()
|
/system/teeui/libteeui/include/teeui/ |
D | log.h | 27 #define TEEUI_LOG ::teeui::bits::silencer 32 namespace bits {
|
/system/memory/libmeminfo/ |
D | meminfo_private.h | 28 #define _BITS(x, offset, bits) (((x) >> (offset)) & ((1LL << (bits)) - 1)) argument
|
/system/core/libunwindstack/ |
D | ArmExidx.cpp | 262 uint8_t bits = byte & 0xf; in DecodePrefix_10_01() local 263 if (bits == 13 || bits == 15) { in DecodePrefix_10_01() 275 log(log_indent_, "vsp = r%d", bits); in DecodePrefix_10_01() 277 log_regs_[LOG_CFA_REG] = bits; in DecodePrefix_10_01() 286 cfa_ = (*regs_)[bits]; in DecodePrefix_10_01() 569 uint8_t bits = byte & 0x7; in DecodePrefix_11_000() local 570 if (bits == 6) { in DecodePrefix_11_000() 595 } else if (bits == 7) { in DecodePrefix_11_000() 668 uint8_t bits = byte & 0x7; in DecodePrefix_11_001() local 669 if (bits == 0) { in DecodePrefix_11_001() [all …]
|
/system/bt/stack/a2dp/ |
D | a2dp_sbc_up_sample.cc | 36 uint8_t bits; /* number of bits per pcm sample */ member 59 void a2dp_sbc_init_up_sample(uint32_t src_sps, uint32_t dst_sps, uint8_t bits, in a2dp_sbc_init_up_sample() argument 64 a2dp_sbc_ups_cb.bits = bits; in a2dp_sbc_init_up_sample() 69 if (bits == 8) { in a2dp_sbc_init_up_sample() 78 if (bits == 8) { in a2dp_sbc_init_up_sample()
|
/system/extras/simpleperf/ |
D | event_attr.cpp | 30 static std::string BitsToString(const std::string& name, uint64_t bits, in BitsToString() argument 34 if (bits & p.first) { in BitsToString() 35 bits &= ~p.first; in BitsToString() 42 if (bits != 0) { in BitsToString() 43 LOG(DEBUG) << "unknown " << name << " bits: " << std::hex << bits; in BitsToString()
|
/system/extras/tests/framebuffer/ |
D | fb_test.c | 55 void *bits; in get_framebuffer() local 88 bits = mmap(0, fi.smem_len, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in get_framebuffer() 89 if(bits == MAP_FAILED) { in get_framebuffer() 99 fb->data = bits; in get_framebuffer() 107 fb->data = (void *)((unsigned long)bits + in get_framebuffer()
|