Commit Graph

366346 Commits

Author SHA1 Message Date
Amin Shaikh
6be5368b67 Dismiss systemui QS dialogs on screen off.
CLOSE_SYSTEM_DIALOGS may not be sent if the user turns off and on the
screen quickly, resulting in systemui dialogs being displayed over the
lock screen. Dismissing these system dialogs when the SCREEN_OFF
broadcast is sent prevents this bug.

Change-Id: I097d0997d1538002b23bdd8f7aa32ecf4d32e0d4
Fixes: 78915648
Test: manual
2018-05-02 15:59:44 -04:00
Mihai Popa
90f197efe5 Merge "[Magnifier-43] Refactor to remove code duplication" into pi-dev 2018-05-02 14:50:41 +00:00
android-build-team Robot
12a1c46a67 Merge "Fix RTL TileLayout." into pi-dev 2018-05-02 14:42:49 +00:00
David Brazdil
0585533a85 Merge non-SDK @removed API and light greylist
@removed APIs are not part of the public SDK but we do not want
to block access to them. Use the recently added removed-dex.txt
list of @removed API signatures and merge it into the hidden API
light greylist programmatically.

Note that due to Doclava's rule precedence, @removed APIs which
override a public SDK method are considered public and are
whitelisted. We have to intersect removed-dex.txt with private-dex.txt
to satisfy the rule that light greylist is a subset of private-dex.txt.

Bug: 78182899
Test: make out/target/common/obj/PACKAGING/removed-dex.txt
Change-Id: I44e54c405fc667d54a990b9ded1de8456802545e
2018-05-02 14:29:20 +00:00
David Brazdil
839cec4478 Merge "Build list of @removed API's dex signatures" into pi-dev 2018-05-02 14:28:18 +00:00
android-build-team Robot
1bbe397856 Merge "Flip the cross profile apps animation" into pi-dev 2018-05-02 14:24:28 +00:00
Nicolas Geoffray
f90e8323ff Merge "Add more light grey APIs." into pi-dev 2018-05-02 13:22:48 +00:00
Daniel Sandler
a1c148fb1a Merge "SystemUI heap monitor & hprof dump tile." into pi-dev 2018-05-02 13:03:20 +00:00
Milo Sredkov
f87b98880e Merge "Keep the notification shade open for smart replies" into pi-dev 2018-05-02 12:57:17 +00:00
Eran Messeri
f0db8fe188 Merge "Save password requirements on the right user" into pi-dev 2018-05-02 12:31:06 +00:00
android-build-team Robot
3ad6de6ec7 Merge "WindowStateAnimator: Hide preserved surface when showing new Surface" into pi-dev 2018-05-02 12:02:46 +00:00
Mihai Popa
724990d5ff Merge changes I63f2b185,I0d749c1a into pi-dev
* changes:
  [Magnifier-42] Fix bug in window positioning
  [Magnifier-41] Fix behavior in windows with insets
2018-05-02 12:02:18 +00:00
Nicolas Geoffray
6f6eedf81f Add more light grey APIs.
bug: 64382372
Test: m
Change-Id: Ia6f389ffb22f052409fc307de89cfef8d2fbeee4
2018-05-02 11:37:02 +01:00
Mihai Popa
f298068a7f [Magnifier-43] Refactor to remove code duplication
Since Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e, the magnifier can be
the child of a diffent surface than the one its content is copied from.
This initially led to much code duplication accross different methods,
making the code quite difficult to understand. This CL performs a small
refactoring, removing some of the TODOs and making the code a bit
cleaner.

Bug: 78876353
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: Ifa26f94ba2e4983446f058f016af6010c1017ea7
2018-05-02 10:30:40 +00:00
Mihai Popa
227034b863 [Magnifier-42] Fix bug in window positioning
The position of the magnifier surface is always clamped inside its
parent surface. As of Ic5b5f6ca687db8b5d842f0ab20eac70f1fd2f85e, we are
always trying to make the magnifier surface a child of the main
application window, if possible (before, if the magnified view was a
SurfaceView, we were making the magnifier a child of the SurfaceView's
surface). However, the CL did not also update the clamping, continuing
to clamp to the SurfaceView space when the magnified view was a
SurfaceView (even if the magnifier was child of the main window). This
was making the magnifier window to be wrongly positioned on the screen
when the magnified view is a SurfaceView. The current CL fixes this.

Bug: 78876353
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I63f2b185f58e62e8ad6eadf788e641fb1de07b04
2018-05-02 10:30:29 +00:00
Mihai Popa
0450a16759 [Magnifier-41] Fix behavior in windows with insets
The CL fixes the magnifier's behavior when its parent window has
positive insets in its surface:
- we compute the content copy coordinates sent to the pixel copy request
relative to the surface the content is copied from. We were clamping
them inside the visible region of the magnified view as returned by
belonging to the view which is magnified. However, the method returns
coordinates relative to the window. Therefore, the CL offsets the
visible rectangle with the window insets, to account for them.
Otherwise, when the insets were non-zero, on a text line we were
allowing the magnifier to display content from the left outside of the
text line, while a certain region at the end of the text line could have
never been magnified
- when clamping against the visible view region, when the surface we
copy from is a SurfaceView, #getGlobalVisibleRect is still returning
coordinates relative to the main window, whereas the coordinates we are
trying to clamp are relative to the surface of the SurfaceView. In order
to make the visible rectangle relative to the surface of the SurfaceView
instead, this CL negatively offsets the visible rectangle with the
SurfaceView position in the parent surface
- the selection/insertion handles are hidden when they overlap the
magnifier. To check this, we intersect the magnifier rectangle with the
rectangle of each handle.  However, when we were performing this check,
the magnifier rectangle was relative to the surface, whereas the
handles' rectangle was relative to the main window. The CL negatively
offsets the magnifier position with the surface insets, to make both
rectangles relative to the window.

Bug: 78621162
Test: manual testing
Test: atest CtsWidgetTestCases:android.widget.cts.MagnifierTest
Change-Id: I0d749c1abb38520fe8fc477d22d6523f470e9abc
2018-05-02 10:29:19 +00:00
Milo Sredkov
e433e9b5a2 Keep the notification shade open for smart replies
Currently when the user taps on a smart reply button from a locked
screen, we ask for a pattern/password and then close the notification
shade. This is inconsistent with the unlocked case and with how inline
replies are handled.

Set mLeaveOpenOnKeyguardHide to true when handling smart reply clicks.
Also simplify and rename the method in KeyguardDismissHandler to make
this new behaviour clearer.

Bug: 77841506
Test: Tap on a smart reply from the lockscreen, then unlock.
Change-Id: If1dab2a4b0d93a512c27e6d8a870289f64c7b63d
2018-05-02 10:39:56 +01:00
android-build-team Robot
dc617e0fb5 Merge "Remove margin from first line of remote history" into pi-dev 2018-05-02 09:10:45 +00:00
David Brazdil
0f0abb2593 Build list of @removed API's dex signatures
CL Iba8869ce6e4f401a8e420ad83ab459d25bbbaae0 added Doclava support
to generate a list of @removed API. Add a rule which builds that
list.

Bug: 78182899
Test: make out/target/common/obj/PACKAGING/removed-dex.txt
Merged-In: Ifa912f8751025b7de24a982a1a227a9c27d18267
Merged-In: I80860c2b9f7213db65d0a9ca65bd645187aa0ce0
Change-Id: I688c14e0d2fbfafe9ac212e6abdc3593cb744ef9
2018-05-02 08:54:50 +00:00
android-build-team Robot
a74dd692aa Merge "Request focus when pin is visible" into pi-dev 2018-05-02 07:28:33 +00:00
Dianne Hackborn
55c2d4106a Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev 2018-05-02 06:54:54 +00:00
Felka Chang
c069ad6f21 Merge "Fix "Clear all" tap ripple is cut off" into pi-dev 2018-05-02 06:51:05 +00:00
Lucas Dupin
7065900289 Request focus when pin is visible
Change-Id: Idfa7f0ea7f989de95030ed9dbd0ac4b45abc8155
Fixes: 77963692
Fixes: 78187153
Fixes: 78235570
Fixes: 78887466
Test: atest tests/src/com/android/keyguard/KeyguardPinBasedInputViewTest.java
Test: atest tests/src/com/android/systemui/statusbar/phone/KeyguardBouncerTest.java
Test: atest android.server.am.ActivityManagerDisplayLockedKeyguardTests#testDismissKeyguard_whileOccluded_secondaryDisplay
Test: atest -dt android.server.am.KeyguardLockedTests#testEnterPipOverKeyguard
Test: go/sysui-bouncer-tests
2018-05-01 23:01:08 -07:00
Remi NGUYEN VAN
d64c07da37 Merge "Add NETWORK_BYPASS_PRIVATE_DNS permission" into pi-dev 2018-05-02 05:32:43 +00:00
felkachang
79ca96d7fb Fix "Clear all" tap ripple is cut off
The view parent of "Clear all" button's view parent is FooterView.
FooterView has the paddingEnd that is 8dp. The "Clar all" button's
view parent is a Framelayout with android:layout_width="match_parent".
Because the layout parameter of Framelayout tells FooterView
"match_parent" and FooterView's super class is ExpandableView doesn't
consider the FooterView's paddings, the "Clear all" button right
boundary is cut off by FooterView.

To use paddingStart + paddingEnd instead of 0 padding in the onMeasure
phase. After considerating the padding of Expandableview-self padding,
the children of ExpandableView doesn't have the wrong drawing area.

The left boundary of "Manage notifications" should align with the left
bottom round corner end of the notification list. The first charactor
of "Manage notifications" should align the any of the first charactor
of the notification. The alignment is 16dp defined in
notification_content_margin_start.

The right boundary of "Clear all" should align with the right bottom
round corner end of the notification list. The total of padding that
counted from right boundary of notification list to the right text
boundary should be 16dp defined in notification_content_margin_end.

Bug: 77631994
Test: atest SystemUITests
Change-Id: I64a3489891bee993a1a2a0fd29e8d65823a36d63
2018-05-02 12:17:58 +08:00
android-build-team Robot
b9b0eaff9c Merge "Default keyguard scrim should be 45% transparent" into pi-dev 2018-05-02 02:40:06 +00:00
Remi NGUYEN VAN
62594fd499 Add NETWORK_BYPASS_PRIVATE_DNS permission
Have the captive portal app and the MMS service use this new permission
to bypass private DNS.
Bug: b/78494660
Test: manual: captive portal login & MMS sending works

Change-Id: I0a4a8d0105becf6957fd44099bd84eca51e6716f
2018-05-02 10:51:48 +09:00
android-build-team Robot
b85e5616df Merge "Reduce statsd log data size." into pi-dev 2018-05-02 00:45:51 +00:00
Dianne Hackborn
2378a4a3fa Work on issue #78480444: Start tracking uid state in app ops
Introduce new app op mode that uses uid state to determine whether
the caller has access.  This will determine what noteOp() and
startOp() return, based on the state of the uid.

Bug: 78480444
Test: atest FrameworksServicesTests:AppOpsServiceTest
Test: atest CtsPermissionTestCases:AppOpsTest
Change-Id: I12b744b74f3129782dbda9567043f5170919b5d3
Merged-In: I55fd74023cc4dae8151372e28c3afc7d259c7a1c
2018-05-01 17:36:28 -07:00
android-build-team Robot
f841f8190a Merge "Fixes primary stack being visible when minimizing 3rd party launcher" into pi-dev 2018-05-02 00:27:20 +00:00
Michael Wachenschwanz
b3972f9d23 Merge "Add Stable Charging Threshold for AppStandby" into pi-dev 2018-05-02 00:23:23 +00:00
android-build-team Robot
da8e229b9c Merge "Add OP_PLAY_AUDIO to control shutter sound." into pi-dev 2018-05-01 23:56:12 +00:00
Kevin Chyn
14de2930ba Merge "refactored Log statements to Slog" into pi-dev 2018-05-01 23:22:09 +00:00
Brad Ebinger
65ac70515f Merge "Clean up old Context references in ImsConfig" into pi-dev 2018-05-01 23:10:40 +00:00
Matthew Ng
99b3cdce28 Fixes primary stack being visible when minimizing 3rd party launcher
When using 3rd party launcher, the home stack is not merged with
overview then when minimizing, it will not be secondary split screen
stack. Then the primary stack will be presumed invisible even though
it is on the screen. The added check will make sure that the docked
stack is visible when minimizing.

Test: use 3rd party launcher, minimize
Change-Id: I5837ac6339352cae926c970f7453f5564abafb70
Fixes: 77818300
2018-05-01 15:52:55 -07:00
Lucas Dupin
932f3b9413 Default keyguard scrim should be 45% transparent
Wallpapers were barely visible on lock screen because value was set to
70%. The unlocked scrim (on the notification shade) was kept at 70% to
improve readability.

Also fixed a bug where scrim opacity wouldn't be overridden via overlay.

Bug: 63868547
Test: visual
Test: atest ScrimControllerTest
Change-Id: I17f277c917dc55604762420c0027b552993f1916
2018-05-01 15:43:06 -07:00
Selim Cinek
1e543887f5 Merge "Fixed an issue where the messaging layout could appear empty" into pi-dev 2018-05-01 22:42:53 +00:00
Selim Cinek
7a1e03a5fb Merge "Fixed the messaging clipping for RTL languages" into pi-dev 2018-05-01 22:38:09 +00:00
Ryan Mitchell
714184f42e Merge "RRO: Don't update overlays when target changes" into pi-dev 2018-05-01 22:35:38 +00:00
android-build-team Robot
b2e6d9eee0 Merge "Avoid redundant getAllocatableBytes() calls." into pi-dev 2018-05-01 22:04:05 +00:00
Dan Sandler
4d90d1ede7 SystemUI heap monitor & hprof dump tile.
Adding the tile to your active set will start a continuous memory tracker,
updating the tile every minute with the latest pss value. Tapping the tile
will pull a full heap dump, zip it, and share it via ACTION_SEND.

Additionally, @integer/watch_heap_limit can be set to the heap size (in KB)
at which ActivityManager will automatically generate a heap dump and notify
the user when it's ready.

Available only on IS_DEBUGGABLE builds. Supplies limited. Order now!

Bug: 76208386
Test: atest com.android.systemui.util.leak.GarbageMonitorTest
Test: runtest systemui
Change-Id: I0434dd7dc330784c750469b013e40b31ef92638d
2018-05-01 21:51:15 +00:00
Yu-Han Yang
3ac00caddf Merge "Handle Gnss Hal service death gracefully" into pi-dev 2018-05-01 21:45:30 +00:00
Amin Shaikh
a64bb52fb8 Fix RTL TileLayout.
Ensure QS tile columns are symmetrical for LTR and RTL layouts. Also
ensure that opening QS customizer does not shift tile positions.

Change-Id: I647e5af41ed505ed01420d8b735652bd80a1661e
Fixes: 79110384
Test: visual
2018-05-01 17:43:05 -04:00
Evan Rosky
09ba7e0bae Merge "Don't clear focus during transition animations" into pi-dev 2018-05-01 21:30:17 +00:00
android-build-team Robot
1f87cda692 Merge "Passpoint 2.0: Remove OSU/OSU2 Packages" into pi-dev 2018-05-01 21:26:13 +00:00
android-build-team Robot
e442db3e40 Merge "Increase the bytes per config threshold to avoid too frequent uploading." into pi-dev 2018-05-01 21:02:32 +00:00
Fyodor Kupolov
4ca34d7bd7 Merge "Use NORMAL synchronous mode for WAL journal mode" into pi-dev 2018-05-01 20:59:32 +00:00
android-build-team Robot
1f24e45727 Merge "System apps cannot create channels that bypass dnd" into pi-dev 2018-05-01 20:46:42 +00:00
Tyler Gunn
7f556daa41 Merge "Require READ_CALL_LOG permission to see phone numbers in phone state." into pi-dev 2018-05-01 20:27:15 +00:00
Ryan Mitchell
1c8c401095 RRO: Don't update overlays when target changes
When packages or components are enabled/disabled, PackageManager
broadcasts ACTION_PACKAGE_CHANGED. Currently, overlay paths are being
updated whenever this action is recieved, but this is cauing black
screen flashes because the active apps are having their overlay paths
reconfigured.

This change makes it so only overlays becoming enabled or disabled cause
the overlay paths to be updated.

Bug: 78508043
Test: Tested Instagram, adding a fingerprint, and adding a new user and
observed no screen flashes.

Change-Id: I3168f4a1e7187c8c1659fb169bae841783b7279f
2018-05-01 12:48:54 -07:00