Searched defs:common (Results 1 - 18 of 18) sorted by relevance

/system/update_engine/scripts/update_payload/
H A Dblock_tracer.py19 from update_payload import common namespace
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))
H A Dapplier.py27 from update_payload import common namespace
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
[all...]
H A Dpayload.py15 from update_payload import common namespace
42 return struct.unpack(common.IntPackingFmtStr(size, is_unsigned),
43 common.Read(file_obj, size, hasher=hasher))[0]
85 magic = common.Read(payload_file, len(self._MAGIC), hasher=hasher)
97 if self.version == common.BRILLO_MAJOR_PAYLOAD_VERSION:
146 return common.Read(self.payload_file, self.header.manifest_len,
162 return common.Read(
180 return common.Read(self.payload_file, length,
H A Dtest_utils.py15 from update_payload import common namespace
60 file_obj.write(struct.pack(common.IntPackingFmtStr(size, is_unsigned), val))
87 data_sha256_hash = common.SIG_ASN1_HEADER + hashlib.sha256(data).digest()
340 is_pseudo_in_kernel, common.OpType.REPLACE,
342 dst_extents=[(common.PSEUDO_EXTENT_MARKER,
H A Dchecker.py24 from update_payload import common namespace
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
[all...]
H A Dchecker_unittest.py24 from update_payload import common namespace
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
[all...]
/system/bt/embdrv/sbc/decoder/srce/
H A Dalloc.c29 PRIVATE OI_STATUS OI_CODEC_SBC_Alloc(OI_CODEC_SBC_COMMON_CONTEXT* common, argument
46 common->maxChannels = maxChannels;
47 common->pcmStride = pcmStride;
52 maxChannels * sizeof(common->subdata[0]) * SBC_MAX_BANDS * SBC_MAX_BLOCKS;
59 (sizeof(common->filterBuffer[0][0]) * SBC_MAX_BANDS * maxChannels);
63 common->filterBufferLen = filterBufferCount * SBC_MAX_BANDS;
66 common->subdata = (int32_t*)codecData;
74 common->filterBufferLen * sizeof(common->filterBuffer[0][0]);
75 common
[all...]
H A Dbitalloc-sbc.c34 static void dualBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common) { argument
42 bitcountL = computeBitneed(common, bitneedsL.uint8, 0, &bitpoolPreferenceL);
43 bitcountR = computeBitneed(common, bitneedsR.uint8, 1, &bitpoolPreferenceR);
45 oneChannelBitAllocation(common, &bitneedsL, 0, bitcountL);
46 oneChannelBitAllocation(common, &bitneedsR, 1, bitcountR);
49 static void stereoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common) { argument
50 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
59 bitcount = computeBitneed(common, &bitneeds.uint8[0], 0, &bitpoolPreference);
60 bitcount += computeBitneed(common, &bitneeds.uint8[nrof_subbands], 1,
65 bitadjust = adjustToFitBitpool(common
100 OI_SBC_ComputeBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common) argument
119 OI_CODEC_SBC_GetMaxBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common) argument
152 OI_CODEC_SBC_CalculatePcmBytes(OI_CODEC_SBC_COMMON_CONTEXT* common) argument
[all...]
H A Ddecoder-private.c66 status = OI_CODEC_SBC_Alloc(&context->common, decoderData, decoderDataBytes,
73 context->common.codecInfo = OI_Codec_Copyright;
74 context->common.maxBitneed = 0;
76 OI_SBC_ExpandFrameFields(&context->common.frameInfo);
88 INLINE void OI_SBC_ReadHeader(OI_CODEC_SBC_COMMON_CONTEXT* common, argument
90 OI_CODEC_SBC_FRAME_INFO* frame = &common->frameInfo;
131 PRIVATE void OI_SBC_ReadScalefactors(OI_CODEC_SBC_COMMON_CONTEXT* common, argument
133 OI_UINT i = common->frameInfo.nrof_subbands * common->frameInfo.nrof_channels;
134 int8_t* scale_factor = common
180 OI_CODEC_SBC_COMMON_CONTEXT* common = &context->common; local
[all...]
H A Dbitalloc.c124 OI_UINT computeBitneed(OI_CODEC_SBC_COMMON_CONTEXT* common, uint8_t* bitneeds, argument
134 const OI_UINT nrof_subbands = common->frameInfo.nrof_subbands;
136 int8_t* scale_factor = &common->scale_factor[ch ? nrof_subbands : 0];
141 if (common->frameInfo.alloc == SBC_SNR) {
156 offset = offset4[common->frameInfo.freqIndex];
158 offset = offset8[common->frameInfo.freqIndex];
179 common->maxBitneed = OI_MAX(maxBits, common->maxBitneed);
332 void oneChannelBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common, argument
335 const uint8_t nrof_subbands = common
367 monoBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* common) argument
[all...]
H A Ddecoder-sbc.c69 context->common.frameInfo.enhanced =
87 context->common.frameInfo.enhanced = FALSE;
102 OI_UINT frameSamples = context->common.frameInfo.nrof_blocks *
103 context->common.frameInfo.nrof_subbands;
111 (sizeof(int16_t) * frameSamples * context->common.pcmStride) &&
118 context->common.frameInfo.nrof_subbands *
119 context->common.pcmStride) {
127 OI_SBC_ReadScalefactors(&context->common, bodyData, &bs);
130 OI_SBC_ComputeBitAllocation(&context->common);
133 if (context->common
466 OI_CODEC_SBC_COMMON_CONTEXT* common = &context->common; local
[all...]
/system/netd/server/
H A DStrictControllerTest.cpp40 std::vector<std::string> common = { local
99 std::string commandsCommon = android::base::Join(common, '\n');
/system/tools/hidl/c2hal/test/
H A Dsimple.h38 struct hw_device_t common; member in struct:simple_t
79 return device->common.close(&device->common);
H A Dtest.h114 struct hw_device_t common; member in struct:framebuffer_device_t
331 audio_format_t format = s->common.get_format(&s->common);
335 return audio_channel_count_from_out_mask(s->common.get_channels(&s->common)) * chan_samp_sz;
/system/bt/embdrv/sbc/decoder/include/
H A Doi_codec_sbc.h235 OI_CODEC_SBC_COMMON_CONTEXT common; member in struct:__anon633
471 uint16_t OI_CODEC_SBC_CalculatePcmBytes(OI_CODEC_SBC_COMMON_CONTEXT* common);
/system/media/audio/include/system/
H A Dsound_trigger.h124 struct sound_trigger_sound_model common; member in struct:sound_trigger_phrase_sound_model
134 struct sound_trigger_sound_model common; member in struct:sound_trigger_generic_sound_model
194 struct sound_trigger_recognition_event common; member in struct:sound_trigger_phrase_recognition_event
200 struct sound_trigger_recognition_event common; member in struct:sound_trigger_generic_recognition_event
/system/bt/audio_a2dp_hw/src/
H A Daudio_a2dp_hw.cc132 struct a2dp_stream_common common; member in struct:a2dp_stream_out
139 struct a2dp_stream_common common; member in struct:a2dp_stream_in
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, argument
357 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL));
376 skt_disconnect(common->ctrl_fd);
377 common->ctrl_fd = AUDIO_SKT_DISCONNECTED;
382 // Sends control info for stream |common|. The data to send is stored in
385 static int a2dp_ctrl_send(struct a2dp_stream_common* common, const void* buffer, argument
394 OSI_NO_INTR(sent = send(common
424 a2dp_command(struct a2dp_stream_common* common, tA2DP_CTRL_CMD cmd) argument
472 check_a2dp_ready(struct a2dp_stream_common* common) argument
480 a2dp_read_input_audio_config(struct a2dp_stream_common* common) argument
526 a2dp_read_output_audio_config( struct a2dp_stream_common* common, btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) argument
656 a2dp_write_output_audio_config(struct a2dp_stream_common* common) argument
748 a2dp_get_presentation_position_cmd(struct a2dp_stream_common* common, uint64_t* bytes, uint16_t* delay, struct timespec* timestamp) argument
783 a2dp_open_ctrl_path(struct a2dp_stream_common* common) argument
813 a2dp_stream_common_init(struct a2dp_stream_common* common) argument
826 a2dp_stream_common_destroy(struct a2dp_stream_common* common) argument
833 start_audio_datapath(struct a2dp_stream_common* common) argument
868 stop_audio_datapath(struct a2dp_stream_common* common) argument
892 suspend_audio_datapath(struct a2dp_stream_common* common, bool standby) argument
[all...]
/system/bt/audio_hearing_aid_hw/src/
H A Daudio_hearing_aid_hw.cc119 struct ha_stream_common common; member in struct:ha_stream_out
126 struct ha_stream_common common; member in struct:ha_stream_in
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, argument
341 OSI_NO_INTR(ret = recv(common->ctrl_fd, buffer, length, MSG_NOSIGNAL));
360 skt_disconnect(common->ctrl_fd);
361 common->ctrl_fd = AUDIO_SKT_DISCONNECTED;
366 // Sends control info for stream |common|. The data to send is stored in
369 static int ha_ctrl_send(struct ha_stream_common* common, const void* buffer, argument
378 OSI_NO_INTR(sent = send(common
408 ha_command(struct ha_stream_common* common, tHEARING_AID_CTRL_CMD cmd) argument
452 check_ha_ready(struct ha_stream_common* common) argument
460 ha_read_input_audio_config(struct ha_stream_common* common) argument
507 ha_read_output_audio_config( struct ha_stream_common* common, btav_a2dp_codec_config_t* codec_config, btav_a2dp_codec_config_t* codec_capability, bool update_stream_config) argument
643 ha_write_output_audio_config(struct ha_stream_common* common) argument
741 ha_open_ctrl_path(struct ha_stream_common* common) argument
772 ha_stream_common_init(struct ha_stream_common* common) argument
785 ha_stream_common_destroy(struct ha_stream_common* common) argument
792 start_audio_datapath(struct ha_stream_common* common) argument
823 stop_audio_datapath(struct ha_stream_common* common) argument
847 suspend_audio_datapath(struct ha_stream_common* common, bool standby) argument
[all...]

Completed in 8243 milliseconds