Home
last modified time | relevance | path

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

123

/system/unwinding/libunwindstack/tests/
DUnwinderTest.cpp215 auto* frame = &unwinder.frames()[0]; in TEST_F() local
216 EXPECT_EQ(0U, frame->num); in TEST_F()
217 EXPECT_EQ(0U, frame->rel_pc); in TEST_F()
218 EXPECT_EQ(0x1000U, frame->pc); in TEST_F()
219 EXPECT_EQ(0x10000U, frame->sp); in TEST_F()
220 EXPECT_EQ("Frame0", frame->function_name); in TEST_F()
221 EXPECT_EQ(0U, frame->function_offset); in TEST_F()
222 EXPECT_EQ("/system/fake/libc.so", frame->map_name); in TEST_F()
223 EXPECT_EQ(0U, frame->map_elf_start_offset); in TEST_F()
224 EXPECT_EQ(0U, frame->map_exact_offset); in TEST_F()
[all …]
DLocalUnwinderTest.cpp57 for (const auto& frame : frame_info) { in ErrorMsg() local
59 frame.pc, frame.rel_pc); in ErrorMsg()
60 if (frame.map_info != nullptr) { in ErrorMsg()
61 if (!frame.map_info->name().empty()) { in ErrorMsg()
63 unwind += frame.map_info->name(); in ErrorMsg()
65 unwind += android::base::StringPrintf(" 0x%" PRIx64 "-0x%" PRIx64, frame.map_info->start(), in ErrorMsg()
66 frame.map_info->end()); in ErrorMsg()
68 if (frame.map_info->offset() != 0) { in ErrorMsg()
69 unwind += android::base::StringPrintf(" offset 0x%" PRIx64, frame.map_info->offset()); in ErrorMsg()
72 if (!frame.function_name.empty()) { in ErrorMsg()
[all …]
DVerifyBionicTerminationTest.cpp69 static void VerifyReturnAddress(const FrameData& frame) { in VerifyReturnAddress() argument
72 Elf elf(Memory::CreateFileMemory(frame.map_name, 0).release()); in VerifyReturnAddress()
73 ASSERT_TRUE(elf.Init()) << "Failed to init elf object from " << frame.map_name.c_str(); in VerifyReturnAddress()
74 ASSERT_TRUE(elf.valid()) << "Elf " << frame.map_name.c_str() << " is not valid."; in VerifyReturnAddress()
81 DwarfLocationEnum location = GetReturnAddressLocation(frame.rel_pc, interface->debug_frame()); in VerifyReturnAddress()
86 location = GetReturnAddressLocation(frame.rel_pc, interface->eh_frame()); in VerifyReturnAddress()
110 const FrameData& frame = frames[i]; in TEST() local
111 if (frame.function_name == "__libc_init" && !frame.map_name.empty() && in TEST()
112 std::string("libc.so") == basename(frame.map_name.c_str())) { in TEST()
114 ASSERT_NO_FATAL_FAILURE(VerifyReturnAddress(frame)); in TEST()
/system/unwinding/libunwindstack/
DUnwinder.cpp56 FrameData* frame = &frames_.at(frame_num); in FillInDexFrame() local
57 frame->num = frame_num; in FillInDexFrame()
60 frame->pc = dex_pc; in FillInDexFrame()
61 frame->sp = regs_->sp(); in FillInDexFrame()
65 frame->map_start = info->start(); in FillInDexFrame()
66 frame->map_end = info->end(); in FillInDexFrame()
70 frame->map_elf_start_offset = info->offset(); in FillInDexFrame()
71 frame->map_exact_offset = info->offset(); in FillInDexFrame()
72 frame->map_load_bias = info->load_bias(); in FillInDexFrame()
73 frame->map_flags = info->flags(); in FillInDexFrame()
[all …]
/system/bt/gd/cert/
Dmatchers.py417 frame = L2capMatchers._basic_frame(packet)
418 if frame.GetChannelId() != scid:
420 return frame
424 frame = L2capMatchers._basic_frame(packet)
425 if frame.GetChannelId() != scid:
427 frame = L2capMatchers._basic_frame_with_fcs(packet)
428 if frame is None:
430 return frame
472 frame = L2capMatchers._information_frame_with_fcs(packet)
474 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)
/system/bt/embdrv/sbc/decoder/srce/
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()
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 …]
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 …]
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()
/system/unwinding/libbacktrace/
DBacktrace.cpp92 std::string Backtrace::FormatFrameData(const backtrace_frame_data_t* frame) { in FormatFrameData() argument
94 if (BacktraceMap::IsValid(frame->map)) { in FormatFrameData()
95 map_name = frame->map.Name(); in FormatFrameData()
96 if (!frame->map.name.empty()) { in FormatFrameData()
99 map_name += StringPrintf(":%" PRIPTR "]", frame->map.start); in FormatFrameData()
106 std::string line(StringPrintf("#%02zu pc %" PRIPTR " ", frame->num, frame->rel_pc)); in FormatFrameData()
110 if (frame->map.offset != 0) { in FormatFrameData()
111 line += " (offset " + StringPrintf("0x%" PRIx64, frame->map.offset) + ")"; in FormatFrameData()
113 if (!frame->func_name.empty()) { in FormatFrameData()
114 line += " (" + frame->func_name; in FormatFrameData()
[all …]
DUnwindStack.cpp121 auto frame = &unwinder_frames[i]; in Unwind() local
127 back_frame->rel_pc = frame->rel_pc; in Unwind()
128 back_frame->pc = frame->pc; in Unwind()
129 back_frame->sp = frame->sp; in Unwind()
131 char* demangled_name = __cxa_demangle(frame->function_name.c_str(), nullptr, nullptr, nullptr); in Unwind()
136 back_frame->func_name = frame->function_name; in Unwind()
138 back_frame->func_offset = frame->function_offset; in Unwind()
140 back_frame->map.name = frame->map_name; in Unwind()
141 back_frame->map.start = frame->map_start; in Unwind()
142 back_frame->map.end = frame->map_end; in Unwind()
[all …]
Dbacktrace_test.cpp128 std::string frame; in DumpFrames() local
130 frame += " " + backtrace->FormatFrameData(i) + '\n'; in DumpFrames()
132 return frame; in DumpFrames()
282 for (const auto& frame : *backtrace ) { in TEST_F()
283 if (BacktraceMap::IsValid(frame.map)) { in TEST_F()
284 const std::string name = basename(frame.map.name.c_str()); in TEST_F()
303 for (const auto& frame : *backtrace) { in TEST_F()
304 if (BacktraceMap::IsValid(frame.map)) { in TEST_F()
305 const std::string name = basename(frame.map.name.c_str()); in TEST_F()
314 first_frame_non_backtrace_lib = frame.num; in TEST_F()
[all …]
/system/core/healthd/
DAnimationParser.cpp88 std::vector<animation::frame> frames; in parse_animation_desc()
91 animation::frame frame; in parse_animation_desc() local
119 &frame.disp_time, &frame.min_level, &frame.max_level) == 3) { in parse_animation_desc()
120 frames.push_back(std::move(frame)); in parse_animation_desc()
134 anim->frames = new animation::frame[frames.size()]; in parse_animation_desc()
Danimation.h32 struct frame { struct
70 frame* frames = nullptr;
Dhealthd_draw.cpp215 const animation::frame& frame = anim->frames[anim->cur_frame]; in draw_battery() local
218 draw_surface_centered(frame.surface); in draw_battery()
219 LOGV("drawing frame #%d min_cap=%d time=%d\n", anim->cur_frame, frame.min_level, in draw_battery()
220 frame.disp_time); in draw_battery()
/system/bt/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()
/system/bt/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);
/system/core/healthd/testdata/product/product/etc/res/values/charger/
Danimation.txt8 # frame: disp_time min_level max_level
9 frame: 15 0 100
/system/core/healthd/testdata/legacy/res/values/charger/
Danimation.txt8 # frame: disp_time min_level max_level
9 frame: 15 0 100
/system/core/healthd/testdata/legacy_text_system_images/res/values/charger/
Danimation.txt8 # frame: disp_time min_level max_level
9 frame: 15 0 100
/system/connectivity/wificond/tests/
Dclient_interface_impl_unittest.cpp127 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F()
167 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F()
189 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument
211 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument
232 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument
258 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F()
295 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F()
300 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument
337 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F()
360 const vector<uint8_t>& frame, int32_t mcs, uint64_t* out_cookie) { in TEST_F() argument
/system/core/debuggerd/libdebuggerd/
Dtombstone_proto.cpp302 void fill_in_backtrace_frame(BacktraceFrame* f, const unwindstack::FrameData& frame, in fill_in_backtrace_frame() argument
304 f->set_rel_pc(frame.rel_pc); in fill_in_backtrace_frame()
305 f->set_pc(frame.pc); in fill_in_backtrace_frame()
306 f->set_sp(frame.sp); in fill_in_backtrace_frame()
308 if (!frame.function_name.empty()) { in fill_in_backtrace_frame()
310 char* demangled_name = __cxa_demangle(frame.function_name.c_str(), nullptr, nullptr, nullptr); in fill_in_backtrace_frame()
315 f->set_function_name(frame.function_name); in fill_in_backtrace_frame()
319 f->set_function_offset(frame.function_offset); in fill_in_backtrace_frame()
321 if (frame.map_start == frame.map_end) { in fill_in_backtrace_frame()
324 } else if (!frame.map_name.empty()) { in fill_in_backtrace_frame()
[all …]
/system/extras/simpleperf/scripts/
Dreport.py197 frame = Frame(main)
198 frame.pack(fill=BOTH, expand=1)
204 label = Label(frame, text=line, font=font)
208 label = Label(frame, text='', font=font)
212 label = Label(frame, text=' ' + title_line, font=font)
216 report_frame = Frame(frame)
/system/extras/simpleperf/doc/
Dinferno.md44 either using frame pointer (recommended) or dwarf. At the end of the recording
78 `simpleperf` to unwind the stack via the kernel and frame pointers. Try to
84 this may be because you compiled without frame pointers. Make sure there is no
85 ` -fomit-frame-pointer` in your build config. Alternatively, ask simpleperf to
94 processed. Try to use frame pointer unwinding which can be done by the kernel
97 The cost of frame pointer is negligible on arm64 parameter but considerable

123