summaryrefslogtreecommitdiffstats
path: root/uisimulator
AgeCommit message (Collapse)AuthorFilesLines
6 days[BugFix] Multiboot Database duplicate filesWilliam Wilgus1-0/+5
When the sd card is mounted into the root namespace the database picks up files through both paths previously we hid the mounted drive but this causes issues with users databases when the drive letter changes Adds a way to keep track of volumes mounted in the root namespace Hides the enumerated volume in root Database: we can just parse the root directory ('/') and get to any mounted volume but we can also enumerate a volume in the root directory when this occurs it leads to multiple entries since the files can be reached through multiple paths ex, /Foo could also be /SD1/Foo Instead we will attempt to rewrite the root with any non-hidden volumes failing that just leave the paths alone Change-Id: I7bdba8cfaf63902d2a3852d28484bcf8ca317ebd
2022-05-22simulator: fix off by one error in USB ack calculationsAidan MacDonald1-1/+3
The sim's printout of the number of expected USB acks was off by one. Since the sim queue is not registered for broadcasts, it will not receive an ack message and does not need to account for itself when determining the number of acks to expect, unlike the USB code. Change-Id: I6715039c05c1ea95099716c5251d401e37f5b085
2022-03-03[RESTORED!] Allow mounting of any directory as the root directory.William Wilgus1-0/+2
Provide definitions for the macros: * RB_ROOT_VOL_HIDDEN(v) to exclude certain items from the root. * RB_ROOT_CONTENTS to return a string with the name of the directory to mount in the root. Defaults are in export/rbpaths.h It's a bit much for those that don't need the full functionality. Some conditional define can cut it back a lot to cut out things only needed if alternate root mounts are required. I'm just not bothering yet. The basic concept would be applied to all targets to keep file code from forking too much. Change-Id: I3b5a14c530ff4b10d97f67636237d96875eb8969 Author: Michael Sevakis
2021-12-23powermgmt: Add battery current measurementAidan MacDonald1-0/+11
This allows targets to report the actual discharging or charging current if they are able to. Change-Id: I0b538e6ac94346f1434e45f83c8da8c1260a53a3
2021-12-23powermgmt: Refactor battery measurement codeAidan MacDonald1-17/+28
I've tried to clean up cruft and clarify what's being done, prior to adding new features. The behavior should be unchanged. Change-Id: If8a68b7b48173d283df981a21cdd854b714e7695
2021-12-10m3k simulator: remove white borderChristian Soffke2-11/+11
Change-Id: I1503dadc966af568c8a4482e1d7f5641092594f0
2021-12-10m3k simulator: add screen bezelChristian Soffke2-11/+11
Change-Id: I4a34e5be7a459f909b81266b70c30f2968068696
2021-11-27uisimulator: remove an unused fileAidan MacDonald1-102/+0
Appears to be a holdover from archos. Change-Id: I93a2c04f64a3beff86281943dddc1138a893ff86
2021-11-12uisimulator: add keyboard mappings for M3K scrollstripAidan MacDonald1-0/+2
Change-Id: I2e6d5464fac6d9e1e292b17f5c1bbf646c1555de
2021-10-31USB fix red for device without HAVE_USB_POWER again.William Wilgus1-1/+1
Change-Id: I3122d532cbb8d5b5cb9040f08707c1514bc1b18e
2021-10-31Use USB events for storing plugin_menu stateWilliam Wilgus1-1/+1
use usb connected callback to cancel menu reentry after USB plug/unplug Change-Id: I8267deed6e8ada94ca527392f56f50ef22def1d7
2021-10-31USB add Insertion and Extraction callback eventsWilliam Wilgus1-0/+7
We have this nice event library laying around probably a few more places we could use event callbacks Change-Id: I9180fa9d78788d161f2587110644ca3e08df6f50
2021-10-16Fiio M3k UI Simulator: Fix upside-down mapping for volume buttonsChristian Soffke1-2/+2
Change-Id: I57a1ee1ac43ea0eb5587e6249ef6bb06ab7342af
2021-07-18sim: change Eros Q native bitmap to a symlinkAidan MacDonald1-0/+0
Change-Id: Id55ef276af0de52d7cbd8c7cdc6da46f171a01bd
2021-07-18add Eros Q native simulator buildAidan MacDonald1-0/+0
Change-Id: Ifdc882d19020da2e18234d6276409ad3e7efa138
2021-07-13New port: Shanling Q1 nativeAidan MacDonald3-0/+74
- Audio playback works - Touchscreen and buttons work - Bootloader works and is capable of dual boot - Plugins are working - Cabbiev2 theme has been ported - Stable for general usage Thanks to Marc Aarts for porting Cabbiev2 and plugin bitmaps. There's a few minor known issues: - Bootloader must be installed manually using 'usbboot' as there is no support in jztool yet. - Keymaps may be lacking, need further testing and feedback. - Some plugins may not be fully adapted to the screen size and could benefit from further tweaking. - LCD shows abnormal effects under some circumstances: for example, after viewing a mostly black screen an afterimage appears briefly when going back to a brightly-lit screen. Sudden power-off without proper shutdown of the backlight causes a "dissolving" effect. - CW2015 battery reporting driver is buggy, and disabled for now. Battery reporting is currently voltage-based using the AXP192. Change-Id: I635e83f02a880192c5a82cb0861ad3a61c137c3a
2021-07-11uisimulator: implement sim_modtimeJames Buren2-0/+11
Change-Id: I1094632df092ba63605631333e939cf30b585a59
2021-07-07Fix red introduced in 841e704fc3Solomon Peachy1-2/+6
Change-Id: I5a924f77231a4764f3ad9b196875f5bf073945d6
2021-06-07ErosQ Simulator: fix keymapDana Conrad1-0/+2
The eros q simulator keys have been weird for a while, found out why. Change-Id: Icb4209774448bc3c0d67dd87f802661cf12874b2
2021-04-26Nuke the never-functional iriver ifp-7xx portSolomon Peachy3-73/+0
It never worked, and hasn't compiled in something like a decade, Given the HW capabilities (limited onboard flash, no expandability) there's really no point in trying to fix/complete it. Change-Id: I7d175089840396f8891645bd10010d730dd5bfdc
2021-04-26Nuke all TCC77x targets: iAudio 7, Sansa C100, M200(v1-3), Logik DAXSolomon Peachy2-2/+0
They were never finished, never saw any release ever, and haven't compiled for the better part of a decade. Given their HW capabilities [1], they are not worth trying to fix. [1] 1-2MB RAM, ~256MB onboard flash, no expandability Change-Id: I7b2a5806d687114c22156bb0458d4a10a9734190
2021-04-03Fix accidental fallthrough in FiiO M3K simulator keymapAidan MacDonald1-2/+2
Change-Id: I4959d44998c44b5458721ba5f76ab5bc761e9f83
2021-03-28Add M3K native to the simulatorSolomon Peachy3-0/+99
Change-Id: If3e877d2df189e44076631fd571cf6aa70ce6ca8
2020-10-21Add UI Simulator for Eros Q / K seriesSolomon Peachy3-0/+91
Change-Id: I9ffc101bd904b3f0e2d6a86a43fb1ae3fda73a19
2020-10-17Fix sim build for STORAGE_USBSolomon Peachy1-0/+2
Change-Id: Ie738fbc834523796a08af31f1a649632246e2bb4
2020-09-28xduoox20: UI Simulator supportSolomon Peachy3-0/+82
Change-Id: I2a03cea07fbad9fb5862ca69e4cfca2e8ca6b17f
2020-08-20Revert root_redirect :(William Wilgus1-2/+0
This reverts commit 31fc46ded69be7438cca2ba2c2b93c1f200165a6. Change-Id: Ia78618c0e8b25ca65f7c8ae0db1cb9c9b321bad9
2020-08-20Allow mounting of any directory as the root directory.William Wilgus1-0/+2
Provide definitions for the macros: * RB_ROOT_VOL_HIDDEN(v) to exclude certain items from the root. * RB_ROOT_CONTENTS to return a string with the name of the directory to mount in the root. Defaults are in export/rbpaths.h It's a bit much for those that don't need the full functionality. Some conditional define can cut it back a lot to cut out things only needed if alternate root mounts are required. I'm just not bothering yet. The basic concept would be applied to all targets to keep file code from forking too much. Change-Id: I90b5c0a1c949283d3102c16734b0b6ac73901a30
2020-07-24[3/4] Completely remove HWCODEC supportSolomon Peachy1-69/+0
'swcodec' is now always set (and recording_swcodec for recording-capable units) in feature.txt so the manual and language strings don't need to all be fixed up. Change-Id: Ib2c9d5d157af8d33653e2d4b4a12881b9aa6ddb0
2020-07-24[2/4] get rid of HAVE_LCD_CHARCELLSSolomon Peachy9-1071/+2
HAVE_LCD_BITMAP is now redundant. lcd_bitmap is always-on in features.txt so manual and lang strings don't have to change Change-Id: I08eeb20de48099ffc2dc23782711af368c2ec794
2020-07-24[1/4] Remove SH support and all archos targetsSolomon Peachy12-299/+0
This removes all code specific to SH targets Change-Id: I7980523785d2596e65c06430f4638eec74a06061
2020-06-12misc: strip 'x' bit from some UIsim stuffSolomon Peachy4-0/+0
Change-Id: I0e59b09c0e0dec117aba831c573f309606c93296
2020-06-12xduoox3ii: Add UI Simulator bitmap, keymap, and fix offsets.Solomon Peachy3-0/+83
Change-Id: I8e322b93653cb43b010dfd5c0f566ea1c4c7b7ff
2020-05-23Sansa Clip+ Clip V1, V2 updated simulator imagesWilliam Wilgus4-6/+11
Submitted on behalf of user CH23 https://imgur.com/a/L5sOj Change-Id: I1b4c3639dfef158459bc5d6c8ccef2582ba30d5b
2020-04-13obsolete: Nuke the very-incomplete Archos AV300 targetSolomon Peachy2-84/+1
It's even missing a config header file. Just shoot it in the head. Change-Id: I4c5cdb4fb63361a4e4fc893e93d73d3890fe17df
2020-04-05simulator: Add a stub for lineout_inserted()Solomon Peachy1-0/+7
Change-Id: I86e4fd75fa9e1bf69b5c9bb5995f4bc77bbdd5de
2019-02-08Fix simulator/transflective: Display wasn't enabled on first keypress when ↵Sebastian Leonhardt1-1/+4
backlight always off Change-Id: Ibfa09e7bf839d4d12ef01e4812b5c47c9e32a3be
2019-02-08Fix the fixSebastian Leonhardt1-2/+2
Change-Id: I54b97fd0c208f775e4ee22cf8499f1da423ebc39
2019-02-08Fix red and remove duplicated function declarationSebastian Leonhardt1-1/+5
Change-Id: I5fed7fdad077eedfc1e36fbd9e1669f11b90288d
2019-02-07Simulator: improve simulation of transflective screensSebastian Leonhardt1-0/+3
This patch simulates the three possible states of a transflective LCD: backlight on (bright screen as usual), backlight off (dimmed screen) and LCD off (black screen). Makes use of already defined 'BACKLIGHT_OFF_ALPHA'. Change-Id: I9b0fc79b8d50c29e024ba1e6d9c2501119a7e0e0
2019-01-02Add Xuelin iHIFI 770/770C/800 supportSolomon Peachy5-0/+92
Taken from the xvortex fork (Roman Stolyarov) Ported, rebased, and cleaned up by myself. Change-Id: I7b2bca2d29502f2e4544e42f3d122786dd4b7978
2018-07-28Add cleaned-up xDuoo X3 supportSolomon Peachy3-0/+84
Cleaned up, rebased, and forward-ported from the xvortex fork. (original credit to vsoftster@gmail.com) Change-Id: Ibcc023a0271ea81e901450a88317708c2683236d Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
2018-07-25Fix playersim CHAR_WIDTH re-definitionWilliam Wilgus1-0/+5
Change-Id: I49d2b3635c62277723665d0bdd68808cc82ca1a9
2018-06-12Agptek Rocker: Initial commitMarcin Bukat3-0/+82
Change-Id: I26b51106c7b1c36a603fba6d521e917d79b5a95b
2017-09-17Add simulator support for the A860Amaury Pouly3-0/+67
This requires a few changes unrelated to the A860 because configure unsets APPLICATION but the NWZ is an application! Change-Id: Id91aa23193383ac95886b281653da5286edd9caf
2017-03-15Add Benjie T6/AGPTek Rocker bitmap for simulator.Szymon Dziok1-0/+0
Change-Id: Id19662b9fd4bb8338a1f839e6ed1a9492aea188c
2017-02-11Fix warnings and errors from fc9695eMichael Sevakis1-13/+43
* fmradio.c needs an implementation of tuner_get_rds_info() for the sim (kill all the sims). * Some macro bitflags shouldn't be seen unless HAVE_RDS_CAP is defined. Change-Id: Idd00c94ca2fc43cf32f9223aa4530d5a02fb3454
2016-09-21zenxfi3: fix recording keymap and simulator keymapAmaury Pouly1-4/+4
Change-Id: I246834b5244d4e0f672633d2960db45278e12ec4
2016-01-25Replace SAMSUNG_YH920_PAD with YH92XSebastian Leonhardt1-1/+1
seems more logical to me, and is more consistent, since "SAMSUNG_YH92X_PAD" is already used in the tex files. Change-Id: Ie9a9d850ea86155a7dcf86c88a22a420a10a3837
2015-11-15YH8xx,YH9xx: Keymap improvementSebastian Leonhardt1-2/+6
The main "innovation" in this patch are two "virtual buttons" for the record switch on YH92x targets. When the switch state changes, a single BUTTON_REC_SW_ON or .._OFF button event will be generated. Thus keymap code can react on switching, but not on the actual state of the switch. Wherever sensible, the following user scheme is applied: - use PLAY as confirm button - use REW button or Long REW to exit - use REC (YH820) or FFWD (YH92X) as modifier key for button combos Change-Id: Ic8d1db9cc6869daed8dda98990dfdf7f6fd5d5a1