Commit Graph

19779 Commits

Author SHA1 Message Date
TreeHugger Robot
64801670b1 Merge "Skip hardware bitmaps if canvas does not support hardware acceleration" 2018-06-29 21:26:24 +00:00
TreeHugger Robot
55f420a585 Merge "[NR] Remove unnecessary boolean change, update var names" 2018-06-29 19:36:11 +00:00
Lucas Dupin
d3989e4d09 Merge "AOD animation polish" into pi-dev am: 704a0d6174
am: e9861964bf

Change-Id: I135ff3a852d2b1d2288add1c0c94bbf7313d1aec
2018-06-29 11:47:32 -07:00
Lucas Dupin
e9861964bf Merge "AOD animation polish" into pi-dev
am: 704a0d6174

Change-Id: Ia5662e819573ba45707f4f2dd4f166c64d87154e
2018-06-29 11:40:43 -07:00
Lucas Dupin
704a0d6174 Merge "AOD animation polish" into pi-dev 2018-06-29 18:27:46 +00:00
Matthew Ng
87a3b3958c Skip hardware bitmaps if canvas does not support hardware acceleration
Test: use go/web-hv on nav bar
Change-Id: Id7d5f01aa0dbe9d05d0526726f64fc5233b9f563
Fixes: 110949540
2018-06-28 16:48:08 -07:00
Lucas Dupin
f7fd03d1bd Set initial KSV state after inflation
In O and before, KeyguardSecurityVew#reset was always called
before showing the view. In P it's not possible since reset()
will make a series of binder calls and generate jank during
swipe gesture.

Because of this, reset() is called after inflation and only
after the view isn't visible anymore.

Fixes: 109972705
Test: go/sysui-bouncer-tests
Test: receive notification from AOD, double tap it.
Change-Id: I9016924398930d470135851ba40c85f637a2c0d1
2018-06-28 22:11:05 +00:00
Santiago Etchebehere
5328213752 Merge "Force redraw after wallpaper is loaded" into pi-dev am: 15c1e47e26
am: 66867db010

Change-Id: I2e9dac0d3672c6a9e0f0084f7efb0d321347db12
2018-06-28 13:25:57 -07:00
Santiago Etchebehere
66867db010 Merge "Force redraw after wallpaper is loaded" into pi-dev
am: 15c1e47e26

Change-Id: I7362cd3c6e351814ca090db5a6082fa09b31dd32
2018-06-28 13:18:09 -07:00
TreeHugger Robot
15c1e47e26 Merge "Force redraw after wallpaper is loaded" into pi-dev 2018-06-28 20:01:36 +00:00
Lucas Dupin
1a38851573 AOD animation polish
Change-Id: I03220e30d52aadc5aab8edddf759debd3302c95d
Fixes: 110227946
Test: visual
2018-06-28 11:09:09 -07:00
Matthew Ng
038f1a19ac Merge "Do not create highlight if track width is invalid" into pi-dev am: ed60140a93
am: f3cdbd2755

Change-Id: Ia25977dd17a536b85d57e5700ffe02244dff77cb
2018-06-28 10:45:40 -07:00
Matthew Ng
f3cdbd2755 Merge "Do not create highlight if track width is invalid" into pi-dev
am: ed60140a93

Change-Id: I1fc23d1edd74b8aa0368da397bbdb84bac361da3
2018-06-28 10:37:50 -07:00
TreeHugger Robot
ed60140a93 Merge "Do not create highlight if track width is invalid" into pi-dev 2018-06-28 17:25:37 +00:00
Yuanjia Hsu
e3d3ca75dc Merge "Add separated emergency option on power menu" 2018-06-28 13:10:27 +00:00
TreeHugger Robot
4a6df3f5e8 Merge "Reduce overview proxy connection backoff time to hide back faster" 2018-06-28 00:09:54 +00:00
Matthew Ng
9608748b5e Reduce overview proxy connection backoff time to hide back faster
Switching to guest user would show a dialog to continue or start the
guest profile again and this would show the back button. At the same
time the connection is being established with the launcher again. First
time would sometimes fail causing a timeout of 5 secs before trying to
reconnect again. During the 5 sec timeout the back button would continue
to be visible until it reconnects and hides it. If this is reduced to 1
sec then reconnection would occur quicker and as a result hide the back
button.

Fixes: 109662462
Test: switch to guest user, immediately press continue and wait for back
button disappear

Change-Id: Id81b7f175834fb1eae8a0787674bbc130c91a5a2
2018-06-27 15:37:35 -07:00
Kevin Chyn
02bcebede4 Merge "6/n: Have FaceService extend BiometricService" 2018-06-27 22:09:01 +00:00
Kevin Chyn
a56dff7339 6/n: Have FaceService extend BiometricService
In the Service layer, this change is pretty much the same as ag/4340638.
FingerprintService already extends BiometricService which contains all
of the common code. FaceService now does the same after this change.

Updated the Manager layer to use the infrastructure added in P, namely
  - Private APIs for BiometricPrompt
  - Removed FaceManager#CryptoObject, use biometrics/CryptoObject directly
  - Few other BiometricAuthenticator things

Bug: 110387294

Test: enrolling FP still works
Test: removing FP still works
Test: changing FP name persists across reboots
Test: enumerating still works (extra framework fp, extra hw fp)
Test: keyguard still receives lockout reset callbacks

Change-Id: I2195b08e28d024a120df56fe87b0dd4f9b96505a
2018-06-27 11:31:03 -07:00
Dan Sandler
11820a3790 Activate dark theme when the UiMode is UI_MODE_NIGHT_YES. am: a5c846c3fa
am: 90d531a96c

Change-Id: I2c4de0b96eccf189bdcc9447e076f29669fa6e8d
2018-06-27 10:18:11 -07:00
Dan Sandler
90d531a96c Activate dark theme when the UiMode is UI_MODE_NIGHT_YES.
am: a5c846c3fa

Change-Id: Ib8020b3d649391b591a191f7ee692071bfa538d1
2018-06-27 10:06:40 -07:00
Jackal Guo
4f0f5e8526 Merge "Update the format for hours and minutes in the snooze menu." 2018-06-27 02:08:01 +00:00
Dan Sandler
a5c846c3fa Activate dark theme when the UiMode is UI_MODE_NIGHT_YES.
This change also activates night mode when the device enters
battery saver (saving substantial power on OLED screens).

Bug: 80307398
Test: adb shell service call uimode 4 i32 1 # nightfall
      adb shell service call uimode 4 i32 2 # morningtide

Change-Id: I9c08a749d4cd99ab7231363b045949eb2e830dfa
2018-06-27 02:07:34 +00:00
Matthew Ng
908111d2d7 Do not create highlight if track width is invalid
Test: change display font size
Change-Id: I29b97dee07d39b1b1efd4871b625a859d7fa2e09
Fixes: 110814530
2018-06-26 16:20:13 -07:00
Lucas Dupin
98cd9af389 Merge "Do not animate scrims when launching camera" into pi-dev am: aa21ec053c
am: 273bce2fde

Change-Id: I2e18284b89f8ba3ac7aca0095392550f345a7839
2018-06-26 15:20:38 -07:00
Lucas Dupin
273bce2fde Merge "Do not animate scrims when launching camera" into pi-dev
am: aa21ec053c

Change-Id: Ic3089144cb26864bd0e49846348441c7857cce49
2018-06-26 15:04:34 -07:00
Lucas Dupin
aa21ec053c Merge "Do not animate scrims when launching camera" into pi-dev 2018-06-26 21:48:16 +00:00
Lucas Dupin
193677c2ed Do not animate scrims when launching camera
There's already a black overlay with a camera icon, it's not necessary
to animate the scrims.

Change-Id: I52472372420eb8ba052a17cdde147d24dafadce0
Fixes: 109767309
Test: double tap power button from lock screen and aod
2018-06-26 12:53:06 -07:00
Wesley.CW Wang
3004fcb949 Add separated emergency option on power menu
- Add a separated button on power menu to launch emergency dialer.
 - Change HardwareUiLayout.java FrameLayout to LinearLayout, let it can
display separated button.
 - Add a flag to recognize separated button should show/hide, if
EmergencyAffordance(India) enabled, separated button will hide,
otherwise power menu will display separated button & power
menu last item won't get white background.

Test: Manually, use "adb shell settings put global faster_emergency_phone_call_enabled 1" to show/hide separated emergency option, press emergency option will go to emergency dialer.
Bug: 80376488
Change-Id: I8e6bb72ce7b8cecdb6bd01150b53f61f1515dbb1
2018-06-26 14:46:25 +08:00
Rohan Shah
b9d500abc8 [NR] Remove unnecessary boolean change, update var names
Removing unnecessary variable change (mNeedsAnimation) and making the
heads up variables a little more logical to read.

Test: Manually, no breakages in animation events-removed extra call only
Change-Id: I9ccda926449da7bec181b6986683179edb64ee91
2018-06-25 16:28:37 -07:00
Santiago Etchebehere
7c71bb2703 Force redraw after wallpaper is loaded
Use mNeedsDrawAfterLoadingWallpaper to determine if redraw
is needed.

Test: manual: set different wallpapers, or use the sample
app in b/110432281

Change-Id: Ibd5639ce59e9b59869f067705b9db25f7de8b201

Fixes: 110432281
Bug: 110432281
Bug: 109972857
2018-06-25 16:02:06 -07:00
TreeHugger Robot
10c67dd7b5 Merge "Dump ZenModeControllerImpl for debugging purposes." 2018-06-25 21:24:41 +00:00
Matthew Ng
fe1740d9b4 Merge "Quick scrub has gradient follow user drag" into pi-dev am: 5f5c6e993f
am: d60292d292

Change-Id: I57cf675a23fb4b0dae376859f4ceddb8f252405c
2018-06-25 14:03:00 -07:00
Matthew Ng
d60292d292 Merge "Quick scrub has gradient follow user drag" into pi-dev
am: 5f5c6e993f

Change-Id: I173202bab30b6b8b5c45d1841a5070cb0d282a04
2018-06-25 13:54:19 -07:00
Amin Shaikh
25ae2b7cd9 Dump ZenModeControllerImpl for debugging purposes.
Bug: 110480955
Test: manual
Change-Id: I5164da3099e682c08f90d713afb60b1e892abecd
2018-06-25 14:39:46 -04:00
Matthew Ng
4fa3a9d4cf Quick scrub has gradient follow user drag
Removed the track drawable and draws a gradient translated to the
position of the drag of the user as the track's background.

Test: quickscrub
Change-Id: Iee893e5f96f4954c77307c5ff9b762a04bd7de9a
Fixes: 109882517
2018-06-25 11:06:36 -07:00
Evan Laird
f303d953c3 Request layout if visiblity (thus, size) changes
When wifi or mobile icons update state, they sometimes decide to show /
hide themselves or subviews. When this happens, they need to call
requestLayout() so that StatusIconContainer puts them in the right spot.

Also always center the wifi/mobile icons.

Bug: 110286625
Test: enter demo mode, show wifi and lte, hide lte, show lte -> there
should be no overlapping

Change-Id: Iad49783ac119d9994f4378f5b98f1a5b18f80c5d
2018-06-25 10:12:34 -04:00
Jackal Guo
a46302a10f Update the format for hours and minutes in the snooze menu.
Test: manual - show the snooze menu, expand to see options
Test: NotificationSnoozeTest
Change-Id: I7a13ffdd937e543662460f25e0a7a092e6fe5be6
Fix: 71417718
2018-06-25 11:24:00 +08:00
Lucas Dupin
bd037eaedd Merge "Conserve expansion after re-inflation" into pi-dev
am: 0eb2be3a67

Change-Id: I44f868df5cafeac3bef09586403cf955bad1e581
2018-06-23 01:17:10 -07:00
Lucas Dupin
95951a341e Conserve expansion after re-inflation
We were updating most of the PhoneStatusBarView state during
re-inflation but not the expansion and its fraction.

Test: Pull down shade, run: adb shell service call overlay 4 s16 "com.android.systemui.theme.dark" i32 1 i32 0
Test: Switch to guest user, switch back
Test: Reboot, look at status bar
Change-Id: I41669fb32419ad02a11586ba248a68b47d450413
Merged-In: I41669fb32419ad02a11586ba248a68b47d450413
Fixes: 110530608
Fixes: 110147405
Fixes: 79122419
2018-06-23 00:45:35 +00:00
TreeHugger Robot
a8d90577f5 Merge "Conserve expansion after re-inflation" 2018-06-22 22:10:21 +00:00
TreeHugger Robot
947df9273b Merge "Fixed an issue where the shelf was not rounded during the expansion" 2018-06-22 21:43:19 +00:00
TreeHugger Robot
778ff3c71b Merge "Fix status icon animations" 2018-06-22 21:28:15 +00:00
Matthew Ng
9f1fb05f89 Merge "Allow quickscrub after deadzone consumes touch" into pi-dev am: 95b7c25a58
am: 1622ea15fe

Change-Id: I509cc0c6079b146da78ac607d3edb437f4812dd1
2018-06-22 12:47:09 -07:00
Matthew Ng
1622ea15fe Merge "Allow quickscrub after deadzone consumes touch" into pi-dev
am: 95b7c25a58

Change-Id: Id2e3d7e859a47936a63ebb5875bda69fbb64c816
2018-06-22 12:36:26 -07:00
Lucas Dupin
5220db7887 Conserve expansion after re-inflation
We were updating most of the PhoneStatusBarView state during
re-inflation but not the expansion and its fraction.

Test: Pull down shade, run: adb shell service call overlay 4 s16 "com.android.systemui.theme.dark" i32 1 i32 0
Test: Switch to guest user, switch back
Test: Reboot, look at status bar
Change-Id: I41669fb32419ad02a11586ba248a68b47d450413
Fixes: 110530608
Fixes: 110147405
Fixes: 79122419
2018-06-22 12:35:45 -07:00
TreeHugger Robot
95b7c25a58 Merge "Allow quickscrub after deadzone consumes touch" into pi-dev 2018-06-22 19:24:08 +00:00
TreeHugger Robot
abe78cd313 Merge changes from topic "biometrics-face"
* changes:
  5/n: Move FaceService to biometrics directory
  4/n: Add face authentication framework
2018-06-22 18:44:27 +00:00
TreeHugger Robot
49585937c6 Merge "Get WallpaperInfo for current user" 2018-06-22 18:14:19 +00:00
Amin Shaikh
e6fb6d5ae6 Merge "Do not announce selected state for QS tiles." into pi-dev
am: bd62416618

Change-Id: I5336f81eed377c9d3dfe5932f91fe97a3f91108a
2018-06-22 10:23:46 -07:00