Home
last modified time | relevance | path

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

12345678

/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc119 struct ha_stream_common common; member
126 struct ha_stream_common common; member
155 static void ha_open_ctrl_path(struct ha_stream_common* common);
335 static int ha_ctrl_receive(struct ha_stream_common* common, void* buffer, in ha_ctrl_receive() argument
341 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in ha_ctrl_receive()
360 skt_disconnect(common->ctrl_fd); in ha_ctrl_receive()
361 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in ha_ctrl_receive()
369 static int ha_ctrl_send(struct ha_stream_common* common, const void* buffer, in ha_ctrl_send() argument
378 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in ha_ctrl_send()
401 skt_disconnect(common->ctrl_fd); in ha_ctrl_send()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc132 struct a2dp_stream_common common; member
139 struct a2dp_stream_common common; member
171 static void a2dp_open_ctrl_path(struct a2dp_stream_common* common);
351 static int a2dp_ctrl_receive(struct a2dp_stream_common* common, void* buffer, in a2dp_ctrl_receive() argument
357 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive()
376 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive()
377 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive()
385 static int a2dp_ctrl_send(struct a2dp_stream_common* common, const void* buffer, in a2dp_ctrl_send() argument
394 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in a2dp_ctrl_send()
417 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_send()
[all …]
/system/bt/embdrv/sbc/decoder/srce/
Dbitalloc-sbc.c34 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
50 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in stereoBitAllocation()
59 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference); in stereoBitAllocation()
60 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1, in stereoBitAllocation()
65 bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds.uint32, in stereoBitAllocation()
[all …]
Ddecoder-sbc.c69 context->common.frameInfo.enhanced = in FindSyncword()
87 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
102 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * in DecodeBody()
103 context->common.frameInfo.nrof_subbands; in DecodeBody()
111 (sizeof(int16_t) * frameSamples * context->common.pcmStride) && in DecodeBody()
118 context->common.frameInfo.nrof_subbands * in DecodeBody()
119 context->common.pcmStride) { in DecodeBody()
127 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
130 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
133 if (context->common.frameInfo.mode == SBC_JOINT_STEREO) { in DecodeBody()
[all …]
Ddecoder-private.c66 status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes, in internal_DecoderReset()
73 context->common.codecInfo = OI_Codec_Copyright; in internal_DecoderReset()
74 context->common.maxBitneed = 0; in internal_DecoderReset()
76 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in internal_DecoderReset()
88 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT* common, in OI_SBC_ReadHeader() argument
90 OI_CODEC_SBC_FRAME_INFO* frame = &common->frameInfo; in OI_SBC_ReadHeader()
131 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT* common, in OI_SBC_ReadScalefactors() argument
133 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels; in OI_SBC_ReadScalefactors()
134 int8_t* scale_factor = common->scale_factor; in OI_SBC_ReadScalefactors()
137 if (common->frameInfo.nrof_subbands == 8 || in OI_SBC_ReadScalefactors()
[all …]
Dsynthesis-sbc.c281 OI_UINT nrof_channels = context->common.frameInfo.nrof_channels; in OI_SBC_SynthFrame_80()
282 OI_UINT pcmStrideShift = context->common.pcmStride == 1 ? 0 : 1; in OI_SBC_SynthFrame_80()
283 OI_UINT offset = context->common.filterBufferOffset; in OI_SBC_SynthFrame_80()
284 int32_t* s = context->common.subdata + 8 * nrof_channels * blkstart; in OI_SBC_SynthFrame_80()
290 context->common.filterBuffer[0] + context->common.filterBufferLen - in OI_SBC_SynthFrame_80()
292 context->common.filterBuffer[0]); in OI_SBC_SynthFrame_80()
295 context->common.filterBuffer[1] + context->common.filterBufferLen - in OI_SBC_SynthFrame_80()
297 context->common.filterBuffer[1]); in OI_SBC_SynthFrame_80()
299 offset = context->common.filterBufferLen - 80; in OI_SBC_SynthFrame_80()
305 DCT2_8(context->common.filterBuffer[ch] + offset, s); in OI_SBC_SynthFrame_80()
[all …]
Dalloc.c29 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()
52 maxChannels * sizeof(common->subdata[0]) * SBC_MAX_BANDS * SBC_MAX_BLOCKS; in OI_CODEC_SBC_Alloc()
59 (sizeof(common->filterBuffer[0][0]) * SBC_MAX_BANDS * maxChannels); in OI_CODEC_SBC_Alloc()
63 common->filterBufferLen = filterBufferCount * SBC_MAX_BANDS; in OI_CODEC_SBC_Alloc()
66 common->subdata = (int32_t*)codecData; in OI_CODEC_SBC_Alloc()
74 common->filterBufferLen * sizeof(common->filterBuffer[0][0]); in OI_CODEC_SBC_Alloc()
75 common->filterBuffer[i] = (SBC_BUFFER_T*)codecData; in OI_CODEC_SBC_Alloc()
Ddecoder-oina.c73 context->common.frameInfo.enhanced = enhanced; in OI_CODEC_SBC_DecoderConfigureRaw()
75 context->common.frameInfo.enhanced = FALSE; in OI_CODEC_SBC_DecoderConfigureRaw()
77 context->common.frameInfo.freqIndex = frequency; in OI_CODEC_SBC_DecoderConfigureRaw()
78 context->common.frameInfo.mode = mode; in OI_CODEC_SBC_DecoderConfigureRaw()
79 context->common.frameInfo.subbands = subbands; in OI_CODEC_SBC_DecoderConfigureRaw()
80 context->common.frameInfo.blocks = blocks; in OI_CODEC_SBC_DecoderConfigureRaw()
81 context->common.frameInfo.alloc = alloc; in OI_CODEC_SBC_DecoderConfigureRaw()
82 context->common.frameInfo.bitpool = maxBitpool; in OI_CODEC_SBC_DecoderConfigureRaw()
84 OI_SBC_ExpandFrameFields(&context->common.frameInfo); in OI_CODEC_SBC_DecoderConfigureRaw()
86 if (context->common.frameInfo.nrof_channels >= context->common.pcmStride) { in OI_CODEC_SBC_DecoderConfigureRaw()
Dbitalloc.c124 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common, uint8_t* bitneeds, in computeBitneed() argument
134 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands; in computeBitneed()
136 int8_t* scale_factor = &common->scale_factor[ch ? nrof_subbands : 0]; in computeBitneed()
141 if (common->frameInfo.alloc == SBC_SNR) { in computeBitneed()
156 offset = offset4[common->frameInfo.freqIndex]; in computeBitneed()
158 offset = offset8[common->frameInfo.freqIndex]; in computeBitneed()
179 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed); in computeBitneed()
332 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common, in oneChannelBitAllocation() argument
335 const uint8_t nrof_subbands = common->frameInfo.nrof_subbands; in oneChannelBitAllocation()
343 bitadjust = adjustToFitBitpool(common->frameInfo.bitpool, bitneeds->uint32, in oneChannelBitAllocation()
[all …]
Dreadsamplesjoint.inc27 void OI_SBC_ReadSamplesJoint4(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
34 void OI_SBC_ReadSamplesJoint8(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
43 void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_COMMON_CONTEXT *common, OI_BITSTREAM *global_bs)
45 OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
60 OI_CODEC_SBC_COMMON_CONTEXT *common = &context->common;
61 OI_UINT bl = common->frameInfo.nrof_blocks;
62 int32_t * RESTRICT s = common->subdata;
66 uint8_t jmask = common->frameInfo.join << (8 - NROF_SUBBANDS);
69 int8_t *sf_array = &common->scale_factor[0];
70 uint8_t *bits_array = &common->bits.uint8[0];
/system/update_engine/scripts/update_payload/
Dapplier.py27 from update_payload import common
67 (name, common.FormatSha256(actual_hash),
68 common.FormatSha256(expected_hash)))
94 if ex.start_block == common.PSEUDO_EXTENT_MARKER:
122 for ex, ex_name in common.ExtentIter(extents, base_name):
128 if ex.start_block != common.PSEUDO_EXTENT_MARKER:
162 for ex, ex_name in common.ExtentIter(extents, base_name):
166 is_pseudo = ex.start_block == common.PSEUDO_EXTENT_MARKER
235 if op.type == common.OpType.REPLACE_BZ:
241 for ex, ex_name in common.ExtentIter(op.dst_extents,
[all …]
Dblock_tracer.py19 from update_payload import common
57 for op, op_name in common.OperationIter(operations, base_name,
63 for dst_ex, dst_ex_name in common.ExtentIter(op.dst_extents,
73 (block, dst_ex_name, common.FormatExtent(dst_ex),
82 if op.type != common.OpType.MOVE:
86 for src_ex, src_ex_name in common.ExtentIter(op.src_extents,
92 (src_ex_name, common.FormatExtent(src_ex), block))
Dchecker_unittest.py24 from update_payload import common
34 'REPLACE': common.OpType.REPLACE,
35 'REPLACE_BZ': common.OpType.REPLACE_BZ,
36 'MOVE': common.OpType.MOVE,
37 'BSDIFF': common.OpType.BSDIFF,
38 'SOURCE_COPY': common.OpType.SOURCE_COPY,
39 'SOURCE_BSDIFF': common.OpType.SOURCE_BSDIFF,
40 'ZERO': common.OpType.ZERO,
41 'DISCARD': common.OpType.DISCARD,
42 'REPLACE_XZ': common.OpType.REPLACE_XZ,
[all …]
Dchecker.py24 from update_payload import common
464 if len(signed_data) != len(common.SIG_ASN1_HEADER) + 32:
468 if not signed_data.startswith(common.SIG_ASN1_HEADER):
472 signed_hash = signed_data[len(common.SIG_ASN1_HEADER):]
476 (sig_name, common.FormatSha256(signed_hash),
477 common.FormatSha256(actual_hash)))
582 convert=common.FormatSha256)
586 convert=common.FormatSha256)
610 convert=common.FormatSha256)
618 convert=common.FormatSha256)
[all …]
/system/bt/service/
DBUILD.gn20 "common/bluetooth/adapter_state.cc",
21 "common/bluetooth/advertise_data.cc",
22 "common/bluetooth/advertise_settings.cc",
23 "common/bluetooth/characteristic.cc",
24 "common/bluetooth/descriptor.cc",
25 "common/bluetooth/scan_filter.cc",
26 "common/bluetooth/scan_result.cc",
27 "common/bluetooth/scan_settings.cc",
28 "common/bluetooth/service.cc",
29 "common/bluetooth/util/atomic_string.cc",
[all …]
DAndroid.bp2 "common",
75 "libbluetooth-binder-common",
103 "system/bt/service/common",
108 "libbluetooth-common",
123 "libbluetooth-binder-common",
154 "libbluetooth-binder-common",
173 "libbluetooth-binder-common",
/system/update_engine/
Dupdate_engine.gyp90 'includes': ['../../../platform2/common-mk/protoc.gypi'],
103 'includes': ['../../../platform2/common-mk/generate-dbus-adaptors.gypi'],
117 'includes': ['../../../platform2/common-mk/generate-dbus-proxies.gypi'],
120 # The payload application component and common dependencies.
157 'common/action_processor.cc',
158 'common/boot_control_stub.cc',
159 'common/clock.cc',
160 'common/constants.cc',
161 'common/cpu_limiter.cc',
162 'common/error_code_utils.cc',
[all …]
DAndroid.mk116 common/action_processor.cc \
117 common/boot_control_stub.cc \
118 common/clock.cc \
119 common/constants.cc \
120 common/cpu_limiter.cc \
121 common/error_code_utils.cc \
122 common/file_fetcher.cc \
123 common/hash_calculator.cc \
124 common/http_common.cc \
125 common/http_fetcher.cc \
[all …]
/system/tpm/attestation/
Dattestation.gyp44 'proto_in_dir': 'common',
45 'proto_out_dir': 'include/attestation/common',
49 '<(proto_in_dir)/common.proto',
52 'common/print_common_proto.cc',
53 'common/print_interface_proto.cc',
55 'includes': ['../../../../platform2/common-mk/protoc.gypi'],
57 # A library for common code.
62 'common/crypto_utility_impl.cc',
63 'common/tpm_utility_v1.cc',
165 'includes': ['../../../../platform2/common-mk/common_test.gypi'],
[all …]
/system/tpm/tpm_manager/
Dtpm_manager.gyp19 'includes': ['../../../../platform2/common-mk/common.gypi'],
45 'proto_in_dir': 'common',
46 'proto_out_dir': 'include/tpm_manager/common',
52 'common/print_local_data_proto.cc',
53 'common/print_tpm_nvram_interface_proto.cc',
54 'common/print_tpm_ownership_interface_proto.cc',
56 'includes': ['../../../../platform2/common-mk/protoc.gypi'],
147 'includes': ['../../../../platform2/common-mk/common_test.gypi'],
157 'common/mock_tpm_nvram_interface.cc',
158 'common/mock_tpm_ownership_interface.cc',
/system/bt/service/common/
DREADME1 This directory contains all the "common" sources between the bluetooth daemon
4 Only common files should go here. All headers that go into common/bluetooth must
5 only include other headers from common/bluetooth and must use "bluetooth" as the
11 one common include path exported to them, and our headers can find eachother
/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.h136 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common, uint8_t* bitneeds,
139 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common,
155 void monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common);
157 typedef void (*BIT_ALLOC)(OI_CODEC_SBC_COMMON_CONTEXT* common);
206 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT* common,
208 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT* common,
210 PRIVATE void OI_SBC_ReadSamples(OI_CODEC_SBC_DECODER_CONTEXT* common,
212 PRIVATE void OI_SBC_ReadSamplesJoint(OI_CODEC_SBC_DECODER_CONTEXT* common,
224 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT* common,
/system/tools/hidl/c2hal/test/
Dsimple.h38 struct hw_device_t common; member
79 return device->common.close(&device->common); in hideColor()
/system/media/audio/include/system/
Dsound_trigger.h124 struct sound_trigger_sound_model common; member
134 struct sound_trigger_sound_model common; member
194 struct sound_trigger_recognition_event common; member
200 struct sound_trigger_recognition_event common; member

12345678