summaryrefslogtreecommitdiffstats
path: root/gui/patternpassword.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add missing license headersMatt Mower2017-01-181-0/+18
| | | | Change-Id: I7f807a2f140068181524d8e868d029b4d94c70e8
* Whitespace cleanupMatt Mower2017-01-181-41/+41
| | | | Change-Id: I93c65973679894bb8587da4b38b410d38036b8bd
* Gui: replace pow() functionnailyk2016-08-221-3/+6
| | | | | | | | | The old pow function doesn't work for other power than 2 - replace pow function by a squared one Solve the TeamWin/Team-Win-Recovery-Project#646 issue. Change-Id: Id177300d45a7b49ff983795288434d910eb35c2a
* patternpassword: update large grid password schemeSultan Qasim Khan2016-02-171-13/+23
| | | | | | CM13 and up no longer use the two method scheme. Change-Id: I21154becb5d7e77a54a5a07e649fe64829173a01
* Update minuitwrp graphics in line with latest minuiEthan Yonker2016-01-271-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | 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
* gui: PatternPassword: allow any N*N gridAleksa Sarai2016-01-021-37/+175
| | | | | | | | | | Rather than only supporting a 3x3 grid, allow for multiple grid sizes (using the CyanogenMod method of generating passphrases for non-3x3 grids). Also fix the detection of touches, as the old code was far too sensitive for larger grids (and also didn't make much sense). Change-Id: I343ef654e6d29ce0cb790a28281be7c7c9b171d9 Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
* Fix GUIPatternPassword when the pattern crosses already visited dotsVojtech Bocek2015-03-191-8/+13
| | | | Change-Id: I59b3f8c5604c036dbc74c020ee21aeeef28132d3 Signed-off-by: Vojtech Bocek <vbocek@gmail.com>
* Add UI for entering pattern for device decryptionVojtech Bocek2015-03-131-0/+313
Change-Id: Ia2d3268a96423e9ca3846500c57e674c4f8fa60b Signed-off-by: Vojtech Bocek <vbocek@gmail.com>