hex/android/app/src/main/res
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Ryan Vogel 39801e87ba Android: Labs › Pick the English model for this phone (off)
Hex measures real dictations and, where English dictation is slow on the
phone, chooses faster English dictation for it (Ryan's decision; plan in
hex-android-model-by-phone-rule-plan.md, L135). Behind a new Labs switch,
off by default; whether it becomes the default, and every word, is Ryan's.

What it measures: only while faster English dictation is off, each
dictation that went in and would go to the faster model were it on
(English, not translated, Automatic with one candidate), on the standard
model, with at least 6 s kept, the model loaded before the tick (already
loaded, or loaded while the person spoke: the decode's wall time then
holds no load) and no second decode without the custom words. Its number
is decode wall time per second kept. MicCapture hands each dictation's
durations to Recognizer.timed; ModelChoice.after is the one place it
decides: median of the last 5 at least 0.5, and the last 20 dictations
all English-routable. One way: once chosen it never decides again.

What it does: the keyboard only records. MainActivity.onResume
(ModelChoice.whenOpened) turns faster English dictation on and starts its
135 MB download. Turning faster English dictation off by hand, or Delete
download, sets fastEnglishOffByHand, and the rule never turns it on again.

Changed behaviour: the 135 MB model is now Wi-Fi-first like the 190 MB
one, whoever asked for it. On a metered network a Labs tap no longer
downloads at once: its row says "135 MB. Starts by itself on Wi-Fi." with
Use mobile data, and Wi-Fi coming back starts it.

What it keeps: the private "modelChoice" preferences (the last 5 ratios,
English dictations in a row up to 20, counts by reason, the choice's
date and median), numbers only; turning the lab off deletes the file and
leaves a setting or download it made. Diagnostics gets a "Model choice:"
line (median, count, threshold, decision and date, N of 20 in a row,
counts not counted by reason). Dictation's speech model card says what is
true while it waits, downloads and once ready. Privacy page (both
copies), policy and site say what is kept (proposals for Ryan).
Debug builds only: setprop log.tag.HexDecodeScale DEBUG (x10) or VERBOSE
(x0.5) scales the measured time.

Verified on anomastudio (OpenJDK 21, SDK 36): testDebugUnitTest passed
362 tests, 0 failures (ModelChoiceTest's 17 among them, with the OnePlus
12's two reports); the R8-minified release and preview dex contain no
"HexDecodeScale" (the debug dex does). Emulator hex-modelrule-vogel (API
36): lab off stores nothing; fast dictations (median 0.30) and one 3.11
outlier don't decide; a Spanish and a translated dictation reset the row;
slow ones decide on the 20th in a row with no download from the keyboard;
on 5G it waits, Wi-Fi starts it, the next dictation runs on faster
English dictation and the rule stops measuring; low memory falls back;
Delete download keeps it off across restarts; a hand tap on 5G waits and
Use mobile data downloads; the lab off deletes the numbers and leaves
the download. Chinese screens checked.
2026-11-25 05:07:34 -05:00
..
drawable android: keyboard tools in the suggestion strip (labs) (#2604) 2026-11-23 18:34:08 -05:00
font Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00
mipmap-anydpi-v26 Hex for Android: on-device dictation keyboard (#2074) 2026-11-20 17:27:17 +00:00
values Android: Labs › Pick the English model for this phone (off) 2026-11-25 05:07:34 -05:00
values-de Android keyboard: number, phone and date pads, the symbol page's 1234 pad, faded keys behind hold lists, emoji titles in sentence case (#2276) 2026-11-21 18:21:08 -05:00
values-es Android keyboard: number, phone and date pads, the symbol page's 1234 pad, faded keys behind hold lists, emoji titles in sentence case (#2276) 2026-11-21 18:21:08 -05:00
values-fr Android keyboard: number, phone and date pads, the symbol page's 1234 pad, faded keys behind hold lists, emoji titles in sentence case (#2276) 2026-11-21 18:21:08 -05:00
values-it Android keyboard: number, phone and date pads, the symbol page's 1234 pad, faded keys behind hold lists, emoji titles in sentence case (#2276) 2026-11-21 18:21:08 -05:00
values-nb Android keyboard: number, phone and date pads, the symbol page's 1234 pad, faded keys behind hold lists, emoji titles in sentence case (#2276) 2026-11-21 18:21:08 -05:00
values-night Android keyboard: emoji key and panel (AndroidX emoji picker), whole-emoji delete (#2275) 2026-11-21 17:56:03 -05:00
values-zh-rCN Android: Labs › Pick the English model for this phone (off) 2026-11-25 05:07:34 -05:00
xml Android: Hex words files (Word replacements, review sheet, export) (#2781) 2026-11-24 19:42:04 -05:00