/system/core/libunwindstack/tests/ |
D | UnwinderTest.cpp | 175 auto* frame = &unwinder.frames()[0]; in TEST_F() local 176 EXPECT_EQ(0U, frame->num); in TEST_F() 177 EXPECT_EQ(0U, frame->rel_pc); in TEST_F() 178 EXPECT_EQ(0x1000U, frame->pc); in TEST_F() 179 EXPECT_EQ(0x10000U, frame->sp); in TEST_F() 180 EXPECT_EQ("Frame0", frame->function_name); in TEST_F() 181 EXPECT_EQ(0U, frame->function_offset); in TEST_F() 182 EXPECT_EQ("/system/fake/libc.so", frame->map_name); in TEST_F() 183 EXPECT_EQ(0U, frame->map_elf_start_offset); in TEST_F() 184 EXPECT_EQ(0U, frame->map_exact_offset); in TEST_F() [all …]
|
D | LocalUnwinderTest.cpp | 57 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() 62 unwind += " " + frame.map_info->name; in ErrorMsg() 64 unwind += android::base::StringPrintf(" 0x%" PRIx64 "-0x%" PRIx64, frame.map_info->start, in ErrorMsg() 65 frame.map_info->end); in ErrorMsg() 67 if (frame.map_info->offset != 0) { in ErrorMsg() 68 unwind += android::base::StringPrintf(" offset 0x%" PRIx64, frame.map_info->offset); in ErrorMsg() 71 if (!frame.function_name.empty()) { in ErrorMsg() [all …]
|
D | VerifyBionicTerminationTest.cpp | 69 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; in VerifyReturnAddress() 74 ASSERT_TRUE(elf.valid()) << "Elf " << frame.map_name << " 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() 111 const FrameData& frame = frames[i]; in TEST() local 112 if (frame.function_name == "__libc_init" && !frame.map_name.empty() && in TEST() 113 std::string("libc.so") == basename(frame.map_name.c_str())) { in TEST() 115 ASSERT_NO_FATAL_FAILURE(VerifyReturnAddress(frame)); in TEST()
|
/system/core/libunwindstack/ |
D | Unwinder.cpp | 54 FrameData* frame = &frames_.at(frame_num); in FillInDexFrame() local 55 frame->num = frame_num; in FillInDexFrame() 58 frame->pc = dex_pc; in FillInDexFrame() 59 frame->sp = regs_->sp(); in FillInDexFrame() 63 frame->map_start = info->start; in FillInDexFrame() 64 frame->map_end = info->end; in FillInDexFrame() 68 frame->map_elf_start_offset = info->offset; in FillInDexFrame() 69 frame->map_exact_offset = info->offset; in FillInDexFrame() 70 frame->map_load_bias = info->load_bias; in FillInDexFrame() 71 frame->map_flags = info->flags; in FillInDexFrame() [all …]
|
/system/bt/gd/cert/ |
D | matchers.py | 39 frame = hci_packets.CommandCompleteView(hci_event) 40 return (opcode is None or frame.GetCommandOpCode() == opcode) and\ 41 frame.GetNumHciCommandPackets() == num_complete 303 frame = L2capMatchers._basic_frame(packet) 304 if frame.GetChannelId() != scid: 306 return frame 310 frame = L2capMatchers._basic_frame(packet) 311 if frame.GetChannelId() != scid: 313 frame = L2capMatchers._basic_frame_with_fcs(packet) 314 if frame is None: [all …]
|
D | captures.py | 107 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_REQUEST) 108 return l2cap_packets.ConnectionRequestView(frame) 116 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONNECTION_RESPONSE) 117 return l2cap_packets.ConnectionResponseView(frame) 125 frame = L2capMatchers.control_frame_with_code(packet, CommandCode.CONFIGURATION_REQUEST) 126 return l2cap_packets.ConfigurationRequestView(frame) 135 …frame = L2capMatchers.le_control_frame_with_code(packet, LeCommandCode.LE_CREDIT_BASED_CONNECTION_… 136 return l2cap_packets.LeCreditBasedConnectionRequestView(frame) 145 …frame = L2capMatchers.le_control_frame_with_code(packet, LeCommandCode.LE_CREDIT_BASED_CONNECTION_… 146 return l2cap_packets.LeCreditBasedConnectionResponseView(frame)
|
/system/bt/embdrv/sbc/decoder/srce/ |
D | framing.c | 207 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()
|
D | decoder-private.c | 90 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 …]
|
D | bitalloc.c | 43 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 …]
|
D | bitalloc-sbc.c | 112 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/core/libbacktrace/ |
D | Backtrace.cpp | 92 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 …]
|
D | UnwindStack.cpp | 109 auto frame = &unwinder_frames[i]; in Unwind() local 115 back_frame->rel_pc = frame->rel_pc; in Unwind() 116 back_frame->pc = frame->pc; in Unwind() 117 back_frame->sp = frame->sp; in Unwind() 119 char* demangled_name = __cxa_demangle(frame->function_name.c_str(), nullptr, nullptr, nullptr); in Unwind() 124 back_frame->func_name = frame->function_name; in Unwind() 126 back_frame->func_offset = frame->function_offset; in Unwind() 128 back_frame->map.name = frame->map_name; in Unwind() 129 back_frame->map.start = frame->map_start; in Unwind() 130 back_frame->map.end = frame->map_end; in Unwind() [all …]
|
D | backtrace_test.cpp | 128 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 …]
|
D | BacktraceCurrent.cpp | 86 bool BacktraceCurrent::DiscardFrame(const backtrace_frame_data_t& frame) { in DiscardFrame() argument 87 if (BacktraceMap::IsValid(frame.map)) { in DiscardFrame() 88 const std::string library = basename(frame.map.name.c_str()); in DiscardFrame()
|
/system/core/healthd/ |
D | AnimationParser.cpp | 88 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()
|
D | animation.h | 31 struct frame { struct 78 frame* frames = nullptr;
|
D | healthd_draw.cpp | 215 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/embdrv/sbc/decoder/include/ |
D | oi_codec_sbc_private.h | 151 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);
|
D | oi_codec_sbc.h | 440 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);
|
/system/connectivity/wificond/tests/ |
D | client_interface_impl_unittest.cpp | 162 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() 202 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() 224 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument 246 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument 267 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument 293 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() 330 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() 335 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() argument 372 .WillOnce([](uint32_t interface_index, const vector<uint8_t>& frame, in TEST_F() 395 const vector<uint8_t>& frame, int32_t mcs, uint64_t* out_cookie) { in TEST_F() argument
|
/system/extras/simpleperf/doc/ |
D | inferno.md | 44 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
|
/system/extras/simpleperf/scripts/ |
D | report.py | 196 frame = Frame(main) 197 frame.pack(fill=BOTH, expand=1) 203 label = Label(frame, text=line, font=font) 207 label = Label(frame, text='', font=font) 211 label = Label(frame, text=' ' + title_line, font=font) 215 report_frame = Frame(frame)
|
/system/extras/simpleperf/ |
D | OfflineUnwinder.cpp | 254 for (auto& frame : unwinder.frames()) { in UnwindCallChain() local 263 if (frame.pc == 0 || frame.map_start == 0) { in UnwindCallChain() 267 if (frame.map_flags & unwindstack::MAPS_FLAGS_JIT_SYMFILE_MAP) { in UnwindCallChain() 270 ips->push_back(frame.pc); in UnwindCallChain() 271 sps->push_back(frame.sp); in UnwindCallChain()
|
/system/extras/tests/pftest/ |
D | Android.bp | 9 "-fomit-frame-pointer",
|
/system/connectivity/wificond/ |
D | client_interface_binder.cpp | 107 Status ClientInterfaceBinder::SendMgmtFrame(const vector<uint8_t>& frame, in SendMgmtFrame() argument 114 impl_->SendMgmtFrame(frame, callback, mcs); in SendMgmtFrame()
|