Home
last modified time | relevance | path

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

12345678910>>...23

/system/bt/audio_hearing_aid_hw/src/
Daudio_hearing_aid_hw.cc118 struct ha_stream_common common; member
125 struct ha_stream_common common; member
154 static void ha_open_ctrl_path(struct ha_stream_common* common);
334 static int ha_ctrl_receive(struct ha_stream_common* common, void* buffer, in ha_ctrl_receive() argument
340 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in ha_ctrl_receive()
359 skt_disconnect(common->ctrl_fd); in ha_ctrl_receive()
360 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in ha_ctrl_receive()
368 static int ha_ctrl_send(struct ha_stream_common* common, const void* buffer, in ha_ctrl_send() argument
377 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in ha_ctrl_send()
400 skt_disconnect(common->ctrl_fd); in ha_ctrl_send()
[all …]
/system/bt/audio_a2dp_hw/src/
Daudio_a2dp_hw.cc131 struct a2dp_stream_common common; member
138 struct a2dp_stream_common common; member
170 static void a2dp_open_ctrl_path(struct a2dp_stream_common* common);
350 static int a2dp_ctrl_receive(struct a2dp_stream_common* common, void* buffer, in a2dp_ctrl_receive() argument
356 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL)); in a2dp_ctrl_receive()
375 skt_disconnect(common->ctrl_fd); in a2dp_ctrl_receive()
376 common->ctrl_fd = AUDIO_SKT_DISCONNECTED; in a2dp_ctrl_receive()
384 static int a2dp_ctrl_send(struct a2dp_stream_common* common, const void* buffer, in a2dp_ctrl_send() argument
393 OSI_NO_INTR(sent = send(common->ctrl_fd, buffer, remaining, MSG_NOSIGNAL)); in a2dp_ctrl_send()
416 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.c75 context->common.frameInfo.enhanced = in FindSyncword()
93 context->common.frameInfo.enhanced = FALSE; in FindSyncword()
108 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks * in DecodeBody()
109 context->common.frameInfo.nrof_subbands; in DecodeBody()
117 (sizeof(int16_t) * frameSamples * context->common.pcmStride) && in DecodeBody()
124 context->common.frameInfo.nrof_subbands * in DecodeBody()
125 context->common.pcmStride) { in DecodeBody()
133 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs); in DecodeBody()
136 OI_SBC_ComputeBitAllocation(&context->common); in DecodeBody()
139 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 …]
/system/bt/gd/os/
Dhandler.h36 class Handler : public common::IPostableContext {
47 virtual void Post(common::OnceClosure closure) override;
57 Post(common::BindOnce(std::forward<Functor>(functor), std::forward<Args>(args)...)); in Call()
62 …Post(common::BindOnce(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(… in CallOn()
66 common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, Args...>> BindOnce( in BindOnce()
68 return common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, Args...>>( in BindOnce()
69 common::BindOnce(std::forward<Functor>(functor), std::forward<Args>(args)...), this); in BindOnce()
73 common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, T, Args...>> BindOnceOn( in BindOnceOn()
75 return common::ContextualOnceCallback<common::MakeUnboundRunType<Functor, T, Args...>>( in BindOnceOn()
76common::BindOnce(std::forward<Functor>(functor), common::Unretained(obj), std::forward<Args>(args)… in BindOnceOn()
[all …]
/system/bt/gd/security/
Dsecurity_manager.cc30common::BindOnce(&internal::SecurityManagerImpl::Init, common::Unretained(security_manager_impl_))… in Init()
34 security_handler_->Post(common::BindOnce(&internal::SecurityManagerImpl::CreateBond, in CreateBond()
35 common::Unretained(security_manager_impl_), in CreateBond()
40 security_handler_->Post(common::BindOnce(&internal::SecurityManagerImpl::CreateBondLe, in CreateBondLe()
41 common::Unretained(security_manager_impl_), in CreateBondLe()
46 security_handler_->Post(common::BindOnce(&internal::SecurityManagerImpl::CancelBond, in CancelBond()
47 common::Unretained(security_manager_impl_), in CancelBond()
52 security_handler_->Post(common::BindOnce(&internal::SecurityManagerImpl::RemoveBond, in RemoveBond()
53 common::Unretained(security_manager_impl_), in RemoveBond()
58 security_handler_->Post(common::BindOnce(&internal::SecurityManagerImpl::SetUserInterfaceHandler, in SetUserInterfaceHandler()
[all …]
/system/bt/gd/hci/fuzz/
Dfuzz_hci_layer.h36common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) override {} in EnqueueCommand()
39common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) override {} in EnqueueCommand()
53common::ContextualOnceCallback<void(hci::CommandCompleteView)> on_complete) override { in EnqueueCommand()
61common::ContextualOnceCallback<void(hci::CommandStatusView)> on_status) override { in EnqueueCommand()
68 common::BidiQueueEnd<hci::AclPacketBuilder, hci::AclPacketView>* GetAclQueueEnd() override { in GetAclQueueEnd()
73common::ContextualCallback<void(hci::EventPacketView)> handler) override { in RegisterEventHandler()
85common::ContextualCallback<void(hci::LeMetaEventView)> handler) override { in RegisterLeEventHandler()
97 common::ContextualCallback<void(hci::EventPacketView)> event_handler) override;
100 common::ContextualCallback<void(hci::LeMetaEventView)> event_handler) override;
103 common::ContextualCallback<void(hci::EventPacketView)> event_handler,
[all …]
/system/bt/common/
Dtime_util_unittest.cc31 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 …]
/system/bt/gd/hci/
Dhci_layer.h49common::ContextualOnceCallback<void(CommandCompleteView)> on_complete) override;
52 common::ContextualOnceCallback<void(CommandStatusView)> on_status) override;
54 virtual common::BidiQueueEnd<AclPacketBuilder, AclPacketView>* GetAclQueueEnd();
57common::ContextualCallback<void(EventPacketView)> event_handler);
62common::ContextualCallback<void(LeMetaEventView)> event_handler);
66 …virtual SecurityInterface* GetSecurityInterface(common::ContextualCallback<void(EventPacketView)> …
68 …virtual LeSecurityInterface* GetLeSecurityInterface(common::ContextualCallback<void(LeMetaEventVie…
71 common::ContextualCallback<void(EventPacketView)> event_handler,
72 common::ContextualCallback<void(uint16_t, hci::ErrorCode)> on_disconnect);
75 common::ContextualCallback<void(LeMetaEventView)> event_handler,
[all …]
/system/bt/service/
DBUILD.gn24 "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/
DBUILD.gn20 import("//common-mk/generate-dbus-adaptors.gni")
21 import("//common-mk/generate-dbus-proxies.gni")
22 import("//common-mk/openssl_pem.gni")
23 import("//common-mk/pkg_config.gni")
24 import("//common-mk/proto_library.gni")
128 # The payload application component and common dependencies.
131 "common/action_processor.cc",
132 "common/boot_control_stub.cc",
133 "common/clock.cc",
134 "common/constants.cc",
[all …]
DAndroid.bp112 // The payload application component and common dependencies.
146 "common/action_processor.cc",
147 "common/boot_control_stub.cc",
148 "common/clock.cc",
149 "common/constants.cc",
150 "common/cpu_limiter.cc",
151 "common/dynamic_partition_control_stub.cc",
152 "common/error_code_utils.cc",
153 "common/file_fetcher.cc",
154 "common/hash_calculator.cc",
[all …]
/system/bt/gd/os/linux_generic/
Dreactor_unittest.cc36 using common::Bind;
106 Bind(&FakeReactable::OnReadReady, common::Unretained(this)), in OnReadReady()
107 Bind(&FakeReactable::OnWriteReadyNoOp, common::Unretained(this))); in OnReadReady()
192 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common in TEST_F()
200 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common in TEST_F()
218 …fake_reactable.fd_, Bind(&FakeReactable::OnReadReady, common::Unretained(&fake_reactable)), common in TEST_F()
232 Bind(&FakeRunningReactable::OnReadReady, common::Unretained(&fake_reactable)), in TEST_F()
233 common::Closure()); in TEST_F()
250 common::Bind(&FakeRunningReactable::OnReadReady, common::Unretained(&fake_reactable)), in TEST_F()
251 common::Closure()); in TEST_F()
[all …]
Drepeating_alarm_unittest.cc51 common::Bind( in VerifyMultipleDelayedTasks()
53 common::Unretained(this), in VerifyMultipleDelayedTasks()
54 common::Unretained(&counter), in VerifyMultipleDelayedTasks()
57 common::Unretained(&promise), in VerifyMultipleDelayedTasks()
84 common::Closure should_not_happen_ = common::Bind([] { ASSERT_TRUE(false); }); in __anon69a28b9c0202()
101common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseco… in TEST_F()
117common::Bind(&RepeatingAlarm::Cancel, common::Unretained(this->alarm_)), std::chrono::milliseconds… in TEST_F()
126common::Bind(&std::promise<void>::set_value, common::Unretained(&promise)), std::chrono::milliseco… in TEST_F()
Dhandler_unittest.cc56 common::OnceClosure closure = common::BindOnce( in TEST_F()
61 common::Unretained(&val), in TEST_F()
75 handler_->Post(common::BindOnce( in TEST_F()
81 common::Unretained(&val), in TEST_F()
84 handler_->Post(common::BindOnce([]() { ASSERT_TRUE(false); })); in TEST_F()
98 auto once_callback = common::BindOnce(&check_int, std::move(number), to_change); in TEST_F()
107 …auto once_callback = common::BindOnce(&std::promise<void>::set_value, common::Unretained(&promise)… in TEST_F()
/system/bt/gd/common/
Dcontextual_callback.h23 namespace common {
38 ContextualOnceCallback(common::OnceCallback<R(Args...)>&& callback, IPostableContext* context) in ContextualOnceCallback()
49 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in Invoke()
54 context_->Post(common::BindOnce(std::move(callback_), std::forward<Args>(args)...)); in InvokeIfNotEmpty()
63 common::OnceCallback<R(Args...)> callback_;
74 ContextualCallback(common::Callback<R(Args...)>&& callback, IPostableContext* context) in ContextualCallback()
85 context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...)); in Invoke()
90 context_->Post(common::BindOnce(callback_, std::forward<Args>(args)...)); in InvokeIfNotEmpty()
99 common::Callback<R(Args...)> callback_;
Dbidi_queue_unittest.cc30 namespace common { namespace
72 common::Unretained(this), in Send()
73 common::Unretained(value), in Send()
74 common::Unretained(promise))); in Send()
81 …BindOnce(&TestBidiQueueEnd<TA, TB>::handle_receive, common::Unretained(this), common::Unretained(p… in Receive()
91 common::Unretained(this), in handle_send()
92 common::Unretained(value), in handle_send()
93 common::Unretained(promise))); in handle_send()
106 …&TestBidiQueueEnd<TA, TB>::handle_register_dequeue, common::Unretained(this), common::Unretained(p… in handle_receive()
/system/bt/gd/common/testing/
Dwired_pair_of_bidi_queues.h30 namespace common {
52 common::BidiQueue<B, A> queue_a_{10};
53 common::BidiQueue<B, A> queue_b_{10};
60 … handler_, common::Bind(&WiredPairOfBiDiQueues::dequeue_callback_a, common::Unretained(this))); in WiredPairOfBiDiQueues()
62 … handler_, common::Bind(&WiredPairOfBiDiQueues::dequeue_callback_b, common::Unretained(this))); in WiredPairOfBiDiQueues()
71 common::BidiQueueEnd<A, B>* GetQueueAUpEnd() { in GetQueueAUpEnd()
76 common::BidiQueueEnd<A, B>* GetQueueBUpEnd() { in GetQueueBUpEnd()
/system/update_engine/scripts/update_payload/
Dchecker_unittest.py38 from update_payload import common
48 'REPLACE': common.OpType.REPLACE,
49 'REPLACE_BZ': common.OpType.REPLACE_BZ,
50 'SOURCE_COPY': common.OpType.SOURCE_COPY,
51 'SOURCE_BSDIFF': common.OpType.SOURCE_BSDIFF,
52 'ZERO': common.OpType.ZERO,
53 'DISCARD': common.OpType.DISCARD,
54 'REPLACE_XZ': common.OpType.REPLACE_XZ,
55 'PUFFDIFF': common.OpType.PUFFDIFF,
56 'BROTLI_BSDIFF': common.OpType.BROTLI_BSDIFF,
[all …]
Dapplier.py52 from update_payload import common
91 (name, common.FormatSha256(actual_hash),
92 common.FormatSha256(expected_hash)))
142 for ex, ex_name in common.ExtentIter(extents, base_name):
178 for ex, ex_name in common.ExtentIter(extents, base_name):
248 if op.type == common.OpType.REPLACE_BZ:
251 elif op.type == common.OpType.REPLACE_XZ:
258 for ex, ex_name in common.ExtentIter(op.dst_extents,
270 (ex_name, common.FormatExtent(ex, block_size),
310 for ex, ex_name in common.ExtentIter(op.dst_extents, base_name):
[all …]

12345678910>>...23