1. 29 Jan, 2016 8 commits
  2. 28 Jan, 2016 2 commits
  3. 27 Jan, 2016 2 commits
    • Ethan Yonker's avatar
      ifdef and comment out libjpeg · e95c4868
      Ethan Yonker authored
      Chances are there are not many themes in widespread use that are
      using jpeg images, but this will be easy to revert back or even
      just temporarily modify if we need jpeg support in a pinch.
      
      Change-Id: If17b05ce3ebccce724fd74b26ed8ea91b287c3cf
      e95c4868
    • Ethan Yonker's avatar
      Update minuitwrp graphics in line with latest minui · fbb4353a
      Ethan Yonker authored
      Note: events.cpp is still old code renamed to cpp to make it
      easier to call functions like gr_fb_width().
      
      I had to modify AOSP fbdev code to provide a separate memory
      surface for drawing to as drawing directly to the framebuffer
      resulted in rendering taking about 5 times longer.
      
      I also modified AOSP adf code to provide a separate memory surface
      for drawing for the same performance reasons. The Nexus 9 supports
      adf graphics.
      
      Overlay graphics work on at least one device. Overlay provides a
      separate memory buffer already so performance is good.
      
      I do not have a drm device yet that I know of. I made some attempt
      to update the drm code to determine the correct pixel format based
      on the drm graphics format, but what is available in pixel flinger
      and what is available in drm do not line up all that well. Reports
      are that the Pixel C is using drm graphics, but performance is
      slow, likely due to the use of a mmap instead of a memory buffyer.
      
      Change-Id: Ibd45bccca6ac2cb826037aa9b2aa5065cf683eed
      fbb4353a
  4. 25 Jan, 2016 4 commits
    • Ethan Yonker's avatar
      Adopted Storage support · 66a1949d
      Ethan Yonker authored
       -Detects, decrypts, and mounts an adopted SD card if a
        secondary block device is defined (usually mmcblk1)
       -Handles unified storage
       -Displays the adopted storage in MTP along with internal
       -Factory Reset - wiped just like a data media device, we
        retain the keys folder and the storage.xml during a
        factory reset
       -Backup / Restore
       -Disable mass storage when adopted storage is present
       -Read storage nickname from storage.xml and apply it to
        display names in the GUI
       -Read storage.xml and determine what storage location is in
        use for /sdcard and remap accordingly
      
      libgpt_twrp is source code mostly kanged from an efimanager
      project. It is GPL v2 or higher, so we will opt for GPL v3.
      
      Change-Id: Ieda0030bec5155ba8d2b9167dc0016cebbf39d55
      66a1949d
    • z31s1g's avatar
      gui: add icons on settings tabs · 56a7a99d
      z31s1g authored
      
      use icons instead of text on settings tabs
      portrait themes only, landscape has no problems if a translated label needs more space
      
      
      Change-Id: I611ee9e34d5641c00d8894e219502a6198648339
      Signed-off-by: default avatarz31s1g <z31s1g@googlemail.com>
      56a7a99d
    • Ethan Yonker's avatar
      Fix bracket in watch theme · 090751af
      Ethan Yonker authored
      Change-Id: Ic30b56840f32215c2f171e043c99e679d33957fd
      090751af
    • that's avatar
      gui: use XML-based page for splash screen instead of a static jpg · 235c648a
      that authored
      For devices with an unusual aspect ratio, stretching a bitmap to
      the screen resolution is sub-optimal. So let's reuse our XML engine
      that allows assembling the splash screen from individual parts.
      
      The splash page is loaded from a separate XML file for quick loading.
      
      Change-Id: I2d3dad26e42fcefaf563dacdf0ffa61f209dada1
      235c648a
  5. 23 Jan, 2016 2 commits
    • Ethan Yonker's avatar
      Update mStartPage to make language selection work on other pages · afde0983
      Ethan Yonker authored
      We should offer language selection on any start page such as
      decrypt or system read only. However, if the mStartPage variable
      was not being updated properly so selecting a different language
      was dumping the user back on either the decrypt prompt or the
      system read only page. This patch set fixes the problem and places
      the user back on the proper page when they choose a new language.
      
      Change-Id: I5153d3b9525d8c93d3863f4b17ecf55b5209e3c7
      afde0983
    • z31s1g's avatar
      gui: add language selection to several pages · 608d7ff8
      z31s1g authored
      
      Language selection for decrypt, decrypt_pattern and system_readonly pages.
      
      Done:
      
      portrait
      landscape
      watch
      
      Change-Id: I5fd595cadcdebdd06e9dbb164d0736c84426ff1b
      Signed-off-by: default avatarz31s1g <z31s1g@googlemail.com>
      608d7ff8
  6. 22 Jan, 2016 8 commits
  7. 21 Jan, 2016 2 commits
    • Matt Mower's avatar
      Fix a bunch of messages · 3c36697b
      Matt Mower authored
      * Find and rename/remove duplicate string variable names
      * Add missing string variables to en language file
      * Fix display of some strings missing @ in front of variable name
      * Fix several %s --> {1}
      * Be consistent in usage of cancelled vs. canceled (both spellings
        acceptable)
      
      Tip for finding strings missing from language files:
      
      1) Find all messages:
      egrep -hr "gui_msg.+=" > /tmp/msgs.txt
      
      2) Regex replace to trim them down
      WHAT: ^\s+gui_msg(?:[^"]+)"([a-zA-Z0-9_]+)=([^"]+).+
      WITH: $1
      Note that $2 can be used to retain the message
      
      3) Find missing strings:
      for i in $(cat /tmp/msgs.txt); do
          if ! grep -q $i gui/theme/common/languages/en.xml; then
              echo $i;
          fi
      done
      
      Change-Id: Ic193162e4b5468bf027472928a370be39840ea1d
      3c36697b
    • Ethan Yonker's avatar
      Ensure that a base language is loaded before custom theme · 8e5692ff
      Ethan Yonker authored
      Main goal of this patch is to improve error handling when a custom
      theme does not contain a valid theme version. We were getting a
      message saying that the theme_ver_err resource did not exist as
      well as an error saying that the package had failed to load. Now
      we properly get a single error message about the theme version.
      
      Change-Id: I361ef2d139220bbeaf2e856be919dc3a50ae4299
      8e5692ff
  8. 20 Jan, 2016 1 commit
  9. 19 Jan, 2016 3 commits
  10. 18 Jan, 2016 7 commits
  11. 16 Jan, 2016 1 commit
    • Ethan Yonker's avatar
      Add theme version checking · 1308d53e
      Ethan Yonker authored
      Add a themeversion value to the ui.xml details section. Check this
      value against a define during early theme loading. If we are
      loading a custom theme, then reject the custom theme if the
      version does not match (or not defined) and load the stock theme.
      If it is the stock theme, show a warning but continue loading.
      
      Also fix an issue with changing overlays. Not sure how it ever
      worked before, but it works now.
      
      TLDR: Use the stock theme if the custom theme version does not
      match.
      
      Change-Id: I0277cbe035cbec7e16b6327500762dadf9c1c5c8
      1308d53e