Home
last modified time | relevance | path

Searched refs:common (Results 1 – 25 of 65) sorted by relevance

123

/system/bt/audio_a2dp_hw/
Daudio_a2dp_hw.c109 struct a2dp_stream_common common; member
116 struct a2dp_stream_common common; member
303 static int a2dp_ctrl_receive(struct a2dp_stream_common *common, void* buffer, int length) in a2dp_ctrl_receive() argument
305 int ret = TEMP_FAILURE_RETRY(recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive()
312 ret = TEMP_FAILURE_RETRY(recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive()
316 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive()
317 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive()
323 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive()
324 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive()
332 static int a2dp_command(struct a2dp_stream_common *common, char cmd) in a2dp_command() argument
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc-sbc.c33 static void dualBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in dualBitAllocation() argument
42 bitcountL = computeBitneed(common, bitneedsL.uint8, 0, &bitpoolPreferenceL); in dualBitAllocation()
43 bitcountR = computeBitneed(common, bitneedsR.uint8, 1, &bitpoolPreferenceR); in dualBitAllocation()
45 oneChannelBitAllocation(common, &bitneedsL, 0, bitcountL); in dualBitAllocation()
46 oneChannelBitAllocation(common, &bitneedsR, 1, bitcountR); in dualBitAllocation()
49 static void stereoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common) in stereoBitAllocation() argument
51 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
60 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
61 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, &bitpoolPreference); in stereoBitAllocation()
65 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, 2 * nrof_subbands, bitc… in stereoBitAllocation()
[all …]
Ddecoder-sbc.c70 context->common.frameInfo.enhanced = (**frameData == OI_SBC_ENHANCED_SYNCWORD); in FindSyncword()
87 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
105 …OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * context->common.frameInfo.nrof_subb… in DecodeBody()
111 … if (*pcmBytes < (sizeof(OI_INT16) * frameSamples * context->common.pcmStride) && !allowPartial) { in DecodeBody()
116 …} else if (*pcmBytes < sizeof (OI_INT16) * context->common.frameInfo.nrof_subbands * context->comm… in DecodeBody()
124 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
127 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
130 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
136 context->bufferedBlocks = context->common.frameInfo.nrof_blocks; in DecodeBody()
140 …code_block_count = *pcmBytes / sizeof(OI_INT16) / context->common.pcmStride / context->common.fram… in DecodeBody()
[all …]
Ddecoder-private.c65 …status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, maxChannels, pcmStrid… in internal_DecoderReset()
71 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
72 context->common.maxBitneed = 0; in internal_DecoderReset()
74 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
88 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *data) in OI_SBC_ReadHeader() argument
90 OI_CODEC_SBC_FRAME_INFO *frame = &common->frameInfo; in OI_SBC_ReadHeader()
134 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_SBC_ReadScalefactors() argument
138 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
139 OI_INT8 *scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors()
142 if (common->frameInfo.nrof_subbands == 8 || common->frameInfo.mode != SBC_JOINT_STEREO) { in OI_SBC_ReadScalefactors()
[all …]
Dsynthesis-sbc.c262 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
263 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80()
264 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80()
265 OI_INT32 *s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80()
270 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[0] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
272 …_32BIT_ALIGNED_72_HALFWORDS(context->common.filterBuffer[1] + context->common.filterBufferLen - 72… in OI_SBC_SynthFrame_80()
274 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80()
280 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
281 SYNTH80(pcm + ch, context->common.filterBuffer[ch] + offset, pcmStrideShift); in OI_SBC_SynthFrame_80()
286 context->common.filterBufferOffset = offset; in OI_SBC_SynthFrame_80()
[all …]
Dalloc.c27 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT *common, in OI_CODEC_SBC_Alloc() argument
46 common->maxChannels = maxChannels; in OI_CODEC_SBC_Alloc()
47 common->pcmStride = pcmStride; in OI_CODEC_SBC_Alloc()
51 subdataSize = maxChannels * sizeof(common->subdata[0]) * SBC_MAX_BANDS * SBC_MAX_BLOCKS; in OI_CODEC_SBC_Alloc()
56 …filterBufferCount = (codecDataBytes - subdataSize) / (sizeof(common->filterBuffer[0][0]) * SBC_MAX… in OI_CODEC_SBC_Alloc()
60 common->filterBufferLen = filterBufferCount * SBC_MAX_BANDS; in OI_CODEC_SBC_Alloc()
63 common->subdata = (OI_INT32*)codecData; in OI_CODEC_SBC_Alloc()
70 size_t allocSize = common->filterBufferLen * sizeof(common->filterBuffer[0][0]); in OI_CODEC_SBC_Alloc()
71 common->filterBuffer[i] = (SBC_BUFFER_T*)codecData; in OI_CODEC_SBC_Alloc()
Ddecoder-oina.c79 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw()
81 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw()
83 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
84 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
85 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw()
86 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
87 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
88 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw()
90 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw()
92 if (context->common.frameInfo.nrof_channels >= context->common.pcmStride) { in OI_CODEC_SBC_DecoderConfigureRaw()
Dbitalloc.c118 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common, in computeBitneed() argument
137 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
139 OI_INT8 *scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
144 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
158 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
160 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
180 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed); in computeBitneed()
342 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common, in oneChannelBitAllocation() argument
347 const OI_UINT8 nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
356 …bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, nrof_subbands, bitcoun… in oneChannelBitAllocation()
[all …]
Dreadsamplesjoint.inc26 void OI_SBC_ReadSamplesJoint4(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
33 void OI_SBC_ReadSamplesJoint8(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
42 void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
44 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
59 OI_CODEC_SBC_COMMON_CONTEXT *common = &context->common;
60 OI_UINT bl = common->frameInfo.nrof_blocks;
61 OI_INT32 * RESTRICT s = common->subdata;
65 OI_UINT8 jmask = common->frameInfo.join << (8 - NROF_SUBBANDS);
68 OI_INT8 *sf_array = &common->scale_factor[0];
69 OI_UINT8 *bits_array = &common->bits.uint8[0];
/system/core/include/system/
Dwindow.h92 common.magic = ANDROID_NATIVE_BUFFER_MAGIC; in ANativeWindowBuffer()
93 common.version = sizeof(ANativeWindowBuffer); in ANativeWindowBuffer()
94 memset(common.reserved, 0, sizeof(common.reserved)); in ANativeWindowBuffer()
100 common.incRef(const_cast<android_native_base_t*>(&common)); in incStrong()
103 common.decRef(const_cast<android_native_base_t*>(&common)); in decStrong()
107 struct android_native_base_t common; member
393 common.magic = ANDROID_NATIVE_WINDOW_MAGIC; in ANativeWindow()
394 common.version = sizeof(ANativeWindow); in ANativeWindow()
395 memset(common.reserved, 0, sizeof(common.reserved)); in ANativeWindow()
401 common.incRef(const_cast<android_native_base_t*>(&common)); in incStrong()
[all …]
/system/media/
DCleanSpec.mk48 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates)
49 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterpack_imageproc_inte…
50 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterpack_text_intermedi…
51 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterpack_ui_intermediat…
52 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterpack_videosrc_inter…
54 $(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/filterfw_intermediates)
/system/bt/embdrv/sbc/decoder/include/
Doi_codec_sbc_private.h129 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT *common,
134 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common,
157 void monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT *common);
159 typedef void (*BIT_ALLOC)(OI_CODEC_SBC_COMMON_CONTEXT *common);
209 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *data);
210 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT *common, const OI_BYTE *b, OI_BITS…
211 PRIVATE void OI_SBC_ReadSamples(OI_CODEC_SBC_DECODER_CONTEXT *common, OI_BITSTREAM *ob);
212 PRIVATE void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_DECODER_CONTEXT *common, OI_BITSTREAM *global_bs);
219 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT *common,
Doi_codec_sbc.h197 OI_CODEC_SBC_COMMON_CONTEXT common; member
436 OI_UINT16 OI_CODEC_SBC_CalculatePcmBytes(OI_CODEC_SBC_COMMON_CONTEXT *common);
/system/bt/test/suite/support/
Dhal.c56 bt_device->common.close((hw_device_t *)&bt_device->common); in hal_open()
73 bt_device->common.close((hw_device_t *)&bt_device->common); in hal_close()
/system/bt/gki/
DAndroid.mk6 $(LOCAL_PATH)/common \
24 ./common/gki_buffer.c \
/system/extras/tests/bionic/libc/
DAndroid.mk64 common/test_pthread_mutex.c \
65 common/test_pthread_rwlock.c \
DREADME.TXT14 common/
/system/keymaster/
Dsoft_keymaster_device.cpp45 .common =
120 static_assert(offsetof(SoftKeymasterDevice, device_.common) == 0, in SoftKeymasterDevice()
135 static_assert(offsetof(SoftKeymasterDevice, device_.common) == 0, in SoftKeymasterDevice()
156 module_name_ = device_.common.module->name; in SetHardwareDevice()
158 module_name_.append(keymaster0_device->common.module->name); in SetHardwareDevice()
161 updated_module_ = *device_.common.module; in SetHardwareDevice()
164 device_.common.module = &updated_module_; in SetHardwareDevice()
188 module_name_ = device_.common.module->name; in SetHardwareDevice()
190 module_name_.append(keymaster1_device->common.module->name); in SetHardwareDevice()
193 updated_module_ = *device_.common.module; in SetHardwareDevice()
[all …]
Dkeymaster0_engine.cpp51 rsa_method_.common.references = 0; in Keymaster0Engine()
52 rsa_method_.common.is_static = 1; in Keymaster0Engine()
75 ecdsa_method_.common.references = 0; in Keymaster0Engine()
76 ecdsa_method_.common.is_static = 1; in Keymaster0Engine()
91 keymaster0_device_->common.close( in ~Keymaster0Engine()
Dkeymaster1_engine.cpp64 keymaster1_device_->common.close( in ~Keymaster1Engine()
377 method.common.references = 0; in BuildRsaMethod()
378 method.common.is_static = 1; in BuildRsaMethod()
402 method.common.references = 0; in BuildEcdsaMethod()
403 method.common.is_static = 1; in BuildEcdsaMethod()
/system/media/audio/include/system/
Dsound_trigger.h127 struct sound_trigger_sound_model common; member
188 struct sound_trigger_recognition_event common; member
/system/bt/hci/
DAndroid.mk33 $(LOCAL_PATH)/../gki/common \
54 $(LOCAL_PATH)/../gki/common \
/system/core/fingerprintd/
DFingerprintDaemonProxy.cpp194 if (mModule->common.methods->open == NULL) { in openHal()
201 if (0 != (err = mModule->common.methods->open(hw_module, NULL, &device))) { in openHal()
234 if (0 != (err = mDevice->common.close(reinterpret_cast<hw_device_t*>(mDevice)))) { in closeHal()
/system/bt/device/
DAndroid.mk30 $(LOCAL_PATH)/../gki/common \
/system/security/softkeymaster/
Dkeymaster_openssl.cpp750 dev->common.tag = HARDWARE_DEVICE_TAG; in openssl_open()
751 dev->common.version = 1; in openssl_open()
752 dev->common.module = (struct hw_module_t*)module; in openssl_open()
753 dev->common.close = openssl_close; in openssl_open()
779 .common =

123