You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
koreader/frontend/ui
NiLuJe 86c35ad066
A host of low power states related tweaks (#9036)
* Disable all non power management related input during suspend. (This prevents wonky touch events from being tripped when closing a sleep cover on an already-in-suspend device, among other things).
* Kobo: Use our WakeupMgr instance, not the class.
* WakupMgr: split `removeTask` in two: 
* `removeTask`, which *only* takes a queue index as input, and only removes a single task. Greatly simplifies the function (i.e., it's just a `table.remove`).
* `removeTasks`, which takes an epoch or a cb ref, and removes *every* task that matches.
* Both of these will also *always* re-schedule the next task (if any) on exit, since we can have multiple WakeupMgr tasks queued, but we can only have a single RTC wake alarm set ;).
* `wakeupAction` now takes a `proximity` argument, which it passes on to its `validateWakeupAlarmByProximity` call, allowing call sites to avoir having to duplicate that call themselves when they want to use a custom proximity window.
* `wakeupAction` now re-schedules the next task (if any) on exit.
* Simplify `Kobo:checkUnexpectedWakeup`, by removing the duplicate `WakerupMgr:validateWakeupAlarmByProximity` call, now that we can pass a proximity window to `WakeuoMgr:wakeupAction`.
* The various network activity timeouts are now halved when autostandby is enabled.
* Autostandby: get rid of the dummy deadline_guard task, as it's no longer necessary since #9009.
* UIManager: The previous change allows us to simplify `getNextTaskTimes` into a simpler `getNextTaskTime` variant, getting rid of a table & a loop.
* ReaderFooter & ReaderHeader: Make sure we only perform a single refresh when exiting standby.
* Kobo: Rewrite sysfs writes to use ANSI C via FFI instead of stdio via Lua, as it obscured some common error cases (e.g., EBUSY on /sys/power/state).
* Kobo: Simplify `suspend`, now that we have sane error handling in sysfs writes.
* Kobo.powerd: Change `isCharging` & `isAuxCharging` behavior to match the behavior of the NTX ioctl (i.e., Charging == Plugged-in). This has the added benefit of making the AutoSuspend checks behave sensibly in the "fully-charged but still plugged in" scenario (because being plugged in is enough to break PM on `!canPowerSaveWhileCharging` devices).
* AutoSuspend: Disable our `AllowStandby` handler when auto standby is disabled, so as to not interfere with other modules using `UIManager:allowStandby` (fix #9038).
* PowerD: Allow platforms to implement `isCharged`, indicating that the battery is full while still plugged in to a power source (battery icon becomes a power plug icon).
* Kobo.powerd: Implement `isCharged`, and kill charging LEDs once battery is full.
* Kindle.powerd: Implement `isCharged` on post-Wario devices. (`isCharging` is still true in that state, as it ought to).
2 years ago
..
data Non-touch: highlight movement improvement and enable page crop (#8947) 2 years ago
elements Manu: Fix menu entry, when no keyboards are activated (#9008) 2 years ago
message Remove zsync plugin (#7957) 3 years ago
network A host of low power states related tweaks (#9036) 2 years ago
plugin Plugins: adds PluginMenuInserter helper (#7419) 3 years ago
widget A host of low power states related tweaks (#9036) 2 years ago
bidi.lua Bidi: keep invert() generic, handle settings in ReaderView (#8876) 2 years ago
cloudmgr.lua Standardize select/choose to choose (#8128) 3 years ago
downloadmgr.lua Calibre plugin fixes for android (#6996) 4 years ago
event.lua Revamp flash_ui handling, once more, with feeling ;) (#7262) 3 years ago
font.lua Keyboard: add Bengali Probhat layout (#8887) 2 years ago
geometry.lua [doc] add documentation to a few widgets (#8425) 3 years ago
gesturerange.lua Minor Input & TimeVal cleanups 3 years ago
hook_container.lua Input: Process input events in batches (#7483) 3 years ago
language.lua Keyboard: add Bengali Probhat layout (#8887) 2 years ago
menusorter.lua [fix] MenuSorter: use orderedPairs for orphans (#6403) 4 years ago
otamanager.lua [i18n] Add context to "Update" (#8519) 3 years ago
quickstart.lua Quick start guide: fix links to images (#8072) 3 years ago
renderimage.lua Update UI layout code to use new SVG icons 4 years ago
rendertext.lua Cache: Some more tweaks after #7624 3 years ago
screensaver.lua ScreenSaver: Minor refactor to avoid code duplication and weird rotation shenanigans (#8943) 2 years ago
size.lua [RFC] Pagination UI shenanigans (#7335) 3 years ago
timeval.lua TimeVal: Do a runtime check for CLOCK_BOOTTIME support (#8832) 2 years ago
translator.lua translator: clear highlight on close if needed 2 years ago
trapper.lua Trapper: fix doc (#8539) 3 years ago
uimanager.lua A host of low power states related tweaks (#9036) 2 years ago
wikipedia.lua Minor Lua I/O cleanups (#8921) 2 years ago