/system/bt/audio_hearing_aid_hw/src/ |
D | audio_hearing_aid_hw.cc | 119 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/ |
D | audio_a2dp_hw.cc | 132 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/ |
D | bitalloc-sbc.c | 34 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 …]
|
D | decoder-sbc.c | 69 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 …]
|
D | decoder-private.c | 66 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 …]
|
D | synthesis-sbc.c | 281 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 …]
|
D | alloc.c | 29 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()
|
D | decoder-oina.c | 73 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()
|
D | bitalloc.c | 124 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 …]
|
D | readsamplesjoint.inc | 27 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/bt/common/ |
D | time_util_unittest.cc | 31 uint64_t t1 = bluetooth::common::time_get_os_boottime_ms(); in TEST() 40 uint64_t t1 = bluetooth::common::time_get_os_boottime_us(); in TEST() 49 uint64_t t1 = bluetooth::common::time_get_os_boottime_ms(); in TEST() 50 uint64_t t2 = bluetooth::common::time_get_os_boottime_ms(); in TEST() 59 uint64_t t1 = bluetooth::common::time_get_os_boottime_us(); in TEST() 60 uint64_t t2 = bluetooth::common::time_get_os_boottime_us(); in TEST() 76 uint64_t t1 = bluetooth::common::time_get_os_boottime_ms(); in TEST() 78 uint64_t t2 = bluetooth::common::time_get_os_boottime_ms(); in TEST() 97 uint64_t t1 = bluetooth::common::time_get_os_boottime_us(); in TEST() 99 uint64_t t2 = bluetooth::common::time_get_os_boottime_us(); in TEST() [all …]
|
D | Android.bp | 2 name: "libbt-common", 57 "libbt-common", 80 "libbt-common" 100 "libbt-common" 123 "libbt-common",
|
/system/bt/service/ |
D | BUILD.gn | 24 "common/bluetooth/a2dp_codec_config.cc", 25 "common/bluetooth/adapter_state.cc", 26 "common/bluetooth/advertise_data.cc", 27 "common/bluetooth/advertise_settings.cc", 28 "common/bluetooth/avrcp_int_value.cc", 29 "common/bluetooth/avrcp_media_attr.cc", 30 "common/bluetooth/avrcp_register_notification_response.cc", 31 "common/bluetooth/characteristic.cc", 32 "common/bluetooth/descriptor.cc", 33 "common/bluetooth/remote_device_props.cc", [all …]
|
/system/update_engine/scripts/update_payload/ |
D | applier.py | 53 from update_payload import common 93 (name, common.FormatSha256(actual_hash), 94 common.FormatSha256(expected_hash))) 120 if ex.start_block == common.PSEUDO_EXTENT_MARKER: 148 for ex, ex_name in common.ExtentIter(extents, base_name): 154 if ex.start_block != common.PSEUDO_EXTENT_MARKER: 188 for ex, ex_name in common.ExtentIter(extents, base_name): 192 is_pseudo = ex.start_block == common.PSEUDO_EXTENT_MARKER 261 if op.type == common.OpType.REPLACE_BZ: 264 elif op.type == common.OpType.REPLACE_XZ: [all …]
|
D | checker_unittest.py | 35 from update_payload import common 45 'REPLACE': common.OpType.REPLACE, 46 'REPLACE_BZ': common.OpType.REPLACE_BZ, 47 'MOVE': common.OpType.MOVE, 48 'BSDIFF': common.OpType.BSDIFF, 49 'SOURCE_COPY': common.OpType.SOURCE_COPY, 50 'SOURCE_BSDIFF': common.OpType.SOURCE_BSDIFF, 51 'ZERO': common.OpType.ZERO, 52 'DISCARD': common.OpType.DISCARD, 53 'REPLACE_XZ': common.OpType.REPLACE_XZ, [all …]
|
D | checker.py | 37 from update_payload import common 529 if len(signed_data) != len(common.SIG_ASN1_HEADER) + 32: 533 if not signed_data.startswith(common.SIG_ASN1_HEADER): 537 signed_hash = signed_data[len(common.SIG_ASN1_HEADER):] 541 (sig_name, common.FormatSha256(signed_hash), 542 common.FormatSha256(actual_hash))) 631 if self.major_version == common.CHROMEOS_MAJOR_PAYLOAD_VERSION: 632 for real_name, proto_name in common.CROS_PARTITIONS: 639 self._CheckPresentIff(self.old_part_info[common.KERNEL].msg, 640 self.old_part_info[common.ROOTFS].msg, [all …]
|
/system/update_engine/ |
D | update_engine.gyp | 88 'includes': ['../../../platform2/common-mk/protoc.gypi'], 101 'includes': ['../../../platform2/common-mk/generate-dbus-adaptors.gypi'], 115 'includes': ['../../../platform2/common-mk/generate-dbus-proxies.gypi'], 118 # The payload application component and common dependencies. 155 'common/action_processor.cc', 156 'common/boot_control_stub.cc', 157 'common/clock.cc', 158 'common/constants.cc', 159 'common/cpu_limiter.cc', 160 'common/error_code_utils.cc', [all …]
|
D | Android.bp | 115 // The payload application component and common dependencies. 147 "common/action_processor.cc", 148 "common/boot_control_stub.cc", 149 "common/clock.cc", 150 "common/constants.cc", 151 "common/cpu_limiter.cc", 152 "common/error_code_utils.cc", 153 "common/file_fetcher.cc", 154 "common/hash_calculator.cc", 155 "common/http_common.cc", [all …]
|
/system/bt/service/common/ |
D | README | 1 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/ |
D | CleanSpec.mk | 48 $(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/ |
D | oi_codec_sbc_private.h | 136 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/bt/audio_bluetooth_hw/ |
D | audio_bluetooth_hw.cc | 98 adev->common.tag = HARDWARE_DEVICE_TAG; in adev_open() 99 adev->common.version = AUDIO_DEVICE_API_VERSION_2_0; in adev_open() 100 adev->common.module = (struct hw_module_t*)module; in adev_open() 101 adev->common.close = adev_close; in adev_open() 121 *device = &adev->common; in adev_open() 130 .common =
|
/system/tools/hidl/c2hal/test/ |
D | simple.h | 38 struct hw_device_t common; member 79 return device->common.close(&device->common); in hideColor()
|
/system/chre/ |
D | Android.bp | 21 "host/common/include", 26 "host/common/fragmented_load_transaction.cc", 27 "host/common/host_protocol_host.cc", 28 "host/common/socket_client.cc", 49 "host/common/test/chre_test_client.cc", 68 "host/common/audio_stress_test/audio_stress_test.cc",
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 145 uint16_t handle = bluetooth::common::kUnknownConnectionHandle; in btu_hcif_log_event_metrics() 160 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics() 166 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics() 172 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics() 179 …bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, encryption_e… in btu_hcif_log_event_metrics() 189 bluetooth::common::LogLinkLayerConnectionEvent( in btu_hcif_log_event_metrics() 200 bluetooth::common::LogLinkLayerConnectionEvent( in btu_hcif_log_event_metrics() 201 &bda, bluetooth::common::kUnknownConnectionHandle, in btu_hcif_log_event_metrics() 211 bluetooth::common::LogLinkLayerConnectionEvent( in btu_hcif_log_event_metrics() 224 bluetooth::common::LogLinkLayerConnectionEvent( in btu_hcif_log_event_metrics() [all …]
|