History log of /frameworks/base/services/tests/servicestests/src/com/android/server/GestureLauncherServiceTest.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a41381660c960844658b6d16f4b6539d7edf56c8 11-May-2017 Jonathan Solnit <jsolnit@google.com> Add camera lift trigger to GestureLauncherService

Add registration for the camera lift trigger sensor and handling for its
events to GestureLauncherService

Test: Confirmed camera launches on lift gesture if setting is enabled
(and other pieces are in place)
Change-Id: Ibfad2040409d86af2d019e2ce97ab546bef9ba78
/frameworks/base/services/tests/servicestests/src/com/android/server/GestureLauncherServiceTest.java
0ba2237de9260fb02d1acf611b5dfc502714e5f7 05-Apr-2017 Juan Lang <juanlang@google.com> Count and log the number of consecutive rapid power button presses.

Here, "rapid" is defined as 500ms.
The histogram will allow us to measure the basal rate at which multiple
rapid power button presses occur, in order to estimate the false positive
rate a consecutive rapid power button sequence would generate.

Test: Unit tests for all values logged.
Also, manual testing of existing power button feature and inspection of
logcat output.
Manual test cases executed:
1. Screen off, power button tap turns screen on.
2. Screen on, power button tap turns screen off.
3. Screen off, power button double tap triggers camera.
4. Screen on, keyguard visible, power button double tap triggers camera.
5. Screen on, bouncer visible, power button double tap triggers camera.
6. Screen on, launcher visible, power button double tap triggers camera.
7. Screen off, power button long press turns screen on.
8. Screen on, keyguard visible, power button long press shows power off
/ restart menu.
9. Screen on, bouncer visible, power button long press shows power off
/ restart menu.
10. Screen on, launcher visible, power button long press shows power off
/ restart menu.

Change-Id: I3d96f55ab7c541338106b43bc48e6a93a0444891
/frameworks/base/services/tests/servicestests/src/com/android/server/GestureLauncherServiceTest.java
36f4624396d474a47bf1135d01cbc29fe73065f4 19-Apr-2017 Juan Lang <juanlang@google.com> Add tests for MetricsLogger events.

This makes the MetricsLogger a local, mockable instance, and adds unit test
coverage for GestureLauncherService's interaction with it.

Test: ran tests.

Change-Id: I581c100be7eee4ef6e5d8218d65e694d9bf8e0a5
/frameworks/base/services/tests/servicestests/src/com/android/server/GestureLauncherServiceTest.java
acf62e66d62e6198986489311fbc8777d732155d 19-Apr-2017 Juan Lang <juanlang@google.com> Add unit tests for power button-related pieces of the GestureLauncherService.

Test: running the introduced test class.

Change-Id: I5c42416085f2bed8c8bf2d7569ba01eb46bc043a
/frameworks/base/services/tests/servicestests/src/com/android/server/GestureLauncherServiceTest.java