Stefan Lengfeld

13 Followers
38 Following
39 Posts
Some mockk+android experts out there? I found a strange performance issue with a mock call in our codebase. Mocking AudioManager.requestAudioFocus() takes 800ms in integration tests/on real devices. What? Is mocking O(n) in the terms of class/function or something?
Code: https://codeberg.org/lengfeld/android-app-mockk-performance

I'm preparing some statistics for my talk at FOSDEM (https://fosdem.org/2026/schedule/event/9DRDS7-deep-dive-aosp/) Here is one example. The source code file count in different AOSP versions:

Summary: Nowadays even external/ is way bigger then whole AOSP some years ago ;-)