summaryrefslogtreecommitdiff
path: root/Source/Android/jni/AndroidCommon
AgeCommit message (Collapse)Author
2026-01-24Remove VectorToJStringArraySintendo
2026-01-24Common/FileSearch: Refactor DoFileSearchSintendo
2025-11-11Android: Convert NetworkHelper to KotlinSimonx22
2025-11-08Android: Use the shared HTTP analytics backendSimonx22
We can now route Android analytics through Common::HttpAnalyticsBackend, drop the Volley sender, and keep the JNI layer limited to only transfer metadata since https://bugs.dolphin-emu.org/issues/11772 has been fixed.
2025-05-25Android: Ask system for optimal audio buffer size and sample rateJosJuice
This can reduce audio latency according to https://developer.android.com/ndk/guides/audio/opensl/opensl-prog-notes#perform. Previously we were using the hardcoded values of 48000 Hz and 256 frames per buffer. The sample rate we use with this change is 48000 Hz on all devices I'm aware of, but the buffer size does vary across devices. Terminology note: The old code used the term "sample" to refer to what Android refers to as a "frame". "Frame" is a clearer term to use for this, so I've changed OpenSLESStream's terminology. One frame consists of one sample per channel.
2025-05-07Android: Add emulated Wii SpeakSepalani
2025-03-23Android: Don't use separate thread for MotionAlertDialogJosJuice
This is an Android continuation of bc95c00. We now call InputDetector::Update immediately after receiving an input event from Android instead of periodically calling it in a sleep loop. This improves detection of very short inputs, which are especially likely to occur for volume buttons on phones (or at least on my phone) if you don't intentionally keep them held down.
2025-03-15InputCommon/ControllerEmu: Break out functionality of EmulatedControllerJordan Woyak
to eliminate redundant unused members in Wii Remote extension objects.
2025-03-15Merge pull request #12866 from JosJuice/android-log-types-sortingJosJuice
Android: Replace log type names map with array
2024-10-17Simplify `std::remove` with `std::erase`mitaclaw
`std::erase` is a replacement for the remove-erase idiom. Changes to `OpenModeToAndroid` inadvertently revealed that the prior implementation had UB (potentially deleting the end iterator). This is now fixed.
2024-06-15Android: Replace log type names map with arrayJosJuice
Storing the log type names in a map results in them getting re-sorted by their keys, which doesn't quite give us the sorting we want. In particular, the Achievements category ended up being sorted at R (for RetroAchivements) instead of at A. Every use of the map is just iterating through it, so there's no real reason why it has to be a map anyway.
2024-04-06NativeLibrary: Create displayToastMsg Methodmitaclaw
2023-12-11AndroidCommon: Resolve -Wsign-compare warningLioncash
2023-12-07Android: Expose config changed callbacksJosJuice
2023-09-02Android: Use JNI for setting/getting ISO pathsJosJuice
This gets rid of the last Android-specific code that directly interfaces with INI files.
2023-08-26Merge pull request #11919 from t895/kotlin-controlsJosJuice
Android: Convert "features.input" package to Kotlin
2023-08-25Android: Convert GameFileCache to KotlinCharles Lombardo
2023-08-25Android: Convert GameFile to KotlinCharles Lombardo
2023-08-25Android: Convert NumericSetting to KotlinCharles Lombardo
2023-08-25Android: Convert CoreDevice to KotlinCharles Lombardo
2023-08-25Android: Convert EmulatedController to KotlinCharles Lombardo
2023-08-25Android: Convert ControlReference to KotlinCharles Lombardo
2023-08-25Android: Convert ControlGroup to KotlinCharles Lombardo
2023-08-25Android: Convert Control to KotlinCharles Lombardo
2023-05-28Android: Add Hashmap to IDCacheJoshua de Reeper
2023-03-18Android: Translate C++ "w" to ParcelFileDescriptor "wt"JosJuice
Previously we were translating "w" to "w", which unlike in C++ doesn't truncate. See https://issuetracker.google.com/issues/180526528, and for reference, https://en.cppreference.com/w/cpp/io/c/fopen and https://en.cppreference.com/w/cpp/io/basic_filebuf/open. This issue was brought to my attention by the recently published issue CVE-2023-21036 in the screenshot editing tool on Pixel phones. I'm not aware of any code in Dolphin that actually uses "w" with an existing file on Android (when we ask the user for a location to save to using SAF, a new file is always created), but still, best to fix this.
2023-03-07Android: Add the advanced input mapping dialogJosJuice
It's missing a lot of features from the PC version for now, like buttons for inserting functions and the ability to see what the expression evaluates to. I mostly just wanted to get something in place so you can set up rumble. Co-authored-by: Charles Lombardo <clombardo169@gmail.com>
2023-03-03Android: Add NumericSetting supportJosJuice
2023-03-03Android: Add new input mapping implementationJosJuice
2023-03-03Android: Remove old rumble implementationJosJuice
2023-03-02Merge pull request #11614 from t895/kotlin-cheatsMai
Android: Convert Cheats Activity to Kotlin
2023-03-01Android: Convert RiivolutionPatches to KotlinCharles Lombardo
2023-03-01Android: Convert GraphicsMod to KotlinCharles Lombardo
2023-03-01Android: Convert GraphicsModGroup to KotlinCharles Lombardo
2023-03-01Android: Convert PatchCheat to KotlinCharles Lombardo
2023-03-01Android: Convert ARCheat to KotlinCharles Lombardo
2023-01-30AndroidCommon: Make use of std::string_view where applicableLioncash
Several of these can take a string_view rather than needing to specifically use std::string.
2023-01-24Common: Replace StringBeginsWith/StringEndsWith with std equivalentsLioncash
Obsoletes these functions in favor of the standard member functions added in C++20.
2022-12-27Android: Add VectorToJObjectArray utility functionJosJuice
2022-12-27Android: Make more meticulous use of DeleteLocalRefJosJuice
If we're in a function that isn't just going to immediately return to Java, leaking local references can lead to problems eventually.
2022-07-23Android: Add graphics mods support to CheatsActivityJosJuice
2022-01-21WiiUpdateCallback: Add interface for update callbackOatmealDome
2021-10-30Android: Add Riivolution patch configurationJosJuice
2021-10-13Android: Improve OpenModeToAndroid's handling of 'b'JosJuice
Now it also works when b isn't at the very end. (+ goes after b.)
2021-09-16Android: Implement basic read-only cheats listJosJuice
2021-07-05treewide: convert GPLv2+ license info to SPDX tagsPierre Bourdon
SPDX standardizes how source code conveys its copyright and licensing information. See https://spdx.github.io/spdx-spec/1-rationale/ . SPDX tags are adopted in many large projects, including things like the Linux kernel.
2021-05-24Android: Use DeleteLocalRef more in AndroidCommonJosJuice
Any local references get cleaned up when returning to the JVM, but some of the functions in AndroidCommon return to C++ rather than the JVM, and functions with loops risk running into the limit of how many simultaneous local references are allowed.
2021-05-20Android: Use JNI for getting post-processsing shadersJosJuice
The Java implementation of getting the list of post-processing shaders only looked in the Sys folder and not the User folder. This could be fixed in the Java implementation, but it's simpler to just call the C++ implementation instead.
2021-03-04Android: Remove #ifdef __cplusplus checksJosJuice
A C compiler would very much be unable to build this code anyway.
2021-03-03Android: Delete more references in IDCache.cppJosJuice
It's not causing any problems in practice so far, but let's fix it before I add even more stuff without remembering to delete references.