Commit Graph

1074 Commits

Author SHA1 Message Date
Vojtech Bocek bfb6334ca8 Properly delete all GUIObjects and pages on theme reload
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I8df41877f8f4439a434becfd47a9914b50649b34
2014-02-12 19:19:15 +01:00
Vojtech Bocek ede51c528e Conditional -> GUIObject and make all gui objects children of GUIObject
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Ic0a7d6354dabe5919b83942f2f1aa0715625e522
2014-02-12 18:30:41 +01:00
bigbiff bigbiff f08ada8483 Allow recovery to be restored if backup=1 flag is present in recovery.fstab
Change-Id: I426c8da8ae586004011ec4a103e1d7a1f23b3599
2014-02-12 17:30:51 +01:00
Dees Troy 90447006d2 Merge "Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist" into android-4.4 2014-02-12 16:56:53 +01:00
Ethan Yonker aae6e8ca7b Add fix permissions to OpenRecoveryScript
Change-Id: I2419cba26fcf046833b5a02fd1b95d6d6e542b8a
2014-02-12 16:15:49 +01:00
Ethan Yonker 50381976ff Add twrpTar binary
Change-Id: I9db1aac350cd2ca02cceccc249ebd2f0b3c3c671
2014-02-12 16:15:11 +01:00
Ethan Yonker c590e7b715 Add rule to make libopenaes_static
Change-Id: Id4b6d5d9364a3c3a3c2a367f961fcc7f7a1107e7
2014-02-12 16:14:51 +01:00
Ethan Yonker ccb0cf7fa8 Add rule to make libtar_static
Change-Id: I9cddde9961e79c4d4905382858ee330b856d6edf
2014-02-12 16:14:24 +01:00
Ethan Yonker a869eddeb9 Remove unused functions
Change-Id: I3230412e6aad7aab0f2fd034cc7b289cd4cd6a97
2014-02-12 15:12:06 +00:00
Ethan Yonker af2897c4c2 ifdef some functions that depend on other TWRP parts
End goal is to create a twrpTar binary that can run from the
command line.

Change-Id: I14f07a425b7755bd09dbce95a5918da1430964fc
2014-02-12 15:08:31 +00:00
Ethan Yonker 374cd713d4 Merge "Move DataManager functions out of twrpTar.cpp" into android-4.4 2014-02-12 15:56:02 +01:00
Ethan Yonker 87af56369b Move DataManager functions out of twrpTar.cpp
Change-Id: I943318afe787ff4ede724fa0bc77ebc6a3ba0c8b
2014-02-10 11:56:35 -06:00
Ethan Yonker f27497f0cc Fix ext4 wiping when no SELinux contexts are defined
Change-Id: I900f42892d47f54b573cc1dbfb551ed2a8f9e8b9
2014-02-09 11:48:33 -06:00
Ethan Yonker 0385f51857 Update SuperSU
Change-Id: I0f450357595e7f5f56a7c120b899101faf7f6360
2014-02-07 21:54:33 -06:00
Ethan Yonker b555789d44 Separate out function for reading /system/build.prop values
Change-Id: I9e398aa3f4f5be0728435ffdab333d4090cdab22
2014-02-07 21:43:20 -06:00
Vojtech Bocek 5af8f3faca Add vibrations to Checkbox, Fileselect, Listbox and Partitionlist
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I7b0e27930857add1ac88671a71310bea56fc4e74
2014-02-08 02:22:23 +01:00
Dees Troy 175cb7b25d Merge "Additional mount function call without mount options" into android-4.4 2014-02-07 19:49:11 +01:00
Dees Troy 3b2be98ca4 Merge "Add option to print render time of each frame to log file" into android-4.4 2014-02-07 19:46:59 +01:00
Dees Troy a8aac9038f Merge "Restore contexts when doing mkdierhier in libtar Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped." into android-4.4 2014-02-07 19:44:16 +01:00
Dees Troy e492e27d77 Merge "Implement mouse cursor" into android-4.4 2014-02-07 19:39:53 +01:00
Ethan Yonker 75de542490 Merge "Expansion of vibrate options" into android-4.4 2014-02-07 19:39:13 +01:00
Dees Troy 50b24dd57c Merge "Add haptic feedback" into android-4.4 2014-02-07 19:38:55 +01:00
Vojtech Bocek 1fc30fc77b Implement mouse cursor
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I66d6db7b3ed9cca50b469d125b36224332e06913
2014-02-07 12:37:13 -06:00
Ethan Yonker 03db326c64 Expansion of vibrate options
Improve location / timing of vibration
Split out vibrate settings for buttons, keyboard, and long actions

Change-Id: I282825cc5f3e44ed6dcabe65dc1f4cb21b407b67
2014-02-07 09:53:41 -06:00
Dees Troy 216e042be8 Additional mount function call without mount options
Example: f2fs on Moto G needs fsflags="inline_xattr" in the stock
ROM but the Google Edition uses ext4 which fails to mount with that
option.

Change-Id: I01bce214e7f15e43e66ac35729fd3521609ffad3
2014-02-07 03:46:46 +00:00
bigbiff bigbiff 6b600f9644 Restore contexts when doing mkdierhier in libtar
Do a restore of loaded file contexts to /data/media directory. This will help denials to be prevented when internal storage is wiped.

Change-Id: Ie49bbfa48d2f3ee4f08376d9c1877b92c051017c
2014-02-06 19:56:25 -05:00
Vojtech Bocek e5ffcd1af2 Add option to print render time of each frame to log file
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: Id158a6375fbadf4cdf0a8c7d143759e602419e7f
2014-02-06 21:18:08 +01:00
Vojtech Bocek 6c694b6f0b Disable alpha blending for non-transparent bitmaps
* The difference isn't as big as there are not many big non-transparent
  bitmaps in TWRP, on install screen on flo it is about 5-10ms better.
  Only place where the difference is noticable is keyboard, which is
  pretty big non-transparent bitmap, where it speeds up the render
  by ~40ms on flo.

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I4c51ef957ae2a1829ada4eb566e9964f708efcf0
2014-02-06 20:38:33 +01:00
Samer Diab (S.a.M.e.R_d) 71e9b049c2 Add haptic feedback
Change-Id: I15d723f73c0b0bb4a40645d1c3f4c1c616f36998
2014-02-06 20:27:28 +01:00
Dees Troy 4011c71f98 Merge "Load RTC offset on Qualcomm Krait chips, fixes the broken time & date" into android-4.4 2014-02-06 20:14:14 +01:00
Dees Troy 5760002161 Merge "minui: adapt backlight blanking commit to TWRP" into android-4.4 2014-02-06 20:09:42 +01:00
Dees Troy 5f1c7e3dce Merge "Don't switch between fast and normal scroll during drag in listviews" into android-4.4 2014-02-06 20:08:17 +01:00
Ethan Yonker a21b052589 Merge "Improve android secure handling" into android-4.4 2014-02-06 20:05:30 +01:00
Vojtech Bocek 1a4744a493 Disable alpha blending for fully opaque rectangles
* This makes the rendering several times faster, because the giant
  rectangle used as background no longer uses expensive blending
  calculations, and there are also many other big rectangles which
  don't need it (fileselector, ...).

* Results on hammerhead:
  - WITHOUT the patch - scrolling in fileselector on install page:

      I:render 67 ms, flip 6 ms, total 73 ms
      I:render 82 ms, flip 6 ms, total 88 ms
      I:render 81 ms, flip 6 ms, total 87 ms
      I:render 80 ms, flip 5 ms, total 85 ms

  - WITH the patch - scrolling in fileselector on install page:

      I:render 32 ms, flip 6 ms, total 38 ms
      I:render 16 ms, flip 6 ms, total 22 ms
      I:render 16 ms, flip 7 ms, total 23 ms
      I:render 18 ms, flip 3 ms, total 21 ms
      I:render 18 ms, flip 2 ms, total 20 ms

* On flo, the results are even more noticable - 160ms -> 40ms

Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I5685763ba21745d7cd93133adf5f0bcb4c9a581f
2014-02-06 19:57:03 +01:00
Matt Mower 4a5db2d8b4 minui: adapt backlight blanking commit to TWRP
Change-Id: I79417d218c84fcdaf2ce5ecdf314031831d89575
2014-02-05 20:20:46 -05:00
Ethan Yonker a1aad1bd8c Fix error message on split backups
Change-Id: I9effd57c2b4d28c3bd9ca1045a0bb0ac8c958245
2014-02-04 21:58:14 -06:00
Vojtech Bocek d0e38bc2f4 Load RTC offset on Qualcomm Krait chips, fixes the broken time & date
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I04ad07f3e6be961003e063be8c648e191e2f9431
2014-02-04 18:27:05 +01:00
Ethan Yonker d4d107388c Improve android secure handling
Change-Id: I9e1c7f4a8353b7be51e1a54bf5d506c9dce70da2
2014-02-03 15:27:52 -06:00
Dees Troy e0a433a94d Refactor twrpTar to use TarList
Eliminate the use of tarDirs and Generate_MultipleArcives in
favor of Generate_TarList so that we have one method for backup
creation instead of three.

Change-Id: I267937b6e40b32d43fbac8b4cca82f7468d4f94c
2014-02-03 19:13:26 +01:00
Ethan Chen 0940e414e2 minui: Allow devices to blank/unblank using LCD backlight
* Some devices rely on the LCD backlight to blank/unblank the display,
  support them by allowing a custom LCD backlight path to be used.

Change-Id: I8406b4b55cd7a2afc4f8f8ba65de2c53b949489d
2014-02-03 19:12:14 +01:00
bigbiff bigbiff c7360dd263 Clear the relative directory before passing on to twrpTar with the static du object. Otherwise we will not backup /system/media etc
Change-Id: Ib62af6ad8596aa18bf48cb750e2ecf442dadc627
2014-02-03 19:00:58 +01:00
Ethan Yonker 06c3f93d69 Add option to set flag for storage=0
Change-Id: I46b94d55fc649a2abf27569ccf99aabb2822d663
2014-02-03 16:09:33 +01:00
Dees Troy 1f4825ba8e Merge "ifdef some file system options that are not available in older trees" into android-4.4 2014-02-03 16:09:19 +01:00
Dees Troy a7b8de514d Fix SELinux function compatibility in older trees
Change-Id: I3d8c23b51b3331d062099c1edb1833551cc6af91
2014-02-03 15:08:06 +00:00
Dees Troy c4bc30ec43 ifdef some file system options that are not available in older trees
Change-Id: I11a7e441f7fe4e556a5349822150493de90095f1
2014-02-03 15:04:19 +00:00
Vojtech Bocek 59e51a4349 Don't switch between fast and normal scroll during drag in listviews
Signed-off-by: Vojtech Bocek <vbocek@gmail.com>

Change-Id: I925adda7f417c6e578f501babc8ef2bec638f66b
2014-01-29 19:15:56 +01:00
Ethan Yonker 3d2baacdaf Fix make file flag name for minzip
Change-Id: I53380ee203c1fe75d37f24f99e36f5c5a62e5b39
2014-01-27 22:03:00 -06:00
Dees Troy 6f6441da58 Fix include of cutils
Change-Id: I9868298908ce501d3043326862057e8a637544af
2014-01-23 02:07:03 +00:00
Dees Troy b49b652c6e Merge "Force GUI render after setting brightness" into android-4.4 2014-01-21 15:59:20 +01:00
Dees Troy a6a26429f6 Merge changes I4c369222,I8a8ad4b3 into android-4.4
* changes:
  Enable UMS mounting of storage drives
  Set listener properties for UMS mount/unmount
2014-01-21 15:58:42 +01:00