mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 13:55:58 +00:00
chore: remove source comments and unused code, translate every missing string (#1965)
* chore(i18n): translate every missing string in all locales Adds the 87 strings the bottom-screen Dashboard and in-game stats pages introduced to all 32 locales, plus the 51 older settings strings Japanese and the 50 Chinese locales were still missing. Every locale now has all 3456 translatable strings with the same placeholders as English. Also translates 36 entries that were still English where the language does not use the English word, and makes es-419 touch_app_id use the same %1$s placeholder as English. * chore(patches): drop comments from the lines downstream patches add Removes comment lines and trailing comments from lines our patches add, with hunk headers recounted. Lines that a later patch uses as context and the upstream backport 0123 are left as they are. The gamescope, FEX, proot and xodus series still apply to their pinned sources, and the patched trees differ only in those comments. test_hud_frames now finds the HUD writer by its first declaration. * docs: credit Greenlight, Better xCloud, viture-v2, GameNative and DiRTTelemetryErrorFix These were credited only in source headers and NOTICE files. * chore: remove source comments and unused functions Removes explanatory comments from first-party Kotlin, Java, C, C++, Rust, TypeScript, Python, shell, Gradle, CMake and workflow files. License and attribution headers stay, and vendored third-party trees, generated files and license files are untouched. A shellcheck directive is kept, and udevmon's fallthrough comments became fallthrough attributes. Syntax trees and token streams match the previous sources apart from the comments and Python docstrings. Module docstrings that argparse prints are kept, and device-smoke.sh prints the same --help text from a heredoc. Also removes 37 functions and 4 fields that nothing referenced. * chore: remove comments from the Syncthing integration and the latest main sources * docs: credit Syncthing and the syncthing-android fork * chore(i18n): translate the Syncthing strings in all locales The 107 strings the Syncthing integration added are now in all 32 locales. sync_web_path_locked names the Syncthing tab by its label. * docs: credit @xXJSONDeruloXx for the HUD metric readers The CPU, GPU load, thermal and battery readers come from their PerformanceHudView pull requests #777, #877, #991, #1406 and #1573. The FusionHUD credit line is unchanged. * docs: credit the HUD metric readers to @xXJSONDeruloXx's work
This commit is contained in:
1 parent
d730f0fa8b
commit
c5577478ca
511 files changed
+6813
-4068
No files matched your search
@@ -1,5 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Build the Quest allocation adapter around the unchanged bundled Android Turnip."""
|
||||
import io
|
||||
import json
|
||||
from pathlib import Path
|
||||
@@ -34,7 +33,6 @@ def pack(entries, output):
|
||||
|
||||
|
||||
def build_a6xx(ndk, output_dir=OUTPUT.parent, archive_path=None):
|
||||
"""Pin a real A6xx driver, with a separate Quest adapter around the same bytes."""
|
||||
cached = archive_path or ROOT / 'app/build/quest-inputs' / f'Turnip-{A6XX_TAG}.zip'
|
||||
if not cached.exists():
|
||||
cached.parent.mkdir(parents=True, exist_ok=True)
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* Exercise the production vkp_render entrypoint without Android/Vulkan hardware.
|
||||
* The Python runner extracts that function verbatim into the included file. */
|
||||
#include <assert.h>
|
||||
#include <stddef.h>
|
||||
#include <stdio.h>
|
||||
@@ -18,8 +16,6 @@ static void vkp_signal_first_frame(void) { first_frames++; }
|
||||
static int vkp_base_black(int w, int h) { base_calls++; return base_result; }
|
||||
static int sc_layer_present_pass(const struct vkp_draw *draws, int n, int w, int h) {
|
||||
pass_calls++;
|
||||
/* Production sc_layer_present_pass signals only after a content submission.
|
||||
* Its no-op results (off-screen geometry or pool exhaustion) also return 0. */
|
||||
if (pass_result == 0 && pass_shown) vkp_signal_first_frame();
|
||||
return pass_result;
|
||||
}
|
||||
@@ -40,12 +36,10 @@ int main(void) {
|
||||
for (int i = 0; i < 3; i++) assert(vkp_render(1280, 720, NULL, 0) == 0);
|
||||
assert(base_calls == 3 && pass_calls == 0 && first_frames == 0);
|
||||
|
||||
/* An accepted layer operation is not necessarily a displayed client frame. */
|
||||
reset();
|
||||
assert(vkp_render(1280, 720, &draw, 1) == 0);
|
||||
assert(pass_calls == 1 && base_calls == 1 && first_frames == 0);
|
||||
|
||||
/* Content is the sole owner of the notification, with no second backdrop event. */
|
||||
reset(); pass_shown = 1;
|
||||
assert(vkp_render(1280, 720, &draw, 1) == 0);
|
||||
assert(first_frames == 1);
|
||||
@@ -59,7 +53,6 @@ int main(void) {
|
||||
assert(vkp_render(1280, 720, NULL, 0) == -1);
|
||||
assert(first_frames == 0);
|
||||
|
||||
/* Existing routes remain responsible for their own notifications. */
|
||||
for (int mode = 0; mode < 3; mode++) {
|
||||
reset();
|
||||
if (mode == 0) quest = 0;
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* Exercise the production backdrop with mock Android buffers/transactions. */
|
||||
#include "../../app/src/main/cpp/waylandcomp/src/sc_layer.c"
|
||||
#include "../../app/src/main/cpp/waylandcomp/src/quest_device.h"
|
||||
#include <assert.h>
|
||||
@@ -40,7 +39,6 @@ static void tx_delete(ASurfaceTransaction *t) { assert(t == (ASurfaceTransaction
|
||||
static void tx_apply(ASurfaceTransaction *t) { (void)t; applies++; }
|
||||
static void set_buffer(ASurfaceTransaction *t, ASurfaceControl *s, AHardwareBuffer *b, int fd) {
|
||||
(void)t; (void)s; assert(b == &buffer && fd == -1);
|
||||
/* No garbage, including padded row bytes, reaches the display. */
|
||||
for (unsigned i=0; i<sizeof(buffer.pixels); i++) assert(buffer.pixels[i] == 0);
|
||||
assert(unlocks > 0); buffers++;
|
||||
}
|
||||
@@ -79,7 +77,7 @@ int main(void) {
|
||||
assert(visible==ASC_VISIBILITY_SHOW && zorder==0 && opacity==ASC_TRANSPARENCY_OPAQUE);
|
||||
assert(destination.right==1920 && destination.bottom==1080);
|
||||
assert(allocs==1 && locks==1 && buffers==1 && creates==1);
|
||||
assert(sc_layer_base_black(1920,1080)==0 && applies==1); /* retained, not redrawn */
|
||||
assert(sc_layer_base_black(1920,1080)==0 && applies==1);
|
||||
assert(sc_layer_base_black(1440,1080)==0 && destination.right==1440 && allocs==1);
|
||||
sc_layer_hide_base(); assert(!visible && !g_base_shown);
|
||||
assert(sc_layer_base_black(1440,1080)==0 && visible && allocs==1);
|
||||
|
||||
Reference in new issue
Block a user