Home
last modified time | relevance | path

Searched refs:num_frames (Results 1 – 10 of 10) sorted by relevance

/system/core/libbacktrace/
DUnwindCurrent.cpp101 size_t num_frames = 0; in UnwindFromContext() local
116 frames_.resize(num_frames+1); in UnwindFromContext()
117 backtrace_frame_data_t* frame = &frames_.at(num_frames); in UnwindFromContext()
118 frame->num = num_frames; in UnwindFromContext()
126 if (ucontext != nullptr || num_frames != 0 || !DiscardFrame(*frame)) { in UnwindFromContext()
131 if (num_frames > 0) { in UnwindFromContext()
133 backtrace_frame_data_t* prev = &frames_.at(num_frames-1); in UnwindFromContext()
136 num_frames++; in UnwindFromContext()
142 CHECK(num_frames == 0); in UnwindFromContext()
157 } while (ret > 0 && num_frames < MAX_BACKTRACE_FRAMES); in UnwindFromContext()
DUnwindPtrace.cpp109 size_t num_frames = 0; in Unwind() local
125 frames_.resize(num_frames+1); in Unwind()
126 backtrace_frame_data_t* frame = &frames_.at(num_frames); in Unwind()
127 frame->num = num_frames; in Unwind()
132 if (num_frames > 0) { in Unwind()
133 backtrace_frame_data_t* prev = &frames_.at(num_frames-1); in Unwind()
141 num_frames++; in Unwind()
162 } while (ret > 0 && num_frames < MAX_BACKTRACE_FRAMES); in Unwind()
DBacktraceOffline.cpp192 size_t num_frames = 0; in Unwind() local
208 frames_.resize(num_frames + 1); in Unwind()
209 backtrace_frame_data_t* frame = &frames_[num_frames]; in Unwind()
210 frame->num = num_frames; in Unwind()
215 if (num_frames > 0) { in Unwind()
216 backtrace_frame_data_t* prev = &frames_[num_frames - 1]; in Unwind()
221 num_frames++; in Unwind()
226 } while (ret > 0 && num_frames < MAX_BACKTRACE_FRAMES); in Unwind()
/system/core/libmemunreachable/
DLeak.h34 hash_combine(seed, key.num_frames);
35 for (size_t i = 0; i < key.num_frames; i++) {
53 return (lhs.num_frames == rhs.num_frames) &&
54 memcmp(lhs.frames, rhs.frames, lhs.num_frames * sizeof(lhs.frames[0])) == 0;
DMemUnreachable.cpp164 leak->backtrace.num_frames = num_backtrace_frames; in GetUnreachableMemory()
464 if (backtrace.num_frames > 0) { in ToString()
465 oss << backtrace_string(backtrace.frames, backtrace.num_frames); in ToString()
/system/core/healthd/
Dhealthd_mode_charger.cpp135 .num_frames = 0,
403 if (anim.num_frames != 0) { in draw_battery()
420 if (batt_anim->cur_level < 0 || batt_anim->num_frames == 0) in redraw_screen()
507 if (batt_prop->batteryLevel >= 0 && batt_anim->num_frames != 0) { in update_screen_state()
509 for (int i = 0; i < batt_anim->num_frames; i++) { in update_screen_state()
534 if (batt_anim->num_frames == 0 || batt_anim->cur_level < 0) { in update_screen_state()
550 while (batt_anim->cur_frame < batt_anim->num_frames && in update_screen_state()
555 if (batt_anim->cur_frame >= batt_anim->num_frames) { in update_screen_state()
804 battery_animation.num_frames = ARRAY_SIZE(default_animation_frames); in init_animation()
813 battery_animation.animation_file.c_str(), battery_animation.num_frames); in init_animation()
[all …]
Danimation.h61 int num_frames; member
DAnimationParser.cpp134 anim->num_frames = frames.size(); in parse_animation_desc()
/system/core/libmemunreachable/include/memunreachable/
Dmemunreachable.h45 size_t num_frames; member
/system/core/healthd/tests/
DAnimationParser_test.cpp183 EXPECT_EQ(2, anim.num_frames); in TEST()