OSDN Git Service

android-x86/frameworks-base.git
5 years agoMerge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:56:32 +0000 (15:56 +0000)]
Merge "Add an @hide way to adjust CursorAnchorInfo for another Matrix" into qt-dev

5 years agoMerge "Only create resources for the non-system user" into qt-dev
Winson Chung [Fri, 3 May 2019 15:47:30 +0000 (15:47 +0000)]
Merge "Only create resources for the non-system user" into qt-dev

5 years agoMerge "Prevent deadlock in RollbackManager#getAvailabeRollbacks" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:39:46 +0000 (15:39 +0000)]
Merge "Prevent deadlock in RollbackManager#getAvailabeRollbacks" into qt-dev

5 years agoMerge changes from topic "screenshot-fd-optional-qt-dev" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 15:12:16 +0000 (15:12 +0000)]
Merge changes from topic "screenshot-fd-optional-qt-dev" into qt-dev

* changes:
  Use dev/null instead of tmp file
  Notify the caller about I/O error
  Pass valid file descriptor to binder

5 years agoMerge "Enable tracepoint for hot activity starts" into qt-dev
Ioannis Ilkos [Fri, 3 May 2019 14:04:25 +0000 (14:04 +0000)]
Merge "Enable tracepoint for hot activity starts" into qt-dev

5 years agoMerge "Revert part of ag/6685504" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 14:02:32 +0000 (14:02 +0000)]
Merge "Revert part of ag/6685504" into qt-dev

5 years agoMerge "Trace opening/closing apps" into qt-dev
Jorim Jaggi [Fri, 3 May 2019 14:01:15 +0000 (14:01 +0000)]
Merge "Trace opening/closing apps" into qt-dev

5 years agoUse dev/null instead of tmp file
Abhijeet Kaur [Tue, 16 Apr 2019 17:28:20 +0000 (18:28 +0100)]
Use dev/null instead of tmp file

Use dev/null fd (instead of using fd from temporary file) when
screenshot fd is passed as null, as file deletion does not need
to be handled for dev/null.

Test: Take interactive bugreport (which does not need screenshot)
manually using shell (which calls bugreport API)
Bug: 128981582
Merged-In: I1719899e6cf3bffe1a96849691c051ff4f3a05ec
Change-Id: I1719899e6cf3bffe1a96849691c051ff4f3a05ec

5 years agoNotify the caller about I/O error
Abhijeet Kaur [Mon, 15 Apr 2019 09:16:42 +0000 (10:16 +0100)]
Notify the caller about I/O error

Call onError for caller of BugreportManager.start() if any io error
occurs during runtime.

Bug: 128981582
Test: Tested manually by throwing IO exception in the code when
bugreport is being generated, onError of the callback successfully
called.
Merged-In: I9033d85d392b926041fc26a86806a370752d062d
Change-Id: I9033d85d392b926041fc26a86806a370752d062d

5 years agoPass valid file descriptor to binder
Abhijeet Kaur [Fri, 29 Mar 2019 17:04:48 +0000 (17:04 +0000)]
Pass valid file descriptor to binder

screenshotFd needs to be optional in Bugreport API. For some bugreports
such as wifi,telephony, interactive etc taking a screenshot is not
required.

Initially, the API was sending invalid file descriptor to the Binder, but
that binder transaction could not be completed as Binder validates the
file descriptor to be valid and not-null.

Adding a tmp.png screenshot file to pass to bugreport API call. In a
separate CL in frameworks/native, added check that the bugreports that
don't require screenshots would not use this file descriptor value.

Bug: 128981582
Test: Tested by taking bugreports using Bugreport API in shell
Merged-In: I3233f5753506ae159c9fa591742e6b99e361039b
Change-Id: I3233f5753506ae159c9fa591742e6b99e361039b

5 years agoColors updates for guts
Julia Reynolds [Thu, 2 May 2019 21:20:25 +0000 (17:20 -0400)]
Colors updates for guts

For a11y and night mode and night mode a11y

Fixes: 129507563
Test: manual
Change-Id: I0b472db88feddb6f92aa265524e84afbe30c824b

5 years agoMerge "Restrict background activity start by task" into qt-dev
Ricky Wai [Fri, 3 May 2019 13:24:58 +0000 (13:24 +0000)]
Merge "Restrict background activity start by task" into qt-dev

5 years agoMerge "Don't allow enabling system decorations for untrusted virtual displays (1...
TreeHugger Robot [Fri, 3 May 2019 13:02:54 +0000 (13:02 +0000)]
Merge "Don't allow enabling system decorations for untrusted virtual displays (1/2)" into qt-dev

5 years agoMerge "Compute background color." into qt-dev
Robert Snoeberger [Fri, 3 May 2019 12:55:57 +0000 (12:55 +0000)]
Merge "Compute background color." into qt-dev

5 years agoMerge "Fix handling of multi-package enable rollback failures." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 11:31:34 +0000 (11:31 +0000)]
Merge "Fix handling of multi-package enable rollback failures." into qt-dev

5 years agoMerge "Mark smart replies as sent on notification update/removal." into qt-dev
Gustav Sennton [Fri, 3 May 2019 10:44:00 +0000 (10:44 +0000)]
Merge "Mark smart replies as sent on notification update/removal." into qt-dev

5 years agoDon't allow enabling system decorations for untrusted virtual displays (1/2)
Chilun [Thu, 11 Apr 2019 11:49:42 +0000 (19:49 +0800)]
Don't allow enabling system decorations for untrusted virtual displays (1/2)

We should only allow enabling system decorations for callers with the
right permission.

Bug: 130284250
Test: atest MultiDisplaySystemDecorationTests
Test: atest MultiDisplayPolicyTests
Test: atest ActivityManagerGetConfigTests#testDeviceConfigWithSecondaryDisplay
Test: atest MultiDisplayActivityLaunchTests#testLaunchExternalDisplayActivityWhilePrimaryOff
Change-Id: I008d44bdf1378a675a3197e1467521dcf7b275c5

5 years agoEnable tracepoint for hot activity starts
Ioannis Ilkos [Fri, 3 May 2019 09:47:30 +0000 (10:47 +0100)]
Enable tracepoint for hot activity starts

Bug: 131855693
Test: atest ActivityMetricsLoggerTests
Change-Id: I2adb00f4fc05ab4f67f27dc5565de3e00bc601a3

5 years agoFix handling of multi-package enable rollback failures.
Richard Uhler [Thu, 2 May 2019 11:36:39 +0000 (12:36 +0100)]
Fix handling of multi-package enable rollback failures.

Failure to enable rollback for one of the packages in a multi-package
install should fail to enable rollback for all packages in the
multi-package install. That was not the case prior to this CL, which
could lead to partial rollbacks.

Keep track of how many child sessions we expect to enable rollback for
and double check that we succeeded before making the rollback available.
This involves some cleanup of how we track parent vs child sessions when
enabling rollback.

Bug: 128656191
Test: atest RollbackTest, with new test added.

Change-Id: I737896cdc1915396748c5c1959b5397af793258a

5 years agoMerge "Ensure race between rollback and roll forward is properly handled" into qt-dev
Richard Uhler [Fri, 3 May 2019 08:09:17 +0000 (08:09 +0000)]
Merge "Ensure race between rollback and roll forward is properly handled" into qt-dev

5 years agoMerge "Disable rounded corners when in multi window" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 08:06:24 +0000 (08:06 +0000)]
Merge "Disable rounded corners when in multi window" into qt-dev

5 years agoMerge "Acquire DockManager via dagger" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 07:33:37 +0000 (07:33 +0000)]
Merge "Acquire DockManager via dagger" into qt-dev

5 years agoDisable rounded corners when in multi window
Lucas Dupin [Tue, 30 Apr 2019 00:55:38 +0000 (17:55 -0700)]
Disable rounded corners when in multi window

We should not draw rounded corners when animating windows into split
view. The divider is a single horizontal line, and we don't support
multiple radii per window.

Fixes: 129540518
Test: visual
Change-Id: Ic31395c77f376053a136a9c55382b74b4157ee34
Merged-In: Ic31395c77f376053a136a9c55382b74b4157ee34

5 years agoMerge "Fixing wrong panel state being sent to launcher" into qt-dev
Sunny Goyal [Fri, 3 May 2019 06:55:55 +0000 (06:55 +0000)]
Merge "Fixing wrong panel state being sent to launcher" into qt-dev

5 years agoMerge "Revert "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage"" into...
TreeHugger Robot [Fri, 3 May 2019 05:49:53 +0000 (05:49 +0000)]
Merge "Revert "Use /data/vendor_ce/0/facedata for FaceHAL's secure storage"" into qt-dev

5 years agoMerge "Allow specifying full component names in sysui plugin whitelist" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 04:45:33 +0000 (04:45 +0000)]
Merge "Allow specifying full component names in sysui plugin whitelist" into qt-dev

5 years agoOnly create resources for the non-system user
Winson Chung [Thu, 2 May 2019 22:42:22 +0000 (15:42 -0700)]
Only create resources for the non-system user

- It is expensive to create resources, so skip recreating
  them for the system user (they already exist for the
  system ui context). We only recreate resources when
  switching to a non-system user.

Bug: 131856992
Test: Manual
Change-Id: I5353fd336134f98e1d48bbf705ea30310447bccd

5 years agoMerge "Fix binder leakage when turning off Bluetooth" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 04:04:34 +0000 (04:04 +0000)]
Merge "Fix binder leakage when turning off Bluetooth" into qt-dev

5 years agoMerge "Update strings with UX mocks" into qt-dev
Kevin Chyn [Fri, 3 May 2019 03:20:58 +0000 (03:20 +0000)]
Merge "Update strings with UX mocks" into qt-dev

5 years agoMerge "Add event log for addToStopping" into qt-dev
Wei Sheng Shih [Fri, 3 May 2019 02:25:03 +0000 (02:25 +0000)]
Merge "Add event log for addToStopping" into qt-dev

5 years agoMerge "Animate padlock when waking up" into qt-dev
Lucas Dupin [Fri, 3 May 2019 02:22:33 +0000 (02:22 +0000)]
Merge "Animate padlock when waking up" into qt-dev

5 years agoMerge "Inject session id on all AutofillIds kept in the service." into qt-dev
TreeHugger Robot [Fri, 3 May 2019 02:17:37 +0000 (02:17 +0000)]
Merge "Inject session id on all AutofillIds kept in the service." into qt-dev

5 years agoMerge "Revert "Revert "Make the network stack a persistent process.""" into qt-dev
Dario Freni [Fri, 3 May 2019 02:12:05 +0000 (02:12 +0000)]
Merge "Revert "Revert "Make the network stack a persistent process.""" into qt-dev

5 years agoMerge "Be quiet" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 01:48:29 +0000 (01:48 +0000)]
Merge "Be quiet" into qt-dev

5 years agoMerge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windo...
TreeHugger Robot [Fri, 3 May 2019 01:33:38 +0000 (01:33 +0000)]
Merge "ContentCaptureManager is notified when FLAG_SECURE is set dynamically on windows." into qt-dev

5 years agoMerge "Fix issue where navbar wouldn't be on lock screen" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 01:26:41 +0000 (01:26 +0000)]
Merge "Fix issue where navbar wouldn't be on lock screen" into qt-dev

5 years agoAllow specifying full component names in sysui plugin whitelist
Steve Elliott [Wed, 1 May 2019 20:55:33 +0000 (16:55 -0400)]
Allow specifying full component names in sysui plugin whitelist

This allows for a more granular whitelist, where a single package
could have multiple plugins available but only a subset are enabled.

Bug: 123881720
Test: manual
Change-Id: Ie9b2c31f08d9dac8a892501345e8ff85143f40f9

5 years agoMerge "Revert change to force_dark property" into qt-dev
TreeHugger Robot [Fri, 3 May 2019 00:21:38 +0000 (00:21 +0000)]
Merge "Revert change to force_dark property" into qt-dev

5 years agoBe quiet
John Reck [Fri, 3 May 2019 00:10:46 +0000 (17:10 -0700)]
Be quiet

Fixes: 131863240
Test: logcat
Change-Id: I0276082b949f9521a804a4c1ef8af2148b69621b

5 years agoUpdate strings with UX mocks
Kevin Chyn [Fri, 3 May 2019 00:03:56 +0000 (17:03 -0700)]
Update strings with UX mocks

Fixes: 131862204

Test: Builds
Change-Id: Ie5535ab4eff02c9b1baa1638990d15253e33953a

5 years agoMerge "Add flag for strict comparison of russian phone number." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 23:51:31 +0000 (23:51 +0000)]
Merge "Add flag for strict comparison of russian phone number." into qt-dev

5 years agoFixing wrong panel state being sent to launcher
Sunny Goyal [Thu, 2 May 2019 22:22:01 +0000 (15:22 -0700)]
Fixing wrong panel state being sent to launcher

Bug: 131438091
Test: Verified that swipe-up works during HUN
Change-Id: I4275895c4fd1870f9bf26a7542c5d68e29990fab

5 years agoFix issue where navbar wouldn't be on lock screen
Lucas Dupin [Thu, 2 May 2019 23:38:33 +0000 (16:38 -0700)]
Fix issue where navbar wouldn't be on lock screen

Test: manual
Fixes: 131852606
Change-Id: I74c52eaffd2813d10fae9af5d3c705b0a5495b60

5 years agoContentCaptureManager is notified when FLAG_SECURE is set dynamically on
Adam He [Mon, 15 Apr 2019 22:41:49 +0000 (15:41 -0700)]
ContentCaptureManager is notified when FLAG_SECURE is set dynamically on
windows.

Fixes: 130377514
Test: # manual verification
Change-Id: I18126de8284a0c95ff61107031ffff941ca26be7

5 years agoMerge "Fixed that clicking on the remoteinput didn't work from AOD" into qt-dev
Selim Cinek [Thu, 2 May 2019 23:08:58 +0000 (23:08 +0000)]
Merge "Fixed that clicking on the remoteinput didn't work from AOD" into qt-dev

5 years agoMerge "Preemptively clear buffer reference if snapshot is unused" into qt-dev
Winson Chung [Thu, 2 May 2019 23:01:42 +0000 (23:01 +0000)]
Merge "Preemptively clear buffer reference if snapshot is unused" into qt-dev

5 years agoMerge changes from topic "step_event_permission" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 22:56:56 +0000 (22:56 +0000)]
Merge changes from topic "step_event_permission" into qt-dev

* changes:
  Update Step Detector and Step Counter docstring
  Add support for retrieving targetSdkVersion

5 years agoRevert "Revert "Make the network stack a persistent process.""
Dario Freni [Thu, 2 May 2019 22:50:19 +0000 (22:50 +0000)]
Revert "Revert "Make the network stack a persistent process.""

This reverts commit f6315c2e3cd80d83d344448784c1fd64bf9a410d.

Reason for revert: Change I346d772e1f4aed94f6faead3b6455efc4666b651 implemented a feature to allow upgrading persistent processes via staged installs.

Bug: 131046856
Test: - adb install networkstack.apk fails
      - adb install --staged networkstack.apk succeds (after reboot)
Change-Id: I13af35c953c0501f2b129092e0089d4e893b97a1

5 years agoMerge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 22:49:24 +0000 (22:49 +0000)]
Merge "New @TestApi: AutofillId.equalsIgnoreSession" into qt-dev

5 years agoMerge "Fixed a few issues with starting windows" into qt-dev
Chavi Weingarten [Thu, 2 May 2019 22:42:05 +0000 (22:42 +0000)]
Merge "Fixed a few issues with starting windows" into qt-dev

5 years agoMerge "Update systemui animations to GM2." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 22:25:18 +0000 (22:25 +0000)]
Merge "Update systemui animations to GM2." into qt-dev

5 years agoAnimate padlock when waking up
Lucas Dupin [Thu, 2 May 2019 05:25:22 +0000 (22:25 -0700)]
Animate padlock when waking up

Padlock should animate when:
- a pulse starts
- user presses power
- an interrupt wakes up the device

Test: Pres power to wake up
Test: Wake up from pulse
Test: Wait for pulse timeout
Test: Wake up from pulse, press power
Test: Lift device
Fixes: 131761884
Change-Id: Ib15d15f2138cd4f21f46b14221125353a005cde4

5 years agoMerge "OverlayDeviceTests: don't rely on Thread#sleep" into qt-dev
Todd Kennedy [Thu, 2 May 2019 22:11:08 +0000 (22:11 +0000)]
Merge "OverlayDeviceTests: don't rely on Thread#sleep" into qt-dev

5 years agoMerge "Cache java classes and methods look-ups in GnssLocationProvider JNI" into...
TreeHugger Robot [Thu, 2 May 2019 22:07:47 +0000 (22:07 +0000)]
Merge "Cache java classes and methods look-ups in GnssLocationProvider JNI" into qt-dev

5 years agoMerge "Prevents QS Header info clicks when it's hidden" into qt-dev
Fabian Kozynski [Thu, 2 May 2019 21:47:31 +0000 (21:47 +0000)]
Merge "Prevents QS Header info clicks when it's hidden" into qt-dev

5 years agoMerge "Fix DeviceDefault ActionBar text style." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:45:36 +0000 (21:45 +0000)]
Merge "Fix DeviceDefault ActionBar text style." into qt-dev

5 years agoMerge "Height should be maxed to the height of the notification shade." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:40:29 +0000 (21:40 +0000)]
Merge "Height should be maxed to the height of the notification shade." into qt-dev

5 years agoMerge "Remove stopship comments and kept logs" into qt-dev
Fabian Kozynski [Thu, 2 May 2019 21:32:16 +0000 (21:32 +0000)]
Merge "Remove stopship comments and kept logs" into qt-dev

5 years agoMerge "Sharesheet - run APS sortTargets in newSingleThreadExecutor" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:29:24 +0000 (21:29 +0000)]
Merge "Sharesheet - run APS sortTargets in newSingleThreadExecutor" into qt-dev

5 years agoMerge "Enable using prediction manager for sharesheet." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:29:24 +0000 (21:29 +0000)]
Merge "Enable using prediction manager for sharesheet." into qt-dev

5 years agoMerge "Sharesheet - Add logic to when 4->8 expansion occurs" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:27:34 +0000 (21:27 +0000)]
Merge "Sharesheet - Add logic to when 4->8 expansion occurs" into qt-dev

5 years agoMerge "Adjust SurfaceView visibility on parent change" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:11:43 +0000 (21:11 +0000)]
Merge "Adjust SurfaceView visibility on parent change" into qt-dev

5 years agoMerge "Camera: Consider mPhysicalCameraId in OutputConfiguration comparison" into...
TreeHugger Robot [Thu, 2 May 2019 21:10:59 +0000 (21:10 +0000)]
Merge "Camera: Consider mPhysicalCameraId in OutputConfiguration comparison" into qt-dev

5 years agoMerge "Prevent estimates from updating while callbacks are happening" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 21:10:25 +0000 (21:10 +0000)]
Merge "Prevent estimates from updating while callbacks are happening" into qt-dev

5 years agoMerge "Add system location request stack traces" into qt-dev
Soonil Nagarkar [Thu, 2 May 2019 21:03:35 +0000 (21:03 +0000)]
Merge "Add system location request stack traces" into qt-dev

5 years agoPreemptively clear buffer reference if snapshot is unused
Winson Chung [Thu, 2 May 2019 18:09:48 +0000 (11:09 -0700)]
Preemptively clear buffer reference if snapshot is unused

- Normally this will be picked up in the next GC, but there is no reason
  to wait

Bug: 129295298
Test: Manual
Change-Id: I945336e86d0980f926586cfba6327c8c6c142ce8

5 years agoMerge "Record number of calls to FalsingManager before success/failure." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 20:47:13 +0000 (20:47 +0000)]
Merge "Record number of calls to FalsingManager before success/failure." into qt-dev

5 years agoFixed that clicking on the remoteinput didn't work from AOD
Selim Cinek [Thu, 2 May 2019 00:31:25 +0000 (17:31 -0700)]
Fixed that clicking on the remoteinput didn't work from AOD

Because we are freeing the AOD view, the view was not attached
to the window anymore and therefore we would not trigger the
remote input. Additionally if the expanded view was already showing
on AOD, we also wouldn't wait on it to become visible, also leading
to an issue where the user couldn't reply.
This also fixes an issue where the notificaiton would be invisible
if it was replied to in a group.

Fixes: 118365629
Fixes: 110072505
Change-Id: Ied33ed19eacc115006f5457f427acd4fefe0494b

5 years agoRevert change to force_dark property
John Reck [Thu, 2 May 2019 19:59:40 +0000 (12:59 -0700)]
Revert change to force_dark property

Settings can't write to persist.* without special
selinux rules. Instead for debug simplicity just
switch back to debug.hwui.force_dark and let it
reset on reboot.

Fixes: 131697927
Test: toggle override-force dark in dev options
Change-Id: Ieac6edb2a7b444fc2f63d5d4f1b657bad6ead409

5 years agoRemove stopship comments and kept logs
Fabian Kozynski [Thu, 2 May 2019 19:47:37 +0000 (15:47 -0400)]
Remove stopship comments and kept logs

Test: no test (just comments removed)
Fixes: 129405675
Change-Id: I4f736da2c5967416276a9d43dfcd74f3e3e3427a

5 years agoMerge "HwBlob: s/malloc/calloc/" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 19:36:15 +0000 (19:36 +0000)]
Merge "HwBlob: s/malloc/calloc/" into qt-dev

5 years agoSharesheet - run APS sortTargets in newSingleThreadExecutor
George Hodulik [Thu, 2 May 2019 19:23:44 +0000 (12:23 -0700)]
Sharesheet - run APS sortTargets in newSingleThreadExecutor

Also add some debugging logs.

Bug:129014961
Test:Manually tested.
Test: atest frameworks/base/core/tests/coretests/src/com/android/internal/app
Change-Id: Id05cecf31f3c0afe5fd45911e78203e4ce4bd999

5 years agoMerge "Use Otsu's thresholding get better transition effect." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 19:20:58 +0000 (19:20 +0000)]
Merge "Use Otsu's thresholding get better transition effect." into qt-dev

5 years agoCompute background color.
Robert Snoeberger [Wed, 1 May 2019 15:39:09 +0000 (11:39 -0400)]
Compute background color.

Don't try to get it from the notification because the notification
is inflated in an async task.

Fixes: 130775480
Test: visual -- played music with GPM and checked background updated
Change-Id: I891f06b05b4ca4ba570a3b405fefa7b049f05cca

5 years agoMerge "Add icon packs for themepicker." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 18:52:25 +0000 (18:52 +0000)]
Merge "Add icon packs for themepicker." into qt-dev

5 years agoMerge "Improve SurfaceView bounds calculation" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 18:40:50 +0000 (18:40 +0000)]
Merge "Improve SurfaceView bounds calculation" into qt-dev

5 years agoMerge "Removing support for menu button from NavBar" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 18:35:40 +0000 (18:35 +0000)]
Merge "Removing support for menu button from NavBar" into qt-dev

5 years agoSharesheet - Add logic to when 4->8 expansion occurs
Matt Pietal [Thu, 2 May 2019 16:59:38 +0000 (12:59 -0400)]
Sharesheet - Add logic to when 4->8 expansion occurs

Should help reduce the amount of reshuffling due to older
pull-style direct share targets.

Bug: 129980100
Test: Visual inspection
Change-Id: I6bd2dd3da2b4c39ee79edaf92da89f1f79b12f75

5 years agoRestrict background activity start by task
Ricky Wai [Thu, 25 Apr 2019 15:08:30 +0000 (16:08 +0100)]
Restrict background activity start by task

We now also allow apps to start activity in its own background task, while
that task won't move to front.

Background activity is not allowed to be started in new task or app
is not in that task stack.
Also, task moving / reparent task is not allowed.

Bug: 128772406
Test: atest android.server.wm.BackgroundActivityLaunchTest
Change-Id: I20f501e755f30f9ef581f7f8c39a2875f959e5b8

5 years agoHeight should be maxed to the height of the notification shade.
Priyank Singh [Thu, 2 May 2019 00:57:06 +0000 (17:57 -0700)]
Height should be maxed to the height of the notification shade.

Bug: 131781091
Test: Manual
Change-Id: If17ba87424734fb3561ba2a710377019d55f17f0
(cherry picked from commit 941513159bafb268ca83d6146ad68facdc93da3b)

5 years agoCamera: Consider mPhysicalCameraId in OutputConfiguration comparison
Shuzhen Wang [Wed, 1 May 2019 17:19:17 +0000 (10:19 -0700)]
Camera: Consider mPhysicalCameraId in OutputConfiguration comparison

Test: Camera CTS
Bug: 131714581
Change-Id: Ifbd44a0cd16116311e0eef9c194dd90c9210952c

5 years agoPrevents QS Header info clicks when it's hidden
Fabian Kozynski [Fri, 26 Apr 2019 14:25:30 +0000 (10:25 -0400)]
Prevents QS Header info clicks when it's hidden

Because the QS Header info views are not set to GONE but just alpha 0,
they could still be clicked when they were not visible. Makes sure that
the clicks are only passed when the views are visible to the user
(VISIBLE and all its parents VISIBLE and alpha>0).

Test: manual, tapping when collapsed and expanded
Fixes: 131408961
Change-Id: Icfb4cd8aca60710372bdff78dd9fb894bd6618d0

5 years agoPrevent estimates from updating while callbacks are happening
Salvador Martinez [Wed, 1 May 2019 21:49:19 +0000 (14:49 -0700)]
Prevent estimates from updating while callbacks are happening

It seems that for some people the estimate was being set to null
as part of the process to update the estimate as they were trying
to access it. This CL makes it so that we don't allow callbacks
to start if we are currently updating which will ensure that this
doesn't happen again.

Test: repro'd issue without change, issue gone with change
Bug: 131607084
Change-Id: I938d05a3977bb4bba2c5d28e800d94120b8425d2

5 years agoCache java classes and methods look-ups in GnssLocationProvider JNI
Yu-Han Yang [Tue, 30 Apr 2019 01:40:29 +0000 (18:40 -0700)]
Cache java classes and methods look-ups in GnssLocationProvider JNI

Bug: 32833992
Fixes: 32833992

Test: on device
Change-Id: I153be74f84236395f43f713047e5d718fa1d56cc

5 years agoOverlayDeviceTests: don't rely on Thread#sleep
Mårten Kongstad [Thu, 28 Mar 2019 13:03:14 +0000 (14:03 +0100)]
OverlayDeviceTests: don't rely on Thread#sleep

When a request to enable an overlay is received by the overlay manager
service, there is some lead time before the affected process is updated.
Tests need to wait until this happens. Remove the calls to Thread#sleep;
instead, poll for a change to AssetManager#getApkPaths (which is faster
and more reliable).

Bug: 130257643
Test: atest OverlayDeviceTests
Change-Id: I9f7e6207a68431859bacac0462a2bab94b4efc2d

5 years agoMerge "Marked some WM flaky tests as such" into qt-dev
Wale Ogunwale [Thu, 2 May 2019 17:40:13 +0000 (17:40 +0000)]
Merge "Marked some WM flaky tests as such" into qt-dev

5 years agoMerge "Move starting filesystem checkpoint out of StagingManager." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 17:34:23 +0000 (17:34 +0000)]
Merge "Move starting filesystem checkpoint out of StagingManager." into qt-dev

5 years agoFixed a few issues with starting windows
chaviw [Wed, 1 May 2019 23:25:39 +0000 (16:25 -0700)]
Fixed a few issues with starting windows

1. startingData was accessed on a different thread without a lock held.
This caused synchronization issues where startingData could be set to
null while the starting window was getting created.

2. In onFirstWindowDrawn, startingData was not being set to null if the
startingWindow didn't exist. That means if the startingWindow hadn't
been created yet, it would get created after the first window was drawn.

Fixes: 129654434
Test: Steps from bug no longer reproducible
Change-Id: Ic5086798082b9f312cbd5069a937eac95cff7a9c

5 years agoMerge "Make Native Watchdog trigger RollbackManager rollback" into qt-dev
Shafik Nassar [Thu, 2 May 2019 17:26:48 +0000 (17:26 +0000)]
Merge "Make Native Watchdog trigger RollbackManager rollback" into qt-dev

5 years agoMerge "Limit who the SyncStatusObserver broadcasts are sent to." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 17:21:48 +0000 (17:21 +0000)]
Merge "Limit who the SyncStatusObserver broadcasts are sent to." into qt-dev

5 years agoMerge "Address some comments for the soft restriction CL" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 17:02:23 +0000 (17:02 +0000)]
Merge "Address some comments for the soft restriction CL" into qt-dev

5 years agoMerge "Avoid unnecessary badging" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 16:59:19 +0000 (16:59 +0000)]
Merge "Avoid unnecessary badging" into qt-dev

5 years agoMerge "Lazy-load textclassifier settings." into qt-dev
TreeHugger Robot [Thu, 2 May 2019 16:44:15 +0000 (16:44 +0000)]
Merge "Lazy-load textclassifier settings." into qt-dev

5 years agoImprove SurfaceView bounds calculation
Stan Iliev [Thu, 2 May 2019 15:23:00 +0000 (11:23 -0400)]
Improve SurfaceView bounds calculation

Estimate SurfaceView bounds conservatively to handle GPU rounding
errors. When SurfaceView border is in the middle of a pixel,
a fudge factor is added or substracted to always extend the region.

Test: passed CTS tests
Bug: 131240729
Change-Id: I74d5c1b40f9e730758f26341eb4a028bbae6ecd9

5 years agoMerge "Only apply rounded-corner animation on TYPE_BUILT_IN displays" into qt-dev
Tiger Huang [Thu, 2 May 2019 16:36:09 +0000 (16:36 +0000)]
Merge "Only apply rounded-corner animation on TYPE_BUILT_IN displays" into qt-dev

5 years agoMerge "DO NOT MERGE Fix setting hidden api usage log sample rate" into qt-dev
Andrei-Valentin Onea [Thu, 2 May 2019 15:59:13 +0000 (15:59 +0000)]
Merge "DO NOT MERGE Fix setting hidden api usage log sample rate" into qt-dev

5 years agoRemoving support for menu button from NavBar
Sunny Goyal [Wed, 1 May 2019 21:35:49 +0000 (14:35 -0700)]
Removing support for menu button from NavBar

Bug: 131763491
Test: Verfied menu button do not show on legacy app
Change-Id: If1091c00b768c08084c07e352f16e20fa3c90a02

5 years agoMerge "Correctly refer to the id of ColorSpace.Named.DISPLAY_P3." into qt-dev
Peiyong Lin [Thu, 2 May 2019 15:28:14 +0000 (15:28 +0000)]
Merge "Correctly refer to the id of ColorSpace.Named.DISPLAY_P3." into qt-dev

5 years agoMerge "Pass ColorSpace along with HardwareBuffers" into qt-dev
Leon Scroggins [Thu, 2 May 2019 15:15:02 +0000 (15:15 +0000)]
Merge "Pass ColorSpace along with HardwareBuffers" into qt-dev

5 years agoMerge "Sharesheet - Make ripples consistent" into qt-dev
TreeHugger Robot [Thu, 2 May 2019 15:13:26 +0000 (15:13 +0000)]
Merge "Sharesheet - Make ripples consistent" into qt-dev