/aosp12/system/unwinding/libunwindstack/tests/ |
H A D | UnwindOfflineTest.cpp | 229 EXPECT_EQ(0xf31ea9f8U, unwinder.frames()[0].pc); in TEST_F() 230 EXPECT_EQ(0xe9c866f8U, unwinder.frames()[0].sp); in TEST_F() 231 EXPECT_EQ(0xf2da0a1bU, unwinder.frames()[1].pc); in TEST_F() 232 EXPECT_EQ(0xe9c86728U, unwinder.frames()[1].sp); in TEST_F() 233 EXPECT_EQ(0xf2da1441U, unwinder.frames()[2].pc); in TEST_F() 234 EXPECT_EQ(0xe9c86730U, unwinder.frames()[2].sp); in TEST_F() 235 EXPECT_EQ(0xf3367147U, unwinder.frames()[3].pc); in TEST_F() 236 EXPECT_EQ(0xe9c86778U, unwinder.frames()[3].sp); in TEST_F() 1259 EXPECT_EQ(0U, unwinder.frames()[5].pc); in TEST_F() 1793 EXPECT_EQ(0x0U, unwinder.frames()[5].pc); in TEST_F() [all …]
|
/aosp12/bionic/tests/ |
H A D | android_unsafe_frame_pointer_chase_test.cpp | 38 static bool CheckFrames(uintptr_t* frames, size_t num_frames) { in CheckFrames() argument 47 if (frames[0] == frames[1]) { in CheckFrames() 48 printf("frames[0] == frames[1] (0x%zx)", frames[0]); in CheckFrames() 53 if (frames[i] != frames[1]) { in CheckFrames() 54 printf("frames[i] (0x%zx) != frames[1] (0x%zx)", frames[i], frames[1]); in CheckFrames() 59 if (frames[kNumFrames] == frames[kNumFrames + 1]) { in CheckFrames() 70 uintptr_t frames[kNumFrames + 2]; in TEST() local 71 size_t size2 = recurse(kNumFrames, frames, kNumFrames + 2); in TEST() 74 EXPECT_TRUE(CheckFrames(frames, size)); in TEST() 80 uintptr_t frames[kNumFrames + 2]; in tester_func() local [all …]
|
/aosp12/frameworks/av/media/libaudioprocessing/ |
H A D | RecordBufferConverter.cpp | 90 for (size_t i = frames; i > 0; ) { in convert() 111 mBufFrames = frames; in convert() 115 memset(mBuf, 0, frames * mBufFrameSize); in convert() 116 frames = mResampler->resample((int32_t*)mBuf, frames, provider); in convert() 118 convertResampler(dst, mBuf, frames); in convert() 125 return frames; in convert() 230 mBufFrames = frames; in convertNoResampler() 261 frames * mDstChannelCount); in convertNoResampler() 275 (const float *)src, frames); in convertResampler() 281 (const float *)src, frames); in convertResampler() [all …]
|
H A D | BufferProviders.cpp | 287 mInBuffer->setFrameCount(frames); in copyFrames() 288 mInBuffer->update(mInFrameSize * frames); in copyFrames() 289 mOutBuffer->setFrameCount(frames); in copyFrames() 294 mOutBuffer->update(mOutFrameSize * frames); in copyFrames() 299 mOutBuffer->commit(mOutFrameSize * frames); in copyFrames() 361 void RemixBufferProvider::copyFrames(void *dst, const void *src, size_t frames) in copyFrames() argument 364 src, mInputChannels, mIdxAry, mSampleSize, frames); in copyFrames() 387 frames, false /* accumulate */); in copyFrames() 423 frames * mChannelCount, in copyFrames() 705 mSampleSizeInBytes, frames * mInChannelCount * mSampleSizeInBytes); in copyFrames() [all …]
|
/aosp12/art/test/ti-agent/ |
H A D | stack_trace_helper.cc | 55 jvmtiFrameInfo* frames; in Java_art_StackTrace_nativeGetStackTrace() local 58 reinterpret_cast<unsigned char**>(&frames)))) { in Java_art_StackTrace_nativeGetStackTrace() 63 env, jvmti_env, jvmti_env->GetStackTrace(thr, 0, depth, frames, &nframes))) { in Java_art_StackTrace_nativeGetStackTrace() 64 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace() 69 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace() 73 jobject jmethod = GetJavaMethod(jvmti_env, env, frames[i].method); in Java_art_StackTrace_nativeGetStackTrace() 75 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace() 82 frames[i].location, in Java_art_StackTrace_nativeGetStackTrace() 85 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace() 90 jvmti_env->Deallocate(reinterpret_cast<unsigned char*>(frames)); in Java_art_StackTrace_nativeGetStackTrace() [all …]
|
/aosp12/bionic/libc/malloc_debug/ |
H A D | backtrace.cpp | 73 uintptr_t* frames; member 77 stack_crawl_state_t(uintptr_t* frames, size_t frame_count) in stack_crawl_state_t() 78 : frames(frames), frame_count(frame_count) {} in stack_crawl_state_t() 123 state->frames[state->cur_frame++] = ip; in trace_function() 127 size_t backtrace_get(uintptr_t* frames, size_t frame_count) { in backtrace_get() argument 128 stack_crawl_state_t state(frames, frame_count); in backtrace_get() 141 if (dladdr(reinterpret_cast<void*>(frames[frame_num]), &info) != 0) { in backtrace_string() 149 const MapEntry* entry = g_map_data.find(frames[frame_num], &rel_pc); in backtrace_string() 175 frames[frame_num] - offset); in backtrace_string() 187 void backtrace_log(const uintptr_t* frames, size_t frame_count) { in backtrace_log() argument [all …]
|
H A D | PointerData.cpp | 145 frames.resize(num_frames); in AddBacktrace() 146 num_frames = backtrace_get(frames.data(), frames.size()); in AddBacktrace() 152 FrameKeyType key{.num_frames = num_frames, .frames = frames.data()}; in AddBacktrace() 157 frames.resize(num_frames); in AddBacktrace() 159 key.frames = frames.data(); in AddBacktrace() 162 frames_.emplace(hash_index, FrameInfoType{.references = 1, .frames = std::move(frames)}); in AddBacktrace() 187 FrameKeyType key{.num_frames = frame_info->frames.size(), .frames = frame_info->frames.data()}; in RemoveBacktrace() 250 memcpy(frames, &frame_info->frames[0], max_frames * sizeof(uintptr_t)); in GetFrames() 267 backtrace_log(frame_info->frames.data(), frame_info->frames.size()); in LogBacktrace() 448 if (a_frame->frames.size() != b_frame->frames.size()) { in GetList() [all …]
|
H A D | PointerData.h | 54 uintptr_t* frames; member 59 if (frames[i] != comp.frames[i]) { 71 std::size_t cur_hash = key.frames[0]; 75 cur_hash ^= key.frames[i]; 84 std::vector<uintptr_t> frames; 160 static size_t GetFrames(const void* pointer, uintptr_t* frames, size_t max_frames); 165 static std::string GetHashString(uintptr_t* frames, size_t num_frames);
|
/aosp12/bionic/libc/malloc_debug/tests/ |
H A D | backtrace_fake.cpp | 45 size_t backtrace_get(uintptr_t* frames, size_t frame_num) { in backtrace_get() argument 52 memcpy(frames, g_fake_backtrace[0].data(), sizeof(uintptr_t) * total_frames); in backtrace_get() 57 void backtrace_log(const uintptr_t* frames, size_t frame_count) { in backtrace_log() argument 59 error_log(" #%02zd pc %p", i, reinterpret_cast<void*>(frames[i])); in backtrace_log() 69 void BacktraceUnwindFake(const std::vector<unwindstack::LocalFrameData>& frames) { in BacktraceUnwindFake() argument 70 g_fake_local_frame_data.push_back(frames); in BacktraceUnwindFake() 73 bool Unwind(std::vector<uintptr_t>* frames, std::vector<unwindstack::LocalFrameData>* info, size_t)… in Unwind() argument 80 frames->clear(); in Unwind() 82 frames->push_back(frame.pc); in Unwind()
|
/aosp12/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Mosaic.cpp | 44 if (frames[i]) in ~Mosaic() 45 delete frames[i]; in ~Mosaic() 47 delete frames; in ~Mosaic() 75 frames = new MosaicFrame *[max_frames]; in initialize() 89 frames[i] = NULL; in initialize() 131 if(frames[frames_size]==NULL) in addFrame() 132 frames[frames_size] = new MosaicFrame(this->width,this->height,false); in addFrame() 134 MosaicFrame *frame = frames[frames_size]; in addFrame() 236 for (int i = 0; i < frames_size; i++) sineAngle += frames[i]->trs[0][1]; in balanceRotations() 247 memcpy(tmp, frames[i]->trs, sizeof(tmp)); in balanceRotations() [all …]
|
/aosp12/art/test/1939-proxy-frames/ |
H A D | Android.bp | 3 // Build rules for ART run-test `1939-proxy-frames`. 16 name: "art-run-test-1939-proxy-frames", 21 ":art-run-test-1939-proxy-frames-expected-stdout", 22 ":art-run-test-1939-proxy-frames-expected-stderr", 28 name: "art-run-test-1939-proxy-frames-expected-stdout", 29 out: ["art-run-test-1939-proxy-frames-expected-stdout.txt"], 36 name: "art-run-test-1939-proxy-frames-expected-stderr", 37 out: ["art-run-test-1939-proxy-frames-expected-stderr.txt"],
|
/aosp12/system/media/audio_utils/include/audio_utils/ |
H A D | BiquadFilter.h | 141 for (size_t j = frames; j > 0; --j) { in biquad_filter_1fast() 174 memset(out, 0, sizeof(float) * frames * channelCount); in zeroChannels() 176 for (size_t i = 0; i < frames; i++) { in zeroChannels() 187 zeroChannels(out, frames, stride, channelCount); in biquad_filter_fast() 223 for (size_t j = frames; j > 0; --j) { in biquad_filter_neon_impl() 268 zeroChannels(out, frames, stride, channelCount); in biquad_filter_neon() 606 void process(D* out, const D *in, size_t frames) { in process() argument 607 process(out, in, frames, mChannelCount); in process() 642 void process1D(D* inout, size_t frames) { in process1D() argument 647 if (frames >= 2 * mChannelCount) { in process1D() [all …]
|
/aosp12/hardware/interfaces/automotive/sv/1.0/default/ |
H A D | SurroundView3dSession.cpp | 46 framesRecord.frames.svBuffers.resize(1); in SurroundView3dSession() 47 framesRecord.frames.svBuffers[0].viewId = 0; in SurroundView3dSession() 48 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = new native_handle_t(); in SurroundView3dSession() 49 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = mConfig.width; in SurroundView3dSession() 50 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = mConfig.height; in SurroundView3dSession() 275 framesRecord.frames.timestampNs = elapsedRealtimeNano(); in generateFrames() 276 framesRecord.frames.sequenceId = sequenceId++; in generateFrames() 278 framesRecord.frames.svBuffers.resize(mViews.size()); in generateFrames() 280 framesRecord.frames.svBuffers[i].viewId = mViews[i].viewId; in generateFrames() 281 framesRecord.frames.svBuffers[i].hardwareBuffer.nativeHandle = new native_handle_t(); in generateFrames() [all …]
|
H A D | SurroundView2dSession.cpp | 36 framesRecord.frames.svBuffers.resize(1); in SurroundView2dSession() 37 framesRecord.frames.svBuffers[0].viewId = 0; in SurroundView2dSession() 38 framesRecord.frames.svBuffers[0].hardwareBuffer.nativeHandle = in SurroundView2dSession() 40 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in SurroundView2dSession() 42 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in SurroundView2dSession() 204 framesRecord.frames.svBuffers[0].hardwareBuffer.description[0] = in generateFrames() 206 framesRecord.frames.svBuffers[0].hardwareBuffer.description[1] = in generateFrames() 212 framesRecord.frames.timestampNs = elapsedRealtimeNano(); in generateFrames() 213 framesRecord.frames.sequenceId = sequenceId++; in generateFrames() 223 mStream->receiveFrames(framesRecord.frames); in generateFrames()
|
/aosp12/frameworks/av/services/audioflinger/ |
H A D | NBAIO_Tee.h | 126 TEE_FLAG flags = TEE_FLAG_NONE, size_t frames = 0) const { 127 return mTee->set(format, flags, frames); 131 TEE_FLAG flags = TEE_FLAG_NONE, size_t frames = 0) const { 132 return mTee->set(Format_from_SR_C(sampleRate, channelCount, format), flags, frames); 181 status_t set(const NBAIO_Format &format, TEE_FLAG flags, size_t frames) { in set() argument 200 if (frames == 0) { in set() 202 frames = DEFAULT_TEE_FRAMES; in set() 208 if (Format_isEqual(format, mFormat) && frames == mFrames) { in set() 213 auto sinksource = makeSinkSource(format, frames, &enabled); in set() 222 mFrames = frames; in set() [all …]
|
/aosp12/system/core/healthd/ |
H A D | AnimationParser.cpp | 88 std::vector<animation::frame> frames; in parse_animation_desc() local 120 frames.push_back(std::move(frame)); in parse_animation_desc() 127 if (anim->animation_file.empty() || frames.empty()) { in parse_animation_desc() 133 anim->num_frames = frames.size(); in parse_animation_desc() 134 anim->frames = new animation::frame[frames.size()]; in parse_animation_desc() 135 std::copy(frames.begin(), frames.end(), anim->frames); in parse_animation_desc()
|
/aosp12/frameworks/av/media/libeffects/downmix/tests/ |
H A D | downmix_tests.cpp | 134 const size_t frames = input.size() / channels; in channelStatistics() local 135 if (frames > 0) { in channelStatistics() 137 for (size_t i = 0; i < frames; ++i) { in channelStatistics() 159 std::vector<float> input(frames * inChannels); in testBalance() 160 std::vector<float> output(frames * outChannels); in testBalance() 173 for (unsigned j = 0; j < frames; ++j) { in testBalance() 178 run(sampleRate, channelMask, input, output, frames); in testBalance() 236 ASSERT_EQ(frames * inputChannelCount_, input.size()); in run() 237 ASSERT_EQ(frames * outputChannelCount_, output.size()); in run() 258 process(input, output, frames); in run() [all …]
|
/aosp12/frameworks/av/media/libstagefright/webm/ |
H A D | WebmFrameThread.cpp | 115 List<const sp<WebmFrame> >& frames, in initCluster() 118 CHECK(!frames.empty() && children.empty()); in initCluster() 120 const sp<WebmFrame> f = *(frames.begin()); in initCluster() 142 if (frames.empty()) { in flushFrames() 148 initCluster(frames, clusterTimecodeL, children); in flushFrames() 152 size_t n = frames.size(); in flushFrames() 165 const sp<WebmFrame> f = *(frames.begin()); in flushFrames() 172 initCluster(frames, clusterTimecodeL, children); in flushFrames() 175 frames.erase(frames.begin()); in flushFrames() 180 if (!frames.empty()) { in flushFrames() [all …]
|
/aosp12/system/media/audio_utils/tests/ |
H A D | channelmix_tests.cpp | 123 const size_t frames = input.size() / channels; in channelStatistics() local 124 if (frames > 0) { in channelStatistics() 126 for (size_t i = 0; i < frames; ++i) { in channelStatistics() 142 size_t frames = 100; // set to an even number (2, 4, 6 ... ) stream alternates +1, -1. in testBalance() local 145 std::vector<float> input(frames * inChannels); in testBalance() 146 std::vector<float> output(frames * outChannels); in testBalance() 159 for (unsigned j = 0; j < frames; ++j) { in testBalance() 168 for (unsigned j = 0; j < frames; ++j) { in testBalance() 175 ChannelMix(channelMask).process(input.data(), output.data(), frames, accumulate); in testBalance() 180 for (unsigned j = 0; j < frames; ++j) { in testBalance() [all …]
|
/aosp12/system/extras/tests/workloads/ |
H A D | systemapps.sh | 80 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))
|
/aosp12/hardware/interfaces/automotive/sv/1.0/vts/functional/ |
H A D | VtsHalSurroundViewV1_0TargetTest.cpp | 209 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 211 SvBuffer svBuffer2d = frames.svBuffers[0]; in TEST_P() 276 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 277 SvBuffer svBuffer2d = frames.svBuffers[0]; in TEST_P() 316 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 374 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 627 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 642 EXPECT_EQ(frames.svBuffers.size(), 3); in TEST_P() 695 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() 733 EXPECT_EQ(frames.svBuffers.size(), 1); in TEST_P() [all …]
|
/aosp12/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/utils/ |
H A D | DebugLogUtils.java | 57 final StackTraceElement[] frames = e.getStackTrace(); in getStackTrace() 59 for (int j = 1; j < frames.length && j < limit + 1; ++j) { in getStackTrace() 60 sb.append(frames[j].toString() + "\n"); in getStackTrace() 73 final StackTraceElement[] frames = t.getStackTrace(); in getStackTrace() local 74 for (int j = 0; j < frames.length; ++j) { in getStackTrace() 75 sb.append(frames[j].toString() + "\n"); in getStackTrace()
|
/aosp12/bootable/recovery/minui/ |
H A D | resources.cpp | 221 *frames = -1; in res_create_multi_display_surface() 230 *frames = 1; in res_create_multi_display_surface() 237 *frames = atoi(text[i].text); in res_create_multi_display_surface() 242 printf(" found frames = %d\n", *frames); in res_create_multi_display_surface() 248 if (*frames <= 0 || *fps <= 0) { in res_create_multi_display_surface() 249 printf("bad number of frames (%d) and/or FPS (%d)\n", *frames, *fps); in res_create_multi_display_surface() 254 if (height % *frames != 0) { in res_create_multi_display_surface() 255 printf("bad height (%d) for frame count (%d)\n", height, *frames); in res_create_multi_display_surface() 265 for (int i = 0; i < *frames; ++i) { in res_create_multi_display_surface() 281 int frame = y % *frames; in res_create_multi_display_surface() [all …]
|
/aosp12/hardware/libhardware/modules/audio_remote_submix/tests/ |
H A D | remote_submix_tests.cpp | 246 uint64_t frames; in TEST_F() local 249 EXPECT_EQ(uint64_t{0}, frames); in TEST_F() 250 uint64_t prevFrames = frames; in TEST_F() 254 EXPECT_LE(prevFrames, frames); in TEST_F() 255 prevFrames = frames; in TEST_F() 264 uint32_t frames; in TEST_F() local 265 EXPECT_EQ(0, streamOut->get_render_position(streamOut, &frames)); in TEST_F() 266 EXPECT_EQ(0U, frames); in TEST_F() 267 uint32_t prevFrames = frames; in TEST_F() 271 EXPECT_LE(prevFrames, frames); in TEST_F() [all …]
|
/aosp12/system/core/debuggerd/libdebuggerd/ |
H A D | gwp_asan.cpp | 142 std::unique_ptr<uintptr_t[]> frames(new uintptr_t[kMaxTraceLength]); in AddCauseProtos() local 146 __gwp_asan_get_allocation_trace(responsible_allocation_, frames.get(), kMaxTraceLength); in AddCauseProtos() 148 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in AddCauseProtos() 155 __gwp_asan_get_deallocation_trace(responsible_allocation_, frames.get(), kMaxTraceLength); in AddCauseProtos() 157 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in AddCauseProtos() 229 std::unique_ptr<uintptr_t[]> frames(new uintptr_t[kMaxTraceLength]); in DumpDeallocationTrace() local 231 __gwp_asan_get_deallocation_trace(responsible_allocation_, frames.get(), kMaxTraceLength); in DumpDeallocationTrace() 241 unwindstack::FrameData frame_data = unwinder->BuildFrameFromPcOnly(frames[i]); in DumpDeallocationTrace() 256 std::unique_ptr<uintptr_t[]> frames(new uintptr_t[kMaxTraceLength]); in DumpAllocationTrace() local 258 __gwp_asan_get_allocation_trace(responsible_allocation_, frames.get(), kMaxTraceLength); in DumpAllocationTrace() [all …]
|