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/spec/unit
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
..
autofrontlight_spec.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
autosuspend_spec.lua The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 3 years ago
background_runner_spec.lua The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 3 years ago
background_task_plugin_spec.lua Tame BackgroundRunner: stop running when no more job (#6605) 4 years ago
batterystat_spec.lua Battery stats plugin: fix and improvements (#5626) 5 years ago
benchmark.lua Travis: run luacheck on unit tests (#3059) 7 years ago
cache_spec.lua Cache: Rewrite based on lua-lru 3 years ago
commonrequire.lua Unbreak ReaderFooter test 3 years ago
dbg_spec.lua dbg_spec: setVerbose test 7 years ago
defaults_spec.lua Double tap: Update default tap zones (#7711) 3 years ago
depgraph_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
device_spec.lua Geom: nil guard a few rect methods (#7664) 3 years ago
docsettings_spec.lua Use fsync() for more robust setting files saving 5 years ago
document_registry_spec.lua Tests: make sure files are deleted (#6323) 4 years ago
document_spec.lua Keyboard: add Bengali Probhat layout (#8887) 2 years ago
eink_optimization_spec.lua move e-ink related settings to a submenu (#4246) 6 years ago
exporter_plugin_main_spec.lua [plugin] Exporter plugin without evernote (#7983) 3 years ago
filemanager_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
filemanagerconverter_spec.lua Update UI layout code to use new SVG icons 4 years ago
focusmanager_spec.lua [feat] Non-touch improvements (#8859) 2 years ago
font_spec.lua dbg(add): guard method to toggle assert at based at runtimemode 8 years ago
frontlight_spec.lua Slightly less crappy Nightmode (#4871) 5 years ago
gesturedetector_spec.lua Pocketbook: Implement HW screen rotation, bring in PB specific kludges from linuxfb (#6684) 4 years ago
gesturerange_spec.lua test(chore): remove side effects 7 years ago
gettext_spec.lua [i18n] GetText: ignore fuzzy strings (#5807) 4 years ago
hook_container_spec.lua Move kobo auto-suspension logic out of UIManager (#2933) 7 years ago
httpclient_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago
imagewidget_spec.lua Update UI layout code to use new SVG icons 4 years ago
input_spec.lua Input: Minor cleanups (#7542) 3 years ago
inputtext_spec.lua [feat] Add ReaderBack (#3821) 6 years ago
koptinterface_spec.lua Cache: Rewrite based on lua-lru 3 years ago
kosync_spec.lua [doc] Tag @todo, @fixme and @warning (#5244) 5 years ago
luadata_spec.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
luasettings_spec.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
menu_table_screen_color_spec.lua chore: add test for screen color toggle 5 years ago
menusorter_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
mock_time.lua Autosuspend: add autostandby (#8815) 2 years ago
mock_time_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago
network_manager_spec.lua [chore] Some Wi-Fi tweaks (#4564) 5 years ago
networksetting_spec.lua Various Wi-Fi QoL improvements (#6424) 4 years ago
nickel_conf_spec.lua [fix, Kobo] Don't crash trying to sync frontlight with Nickel. (#5361) 5 years ago
opds_spec.lua [plugin] Display OPDS download titles if available (#8441) 3 years ago
optmath_spec.lua [autosuspend, plugin] Switch to datetimewidget and provide default values (#8480) 3 years ago
persist_spec.lua Persist: Add the new native LuaJIT serializer to the list of supported codecs (#7543) 3 years ago
quickstart_spec.lua quickstart fix (#2804) 7 years ago
random_spec.lua Update KOSyncClient 8 years ago
readerbookmark_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
readerdictionary_spec.lua [chore] Fix todo and fixme tags (#8365) 3 years ago
readerfooter_spec.lua ReaderFooter test: Untangle settings handling 3 years ago
readerhighlight_spec.lua spec: add tests for LanguageSupport 3 years ago
readerlink_spec.lua Document: Round dimensions properly in getPageDimensions (#8170) 3 years ago
readerpaging_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
readerrolling_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
readersearch_spec.lua Prevent Busted from blowing up on cdata finalizers by properly closing 4 years ago
readertoc_spec.lua Prevent Busted from blowing up on cdata finalizers by properly closing 4 years ago
readerui_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
readerview_spec.lua Document: Round dimensions properly in getPageDimensions (#8170) 3 years ago
readhistory_spec.lua LuaSettings: Add a method to initialize a setting properly (#7371) 3 years ago
screenshoter_spec.lua Tests: Handle FM/ReaderUI instances slightly more sanely 3 years ago
size_spec.lua Added Size module 7 years ago
spore_spec.lua test(chore): remove side effects 7 years ago
switch_plugin_spec.lua SwitchPlugin and BackgroundTaskPlugin with tests (#3137) 7 years ago
textboxwidget_spec.lua TextBoxWidget: use xtext for text shaping 5 years ago
timeval_spec.lua The great Input/GestureDetector/TimeVal spring cleanup (a.k.a., a saner main loop) (#7415) 3 years ago
toggleswitch_spec.lua [spec] Add ToggleSwitch spec stub (#5450) 5 years ago
touch_probe_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago
translator_spec.lua Fix translator, enable selected text translation 6 years ago
uimanager_bench.lua Travis: run luacheck on unit tests (#3059) 7 years ago
uimanager_spec.lua ReaderUI: Saner FM/RD lifecycle 3 years ago
util_spec.lua DeviceMenu: Colons and more information (#8435) 3 years ago
version_spec.lua [chore, spec] Version: test 8-character hash just in case (#7809) 3 years ago
wakeupmgr_spec.lua A host of low power states related tweaks (#9036) 2 years ago
widget_inputcontainer_spec.lua Tame a few tests that relied on `pairs` being somewhat deterministic (#6371) 4 years ago
widget_menu_spec.lua [fix] Use orderedPairs in touch menu item table (#6404) 4 years ago
widget_progresswidget_spec.lua [travis] Add protection against unscaled sizes 7 years ago
wikipedia_spec.lua Travis: run luacheck on unit tests (#3059) 7 years ago