Home
last modified time | relevance | path

Searched refs:frame (Results 1 – 25 of 90) sorted by relevance

1234

/packages/modules/Bluetooth/system/blueberry/tests/gd/cert/
Dmatchers.py437 frame = L2capMatchers._basic_frame(packet)
438 if frame.GetChannelId() != scid:
440 return frame
444 frame = L2capMatchers._basic_frame(packet)
445 if frame.GetChannelId() != scid:
447 frame = L2capMatchers._basic_frame_with_fcs(packet)
448 if frame is None:
450 return frame
492 frame = L2capMatchers._information_frame_with_fcs(packet)
494 frame = L2capMatchers._information_frame(packet)
[all …]
Dcaptures.py127 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_REQUEST)
128 return l2cap_packets.ConnectionRequestView(frame)
136 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_RESPONSE)
137 return l2cap_packets.ConnectionResponseView(frame)
145 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONFIGURATION_REQUEST)
146 return l2cap_packets.ConfigurationRequestView(frame)
155frame = L2capMatchers.le_control_frame_with_code(packet, LeCommandCode.LE_CREDIT_BASED_CONNECTION_…
156 return l2cap_packets.LeCreditBasedConnectionRequestView(frame)
165frame = L2capMatchers.le_control_frame_with_code(packet, LeCommandCode.LE_CREDIT_BASED_CONNECTION_…
166 return l2cap_packets.LeCreditBasedConnectionResponseView(frame)
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/srce/
Dbitalloc.c43 uint32_t OI_SBC_MaxBitpool(OI_CODEC_SBC_FRAME_INFO* frame) { in OI_SBC_MaxBitpool() argument
44 switch (frame->mode) { in OI_SBC_MaxBitpool()
47 return 16 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
50 return 32 * frame->nrof_subbands; in OI_SBC_MaxBitpool()
53 ERROR(("Invalid frame mode %d", frame->mode)); in OI_SBC_MaxBitpool()
58 PRIVATE uint16_t internal_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO* frame) { in internal_CalculateFramelen() argument
59 uint16_t nbits = frame->nrof_blocks * frame->bitpool; in internal_CalculateFramelen()
60 uint16_t nrof_subbands = frame->nrof_subbands; in internal_CalculateFramelen()
63 if (frame->mode == SBC_JOINT_STEREO) { in internal_CalculateFramelen()
66 if (frame->mode == SBC_DUAL_CHANNEL) { in internal_CalculateFramelen()
[all …]
Ddecoder-private.c90 OI_CODEC_SBC_FRAME_INFO* frame = &common->frameInfo; in OI_SBC_ReadHeader() local
101 if (d1 != frame->cachedInfo) { in OI_SBC_ReadHeader()
102 frame->freqIndex = (d1 & (BIT7 | BIT6)) >> 6; in OI_SBC_ReadHeader()
103 frame->frequency = freq_values[frame->freqIndex]; in OI_SBC_ReadHeader()
105 frame->blocks = (d1 & (BIT5 | BIT4)) >> 4; in OI_SBC_ReadHeader()
106 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ReadHeader()
108 frame->mode = (d1 & (BIT3 | BIT2)) >> 2; in OI_SBC_ReadHeader()
109 frame->nrof_channels = channel_values[frame->mode]; in OI_SBC_ReadHeader()
111 frame->alloc = (d1 & BIT1) >> 1; in OI_SBC_ReadHeader()
113 frame->subbands = (d1 & BIT0); in OI_SBC_ReadHeader()
[all …]
Dframing.c207 PRIVATE uint8_t OI_SBC_CalculateChecksum(OI_CODEC_SBC_FRAME_INFO* frame, in OI_SBC_CalculateChecksum() argument
216 OI_UINT count = (frame->nrof_subbands * frame->nrof_channels / 2u) + 4; in OI_SBC_CalculateChecksum()
218 if (frame->mode == SBC_JOINT_STEREO && frame->nrof_subbands == 8) { in OI_SBC_CalculateChecksum()
228 if (frame->mode == SBC_JOINT_STEREO && frame->nrof_subbands == 4) { in OI_SBC_CalculateChecksum()
235 void OI_SBC_ExpandFrameFields(OI_CODEC_SBC_FRAME_INFO* frame) { in OI_SBC_ExpandFrameFields() argument
236 frame->nrof_blocks = block_values[frame->blocks]; in OI_SBC_ExpandFrameFields()
237 frame->nrof_subbands = band_values[frame->subbands]; in OI_SBC_ExpandFrameFields()
239 frame->frequency = freq_values[frame->freqIndex]; in OI_SBC_ExpandFrameFields()
240 frame->nrof_channels = channel_values[frame->mode]; in OI_SBC_ExpandFrameFields()
Dbitalloc-sbc.c112 uint32_t OI_CODEC_SBC_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO* frame) { in OI_CODEC_SBC_CalculateBitrate() argument
113 return internal_CalculateBitrate(frame); in OI_CODEC_SBC_CalculateBitrate()
129 uint16_t OI_CODEC_SBC_CalculateBitpool(OI_CODEC_SBC_FRAME_INFO* frame, in OI_CODEC_SBC_CalculateBitpool() argument
131 uint16_t nrof_subbands = frame->nrof_subbands; in OI_CODEC_SBC_CalculateBitpool()
132 uint16_t nrof_blocks = frame->nrof_blocks; in OI_CODEC_SBC_CalculateBitpool()
136 if (frame->mode == SBC_JOINT_STEREO) { in OI_CODEC_SBC_CalculateBitpool()
139 if (frame->mode == SBC_MONO) { in OI_CODEC_SBC_CalculateBitpool()
144 if (frame->mode == SBC_DUAL_CHANNEL) { in OI_CODEC_SBC_CalculateBitpool()
157 uint16_t OI_CODEC_SBC_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO* frame) { in OI_CODEC_SBC_CalculateFramelen() argument
158 return internal_CalculateFramelen(frame); in OI_CODEC_SBC_CalculateFramelen()
/packages/services/Car/cpp/computepipe/tests/runner/stream_manager/
DPixelStreamManagerTest.cpp106 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
107 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
120 EXPECT_THAT(buffer, ContainsDataFromFrame(&frame)); in TEST()
134 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
135 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
159 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
160 Status status = memHandle.setFrameData(timestamp, frame); in TEST()
163 EXPECT_THAT(memHandle.getHardwareBuffer(), ContainsDataFromFrame(&frame)); in TEST()
219 InputFrame frame(16, 16, PixelFormat::RGB, 16 * 3, &data[0]); in TEST() local
225 EXPECT_EQ(manager->queuePacket(frame, 0), Status::SUCCESS); in TEST()
[all …]
/packages/services/Car/cpp/computepipe/tests/fuzz/
DPixelMemHandleFuzzer.cpp35 InputFrame convertToInputFrame(const fuzz::proto::Frame frame) { in convertToInputFrame() argument
36 uint32_t height = frame.height(); in convertToInputFrame()
37 uint32_t width = frame.width(); in convertToInputFrame()
38 uint32_t stride = frame.stride(); in convertToInputFrame()
39 PixelFormat pixelFormat = static_cast<PixelFormat>(frame.format()); in convertToInputFrame()
40 const uint8_t* data = reinterpret_cast<const uint8_t*>(frame.buffer().c_str()); in convertToInputFrame()
64 for (auto& frame : input.frames()) { in isValid() local
65 uint64_t height = frame.height(); in isValid()
66 uint64_t width = frame.width(); in isValid()
67 uint64_t stride = frame.stride(); in isValid()
[all …]
/packages/modules/Bluetooth/system/gd/l2cap/internal/
Dscheduler_fifo_test.cc92 auto frame = BasicFrameBuilder::Create(1, CreateSdu({'a', 'b', 'c'})); in TEST_F() local
93 data_controller_1_.next_packets.push(std::move(frame)); in TEST_F()
109 auto frame = BasicFrameBuilder::Create(1, CreateSdu({'a', 'b', 'c'})); in TEST_F() local
110 data_controller_1_.next_packets.push(std::move(frame)); in TEST_F()
111 frame = BasicFrameBuilder::Create(2, CreateSdu({'d', 'e', 'f'})); in TEST_F()
112 data_controller_2_.next_packets.push(std::move(frame)); in TEST_F()
142 auto frame = BasicFrameBuilder::Create(1, CreateSdu({'a', 'b', 'c'})); in TEST_F() local
143 data_controller_1_.next_packets.push(std::move(frame)); in TEST_F()
144 frame = BasicFrameBuilder::Create(2, CreateSdu({'d', 'e', 'f'})); in TEST_F()
145 data_controller_2_.next_packets.push(std::move(frame)); in TEST_F()
/packages/modules/ExtServices/native/tests/
DImageHashManager_test.cpp54 const auto frame = NewFrameFromJpeg(filename); in GetFingerprint() local
56 return fingerprinter.GenerateFingerprint(reinterpret_cast<const uint8_t*>(frame.c_str())); in GetFingerprint()
67 const auto frame = NewFrameFromJpeg(filename); in CreatePHash() local
69 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in CreatePHash()
88 const auto frame = NewFrameFromJpeg("120.jpg.raw"); in TEST() local
90 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in TEST()
109 const auto frame = NewFrameFromJpeg("120.jpg.raw"); in TEST() local
111 const auto buffer = reinterpret_cast<const uint8_t*>(frame.c_str()); in TEST()
/packages/modules/Bluetooth/system/embdrv/sbc/decoder/include/
Doi_codec_sbc_private.h151 PRIVATE uint32_t internal_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO* frame);
153 PRIVATE uint16_t internal_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO* frame);
171 OI_CODEC_SBC_FRAME_INFO* frame, OI_UINT* headerLen_);
173 PRIVATE uint32_t OI_SBC_MaxBitpool(OI_CODEC_SBC_FRAME_INFO* frame);
175 PRIVATE void OI_SBC_ComputeBitAllocation(OI_CODEC_SBC_COMMON_CONTEXT* frame);
176 PRIVATE uint8_t OI_SBC_CalculateChecksum(OI_CODEC_SBC_FRAME_INFO* frame,
223 PRIVATE void OI_SBC_ExpandFrameFields(OI_CODEC_SBC_FRAME_INFO* frame);
Doi_codec_sbc.h440 uint16_t OI_CODEC_SBC_CalculateFramelen(OI_CODEC_SBC_FRAME_INFO* frame);
450 uint16_t OI_CODEC_SBC_CalculateBitpool(OI_CODEC_SBC_FRAME_INFO* frame,
461 uint32_t OI_CODEC_SBC_CalculateBitrate(OI_CODEC_SBC_FRAME_INFO* frame);
/packages/services/Car/cpp/computepipe/runner/input_manager/
DEvsInputManager.cpp37 void AnalyzeCallback::analyze(const ::android::automotive::evs::support::Frame& frame) { in analyze() argument
47 InputFrame inputFrame(frame.height, frame.width, PixelFormat::RGBA, frame.stride * 4, in analyze()
48 frame.data); in analyze()
/packages/modules/Permission/PermissionController/src/com/android/permissioncontroller/permission/ui/handheld/
DPermissionControlPreference.java239 ViewGroup frame = (ViewGroup) holder.findViewById(frameId); in setIcons() local
241 frame.setVisibility(View.VISIBLE); in setIcons()
242 frame.removeAllViews(); in setIcons()
250 frame.addView(group); in setIcons()
252 } else if (frame != null) { in setIcons()
253 frame.setVisibility(View.GONE); in setIcons()
/packages/apps/Gallery2/src/com/android/gallery3d/filtershow/imageshow/
DGeometryMathUtils.java306 Rect frame = new Rect(); in finalGeometryRect() local
307 crop.roundOut(frame); in finalGeometryRect()
308 return frame; in finalGeometryRect()
315 Rect frame = new Rect(); in applyFullGeometryMatrix() local
316 crop.roundOut(frame); in applyFullGeometryMatrix()
317 Matrix m = getCropSelectionToScreenMatrix(null, holder, width, height, frame.width(), in applyFullGeometryMatrix()
318 frame.height()); in applyFullGeometryMatrix()
320 Bitmap temp = bitmapCache.getBitmap(frame.width(), in applyFullGeometryMatrix()
321 frame.height(), BitmapCache.UTIL_GEOMETRY); in applyFullGeometryMatrix()
/packages/modules/ExtServices/native/pHash/
Dphash_fingerprinter.cpp28 int64_t PhashFingerprinter::GenerateFingerprint(const uint8_t* frame) { in GenerateFingerprint() argument
30 if (frame == nullptr) { in GenerateFingerprint()
35 Array2D<const uint8_t> dct_in(frame); in GenerateFingerprint()
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DMosaic.cpp134 MosaicFrame *frame = frames[frames_size]; in addFrame() local
136 frame->image = imageYVU; in addFrame()
144 align_flag = aligner->addFrame(frame->image); in addFrame()
145 aligner->getLastTRS(frame->trs); in addFrame()
/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/classic/
Dcert_l2cap.py63 frame = l2cap_packets.BasicFrameBuilder(self._dcid, packet)
64 self._acl.send(frame.Serialize())
74frame = l2cap_packets.EnhancedInformationFrameWithFcsBuilder(self._dcid, tx_seq, f, req_seq, sar, …
76frame = l2cap_packets.EnhancedInformationFrameBuilder(self._dcid, tx_seq, f, req_seq, sar, payload)
77 self._acl.send(frame.Serialize())
80 frame = l2cap_packets.EnhancedSupervisoryFrameBuilder(self._dcid, s, p, f, req_seq)
81 self._acl.send(frame.Serialize())
/packages/modules/Bluetooth/system/stack/a2dp/
Da2dp_vendor_opus_decoder.cc125 for (uint32_t frame = 0; frame < numFrames; ++frame) { in a2dp_vendor_opus_decoder_decode_packet() local
/packages/modules/Bluetooth/system/blueberry/tests/gd/l2cap/le/
Dcert_le_l2cap.py47 frame = l2cap_packets.BasicFrameBuilder(self._dcid, packet)
48 self._acl.send(frame.Serialize())
52 frame = l2cap_packets.FirstLeInformationFrameBuilder(self._dcid, sdu_size, packet)
53 self._acl.send(frame.Serialize())
/packages/services/Car/cpp/computepipe/runner/debug_display_manager/
DEvsDisplayManager.cpp41 BufferDesc getBufferDesc(const std::shared_ptr<MemHandle>& frame) { in getBufferDesc() argument
43 AHardwareBuffer_describe(frame->getHardwareBuffer(), &hwDesc); in getBufferDesc()
52 buffer.memHandle = AHardwareBuffer_getNativeHandle(frame->getHardwareBuffer()); in getBufferDesc()
/packages/services/Car/cpp/computepipe/tests/runner/graph/includes/
DPrebuiltEngineInterfaceImpl.h52 const runner::InputFrame& frame) override { in DispatchPixelData() argument
53 mPixelCallbackFn(streamId, timestamp, frame); in DispatchPixelData()
/packages/apps/Launcher3/src/com/android/launcher3/
DAppWidgetResizeFrame.java189 AppWidgetResizeFrame frame = (AppWidgetResizeFrame) launcher.getLayoutInflater() in showForWidget() local
193 ImageView imageView = frame.findViewById(R.id.widget_resize_frame); in showForWidget()
200 frame.setupForWidget(widget, cellLayout, dl); in showForWidget()
201 ((DragLayer.LayoutParams) frame.getLayoutParams()).customPosition = true; in showForWidget()
203 dl.addView(frame); in showForWidget()
204 frame.mIsOpen = true; in showForWidget()
205 frame.post(() -> frame.snapToWidget(false)); in showForWidget()
/packages/services/Car/cpp/evs/apps/demo_app_evs_support_lib/
Devs_app_support_lib.cpp58 void analyze(const Frame &frame) { in analyze() argument
60 if (frame.data == nullptr) { in analyze()
/packages/apps/Launcher3/quickstep/src/com/android/quickstep/util/
DSurfaceTransactionApplier.java82 mTargetViewRootImpl.registerRtFrameCallback(frame -> { in scheduleApply()
88 mTargetViewRootImpl.mergeWithNextTransaction(t, frame); in scheduleApply()

1234