OSDN Git Service

android-x86/frameworks-base.git
6 years agoUse correct attribute name.
Julia Reynolds [Wed, 6 Jun 2018 14:04:02 +0000 (10:04 -0400)]
Use correct attribute name.

Test: factory reset device and confirm default values
Change-Id: I96b20e98d740550fa1b47e069ebfb5fdf2368db2
Fixes: 109747051

6 years agoFurther interruptiveness changes
Julia Reynolds [Mon, 4 Jun 2018 16:27:58 +0000 (12:27 -0400)]
Further interruptiveness changes

- Compare strings instead of CharSequences in actions
- Ignore changes to remote input choices
- Ignore updates to summaries

Test: runtest systemui-notification
Change-Id: I33a29ee85d93658b2c7217a4ef3b300c9bd2850c
Fixes: 78643290

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 23:30:24 +0000 (23:30 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:34:21 +0000 (22:34 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:26:29 +0000 (22:26 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:22:26 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Sun, 3 Jun 2018 22:22:20 +0000 (22:22 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 14:48:00 +0000 (07:48 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3d8f7c63c86424767ea717511e218c090090a5a2

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 14:40:47 +0000 (07:40 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ie47fd40001b22ebd53a452443a52fb3449c3ee68

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 12:41:32 +0000 (05:41 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I470dc0700da24f49ea47c107089be2fc91175e87

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 11:01:15 +0000 (04:01 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ide5351c17e5deb31ebccd586440cf7755bb9b9de

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 10:47:25 +0000 (03:47 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I1b358135c0013b5ba30f5d416fd252d474f090bf

6 years agoImport translations. DO NOT MERGE
Bill Yi [Sun, 3 Jun 2018 10:27:06 +0000 (03:27 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: If6ca37ec539ab563a635e938845fcc6643b8e2b8

6 years agoMerge "Ensure picture isn't recording in createBitmap" into pi-dev
John Reck [Fri, 1 Jun 2018 22:25:52 +0000 (22:25 +0000)]
Merge "Ensure picture isn't recording in createBitmap" into pi-dev

6 years agoMerge "Partial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material...
Alan Viverette [Fri, 1 Jun 2018 20:29:04 +0000 (20:29 +0000)]
Merge "Partial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material attrs"" into pi-dev

6 years agoEnsure picture isn't recording in createBitmap
John Reck [Fri, 1 Jun 2018 19:39:50 +0000 (12:39 -0700)]
Ensure picture isn't recording in createBitmap

Picture#draw() will silently due an #endRecording() if it
wasn't called. Bitmap.createBitmap doesn't do this until
after it's too late.

So do an up-front #endRecording() to ensure state is
good to go

Bug: 80539264
Test: HardwareBitmapTests#testReadbackThroughPictureNoEndRecording
Change-Id: Ic66c41462e88880b73c5093d7541c4ce3d71adeb

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 19:35:37 +0000 (19:35 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 1 Jun 2018 18:28:39 +0000 (11:28 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I3e1475f7ceb9b2b0b37ff52297f550c2b2b6cb0d

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 18:18:35 +0000 (18:18 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Enforce permission check before returning application info Test: atest CtsAppS...
Hongming Jin [Fri, 1 Jun 2018 17:15:21 +0000 (17:15 +0000)]
Merge "Enforce permission check before returning application info Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest Bug: 77821568" into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 1 Jun 2018 13:50:46 +0000 (06:50 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: I35f7064ae1d2f8bde001b3b201a9107736a077e5

6 years agoMerge "Greylist bugbot updated - Thursday edition." into pi-dev
Nicolas Geoffray [Fri, 1 Jun 2018 08:57:34 +0000 (08:57 +0000)]
Merge "Greylist bugbot updated - Thursday edition." into pi-dev

6 years agoMerge "Prevent infinite layout while hiding nav bar on keyguard" into pi-dev
Tiger Huang [Fri, 1 Jun 2018 07:49:56 +0000 (07:49 +0000)]
Merge "Prevent infinite layout while hiding nav bar on keyguard" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 06:00:23 +0000 (06:00 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoMerge "Clear IPv4 address on tethering teardown." into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 05:53:35 +0000 (05:53 +0000)]
Merge "Clear IPv4 address on tethering teardown." into pi-dev

6 years agoMerge "Serialize AM.getContentProvider() calls in client side" into pi-dev
Makoto Onuki [Fri, 1 Jun 2018 05:35:02 +0000 (05:35 +0000)]
Merge "Serialize AM.getContentProvider() calls in client side" into pi-dev

6 years agoClear IPv4 address on tethering teardown.
Erik Kline [Fri, 18 May 2018 07:09:24 +0000 (16:09 +0900)]
Clear IPv4 address on tethering teardown.

Test: as follows
    - built
    - flashed
    - booted
    - runtest frameworks-net passes
    - wlan0 in STA mode, wlan1 up/down in AP mode
      no lingering IPv4 mode
    - USB tethering up/down works
    - bluetooth tethering yields:
05-18 17:50:49.726   719   756 D TetherController: untetherInterface(bt-pan)
05-18 17:50:49.729  1194  1230 E Tethering: [bt-pan] ERROR Failed to clear IPv4 address on interface bt-pan: java.lang.IllegalStateException: command '224 interface setcfg bt-pan 0.0.0.0 0' failed with '400 224 Failed to clear address (No such device)'
      which is acceptable (no actual crash, just a log message)
Bug: 79905644
Change-Id: Iaf29788a6692d810f3160e3f21d06b7452ecbaa6

6 years agoMerge "Don't "notifyAppStopping" when going to sleep." into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 03:15:13 +0000 (03:15 +0000)]
Merge "Don't "notifyAppStopping" when going to sleep." into pi-dev

6 years agoPrevent infinite layout while hiding nav bar on keyguard
Tiger Huang [Thu, 17 May 2018 08:45:56 +0000 (16:45 +0800)]
Prevent infinite layout while hiding nav bar on keyguard

By the original logic, if there is a focused window which hides
navigation bar while keyguard is showing, PhoneWindowManager would
hide/show navigation bar frequently, which caused infinite layout.

Bug: 78681867
Bug: 79896018
Bug: 80113279
Test: 1. a. Open a photo in fullscreen mode (hiding navigation bar)
         b. Press power key to bring up keyguard
         c. See if there is "Performed 6 layouts in a row. Skipping"
            log
      2. go/wm-smoke
      3. Open a video in YouTube in fullscreen mode and then expand
         status bar, and see if navigation bar would show; collapse
 status bar, and see if navigation bar would hide

Change-Id: Id8c49ac8fc45b98294e48017308dce3117ed1cf8
Merged-In: Id8c49ac8fc45b98294e48017308dce3117ed1cf8
(cherry picked from commit 53e8cfe794ef0e1295e526b21c557c2a17e597ad)

6 years agoMerge "Attempting to fix the black flicker" into pi-dev
John Reck [Fri, 1 Jun 2018 03:05:51 +0000 (03:05 +0000)]
Merge "Attempting to fix the black flicker" into pi-dev

6 years agoMerge "Bind correct FBO when drawing a WebView into a layer." into pi-dev
Derek Sollenberger [Fri, 1 Jun 2018 02:51:51 +0000 (02:51 +0000)]
Merge "Bind correct FBO when drawing a WebView into a layer." into pi-dev

6 years agoImport translations. DO NOT MERGE
Bill Yi [Fri, 1 Jun 2018 02:29:24 +0000 (19:29 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Id3ec2d329e661c984e51de0960c46c136ca69627

6 years agoMerge "Update the task stack state when resizing the tasks after the PiP animation...
Winson Chung [Fri, 1 Jun 2018 01:35:27 +0000 (01:35 +0000)]
Merge "Update the task stack state when resizing the tasks after the PiP animation" into pi-dev

6 years agoMerge "Move the "repeated calls" caveat" into pi-dev
Hall Liu [Fri, 1 Jun 2018 01:14:37 +0000 (01:14 +0000)]
Merge "Move the "repeated calls" caveat" into pi-dev

6 years agoBind correct FBO when drawing a WebView into a layer.
Derek Sollenberger [Wed, 30 May 2018 22:08:57 +0000 (18:08 -0400)]
Bind correct FBO when drawing a WebView into a layer.

The WebView was unable to draw into either a standard clipped
layer or the "fading edges" unclipped layer. This CL and its
companion test cases ensure that both work with simple and
complex clips.

Bug: 79619253
Bug: 80443556
Bug: 80477645
Test: atest CtsUiRenderingTestCases:.LayerTests
Merged-In: I0e16b724f74415a61cc2a841ccf4a491f293ac94
Change-Id: I4900222975fc841b11828916878fb0ea6d87dcda

6 years agoMerge "Fix regression in virtual key haptics" into pi-dev
Winson Chung [Fri, 1 Jun 2018 00:40:46 +0000 (00:40 +0000)]
Merge "Fix regression in virtual key haptics" into pi-dev

6 years agoEnforce permission check before returning application info
Hongming Jin [Fri, 18 May 2018 17:47:57 +0000 (10:47 -0700)]
Enforce permission check before returning application info
Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest
Bug: 77821568

Change-Id: I7554805c36c0c2552163dad7b07cfc5f552b624e

6 years agoMerge "Skip task overlay in calcuating task description" into pi-dev
TreeHugger Robot [Fri, 1 Jun 2018 00:08:58 +0000 (00:08 +0000)]
Merge "Skip task overlay in calcuating task description" into pi-dev

6 years agoMove the "repeated calls" caveat
Hall Liu [Thu, 31 May 2018 23:26:01 +0000 (16:26 -0700)]
Move the "repeated calls" caveat

Previous CL put the "repeated calls will replace the listener" comment
on the wrong method. Fixing.

Bug: 80493663
Test: None, doc change
Change-Id: I2736a582d79b3b2f204519c649d82d9ba912e1e5

6 years agoUpdate the task stack state when resizing the tasks after the PiP animation
Winson Chung [Thu, 31 May 2018 22:51:47 +0000 (15:51 -0700)]
Update the task stack state when resizing the tasks after the PiP animation

- When the animation into PiP ends, we clear the task stack state and
  request a layout prior to resizing the the stack to update the task
  bounds to the stack bounds. This triggers a relayout from the client,
  which fetches the new configuration prior to handling the PiP mode/config
  change scheduled as a part of the PiP mode change.

  We can instead update the task stack state when we resize the tasks to
  ensure that we don't relayout multiple times.

Bug: 75995355
Test: atest CtsActivityManagerDeviceTestCases:ActivityManagerPinnedStackTests

Change-Id: I58a6e30651f16b85ec160e977554b8d091b461ec

6 years agoDon't "notifyAppStopping" when going to sleep.
Robert Carr [Thu, 31 May 2018 22:39:07 +0000 (15:39 -0700)]
Don't "notifyAppStopping" when going to sleep.

The WindowManager interprets notifyAppStopping as a signal that the
app surface will be destroyed, but in the visible stopped states
of going to sleep this may not necessarily be true. notifyAppStopping
was only recently introduced for the purposes of handling detach children
which isn't needed when turning the screen off. Simply not executing
it when turning the screen off should be safe, if a little confusing.

Test: Manual of bug + mess around with SV apps a bunch
Bug: 80491358
Bug: 72921025
Change-Id: I7dd5d1e144e12ecfba038e15f84f9ae7c02aadd2

6 years agoMerge "Don't pause non-top activities when making visible" into pi-dev
Andrii Kulian [Thu, 31 May 2018 22:35:10 +0000 (22:35 +0000)]
Merge "Don't pause non-top activities when making visible" into pi-dev

6 years agoSerialize AM.getContentProvider() calls in client side
Makoto Onuki [Thu, 31 May 2018 18:03:56 +0000 (11:03 -0700)]
Serialize AM.getContentProvider() calls in client side

Th wait() call in AMS.getContentProviderImpl() can cause a deadlock when it
starts a new process for a target provider and all system server binder threads
are reaching out to the same provider at the same time, because AMS won't be
able to receive a callback from the provider process.

Let's serialize access to AM.getContentProvider() to avoid this scenario.

Longer team, we should stop waiting in the system server and instead do so in
the client side.

Bug: 74523247
Test: Boot, add a google account, and let syncs run and finish.
Test: Watch free video on Coursera

Change-Id: If5be2dc4b6f22f72d1bb3aa1b5b4d49f20c8d94d

6 years agoPartial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material attrs"
Alan Viverette [Fri, 18 May 2018 13:44:45 +0000 (13:44 +0000)]
Partial revert of "Align Theme, Theme.Holo, and Theme.Holo.Light with Material attrs"

This partially reverts commit 045abe73e2d61700dda3c6655ca2be75df8e9641.

Basically we're just removing the attributes that were explicitly
defined as null, since apparently they don't have fallback values
unless Holo is overlaid atop Material (blergh).

Bug: b/79725570
Test: manual against from bug APK
Change-Id: I7a5fe3f96a9720e0657042ce8d5a87b2fb590327

6 years agoMerge "Camera: add new detailed error callback" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 21:11:24 +0000 (21:11 +0000)]
Merge "Camera: add new detailed error callback" into pi-dev

6 years agoMerge "Camera: Document getNumberOfCameras behavior for logical camera" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:50:33 +0000 (20:50 +0000)]
Merge "Camera: Document getNumberOfCameras behavior for logical camera" into pi-dev

6 years agoMerge "Ensure permission held for MATCH_KNOWN_PACKAGES" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:41:01 +0000 (20:41 +0000)]
Merge "Ensure permission held for MATCH_KNOWN_PACKAGES" into pi-dev

6 years agoMerge "Fix MbmsDownloadSession documentation" into pi-dev
Hall Liu [Thu, 31 May 2018 20:34:42 +0000 (20:34 +0000)]
Merge "Fix MbmsDownloadSession documentation" into pi-dev

6 years agoMerge "Don't use stable providers for slices" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 20:21:16 +0000 (20:21 +0000)]
Merge "Don't use stable providers for slices" into pi-dev

6 years agoAttempting to fix the black flicker
John Reck [Thu, 17 May 2018 17:44:00 +0000 (10:44 -0700)]
Attempting to fix the black flicker

Bug: 79231206
Test: Repro steps from bug

Merged-In: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6
Change-Id: I4c2810c42a7a4358f64584da3ab0cdf1499e71b6

6 years agoCamera: add new detailed error callback
Yin-Chia Yeh [Thu, 31 May 2018 19:11:42 +0000 (12:11 -0700)]
Camera: add new detailed error callback

For the legacy shim layer to tell the difference between evction
and disable error.

Test: CTS CameraEvictionTest + IdleUidTest
Bug: 77486868
Change-Id: I5b68f55460287634903c9b8b42188d9dec8744d5

6 years agoCamera: Document getNumberOfCameras behavior for logical camera
Shuzhen Wang [Thu, 31 May 2018 18:41:39 +0000 (11:41 -0700)]
Camera: Document getNumberOfCameras behavior for logical camera

For camera1 API, framework only exposes one camera id for every
logical/physical camera id group. Document this behavior accordingly.

Test: Build
Bug: 80075565
Change-Id: I32c2de84d27a603d485014255bf1fad5031aa08e

6 years agoMerge "Add a primary action to slices from keyguard slice provider" into pi-dev
Mady Mellor [Thu, 31 May 2018 18:50:26 +0000 (18:50 +0000)]
Merge "Add a primary action to slices from keyguard slice provider" into pi-dev

6 years agoMerge "Don't cause infinite loop if windows manager crashes in safe mode" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 18:49:38 +0000 (18:49 +0000)]
Merge "Don't cause infinite loop if windows manager crashes in safe mode" into pi-dev

6 years agoFix regression in virtual key haptics
Winson Chung [Thu, 31 May 2018 17:56:06 +0000 (10:56 -0700)]
Fix regression in virtual key haptics

- We only want to suppress haptics for virtual keys when using quickstep,
  so the default should be to allow vibration for all virtual keys.

Bug: 80531196
Test: On quickstep-enabled device, touch and verify that we only get haptic
      on tap and not down

Change-Id: I87000703d0462c3c1d62e829eb36e7a19e7b53d7

6 years agoDon't use stable providers for slices
Jason Monk [Thu, 31 May 2018 18:12:52 +0000 (14:12 -0400)]
Don't use stable providers for slices

Because they aren't what we want.

Test: manual + existing tests
Bug: 80532760
Change-Id: Ib69799a2ef9440d0d67cea02e6b3c61844535755

6 years agoMerge "Update the boot image profile and preloaded classes" into pi-dev
Calin Juravle [Thu, 31 May 2018 17:31:48 +0000 (17:31 +0000)]
Merge "Update the boot image profile and preloaded classes" into pi-dev

6 years agoMerge "Protect broadcasts we use to talk to settings" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 17:20:21 +0000 (17:20 +0000)]
Merge "Protect broadcasts we use to talk to settings" into pi-dev

6 years agoMerge "Fix comments to reflect changes in eth service" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 16:40:36 +0000 (16:40 +0000)]
Merge "Fix comments to reflect changes in eth service" into pi-dev

6 years agoSkip task overlay in calcuating task description
Winson Chung [Thu, 31 May 2018 04:13:25 +0000 (21:13 -0700)]
Skip task overlay in calcuating task description

- When a PiP task is dismissed with the PiP menu activity showing, we
  use the wrong task description (belonging to the menu activity) to draw
  the app theme snapshot. The task overlay is only used from SysUI to
  overlay an activity on top of the task, and should not be considered in
  the calculation for the task description for the task.

Bug: 77964409
Test: Manual, launch Maps in PiP, dismiss and then open overview

Change-Id: I2d537b9fdd19eb69a8dc20f15ac5b263584d2fad

6 years agoMerge "Updates to shared lib for Launcher" into pi-dev
Jorim Jaggi [Thu, 31 May 2018 15:50:31 +0000 (15:50 +0000)]
Merge "Updates to shared lib for Launcher" into pi-dev

6 years agoMerge "Cutout Overlay: Flip color in inverted color mode" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 15:40:16 +0000 (15:40 +0000)]
Merge "Cutout Overlay: Flip color in inverted color mode" into pi-dev

6 years agoProtect broadcasts we use to talk to settings
Jason Monk [Thu, 31 May 2018 14:32:57 +0000 (10:32 -0400)]
Protect broadcasts we use to talk to settings

Test: manual
Change-Id: If383f94caccc0221e4a34a388142ff9ca4c00d29
Fixes: 80245419

6 years agoGreylist bugbot updated - Thursday edition.
Nicolas Geoffray [Thu, 31 May 2018 13:53:27 +0000 (14:53 +0100)]
Greylist bugbot updated - Thursday edition.

Bug: 80060097
Bug: 80111179
Test: m

Change-Id: I9543df166da9f5b53ca97d0b3ad62ed89d73b5fe

6 years agoMore additions to hidden API list greylist
David Brazdil [Thu, 31 May 2018 13:21:32 +0000 (14:21 +0100)]
More additions to hidden API list greylist

Bug: 80456099
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: Iee44f02c83e5d2c68e09b6c4f62c8faff2e74df8

6 years agoMerge "Build dark greylist from public + light grey API" into pi-dev
David Brazdil [Thu, 31 May 2018 12:20:57 +0000 (12:20 +0000)]
Merge "Build dark greylist from public + light grey API" into pi-dev

6 years agoCutout Overlay: Flip color in inverted color mode
Adrian Roos [Thu, 31 May 2018 12:14:13 +0000 (14:14 +0200)]
Cutout Overlay: Flip color in inverted color mode

Flips the color when the screen is inverted such
that it will end up black again after composition.

Change-Id: I8800c666b60061a58f1345a2609a088a02e82f48
Fixes: 80102202
Test: Enable cutout overlay, enable color inversion, verify overlay is black.

6 years agoMerge "Add MediaMuxer APIs to light grey." into pi-dev
TreeHugger Robot [Thu, 31 May 2018 10:27:18 +0000 (10:27 +0000)]
Merge "Add  MediaMuxer APIs to light grey." into pi-dev

6 years agoMerge "Fix text is cut off in corner cut out condition" into pi-dev
Felka Chang [Thu, 31 May 2018 08:41:44 +0000 (08:41 +0000)]
Merge "Fix text is cut off in corner cut out condition" into pi-dev

6 years agoAdd MediaMuxer APIs to light grey.
Nicolas Geoffray [Wed, 30 May 2018 14:50:33 +0000 (15:50 +0100)]
Add  MediaMuxer APIs to light grey.

bug: 80338884
Test: m
Change-Id: I076f6033e3b6512a5667d81a09a451bda8853505

6 years agoMerge "Hidden API bugbot update" into pi-dev
Nicolas Geoffray [Thu, 31 May 2018 08:31:51 +0000 (08:31 +0000)]
Merge "Hidden API bugbot update" into pi-dev

6 years agoMerge "Import translations. DO NOT MERGE" into pi-dev
TreeHugger Robot [Thu, 31 May 2018 05:41:44 +0000 (05:41 +0000)]
Merge "Import translations. DO NOT MERGE" into pi-dev

6 years agoFix text is cut off in corner cut out condition
felkachang [Fri, 25 May 2018 02:41:17 +0000 (10:41 +0800)]
Fix text is cut off in corner cut out condition

There is a todo that it needs to handle the corner cut out. In the
condition of RTL and Corner Cut out, HeadsUpStatusBarView's padding
is wrong because displayCutout.getSafeInsetRight() is 0 but corner
cut out actually impact HeadsUpStatusBar's layout. Corner cut out
make icon's start more big but mCutOutInset is 0 so the newPadding
is a negative number.

The handle method is to detect the part of overlaying with corner
cut out. i.e. center cut out is exclude. To count the cut out start
as cutOutStart and compare cutOutStart with icon's start. The cut
out is not corner cut out if cutOutStart < icon's start.

icon's minus the width of overlay part to prevent from negative
padding.

move the get screen size from onLayout to fitSystemWindows and
onAttachToWindow because there is a chance to new object in
onLayout. To new object in onLayout is not good practice. And,
there is an chance to invoke ANR because Display.getRealSize() may
do IPC.

Fixes: 80271465
Test: atest SystemUITests
Change-Id: I36fa5c880f5e624747133e46950c1c1695a5fa58

6 years agoImport translations. DO NOT MERGE
Bill Yi [Thu, 31 May 2018 04:32:21 +0000 (21:32 -0700)]
Import translations. DO NOT MERGE

Auto-generated-cl: translation import

Bug: 64712476
Change-Id: Ia217e53a5c9e1c832f986eb4c90b6099f566d941

6 years agoMerge "Don't complain if a VPN changes capabilities." into pi-dev
Lorenzo Colitti [Thu, 31 May 2018 03:03:04 +0000 (03:03 +0000)]
Merge "Don't complain if a VPN changes capabilities." into pi-dev

6 years agoMerge "Master mute is valid when running fixed volume for automotive" into pi-dev
Hongwei Wang [Thu, 31 May 2018 01:22:45 +0000 (01:22 +0000)]
Merge "Master mute is valid when running fixed volume for automotive" into pi-dev

6 years agoMaster mute is valid when running fixed volume for automotive
Hongwei Wang [Tue, 29 May 2018 21:36:16 +0000 (14:36 -0700)]
Master mute is valid when running fixed volume for automotive

In Automotive case, we set fixed volume to suggest no volume control
inside AudioFlinger and master mute is a mapping to the physical mute
button in a car, which toggles the global mute state.

Bug: 80474559
Test: adb shell input keyevent 164
Change-Id: I1d4fd143a98ee96f11850811c90e6d9932cab948

6 years agoUpdate the boot image profile and preloaded classes
Calin Juravle [Wed, 30 May 2018 00:52:20 +0000 (17:52 -0700)]
Update the boot image profile and preloaded classes

Data aggregated across 41 dogfood profiles from 10 different
(builds,devices). The threshold for preloaded_classes was 5.

What has changed:
preloaded_classes:  643 added, 1 removed
boot image profile: ~10k  methods and classes added.

Test: m, build & boot
Bug: 73313191
Change-Id: Ic2662255081a5166180f4eb894d75b2e5bd76950

6 years agoMerge changes from topic "vpn-meteredness" into oc-mr1-dev
Benedict Wong [Wed, 30 May 2018 23:12:34 +0000 (16:12 -0700)]
Merge changes from topic "vpn-meteredness" into oc-mr1-dev
am: 64c14793f7

Change-Id: If227c0d179137eea7d38c5f5579373268ae0bb2f

6 years agoFix MbmsDownloadSession documentation
Hall Liu [Wed, 30 May 2018 23:11:11 +0000 (16:11 -0700)]
Fix MbmsDownloadSession documentation

Fix the TODO from forever ago and update the docs for the listener
registration methods.

Change-Id: I1276d0afe430e1b50c0af1fdfacb12a89ea5aa38
Fixes: 80493663
Test: None, comments only

6 years ago[automerger skipped] DO NOT MERGE: Add unit tests to ensure VPN meteredness
Benedict Wong [Wed, 30 May 2018 23:10:46 +0000 (16:10 -0700)]
[automerger skipped] DO NOT MERGE: Add unit tests to ensure VPN meteredness
am: 66bc52884b  -s ours

Change-Id: I7ce4d1327e4f26080bd1001fb8fa1d370d2bcb96

6 years agoMerge changes from topic "vpn-meteredness" into oc-mr1-dev
Benedict Wong [Wed, 30 May 2018 23:00:13 +0000 (23:00 +0000)]
Merge changes from topic "vpn-meteredness" into oc-mr1-dev

* changes:
  DO NOT MERGE: Add unit tests to ensure VPN meteredness
  DO NOT MERGE: Fix ConnectivityController meteredness checks

6 years agoMerge "Show back button when launcher is disconnected from proxy service" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 21:55:54 +0000 (21:55 +0000)]
Merge "Show back button when launcher is disconnected from proxy service" into pi-dev

6 years agoMerge "Fixed a bug where sometimes unhandled handler would consume all keys" into...
Evan Rosky [Wed, 30 May 2018 21:47:25 +0000 (21:47 +0000)]
Merge "Fixed a bug where sometimes unhandled handler would consume all keys" into pi-dev

6 years agoEnsure permission held for MATCH_KNOWN_PACKAGES
Todd Kennedy [Tue, 29 May 2018 22:18:06 +0000 (15:18 -0700)]
Ensure permission held for MATCH_KNOWN_PACKAGES

There's an escape clause that passes the cross user permissions
if the caller UID is identical to the target user ID [eg. we're not
operating across users]. However, the method getInstalledPackagesList()
uses android.permission.INTERACT_ACROSS_USERS to filter the results and
a calling UID check is not sufficient. Ensuure the permission is
actually held, regardless of the calling UID or target user.

Change-Id: Iebf88668766d387a15246d6eea6420610665105a
Fixes: 80435086
Test: atest CtsAppSecurityHostTestCases:ApplicationVisibilityTest

6 years agoMerge "Fixed an issue where group children had rounded corners" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 20:26:45 +0000 (20:26 +0000)]
Merge "Fixed an issue where group children had rounded corners" into pi-dev

6 years agoFix comments to reflect changes in eth service
Pavel Maltsev [Wed, 30 May 2018 19:31:21 +0000 (12:31 -0700)]
Fix comments to reflect changes in eth service

OEMs should be able to set gateway, DNS and domain for their static IP
configuration.

Bug: 80090920
Test: m
Change-Id: Id7b6d538e2551cbd188821feb4b4feb102e4c751

6 years agoShow back button when launcher is disconnected from proxy service
Matthew Ng [Wed, 30 May 2018 18:27:39 +0000 (11:27 -0700)]
Show back button when launcher is disconnected from proxy service

Whenever service is disconnected, the back button will be shown. Once
the service is connected, launcher will decide whether or not to hide
the back button.

Test: adb shell am force-stop com.google.android.apps.nexuslauncher
Change-Id: Ic947e51c00abd9591c800aa1023b8d9684dc5d93
Fixes: 80098608

6 years agoMerge "MediaCodec.CryptoInfo: expose subsample encryption pattern" into pi-dev
Robert Shih [Wed, 30 May 2018 17:43:58 +0000 (17:43 +0000)]
Merge "MediaCodec.CryptoInfo: expose subsample encryption pattern" into pi-dev

6 years agoFixed an issue where group children had rounded corners
Selim Cinek [Wed, 30 May 2018 16:55:36 +0000 (09:55 -0700)]
Fixed an issue where group children had rounded corners

Children that were close to the clipping boundary before
were not being reset when they were added as a child.
This could happen with auto groups when collapsed or
with heads up notifications.

Change-Id: I873b65da6778840c4542b4324f69d2ec9b5c1dc5
Fixes: 80276391
Test: add autobundleable children while collapsed, observe no corners

6 years agoHidden API bugbot update
Nicolas Geoffray [Wed, 30 May 2018 15:29:29 +0000 (16:29 +0100)]
Hidden API bugbot update

Test: m
Bug: 76000369
Bug: 79619940
Bug: 80383631
Change-Id: Ie809ea7d97aa0a5a1bcf0b405a9b9c378591da20

6 years agoMerge changes from topic "rotation_config_update_fixes" into pi-dev
Andrii Kulian [Wed, 30 May 2018 14:50:18 +0000 (14:50 +0000)]
Merge changes from topic "rotation_config_update_fixes" into pi-dev

* changes:
  Force-update the orientation of before sending to client
  Update visibility and config at the same time
  Don't update configuration for invisible windows
  Don't let top activity to influence the orientation

6 years agoMerge "Update onDeregistered docs to make capability change expectations clear."...
Tyler Gunn [Wed, 30 May 2018 14:24:23 +0000 (14:24 +0000)]
Merge "Update onDeregistered docs to make capability change expectations clear." into pi-dev

6 years agoBuild dark greylist from public + light grey API
David Brazdil [Wed, 30 May 2018 12:59:11 +0000 (13:59 +0100)]
Build dark greylist from public + light grey API

The dark greylist is meant to contain non-SDK APIs which are "related"
to APIs accessible to apps without restrictions. The list used to be
built as all non-SDK APIs in the same package as those on the light
greylist. That is not sufficient and should include the public SDK API
packages too.

This patch modifies the makefile to generate a list of public API DEX
signatures with Doclava and then use that as a basis for the dark
greylist generation.

This should not be merged outside P branches as the build rules have
been migrated to Soong.

Bug: 80461842
Bug: 64382372
Test: make out/target/common/obj/PACKAGING/hiddenapi-blacklist.txt
Change-Id: Ief5e050280fbe0e87eba539fb73c34661d5fd83e
Merged-In: I357fcba75909495ba2b46b9ed1b532e65fee3fe1

6 years agoDon't complain if a VPN changes capabilities.
Lorenzo Colitti [Wed, 30 May 2018 07:44:47 +0000 (16:44 +0900)]
Don't complain if a VPN changes capabilities.

VPNs are not driven by NetworkRequests, so there's no risk of a
capability change on a VPN causing a connect/teardown loop.

Bug: 80439912
Test: builds, boots
Change-Id: Ic4c489ccc9fb97551d1ef440766f6cf6f99522db

6 years agoMerge "More greylisted APIs." into pi-dev
Nicolas Geoffray [Wed, 30 May 2018 11:45:46 +0000 (11:45 +0000)]
Merge "More greylisted APIs." into pi-dev

6 years agoMore greylisted APIs.
Nicolas Geoffray [Wed, 30 May 2018 09:51:48 +0000 (10:51 +0100)]
More greylisted APIs.

bug: 80447248
bug: 80444865
bug: 80441306
bug: 80441307
bug: 80440630

Test: m
Change-Id: I8be93884ad770f885fed1afb3864ea5322902bb1

6 years agoMerge "Allow for any default vibration intensity level." into pi-dev
Michael Wright [Wed, 30 May 2018 09:28:22 +0000 (09:28 +0000)]
Merge "Allow for any default vibration intensity level." into pi-dev

6 years agoDon't pause non-top activities when making visible
Andrii Kulian [Thu, 17 May 2018 04:29:34 +0000 (21:29 -0700)]
Don't pause non-top activities when making visible

Pausing non-top activities may break other lifecycle contracts, such
as onActivityResult() being delivered before onResume().

Bug: 79491318
Test: ActivityLifecycleTests
Change-Id: Idd287a5a85d39cbc849a9e60791b0111a6ab2fe8

6 years agoMerge "Cancel dark animation when new one arrives" into pi-dev
TreeHugger Robot [Wed, 30 May 2018 05:14:35 +0000 (05:14 +0000)]
Merge "Cancel dark animation when new one arrives" into pi-dev