Commit Graph

367825 Commits

Author SHA1 Message Date
TreeHugger Robot
65477d138d Merge "Flip flag to enable vibration on wireless charging" into pi-dev 2018-05-24 20:05:54 +00:00
TreeHugger Robot
10908b1972 Merge "On configuration change setup screen decorations" into pi-dev 2018-05-24 20:05:49 +00:00
TreeHugger Robot
cf2c35dca6 Merge "Revert "WallpaperColors hint computation"" into pi-dev 2018-05-24 20:00:27 +00:00
TreeHugger Robot
56cc567dfd Merge "Hide system apps until installed (1/2)" into pi-dev 2018-05-24 18:01:43 +00:00
TreeHugger Robot
d88abbfd78 Merge "Destroy networks as soon as they are disconnected." into pi-dev 2018-05-24 17:57:46 +00:00
TreeHugger Robot
05a6e77106 Merge "DngCreator: Use new LENS_DISTORTION result field if available." into pi-dev 2018-05-24 17:47:10 +00:00
Lucas Dupin
b5e5053ebc Revert "WallpaperColors hint computation"
This reverts commit c50f47d970.

Fixes: 79465234
Reason for revert: Google still does it using private APIs and apps were relying on this behavior, not good for the ecosystem.

Change-Id: I62e2b4cd1e6e562fcdd89c97e599bcdade83381a
2018-05-24 16:33:14 +00:00
TreeHugger Robot
87631c2d29 Merge "Use TCM context if application context is unavailble." into pi-dev 2018-05-24 16:30:16 +00:00
Michael Wachenschwanz
d55c618340 Merge "Revert "Write UsageEvents Parcel data as a Blob"" into pi-dev 2018-05-24 15:54:05 +00:00
Michael Wachenschwanz
8520e56998 Revert "Write UsageEvents Parcel data as a Blob"
This reverts commit f5bae21c5e.

Reason for revert:
Bug: 79860717
Fixes: 80215357

Change-Id: I0768e5ce0a95afe7ff091c0035335437bb33c46c
2018-05-24 15:45:17 +00:00
Beverly
5c2b48aa92 On configuration change setup screen decorations
Test: developer options > set emulated cutout
Change-Id: I6418ad8226955264d6197491d772954491aba9ac
Fixes: 80230317
2018-05-24 10:58:00 -04:00
Michael Wright
b112f26cce Use TCM context if application context is unavailble.
In TextClassificationManager, we use the application context to reduce
the likelihood of leaking the underlying Activity. Unfortunately, some
places (e.g. auto, system_server) don't actually provide us an
application context, so we need to fall back to whatever context was
passed in to TCM in the first place.

Bug: 80188317
Test: none
Change-Id: Ib4b2e6ed543d3ed56cefd8f56717855158cdc0fe
2018-05-24 14:15:04 +01:00
Nicolas Geoffray
9ed0da42b3 Merge "Add camera APIs to light grey." into pi-dev 2018-05-24 12:31:13 +00:00
TreeHugger Robot
7ac3797f16 Merge "More greylist additions from bug scrape." into pi-dev 2018-05-24 12:17:41 +00:00
Mathew Inwood
2ed94a7e4c More greylist additions from bug scrape.
Test: m
Bug: 64382372
Bug: 79950834
Bug: 80004540
Bug: 80109977
Bug: 80112684
Bug: 80204728
Change-Id: I8343f0d467a5d1ecd4e00abcf44871089e8453b3
2018-05-24 11:37:56 +01:00
TreeHugger Robot
0e7a307e14 Merge "Differentiate MediaBrowsers in a process for MediaBrowserService" into pi-dev 2018-05-24 09:59:28 +00:00
TreeHugger Robot
b82d3d7e74 Merge "Calculate cellular radio value from modem.controller values." into pi-dev 2018-05-24 06:11:27 +00:00
Winson Chung
004e01d388 Merge "Initial changes for full-width quickscrub." into pi-dev 2018-05-24 05:55:47 +00:00
TreeHugger Robot
5d8559fea3 Merge "Fork navbar layout for quickstep" into pi-dev 2018-05-24 05:03:14 +00:00
Winson Chung
6450335b56 Merge "Fix issue with slippery flag not being updated correctly" into pi-dev 2018-05-24 04:13:47 +00:00
TreeHugger Robot
3622bfdba0 Merge "[Notif] Remove transient views on swipe out" into pi-dev 2018-05-24 03:47:27 +00:00
Winson Chung
661d5f96a5 Initial changes for full-width quickscrub.
Bug: 79945202
Test: Swipe from anywhere in the nav bar

Change-Id: Ib0b07ceb64fb74c570c297acf865a37a1dc56fa8
2018-05-23 20:46:06 -07:00
TreeHugger Robot
24e913e5a8 Merge "Unsuspending packages when a PO or DO is set" into pi-dev 2018-05-24 03:01:38 +00:00
Winson Chung
1be4c7e3f5 Fix issue with slippery flag not being updated correctly
- The ordering was such that the disabled state was updated before
  onPanelExpandedChange which was masking the issue by updating the
  slippery flag, but when unlocking from the screen off state, we get
  onPanelExpandedChange first, and disabled state after (which doesn't
  update the slippery state).

Bug: 80204751
Test: Turn screen off, unlock with fingerprint, swipe up
Change-Id: I88f1bc6a983ec0d693844724d8b9d4bf11a0fd31
2018-05-24 03:01:13 +00:00
Chalard Jean
392971cf3a Destroy networks as soon as they are disconnected.
...as opposed to after the async channel finished disconnecting.

Bug: 78308259
Test: runtest frameworks-net
      also used a device with this patch over the weekend and
      tried all I could think of

Change-Id: I77ad6d97abb20815b801a794eaa9685acf2d1173
2018-05-24 11:44:10 +09:00
TreeHugger Robot
062c050d01 Merge "Camera: Use fallback key if the requested key returns null" into pi-dev 2018-05-24 02:09:02 +00:00
TreeHugger Robot
1a9def3dc7 Merge "MediaPlayer: ensure that jni code returns after throwing exceptions." into pi-dev 2018-05-24 01:59:09 +00:00
TreeHugger Robot
ee9b570dce Merge "Remove logging from RecentsOnboarding" into pi-dev 2018-05-24 01:35:31 +00:00
Mike Digman
f77fb9176e Fork navbar layout for quickstep
Different navbar layouts are loaded via config.xml depending
on if Quickstep is enabled. A contextual button frame is added
to replace the right nav buttons so different styling can be
applied. New back, rotate and keyboard icons are added.

Maintains support for custom navbar layouts. Adds support for
nested reversable elements, needed for contextual button frame.
Fixes navbar gravity support by using RelativeLayout's gravity
and top/bottom switching.

Change-Id: I5e24b2392c377313d421c0f95c3a7a0b99f32590
Fixes: 79930722
Fixes: 79930974
Fixes: 80164476
Test: manual, crash sysui, test against a11y, gb menu, rotate
2018-05-23 18:03:35 -07:00
Hui Yu
39b29bc230 Calculate cellular radio value from modem.controller values.
Recently cellular radio related values {"radio.active", "radio.scanning",
"radio.on"} are removed from power_profile.xml, which causes inaccurate
radio power usage. We use following formula to calculate radio
values from modem.controller values.

radio.active = average of modem.controller.rx and modem.controller.tx values
radio.scanning = 0 (since this is already included in radio.on bin 0)
<array name="radio.on"> <!-- Strength 0 to BINS-1 -->
    <value>modem.controller.idle * 25 / 180 </value>   <!-- none -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- poor -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- moderate -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- good -->
    <value>max(1, modem.controller.idle/256) </value>  <!-- great -->
 </array>

Bug: 79379255
Test:  use debugger to observe correct mPowerRadioOn, mPowerBins,
mPowerScan are calculated. "adb shell dumpsys batterystats", looking for
"radio=" in "Estimated power use" section.

Change-Id: Ic65a5c8a35a5b1f4ba05ddc150e29b00bc62689f
2018-05-24 00:45:02 +00:00
Dongwon Kang
4480127cad MediaPlayer: ensure that jni code returns after throwing exceptions.
Test: no crash on getPlaybackParams and pass post media CTS
Bug: 80200877
Change-Id: I7538967962acc2a23062615c0d39720b34505f17
2018-05-23 17:38:35 -07:00
TreeHugger Robot
da4c54e9da Merge "Fix per app GPS power usage." into pi-dev 2018-05-24 00:22:22 +00:00
Rohan Shah
a759496b94 [Notif] Remove transient views on swipe out
We are not removing transient views for the 'swiped out' animation.
Utilizing the transient view cleanup in onAnimationFinished to handle
this better.

Test: Manually
Bug: 79896012
Change-Id: I3c169815433e34795472264de30ff23b3d744269
2018-05-23 17:10:43 -07:00
TreeHugger Robot
d732ec697e Merge "FixBug: Round corner gone when scroll to non-first item and drag to close" into pi-dev 2018-05-24 00:00:51 +00:00
Lajos Molnar
604064e82d Merge "MediaCodec: make setVideoScalingMode usable for IGBP-based clients" into pi-dev 2018-05-23 23:41:21 +00:00
TreeHugger Robot
0ce1cc626b Merge "Prevent onboarding counters from overflow." into pi-dev 2018-05-23 23:37:37 +00:00
sanryhuang
40ede29ed6 Hide system apps until installed (1/2)
Applying this mechanism for system carrier apps to make visibility
reasonable from the user's perspective. In other words, before
hidden system apps have been installed, they wouldn't be listed
via APIs in PackageManager which are used at all apps list and
search in Settings and so on.

Test: manual
Test: atest CarrierAppUtilsTest
Test: atest PackageManagerTest
Bug: 74068582
Change-Id: Id3ff138ad529b909d9bbf6719af3a553b909ccbb
2018-05-23 16:29:31 -07:00
TreeHugger Robot
3884e936c9 Merge "SystemUI theme feature flag" into pi-dev 2018-05-23 23:00:52 +00:00
TreeHugger Robot
845e89320d Merge "Refactor for tuning gfx-max-frame-time-99" into pi-dev 2018-05-23 22:51:01 +00:00
Tracy Zhou
89a5924385 Remove logging from RecentsOnboarding
Bug: 79882171
Test: N/A
Change-Id: Ib6ae824204c0cd0ecd87a79c9a84bd650e040fa1
2018-05-23 15:45:08 -07:00
TreeHugger Robot
3cc8336198 Merge "Use STOCK_PM_FLAGS for backup agent" into pi-dev 2018-05-23 22:41:25 +00:00
TreeHugger Robot
a2cc38e7fb Merge "Make sure frame buffer 0 is bound before calling GL functor" into pi-dev 2018-05-23 22:14:21 +00:00
Beverly
155c9d2299 Flip flag to enable vibration on wireless charging
Test: manual
Change-Id: Icaae951e37a8a6ffd925fb6a5907ce1dc1748500
Fixes: 74505795
2018-05-23 18:12:19 -04:00
Lajos Molnar
832939e690 MediaCodec: make setVideoScalingMode usable for IGBP-based clients
These don't get access to this internal parameter of native window,
yet require it for each buffer.

Bug: 79493409
Change-Id: Ib16e9af58b26c7b66a7e4bb466433fcee7b7d080
2018-05-23 14:59:48 -07:00
TreeHugger Robot
261a101ac2 Merge "Add FLAG_ACTIVITY_CLEAR_TOP to more details intent" into pi-dev 2018-05-23 21:52:40 +00:00
TreeHugger Robot
452936192f Merge "DO NOT MERGE Allow cross user usage event queries" into pi-dev 2018-05-23 21:49:56 +00:00
Oscar Shu
9f402f41e2 Merge "Proto change for new RSSI poll metric" into pi-dev 2018-05-23 21:47:44 +00:00
TreeHugger Robot
615f8039af Merge "Write UsageEvents Parcel data as a Blob" into pi-dev 2018-05-23 21:38:48 +00:00
Suprabh Shukla
77e2245e71 Unsuspending packages when a PO or DO is set
If a profile or device owner is present, package manager does not
support calls to PM#setPackagesSuspended. So if there were already
suspended packages, they need to be unsuspended when a PO or DO is
added.

Test: atest com.android.server.pm.SuspendPackagesTest

Bug: 79980390
Change-Id: Ib79d95ccc25eef534fdcd540d3d6ea75c31982a7
2018-05-23 14:33:39 -07:00
TreeHugger Robot
4a0371bb88 Merge "DO NOT MERGE Fix bug when pressing the add user cancel button results in a black screen Test: Tested on Mojave Bug: 80187163 Change-Id: Ie46c228dea9de71b97a276f7e4f2d60fe98649b6" into pi-dev 2018-05-23 21:25:00 +00:00