OSDN Git Service

android-x86/frameworks-base.git
6 years ago[Notif] Rename/reset blocking helper stats file
Rohan Shah [Tue, 8 May 2018 14:55:02 +0000 (07:55 -0700)]
[Notif] Rename/reset blocking helper stats file

Changed the name of the blocking helper stats file to effectively reset
blocking helper stats.

Will be submitted following a dogfood email being sent out.

Test: Manually, mp droid -> check file in adb shell
Bug: 77143005
Change-Id: I4d79077220d628e5fd7ce40553222658f94efc24

6 years agoMerge "Enabled area info update for India" into pi-dev
Jack Yu [Wed, 2 May 2018 17:11:09 +0000 (17:11 +0000)]
Merge "Enabled area info update for India" into pi-dev

6 years agoMerge "Fix issue #78230210: Strobe: Need separate runtime permission group for READ_C...
android-build-team Robot [Wed, 2 May 2018 16:55:15 +0000 (16:55 +0000)]
Merge "Fix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG and WRITE_CALL_LOG" into pi-dev

6 years agoMerge "Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep Test: is done on ub-launc...
Hyunyoung Song [Wed, 2 May 2018 16:52:45 +0000 (16:52 +0000)]
Merge "Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep Test: is done on ub-launcher3-edmonton branch that uses this library function Bug: 77920179" into pi-dev

6 years agoAvoid using 0 for fs-verity extension ID
Victor Hsieh [Mon, 23 Apr 2018 21:43:19 +0000 (14:43 -0700)]
Avoid using 0 for fs-verity extension ID

Also:
 * Adjust size and order of some fields
 * Fix Merkle tree size calculation bug

Test: Verify fs-verity works with kernel patch
Bug: 67380979
Change-Id: I58f14cfe9630c1ff62ed64dbf333bb1c9bfe0fb1

6 years agoMerge "AAPT2: Fixed id parsing error" into pi-dev
Ryan Mitchell [Wed, 2 May 2018 16:27:03 +0000 (16:27 +0000)]
Merge "AAPT2: Fixed id parsing error" into pi-dev

6 years agoMerge "[Notif] Update guts/blocking helper UI" into pi-dev
Rohan Shah [Wed, 2 May 2018 16:21:38 +0000 (16:21 +0000)]
Merge "[Notif] Update guts/blocking helper UI" into pi-dev

6 years ago[automerger skipped] Fix build more
Adrian Roos [Wed, 2 May 2018 15:46:04 +0000 (08:46 -0700)]
[automerger skipped] Fix build more
am: d9d5f654c7  -s ours

Change-Id: Id7d1d5f358c21e010530c0158ba72f4ccb8c6bf9

6 years ago[automerger skipped] Fix build
Adrian Roos [Wed, 2 May 2018 15:44:36 +0000 (08:44 -0700)]
[automerger skipped] Fix build
am: 3e0fd90693  -s ours

Change-Id: I814a48bdab01da6aab05b08ff58c688f4909170a

6 years ago[automerger skipped] OC-MR1 DisplayCutout XML API
Adrian Roos [Wed, 2 May 2018 15:42:33 +0000 (08:42 -0700)]
[automerger skipped] OC-MR1 DisplayCutout XML API
am: 361580459e  -s ours

Change-Id: Ibff9a5fd9396eb54264970f02c832a7d085a9648

6 years agoMerge "Greylist updates from bugreports, Wednesday edition." into pi-dev
android-build-team Robot [Wed, 2 May 2018 15:23:25 +0000 (15:23 +0000)]
Merge "Greylist updates from bugreports, Wednesday edition." into pi-dev

6 years agoMerge "[Magnifier-43] Refactor to remove code duplication" into pi-dev
Mihai Popa [Wed, 2 May 2018 14:50:41 +0000 (14:50 +0000)]
Merge "[Magnifier-43] Refactor to remove code duplication" into pi-dev

6 years agoMerge "Fix RTL TileLayout." into pi-dev
android-build-team Robot [Wed, 2 May 2018 14:42:49 +0000 (14:42 +0000)]
Merge "Fix RTL TileLayout." into pi-dev

6 years agoMerge non-SDK @removed API and light greylist
David Brazdil [Wed, 25 Apr 2018 10:15:07 +0000 (11:15 +0100)]
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

6 years agoMerge "Build list of @removed API's dex signatures" into pi-dev
David Brazdil [Wed, 2 May 2018 14:28:18 +0000 (14:28 +0000)]
Merge "Build list of @removed API's dex signatures" into pi-dev

6 years agoMerge "Flip the cross profile apps animation" into pi-dev
android-build-team Robot [Wed, 2 May 2018 14:24:28 +0000 (14:24 +0000)]
Merge "Flip the cross profile apps animation" into pi-dev

6 years agoGreylist updates from bugreports, Wednesday edition.
Mathew Inwood [Wed, 2 May 2018 14:06:06 +0000 (15:06 +0100)]
Greylist updates from bugreports, Wednesday edition.

Bug: 78309612
Bug: 78471731
Bug: 78479712
Bug: 78596948
Bug: 78786637
Bug: 78906153
Bug: 79129056
Test: m
Change-Id: I1f6eb4e8de51ebf223b6863606a0a6401be03d9d

6 years agoMerge "Add more light grey APIs." into pi-dev
Nicolas Geoffray [Wed, 2 May 2018 13:22:48 +0000 (13:22 +0000)]
Merge "Add more light grey APIs." into pi-dev

6 years agoMerge "SystemUI heap monitor & hprof dump tile." into pi-dev
Daniel Sandler [Wed, 2 May 2018 13:03:20 +0000 (13:03 +0000)]
Merge "SystemUI heap monitor & hprof dump tile." into pi-dev

6 years agoMerge "Keep the notification shade open for smart replies" into pi-dev
Milo Sredkov [Wed, 2 May 2018 12:57:17 +0000 (12:57 +0000)]
Merge "Keep the notification shade open for smart replies" into pi-dev

6 years agoFix build more
Adrian Roos [Wed, 2 May 2018 12:30:35 +0000 (12:30 +0000)]
Fix build more

Bug: 78122614
Test: m checkbuild
Change-Id: Ia69eca72a2982c6417bcd30bf806ef8c18616251
Merged-In: I226622533a1b406ba26c161cba13721080b4baca

6 years agoMerge "Save password requirements on the right user" into pi-dev
Eran Messeri [Wed, 2 May 2018 12:31:06 +0000 (12:31 +0000)]
Merge "Save password requirements on the right user" into pi-dev

6 years agoMerge "WindowStateAnimator: Hide preserved surface when showing new Surface" into...
android-build-team Robot [Wed, 2 May 2018 12:02:46 +0000 (12:02 +0000)]
Merge "WindowStateAnimator: Hide preserved surface when showing new Surface" into pi-dev

6 years agoMerge changes I63f2b185,I0d749c1a into pi-dev
Mihai Popa [Wed, 2 May 2018 12:02:18 +0000 (12:02 +0000)]
Merge changes I63f2b185,I0d749c1a into pi-dev

* changes:
  [Magnifier-42] Fix bug in window positioning
  [Magnifier-41] Fix behavior in windows with insets

6 years agoFix build
Adrian Roos [Mon, 23 Apr 2018 16:54:37 +0000 (18:54 +0200)]
Fix build

Bug: 78122614
Test: m checkbuild
Change-Id: Ifd908fc91dc89d33a2b88fcfaed48480315991c6
Merged-In: I226622533a1b406ba26c161cba13721080b4baca

6 years agoOC-MR1 DisplayCutout XML API
Adrian Roos [Tue, 20 Mar 2018 13:58:29 +0000 (14:58 +0100)]
OC-MR1 DisplayCutout XML API

Bug: 78122614
Test: m checkbuild
Change-Id: I974d3d4385ba66477e0932d40d0af7bcd32ddfb1
Merged-In: I226622533a1b406ba26c161cba13721080b4baca

6 years agoAdd more light grey APIs.
Nicolas Geoffray [Wed, 2 May 2018 10:35:54 +0000 (11:35 +0100)]
Add more light grey APIs.

bug: 64382372
Test: m
Change-Id: Ia6f389ffb22f052409fc307de89cfef8d2fbeee4

6 years ago[Magnifier-43] Refactor to remove code duplication
Mihai Popa [Mon, 30 Apr 2018 18:08:57 +0000 (19:08 +0100)]
[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

6 years ago[Magnifier-42] Fix bug in window positioning
Mihai Popa [Fri, 27 Apr 2018 15:32:44 +0000 (16:32 +0100)]
[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

6 years ago[Magnifier-41] Fix behavior in windows with insets
Mihai Popa [Fri, 27 Apr 2018 12:09:12 +0000 (13:09 +0100)]
[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

6 years agoKeep the notification shade open for smart replies
Milo Sredkov [Tue, 1 May 2018 21:45:38 +0000 (22:45 +0100)]
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

6 years agoMerge "Remove margin from first line of remote history" into pi-dev
android-build-team Robot [Wed, 2 May 2018 09:10:45 +0000 (09:10 +0000)]
Merge "Remove margin from first line of remote history" into pi-dev

6 years agoBuild list of @removed API's dex signatures
David Brazdil [Thu, 26 Apr 2018 15:10:35 +0000 (16:10 +0100)]
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

6 years agoMerge "Request focus when pin is visible" into pi-dev
android-build-team Robot [Wed, 2 May 2018 07:28:33 +0000 (07:28 +0000)]
Merge "Request focus when pin is visible" into pi-dev

6 years agoMerge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev
Dianne Hackborn [Wed, 2 May 2018 06:54:54 +0000 (06:54 +0000)]
Merge "Work on issue #78480444: Start tracking uid state in app ops" into pi-dev

6 years agoMerge "Fix "Clear all" tap ripple is cut off" into pi-dev
Felka Chang [Wed, 2 May 2018 06:51:05 +0000 (06:51 +0000)]
Merge "Fix "Clear all" tap ripple is cut off" into pi-dev

6 years agoRequest focus when pin is visible
Lucas Dupin [Mon, 30 Apr 2018 22:56:52 +0000 (15:56 -0700)]
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

6 years agoMerge "Add NETWORK_BYPASS_PRIVATE_DNS permission" into pi-dev
Remi NGUYEN VAN [Wed, 2 May 2018 05:32:43 +0000 (05:32 +0000)]
Merge "Add NETWORK_BYPASS_PRIVATE_DNS permission" into pi-dev

6 years agoFix "Clear all" tap ripple is cut off
felkachang [Fri, 27 Apr 2018 08:55:40 +0000 (16:55 +0800)]
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

6 years agoMerge "Default keyguard scrim should be 45% transparent" into pi-dev
android-build-team Robot [Wed, 2 May 2018 02:40:06 +0000 (02:40 +0000)]
Merge "Default keyguard scrim should be 45% transparent" into pi-dev

6 years agoAdd NETWORK_BYPASS_PRIVATE_DNS permission
Remi NGUYEN VAN [Wed, 25 Apr 2018 08:46:10 +0000 (17:46 +0900)]
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

6 years agoMerge "Reduce statsd log data size." into pi-dev
android-build-team Robot [Wed, 2 May 2018 00:45:51 +0000 (00:45 +0000)]
Merge "Reduce statsd log data size." into pi-dev

6 years agoWork on issue #78480444: Start tracking uid state in app ops
Dianne Hackborn [Thu, 26 Apr 2018 20:46:22 +0000 (13:46 -0700)]
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

6 years agoMerge "Fixes primary stack being visible when minimizing 3rd party launcher" into...
android-build-team Robot [Wed, 2 May 2018 00:27:20 +0000 (00:27 +0000)]
Merge "Fixes primary stack being visible when minimizing 3rd party launcher" into pi-dev

6 years agoMerge "Add Stable Charging Threshold for AppStandby" into pi-dev
Michael Wachenschwanz [Wed, 2 May 2018 00:23:23 +0000 (00:23 +0000)]
Merge "Add Stable Charging Threshold for AppStandby" into pi-dev

6 years agoLog OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Hyunyoung Song [Wed, 2 May 2018 00:20:50 +0000 (17:20 -0700)]
Log OVERVIEW_ACTIVITY via MetricsLogger in quickstep
Test: is done on ub-launcher3-edmonton branch that uses this library function
Bug: 77920179

Change-Id: I3b96adc176acf81008fe78e646c4f960fa926bb8

6 years agoMerge "Add OP_PLAY_AUDIO to control shutter sound." into pi-dev
android-build-team Robot [Tue, 1 May 2018 23:56:12 +0000 (23:56 +0000)]
Merge "Add OP_PLAY_AUDIO to control shutter sound." into pi-dev

6 years agoMerge "refactored Log statements to Slog" into pi-dev
Kevin Chyn [Tue, 1 May 2018 23:22:09 +0000 (23:22 +0000)]
Merge "refactored Log statements to Slog" into pi-dev

6 years agoMerge "Clean up old Context references in ImsConfig" into pi-dev
Brad Ebinger [Tue, 1 May 2018 23:10:40 +0000 (23:10 +0000)]
Merge "Clean up old Context references in ImsConfig" into pi-dev

6 years agoFixes primary stack being visible when minimizing 3rd party launcher
Matthew Ng [Tue, 1 May 2018 21:24:38 +0000 (14:24 -0700)]
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

6 years agoDefault keyguard scrim should be 45% transparent
Lucas Dupin [Tue, 1 May 2018 22:43:06 +0000 (15:43 -0700)]
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

6 years agoMerge "Fixed an issue where the messaging layout could appear empty" into pi-dev
Selim Cinek [Tue, 1 May 2018 22:42:53 +0000 (22:42 +0000)]
Merge "Fixed an issue where the messaging layout could appear empty" into pi-dev

6 years agoMerge "Fixed the messaging clipping for RTL languages" into pi-dev
Selim Cinek [Tue, 1 May 2018 22:38:09 +0000 (22:38 +0000)]
Merge "Fixed the messaging clipping for RTL languages" into pi-dev

6 years agoMerge "RRO: Don't update overlays when target changes" into pi-dev
Ryan Mitchell [Tue, 1 May 2018 22:35:38 +0000 (22:35 +0000)]
Merge "RRO: Don't update overlays when target changes" into pi-dev

6 years agoMerge "Avoid redundant getAllocatableBytes() calls." into pi-dev
android-build-team Robot [Tue, 1 May 2018 22:04:05 +0000 (22:04 +0000)]
Merge "Avoid redundant getAllocatableBytes() calls." into pi-dev

6 years ago[Notif] Update guts/blocking helper UI
Rohan Shah [Mon, 30 Apr 2018 20:50:13 +0000 (13:50 -0700)]
[Notif] Update guts/blocking helper UI

Polishing UI based on UX phase 3.

Updated font style, spacing, header alignment, button tap target (8dp
onsides, 14dp on top/bottom for 48dp touch target).

Double checked that other views that share in the button tap
targets/styles weren't affected negatively.

Test: visually
Bug: 77318740
Change-Id: I71cd0187b6d9d6cce62e0051af84922594bc5a9a

6 years agoSystemUI heap monitor & hprof dump tile.
Dan Sandler [Fri, 23 Mar 2018 20:29:06 +0000 (16:29 -0400)]
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

6 years agoMerge "Handle Gnss Hal service death gracefully" into pi-dev
Yu-Han Yang [Tue, 1 May 2018 21:45:30 +0000 (21:45 +0000)]
Merge "Handle Gnss Hal service death gracefully" into pi-dev

6 years agoFix RTL TileLayout.
Amin Shaikh [Tue, 1 May 2018 21:39:47 +0000 (17:39 -0400)]
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

6 years agoMerge "Don't clear focus during transition animations" into pi-dev
Evan Rosky [Tue, 1 May 2018 21:30:17 +0000 (21:30 +0000)]
Merge "Don't clear focus during transition animations" into pi-dev

6 years agoMerge "Passpoint 2.0: Remove OSU/OSU2 Packages" into pi-dev
android-build-team Robot [Tue, 1 May 2018 21:26:13 +0000 (21:26 +0000)]
Merge "Passpoint 2.0: Remove OSU/OSU2 Packages" into pi-dev

6 years agoMerge "Increase the bytes per config threshold to avoid too frequent uploading."...
android-build-team Robot [Tue, 1 May 2018 21:02:32 +0000 (21:02 +0000)]
Merge "Increase the bytes per config threshold to avoid too frequent uploading." into pi-dev

6 years agoFix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG...
Dianne Hackborn [Fri, 27 Apr 2018 23:56:35 +0000 (16:56 -0700)]
Fix issue #78230210: Strobe: Need separate runtime permission group for READ_CALL_LOG and WRITE_CALL_LOG

Bug: 78230210
Test: manual
Change-Id: Ie5a0ab3dffd40dc44f7aa5deb81b42fbc2dbd406

6 years agoMerge "Use NORMAL synchronous mode for WAL journal mode" into pi-dev
Fyodor Kupolov [Tue, 1 May 2018 20:59:32 +0000 (20:59 +0000)]
Merge "Use NORMAL synchronous mode for WAL journal mode" into pi-dev

6 years agoEnabled area info update for India
Jack Yu [Tue, 1 May 2018 20:53:51 +0000 (13:53 -0700)]
Enabled area info update for India

We only enabled for MCC 404 before. Now we enable
MCC 405 as well.

Test: Manual
Bug: 69725276
Change-Id: Icc42fe114195c08709a4e601d7fc139041ca878f

6 years agoMerge "System apps cannot create channels that bypass dnd" into pi-dev
android-build-team Robot [Tue, 1 May 2018 20:46:42 +0000 (20:46 +0000)]
Merge "System apps cannot create channels that bypass dnd" into pi-dev

6 years agoMerge "Require READ_CALL_LOG permission to see phone numbers in phone state." into...
Tyler Gunn [Tue, 1 May 2018 20:27:15 +0000 (20:27 +0000)]
Merge "Require READ_CALL_LOG permission to see phone numbers in phone state." into pi-dev

6 years agoRRO: Don't update overlays when target changes
Ryan Mitchell [Tue, 1 May 2018 17:45:46 +0000 (10:45 -0700)]
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

6 years agoWindowStateAnimator: Hide preserved surface when showing new Surface
Robert Carr [Tue, 1 May 2018 19:14:48 +0000 (12:14 -0700)]
WindowStateAnimator: Hide preserved surface when showing new Surface

Our flow of operation when preserving Surfaces has always been:
    1. Open Transaction
    2. Show new surface
    3. Close transaction
    4. Destroy preserved surface outside of transaction

This means there is a small time after 3 where both surfaces are visible.
Normally this isn't a problem because the new surface totally covers up the old
Surface however in cases where we have partial translucency the two surfaces
on top of eachother will not look correct. The easiest fix for now is to hide
the old surface when showing the new one. The better fix for later is to use
destroyInTransaction for cleaning up the preserved surfaces.

Bug: 78639547
Test: Manual
Change-Id: I7dc687cf6131fb3af3881ccd9622e53d72e89e7d

6 years agoAvoid redundant getAllocatableBytes() calls.
Jeff Sharkey [Tue, 1 May 2018 19:09:28 +0000 (13:09 -0600)]
Avoid redundant getAllocatableBytes() calls.

Shuffle around the ordering of resolveInstallVolume() so that we
determine the fitsOnInternal value while doing a drive-by of all
possible target volumes.  This way we only call getAllocatableBytes()
internal storage once.

Bug: 70985520
Test: atest android.content.pm.PackageHelperTests
Change-Id: I8273c239af4a13b1db17f320e15ee0ef2dc89186

6 years agoMerge "Updated haptic effect for success" into pi-dev
Ilya Matyukhin [Tue, 1 May 2018 19:08:01 +0000 (19:08 +0000)]
Merge "Updated haptic effect for success" into pi-dev

6 years agoMerge "Add personalization state paused constant" into pi-dev
android-build-team Robot [Tue, 1 May 2018 18:56:54 +0000 (18:56 +0000)]
Merge "Add personalization state paused constant" into pi-dev

6 years agoFlip the cross profile apps animation
Tony Mak [Tue, 1 May 2018 09:35:35 +0000 (10:35 +0100)]
Flip the cross profile apps animation

Fixes: 78890008

Change-Id: I3f12e76955784bc34efef694774edccf17bc066a

6 years agoMerge "Accessibility change when Trusted Face icon shows." into pi-dev
Bingyu Zhang [Tue, 1 May 2018 18:14:31 +0000 (18:14 +0000)]
Merge "Accessibility change when Trusted Face icon shows." into pi-dev

6 years agoAAPT2: Fixed id parsing error
Ryan Mitchell [Wed, 25 Apr 2018 22:00:50 +0000 (15:00 -0700)]
AAPT2: Fixed id parsing error

A previous change, editied the logic for parsing ids to allow for ids to
reference other ids. This change though caused a regression that made
ids in the form '<id name="name" />' cease to parse. This changes fixes
that regression.

Bug: 78513618
Test: Updated tests in ResourceParser_test.cpp
Change-Id: I3608bb764464e951a50910be55e199c6ec575d09

6 years agoFixed the messaging clipping for RTL languages
Selim Cinek [Tue, 1 May 2018 17:53:26 +0000 (10:53 -0700)]
Fixed the messaging clipping for RTL languages

Because in landscape the width is bigger than the height,
our clipping logic was wrong and clipped off most of the
text.

Test: add messaging style notification, switch to RTL, landscape, observe normal clipping
Change-Id: I8c74a8405280047f8b2a08ecdf3f37b0fbeeec62
Fixes: 73895612
Fixes: 78606052

6 years agoMerge "Fix docs for a11yNodeInfo#refreshWithExtraData" into pi-dev
android-build-team Robot [Tue, 1 May 2018 17:55:19 +0000 (17:55 +0000)]
Merge "Fix docs for a11yNodeInfo#refreshWithExtraData" into pi-dev

6 years agoSystem apps cannot create channels that bypass dnd
Julia Reynolds [Tue, 1 May 2018 16:28:56 +0000 (12:28 -0400)]
System apps cannot create channels that bypass dnd

Test: runtest systemui-notification
Change-Id: I6121af3a6408260815e1496cd0a0e535fe921c1c
Fixes: 77656914

6 years agoMerge changes from topic "jr-onboard" into pi-dev
android-build-team Robot [Tue, 1 May 2018 17:26:26 +0000 (17:26 +0000)]
Merge changes from topic "jr-onboard" into pi-dev

* changes:
  Update 'dnd is hiding notifications' view
  Update zen onboarding flow
  Change zen defaults for upgrade and new users

6 years agoMerge "Fix bug and docs assuming progressBar min is 0 instead of getMin()" into pi-dev
Phil Weaver [Tue, 1 May 2018 17:12:40 +0000 (17:12 +0000)]
Merge "Fix bug and docs assuming progressBar min is 0 instead of getMin()" into pi-dev

6 years agoMerge "Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing" into...
Derek Sollenberger [Tue, 1 May 2018 16:57:28 +0000 (16:57 +0000)]
Merge "Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing" into pi-dev

6 years agoFix docs for a11yNodeInfo#refreshWithExtraData
Phil Weaver [Tue, 1 May 2018 16:26:01 +0000 (09:26 -0700)]
Fix docs for a11yNodeInfo#refreshWithExtraData

I think an early version of this API was a bitmask.

Bug: 78922344
Test: make
Change-Id: Ib50257d39a9d60ddc33f792640065e6643ccc3aa

6 years agoFixed an issue where the messaging layout could appear empty
Selim Cinek [Tue, 1 May 2018 16:09:38 +0000 (09:09 -0700)]
Fixed an issue where the messaging layout could appear empty

Change-Id: I0fe6e7a23068f10e6c867424027e7a86c9210186
Fixes: 73952748
Test: send long message, observe normal layout, not cut off

6 years agoMerge "Propagate calling UID to AM from LauncherApps" into pi-dev
Makoto Onuki [Tue, 1 May 2018 15:50:37 +0000 (15:50 +0000)]
Merge "Propagate calling UID to AM from LauncherApps" into pi-dev

6 years agoMerge "[Notif] Blocking helper basic metrics" into pi-dev
Rohan Shah [Tue, 1 May 2018 15:30:05 +0000 (15:30 +0000)]
Merge "[Notif] Blocking helper basic metrics" into pi-dev

6 years agoMerge "Don't run obb backup for shared storage backup package." into pi-dev
android-build-team Robot [Tue, 1 May 2018 15:29:51 +0000 (15:29 +0000)]
Merge "Don't run obb backup for shared storage backup package." into pi-dev

6 years agoDon't run obb backup for shared storage backup package.
Anton Philippov [Tue, 1 May 2018 13:27:00 +0000 (14:27 +0100)]
Don't run obb backup for shared storage backup package.

This fixes an issue when adb backup would hang (and hold wakelock)
forever when run with '-obb' and '-shared'.

Bug: 75997810
Test: 'adb backup -obb -shared' finishes successfully
Change-Id: I015add6dc525984592e733266b3e046f41d2cb93

6 years agoSave password requirements on the right user
Eran Messeri [Mon, 30 Apr 2018 15:16:39 +0000 (16:16 +0100)]
Save password requirements on the right user

When changing the password requirements, two changes have to be saved:
(1) Whether the current password complies with the new password
requirements.
(2) The new password requirements themselves.

(1) is stored on the credential owner of the user, (2) is stored on the
user itself.

In ag/3729963 (Change-ID: Ide5b2e53cf100b087822844ca51b3bc69e7ddf82),
we've switched from saving the password sufficiency flag (1) in the
user to the credential owner.
A side effect was that the password requirements themselves, (2), which
were changed on the original user the call related to, were not saved.

This fixes the bug introduced in the aforementioned CL.

Bug: 78499736
Test: Manual with TestDPC.
Change-Id: I11faef37fa6f0e8e8e558069e77021c48ee36cd4

6 years agoUpdate 'dnd is hiding notifications' view
Julia Reynolds [Wed, 25 Apr 2018 20:55:59 +0000 (16:55 -0400)]
Update 'dnd is hiding notifications' view

Add an icon and alawys show the view if DND is on and suppressing
notifications from the shade. 'Manage notifications',
'no notifications', and 'clear all'are hidden when this view is visible.

Bug: 78586809
Test: atest SystemUITests
Change-Id: I9d68fda8a3bc3213c20f9e57ca64d75eebdc1d94

6 years agometrics constant for new button
Julia Reynolds [Tue, 1 May 2018 13:04:21 +0000 (09:04 -0400)]
metrics constant for new button

Bug: 78448988
Test: make
Change-Id: I75977645f4e0fb0ff09a82061c35cf73a96ed1ef

6 years agoUpdate zen onboarding flow
Julia Reynolds [Mon, 23 Apr 2018 13:38:47 +0000 (09:38 -0400)]
Update zen onboarding flow

- Reset notification/onboarding
- Update notification icon

Test: runtest systemui-notification
Bug: 78448988
Change-Id: I1114000ad534f74ae67fc19fd8bbb712f757dfd9

6 years agoChange zen defaults for upgrade and new users
Julia Reynolds [Fri, 27 Apr 2018 18:48:36 +0000 (14:48 -0400)]
Change zen defaults for upgrade and new users

- Upgrade -> migrate suppressScreenOn and suppressScreenOff to
suppressVisualEffects
- New -> all visual effects are off, starred contacts are allowed
to call

Also fixed an NPE noticed while testing this CL

Test: runtest systemui-notification
Change-Id: I1efd6e3f9bc7519b2fb769bae62ffa1aaae59cb6
Fixes: 78778706
Fixes: 78768955

6 years agoMerge "Update logic for interruptive notifications" into pi-dev
Julia Reynolds [Tue, 1 May 2018 12:47:41 +0000 (12:47 +0000)]
Merge "Update logic for interruptive notifications" into pi-dev

6 years agoRemove margin from first line of remote history
Kenny Guy [Tue, 1 May 2018 11:57:09 +0000 (12:57 +0100)]
Remove margin from first line of remote history

Remove the incorrect margins on first line of
remote history so they match the other lines.

Bug: 78879304
Test: visual - check the margins line up when we have 2 remote history lines.
Change-Id: I0f8b08b53928f4f48d0ad402f95b52afcdeb7f3a

6 years agoMerge "Add implementation for SliceMetrics" into pi-dev
Chris Wren [Tue, 1 May 2018 11:52:42 +0000 (11:52 +0000)]
Merge "Add implementation for SliceMetrics" into pi-dev

6 years agoMerge "Tweak the sizes of the smart reply buttons" into pi-dev
Milo Sredkov [Tue, 1 May 2018 10:59:50 +0000 (10:59 +0000)]
Merge "Tweak the sizes of the smart reply buttons" into pi-dev

6 years agoMerge "Greylist updates from bugreports, Monday edition." into pi-dev
Mathew Inwood [Tue, 1 May 2018 10:52:26 +0000 (10:52 +0000)]
Merge "Greylist updates from bugreports, Monday edition." into pi-dev

6 years agoTweak the sizes of the smart reply buttons
Milo Sredkov [Mon, 30 Apr 2018 09:57:05 +0000 (10:57 +0100)]
Tweak the sizes of the smart reply buttons

Tweak the sizes of the smart reply buttons to be more consistent with
the rest of the notification UI.

Note that the padding for two-line buttons needs to be different from
the padding for one-line buttons until b/78876518 is fixed.

Screenshot before: https://screenshot.googleplex.com/ePaB3YZfLEk.png
Screenshot after: https://screenshot.googleplex.com/vZmPq7AyYOB.png
Two line version: https://screenshot.googleplex.com/9o8PxMusDXV.png

Bug: 73605520
Test: In Notify post a Messaging notification with chices
Change-Id: I4ef16dc8fb2682f9ac1a74aecadf8b6b6799cfb3

6 years agoMerge "Fix an NPE in PackageManagerService (introduced by ag/3819668)" into pi-dev
android-build-team Robot [Tue, 1 May 2018 08:49:26 +0000 (08:49 +0000)]
Merge "Fix an NPE in PackageManagerService (introduced by ag/3819668)" into pi-dev

6 years agoRespect a Layer's (e.g. SurfaceTexture) colorSpace when compositing
Derek Sollenberger [Fri, 20 Apr 2018 20:13:31 +0000 (16:13 -0400)]
Respect a Layer's (e.g. SurfaceTexture) colorSpace when compositing

This CL extracts the android_dataspace from the GLConsumer and converts
it to a SkColorSpace.  HWUI always expects to composite into an sRGB
destination so when we draw the layer we run the draw through a
colorFilter that converts the input colorSpace into that of the
destination.

Test: CtsViewTestCases
Bug: 78016220
Merged-In: Ic0446a0d861e86a5a9d0382346b57fcc45c8a61b
Change-Id: Ic0446a0d861e86a5a9d0382346b57fcc45c8a61b