Home
last modified time | relevance | path

Searched refs:frames (Results 1 – 25 of 46) sorted by relevance

12

/system/core/libunwindstack/tests/
DUnwindOfflineTest.cpp219 EXPECT_EQ(0xf31ea9f8U, unwinder.frames()[0].pc); in TEST_F()
220 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F()
221 EXPECT_EQ(0xf2da0a1bU, unwinder.frames()[1].pc); in TEST_F()
222 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F()
223 EXPECT_EQ(0xf2da1441U, unwinder.frames()[2].pc); in TEST_F()
224 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F()
225 EXPECT_EQ(0xf3367147U, unwinder.frames()[3].pc); in TEST_F()
226 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F()
260 EXPECT_EQ(0xf1f6dc49U, unwinder.frames()[0].pc); in TEST_F()
261 EXPECT_EQ(0xd8fe6930U, unwinder.frames()[0].sp); in TEST_F()
[all …]
DUnwinderTest.cpp171 auto* frame = &unwinder.frames()[0]; in TEST_F()
186 frame = &unwinder.frames()[1]; in TEST_F()
201 frame = &unwinder.frames()[2]; in TEST_F()
236 auto* frame = &unwinder.frames()[0]; in TEST_F()
251 frame = &unwinder.frames()[1]; in TEST_F()
266 frame = &unwinder.frames()[2]; in TEST_F()
296 auto* frame = &unwinder.frames()[0]; in TEST_F()
326 auto* frame = &unwinder.frames()[0]; in TEST_F()
356 auto* frame = &unwinder.frames()[0]; in TEST_F()
387 auto* frame = &unwinder.frames()[0]; in TEST_F()
[all …]
DUnwindTest.cpp117 for (auto& frame : unwinder->frames()) { in VerifyUnwind()
457 size_t frames[kNumConcurrentThreads]; in TEST_F() local
459 std::thread* thread = new std::thread([i, &frames, &maps, &process_memory, &wait]() { in TEST_F()
467 frames[i] = unwinder.NumFrames(); in TEST_F()
468 ASSERT_LE(3U, frames[i]) << "Failed for thread " << i; in TEST_F()
/system/core/healthd/
DAnimationParser.cpp89 std::vector<animation::frame> frames; in parse_animation_desc() local
121 frames.push_back(std::move(frame)); in parse_animation_desc()
128 if (anim->animation_file.empty() || frames.empty()) { in parse_animation_desc()
134 anim->num_frames = frames.size(); in parse_animation_desc()
135 anim->frames = new animation::frame[frames.size()]; in parse_animation_desc()
136 std::copy(frames.begin(), frames.end(), anim->frames); in parse_animation_desc()
Dhealthd_mode_charger.cpp144 .frames = nullptr,
340 disp_time = batt_anim->frames[batt_anim->cur_frame].disp_time; in update_screen_state()
356 if (batt_anim->cur_level >= batt_anim->frames[i].min_level && in update_screen_state()
357 batt_anim->cur_level <= batt_anim->frames[i].max_level) { in update_screen_state()
365 disp_time = batt_anim->frames[batt_anim->cur_frame].disp_time * in update_screen_state()
399 (batt_anim->cur_level < batt_anim->frames[batt_anim->cur_frame].min_level || in update_screen_state()
400 batt_anim->cur_level > batt_anim->frames[batt_anim->cur_frame].max_level)) { in update_screen_state()
644 battery_animation.frames = default_animation_frames; in init_animation()
665 LOGV(" frame %.2d: %d %d %d\n", i, battery_animation.frames[i].disp_time, in init_animation()
666 battery_animation.frames[i].min_level, battery_animation.frames[i].max_level); in init_animation()
[all …]
/system/extras/tests/workloads/
Dsystemapps.sh80 frames=$5
118 ((curFrames=curFrames+${frames:=0}))
184 frames=$1
195 ((frames=frames+systemFrames))
204 if [ $frames -eq 0 ]; then
208 ((jankPct=100*janks/frames))
233 computeStats "$app" "$tdiff" "$relaunch" "$directReclaim" "$frames" "$janks" $l90 $l95 $l99
261 frames=$6
269 if [ $frames -gt 0 ]; then
270 ((jankPct=100*janks/frames))
/system/core/debuggerd/libdebuggerd/test/
Dtombstone_test.cpp378 std::vector<unwindstack::FrameData> frames; in TEST_F() local
382 frames.push_back( in TEST_F()
384 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
462 std::vector<unwindstack::FrameData> frames; in TEST_F() local
466 frames.push_back( in TEST_F()
468 frames.push_back( in TEST_F()
470 dump_stack(&log_, frames, &maps, &memory); in TEST_F()
552 std::vector<unwindstack::FrameData> frames; in TEST_F() local
556 frames.push_back( in TEST_F()
558 frames.push_back( in TEST_F()
[all …]
/system/core/libmemunreachable/
DLeak.h36 hash_combine(seed, key.frames[i]);
56 memcmp(lhs.frames, rhs.frames, lhs.num_frames * sizeof(lhs.frames[0])) == 0;
Dbionic.h31 extern ssize_t malloc_backtrace(void* pointer, uintptr_t* frames, size_t frame_count);
/system/media/audio_utils/
DBalance.cpp95 void Balance::process(float *buffer, size_t frames) in process() argument
109 if (frames > 0) { in process()
111 const float r = 1.f / frames; in process()
117 for (size_t i = 0; i < frames; ++i) { in process()
132 for (size_t i = 0; i < frames; ++i) { in process()
Dmono_blend.cpp26 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames, bool limit) { in mono_blend() argument
33 for (size_t i = 0; i < frames; ++i) { in mono_blend()
48 for (size_t i = 0; i < frames; ++i) { in mono_blend()
Dprimitives.c320 void downmix_to_mono_float_from_stereo_float(float *dst, const float *src, size_t frames) in downmix_to_mono_float_from_stereo_float() argument
322 for (; frames > 0; --frames) { in downmix_to_mono_float_from_stereo_float()
328 void upmix_to_stereo_float_from_mono_float(float *dst, const float *src, size_t frames) in upmix_to_stereo_float_from_mono_float() argument
330 dst += frames * 2; in upmix_to_stereo_float_from_mono_float()
331 src += frames; in upmix_to_stereo_float_from_mono_float()
332 for (; frames > 0; --frames) { in upmix_to_stereo_float_from_mono_float()
358 size_t nonZeroStereo32(const int32_t *frames, size_t count) in nonZeroStereo32() argument
362 nonZero += frames[0] != 0 || frames[1] != 0; in nonZeroStereo32()
363 frames += 2; in nonZeroStereo32()
368 size_t nonZeroStereo16(const int16_t *frames, size_t count) in nonZeroStereo16() argument
[all …]
DPowerLog.cpp64 void PowerLog::log(const void *buffer, size_t frames, int64_t nowNs) in log() argument
69 while (frames > 0) { in log()
72 size_t process = std::min(required, frames); in log()
105 frames -= process; in log()
260 const void *buffer, size_t frames, int64_t now_ns) in power_log_log() argument
265 reinterpret_cast<PowerLog *>(power_log)->log(buffer, frames, now_ns); in power_log_log()
Dresampler.c240 int frames = speex_resampler_get_input_latency(rsmp->speex_resampler); in create_resampler() local
241 rsmp->speex_delay_ns = (int32_t)((1000000000 * (int64_t)frames) / rsmp->in_sample_rate); in create_resampler()
242 frames = speex_resampler_get_output_latency(rsmp->speex_resampler); in create_resampler()
243 rsmp->speex_delay_ns += (int32_t)((1000000000 * (int64_t)frames) / rsmp->out_sample_rate); in create_resampler()
/system/media/audio_utils/include/audio_utils/
DTimestampVerifier.h46 constexpr TimestampVerifier(const F (&frames)[N], const T (&timeNs)[N], uint32_t sampleRate) { in TimestampVerifier()
48 add(frames[i], timeNs[i], sampleRate); in TimestampVerifier()
60 constexpr void add(F frames, T timeNs, uint32_t sampleRate) { in add() argument
77 && frames >= mLastTimestamp.mFrames) { in add()
86 mFirstTimestamp = {frames, timeNs}; in add()
91 const FrameTime timestamp{frames, timeNs}; in add()
115 mTimestampEstimator.add({(double)timeNs * 1e-9, (double)frames}); in add()
135 const T newTimeNs = mTimestampEstimator.getXFromY((double)frames) * 1e9; in add()
DPowerLog.h67 void log(const void *buffer, size_t frames, int64_t nowNs);
139 void power_log_log(power_log_t *power_log, const void *buffer, size_t frames, int64_t now_ns);
Dmono_blend.h43 void mono_blend(void *buf, audio_format_t format, size_t channelCount, size_t frames,
/system/media/audio_utils/tests/
Dfifo_tests.cpp99 int16_t *inputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main()
100 sf_count_t actualRead = sf_readf_short(sfin, inputBuffer, sfinfoin.frames); in main()
101 if (actualRead != sfinfoin.frames) { in main()
108 int16_t *outputBuffer = new int16_t[sfinfoin.frames * sfinfoin.channels]; in main()
118 size_t framesToWrite = sfinfoin.frames - framesWritten; in main()
119 size_t framesToRead = sfinfoin.frames - framesRead; in main()
Dtimestampverifier_tests.cpp63 constexpr int64_t frames[] { 0, 48000 }; in TEST() local
65 constexpr android::TimestampVerifier<int64_t, int64_t> tv2(frames, timeNs, 48000); in TEST()
/system/core/healthd/tests/
DAnimationParser_test.cpp185 EXPECT_EQ(10, anim.frames[0].disp_time); in TEST()
186 EXPECT_EQ(20, anim.frames[0].min_level); in TEST()
187 EXPECT_EQ(30, anim.frames[0].max_level); in TEST()
189 EXPECT_EQ(40, anim.frames[1].disp_time); in TEST()
190 EXPECT_EQ(50, anim.frames[1].min_level); in TEST()
191 EXPECT_EQ(60, anim.frames[1].max_level); in TEST()
/system/core/libbacktrace/
DUnwindStack.cpp45 std::vector<backtrace_frame_data_t>* frames, size_t num_ignore_frames, in Unwind() argument
100 frames->resize(0); in Unwind()
104 auto unwinder_frames = unwinder.frames(); in Unwind()
105 frames->resize(unwinder.NumFrames() - num_ignore_frames); in Unwind()
110 backtrace_frame_data_t* back_frame = &frames->at(cur_frame); in Unwind()
134 std::vector<backtrace_frame_data_t>* frames, in UnwindOffline() argument
145 return Backtrace::Unwind(regs, back_map, frames, 0U, nullptr, error); in UnwindOffline()
/system/media/alsa_utils/include/
Dalsa_device_proxy.h42 uint64_t *frames, struct timespec *timestamp);
44 int64_t *frames, int64_t *time);
/system/core/libunwindstack/include/unwindstack/
DUnwinder.h82 const std::vector<FrameData>& frames() { return frames_; } in frames() function
85 std::vector<FrameData> frames = std::move(frames_); in ConsumeFrames() local
87 return frames; in ConsumeFrames()
/system/media/alsa_utils/
Dalsa_device_proxy.c212 uint64_t *frames, struct timespec *timestamp) in proxy_get_presentation_position() argument
228 *frames = signed_frames; in proxy_get_presentation_position()
237 int64_t *frames, int64_t *time) in proxy_get_capture_position() argument
250 *frames = proxy->transferred + avail; in proxy_get_capture_position()
/system/bt/audio_bluetooth_hw/
Dstream_apis.cc389 const size_t frames = bytes / audio_stream_out_frame_size(stream); in out_write() local
390 out->frames_rendered_ += frames; in out_write()
391 out->frames_presented_ += frames; in out_write()
524 uint64_t* frames, in out_get_presentation_position() argument
526 if (frames == nullptr || timestamp == nullptr) { in out_get_presentation_position()
546 *frames = bytes / audio_stream_out_frame_size(stream); in out_get_presentation_position()
552 …E) << __func__ << ": state=" << out->bluetooth_output_.GetState() << ", frames=" << *frames << " (" in out_get_presentation_position()
566 *frames = out->frames_presented_ - out->frames_count_; in out_get_presentation_position()
567 …E) << __func__ << ": state=" << out->bluetooth_output_.GetState() << ", frames=" << *frames << " (" in out_get_presentation_position()
573 *frames = 0; in out_get_presentation_position()

12