Commit Graph

246497 Commits

Author SHA1 Message Date
Chong Zhang
741c0ba8aa Revert commits related to wallpaper cropping
bug: 28763785
related-to: 27989717
related-to: 28887408

Revert "Fix wallpaper crop during unlock animation"

This reverts commit 616c7c10b9.

Revert "Fix wallpaper cropped too soon when unminimizing dock"

This reverts commit f0b76b071c.

Revert "Set final crop on wallpaper instead of intersect clip with stack bounds"

This reverts commit dcf0183cea.

Revert "Crop wallpaper windows to their current target stack bounds"

This reverts commit e6cb450b0d.
2016-05-27 13:01:48 -07:00
TreeHugger Robot
efa291a860 Merge "Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent." into nyc-dev 2016-05-27 19:58:24 +00:00
Adrian Roos
0533dfb2ca Change app crash dialog strings
Change the reopen option and remove unreferenced reset string.

Change-Id: Ie0a5a5615a7d7e8d01927743ffa13f1ab1099774
Fixes: 28813950
2016-05-27 12:37:32 -07:00
Danny Epstein
c17513ef37 Merge "Top and bottom padding for watch preferences." into nyc-mr1-dev 2016-05-27 19:36:47 +00:00
Adrian Roos
ad028c1616 Simplify crash dialog
Remove "Reopen app" for background crashes, remove "Close"
for foreground crashes.

Make crash dialog cancelable with back / tapping outside.

Remove reset option for repeating crashes.

Change-Id: I3773ee6b6986efa35da30830fec223300cda5d75
Fixes: 28768481
Fixes: 28740658
2016-05-27 12:23:42 -07:00
TreeHugger Robot
5df14a60cf Merge "Helper method to check if current user is a demo user" into nyc-mr1-dev 2016-05-27 19:21:41 +00:00
Selim Cinek
9d84d9ee51 Added strings for translation with the expand affordance
Bug: 28069681
Change-Id: Ifebc146ed249e6133625607cfc361957e4491882
2016-05-27 12:14:20 -07:00
Makoto Onuki
7c65d085f4 Merge "Fix the feldspar-dev branch" into nyc-mr1-dev 2016-05-27 19:11:55 +00:00
Adrian Roos
5e47645f6d Fix status bar autohide with DirectReply
If a touch outside the status bar window is detected
we schedule autohiding the status bar - which is wrong
when that touch is due to touching the IME for DirectReply.

Bug: 28914905
Change-Id: Ic86612192368181f195fa54ac4f20edaf02af685
2016-05-27 12:07:37 -07:00
Selim Cinek
d6e5332169 Merge "Fixed a few memory leaks in SystemUI" into nyc-dev
am: 4f401f24c7

* commit '4f401f24c79c26a0554331bf13948e402c611015':
  Fixed a few memory leaks in SystemUI

Change-Id: Iba8725618829c316bbf99dd47b0e73526a9ab044
2016-05-27 19:05:41 +00:00
Selim Cinek
4f401f24c7 Merge "Fixed a few memory leaks in SystemUI" into nyc-dev 2016-05-27 18:58:56 +00:00
Siyamed Sinir
4dc77b7a5e Merge "Revert "Fix TextView layout reuse when maxLines is set"" into nyc-dev
am: 990e26118d

* commit '990e26118d5b6cad2d34483b1908ba6f8334a764':
  Revert "Fix TextView layout reuse when maxLines is set"

Change-Id: Ia2c2d22b40c4613c54c9d86a29f21059da3f7a42
2016-05-27 18:50:50 +00:00
Adrian Roos
dd654eaf40 Fix IME and NavBar overlap with Direct Reply
In phone landscape, when the navigation bar is on the right,
and when the status bar is forcing the IME and NavBar, make
sure that the nav bar and IME don't overlap, even if the
NavBar is only transient.

Bug: 28914905
Change-Id: I22921f1aca7970c2d02dfd88408eb15c5b17151f
2016-05-27 11:46:15 -07:00
Siyamed Sinir
3f23dad913 Merge "Set StaticLayout.maxLines only when ellipsize is set" into nyc-dev
am: 92d0316d28

* commit '92d0316d2837baceffb22e1a7eb0e5da50f0a025':
  Set StaticLayout.maxLines only when ellipsize is set

Change-Id: I17934afae1d5e8b7fe3b3ad8b4286dd43f68393e
2016-05-27 18:45:17 +00:00
Felipe Leme
a1b79bfd7a Allow apps to bypass Power Save restrictions when launched from a Notification's PendingIntent.
This scenario typically happens when the device is on Doze Mode and a
notification action is triggered from a Wear device.

In a nutshell, the workflow is:

- ProcessRecord has a flag telling whether a process has "whitelist
  management" privileges.
- When NotificationManager binds a new NotificationListenerService, it
  sets the BIND_ALLOW_WHITELIST_MANAGEMENT flag.
- On bind(), ActiveService asserts that only system apps can set that
  flag.
- On computeOomAdjLocked(), ActivityManagerService sets the
  ProcessRecord flag if necessary.
- Upon creating a notification, NotificationManager calls AM to mark its
  PendingIntents as coming from a notification.
- When PendingIntentRecord sends it to the target, it checks if it's
  from a notification and if so calls AM to do the temp whitelist.
- On unbind(), ActiveService removes the ProcessRecord flag if necessary.

Fixes: 28818704

Change-Id: I00d46036a2cbb73f7f733fd35bf0b743a02807a1
2016-05-27 11:45:09 -07:00
Makoto Onuki
b8ea2fdae0 Fix the feldspar-dev branch
Change-Id: Iddc6aaf4eea569739b3857ca40f5754640f15379
2016-05-27 11:39:34 -07:00
Siyamed Sinir
990e26118d Merge "Revert "Fix TextView layout reuse when maxLines is set"" into nyc-dev 2016-05-27 18:34:30 +00:00
Siyamed Sinir
92d0316d28 Merge "Set StaticLayout.maxLines only when ellipsize is set" into nyc-dev 2016-05-27 18:34:30 +00:00
Selim Cinek
f55f1bcb94 Fixed a bug where a notification could be stuck in the overlay
Change-Id: Idf07b1948b9baeff095fbeccd417cdad1e81e7f8
Fixes: 28992452
2016-05-27 11:19:11 -07:00
Amith Yamasani
d35a89cd80 Helper method to check if current user is a demo user
Bug: 27280140
Change-Id: I7f6ed3198a42b4f8b81b54764e0b73499a94f77c
2016-05-27 11:13:00 -07:00
Mark Goldstein
1743e97f3a Merge "Doc change: Fix broken link." into mnc-io-docs am: d643ab1ddb am: f9d8f6c5f3
am: 7f1330358a

* commit '7f1330358ac8037e440f0a66f9abed0f5db0481f':
  Doc change: Fix broken link.

Change-Id: I5234b90d962f485510c0395b116b9565c58cf7ab
2016-05-27 18:09:42 +00:00
Mark Goldstein
7f1330358a Merge "Doc change: Fix broken link." into mnc-io-docs am: d643ab1ddb
am: f9d8f6c5f3

* commit 'f9d8f6c5f36b07961f2d38b43c991ed679022f7e':
  Doc change: Fix broken link.

Change-Id: Iee76c1e357f2c67362d951f567bc3498c208fb35
2016-05-27 17:57:50 +00:00
Doris Liu
028029730b Copy native tree's property when mutate vector drawable
When mutating vector drawables, we need to not only copy over
the VD tree structure, but also the properties of the VD tree,
such as alpha.

Bug: 28974071
Change-Id: I265e7e3cb92455b876cae248bcb9811230cb34f9
2016-05-27 10:54:55 -07:00
Makoto Onuki
04b9aab945 ShortcutManager: Implement get-drawable APIs
Bug 28594168

Change-Id: I750e800b59dca56877ba78baac808aff93acd19d
2016-05-27 10:49:17 -07:00
Jaewan Kim
9e78ee80b8 Merge "PIP: Improve PIP control row\'s focus change animation in Recents" into nyc-dev
am: f8c504db7f

* commit 'f8c504db7f2e0e35c5fa19cad46681dc17db7488':
  PIP: Improve PIP control row's focus change animation in Recents

Change-Id: I55e62b5a1ba5290b4167c895707cf360b97b042a
2016-05-27 17:46:48 +00:00
Mark Goldstein
f9d8f6c5f3 Merge "Doc change: Fix broken link." into mnc-io-docs
am: d643ab1ddb

* commit 'd643ab1ddb737aeb6636c61839cb64bdc7348c04':
  Doc change: Fix broken link.

Change-Id: Ia1a9fdd18486ecf34d4a577f0e7f9d9570f748a3
2016-05-27 17:46:38 +00:00
Jason Monk
11aa8b009f Merge "QS: Handle detail scroll properly" into nyc-dev
am: 4f620d423f

* commit '4f620d423f82dd43ed79178e0091132dd49ca2a9':
  QS: Handle detail scroll properly

Change-Id: I6c3023fc9a6053b5918a22fff9f9af577df48c43
2016-05-27 17:46:38 +00:00
Mark Goldstein
d643ab1ddb Merge "Doc change: Fix broken link." into mnc-io-docs 2016-05-27 17:37:37 +00:00
Mady Mellor
c7d65b4e9c Adds alpha to dimmed backgrounds
If you're on the lock screen and a child background needs
to be shown (e.g. custom background and user expanding) the
background should fade in from 0 alpha otherwise looks odd
visually.

Bug: 27591195
Change-Id: I1f46831fd8b46eca5b54e7bd964af35752c4fa2f
2016-05-27 10:36:55 -07:00
TreeHugger Robot
aabbfc5565 Merge "Revert "Revert "Remove ActivityManager calls with PM.mInstallLock held""" into nyc-mr1-dev 2016-05-27 17:36:43 +00:00
Jeremy Joslin
1ec8cd9542 Fix issue #28930592: Scoring service binding is not reestablished.
Force stopping the bound scoring service would not automatically
reestablished the binding.

Replaced the custom BroadcastReceiver with a more standard
PackageMonitor implementation that handles the same actions in
addition to force stop.

Also added a few more debug log statements as they were helpful
during my development.

BUG: 28930592
Change-Id: Ic36ea77deb5e2117edc201e97d71be63bdd4230d
2016-05-27 10:34:29 -07:00
Chris Wren
7ee8418076 resolve merge conflicts of cd9ea74 to nyc-mr1-dev
Change-Id: I37bc8256b8b91274f418cbefe2797f068cd98dd4
2016-05-27 13:34:02 -04:00
Jae Seo
f8c504db7f Merge "PIP: Improve PIP control row's focus change animation in Recents" into nyc-dev 2016-05-27 17:23:58 +00:00
Makoto Onuki
05e0a9f3cf Merge "ShortcutManager: Support manifest shortcuts" into nyc-mr1-dev 2016-05-27 17:21:53 +00:00
Julia Reynolds
4d55281b08 Merge "Announce upcoming tile state on click." into nyc-dev
am: 293c967667

* commit '293c96766727517b5a94008a43d308a6d990faea':
  Announce upcoming tile state on click.

Change-Id: Ied45168428e0b1945ce6613ff0be40666c1f97dc
2016-05-27 16:59:32 +00:00
Zoltan Szatmary-Ban
8a5536d53e Only reset global restriction owner on DO->PO for the right user
Bug:28972648
Change-Id: I4ef727205bbd8ec319672480bac7b519b33d2a58
2016-05-27 17:56:44 +01:00
Jason Monk
4f620d423f Merge "QS: Handle detail scroll properly" into nyc-dev 2016-05-27 16:51:48 +00:00
TreeHugger Robot
cd9ea74659 Merge "add metrics for gestural notification expansions" into nyc-dev 2016-05-27 16:49:58 +00:00
Julia Reynolds
293c967667 Merge "Announce upcoming tile state on click." into nyc-dev 2016-05-27 16:48:25 +00:00
Makoto Onuki
22fcc68e6b ShortcutManager: Support manifest shortcuts
- Now apps can publish shortcuts via AndroidManifest.xml
(Sample: I5b127150)

- Rename some APIs per API council feedback

- Publishers can now "disable" shortcuts.
(https://docs.google.com/presentation/d/1raUn1QBURDb1yrd6mSmVxII9ezNh3MWukODdtufJ29U/edit#slide=id.g13ef592464_7_39)

Bug 28785283
Bug 28536066

Change-Id: I4a126841e43e40139bb4baa6d0f98ad7b3a75ac1
2016-05-27 09:40:58 -07:00
Ruchi Kandoi
e9f42318f6 Merge "PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()" into nyc-dev
am: 7730e57dc6

* commit '7730e57dc6624a66cdc35260f855a467fadc7b04':
  PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()

Change-Id: If4934466722851e9c7ca1443cae3e31f2b25c6c7
2016-05-27 16:28:03 +00:00
Amith Yamasani
ea1b9d7958 Revert "Revert "Remove ActivityManager calls with PM.mInstallLock held""
Added the missing import.

This reverts commit c51e725644.

Change-Id: Icd63619a12e10dee628e568a6200d429a9936cf0
2016-05-27 09:25:37 -07:00
Ruchi Kandoi
7730e57dc6 Merge "PowerManager: Adds Documentation to isSustainedPerformanceModeSupported()" into nyc-dev 2016-05-27 16:20:43 +00:00
Paul Jensen
e8b8f1b48e Merge "Don\'t drop IPv4 broadcast packets when WiFi multicast lock is held" into nyc-dev
am: 83e50327fc

* commit '83e50327fcf24e4d17a341cc2efaafc95046a8f9':
  Don't drop IPv4 broadcast packets when WiFi multicast lock is held

Change-Id: Ib76e96a84820fa36357d820ef6845f6155ec902c
2016-05-27 15:03:48 +00:00
Julia Reynolds
d8834773eb Announce upcoming tile state on click.
Change-Id: Ib804b5db13bbee07c6d45e8aa077cac60e28efb2
Fixes: 28964765
2016-05-27 11:01:55 -04:00
TreeHugger Robot
83e50327fc Merge "Don't drop IPv4 broadcast packets when WiFi multicast lock is held" into nyc-dev 2016-05-27 14:58:48 +00:00
Jason Monk
0215802097 QS: Handle detail scroll properly
Add custom scrollview that ensures the touches can cause a scroll.

Change-Id: Ib18ac24ded11d06f59f582248964bd697652c192
Fixes: 28671167
2016-05-27 10:47:51 -04:00
Ivan Podogov
22132cb6be Merge "Set the sensor batch size for accelerometer listener." into nyc-mr1-dev 2016-05-27 14:04:45 +00:00
Paul Jensen
f8a01e8431 Don't drop IPv4 broadcast packets when WiFi multicast lock is held
IPv4 broadcast packets can be very common (e.g. every 2s) so they
need to be dropped in the general case.  They also may be critical
for certain discovery protocols, so allow them through with APF
when the WiFi multicast lock is held.

Bug: 26238573
Change-Id: I03e09a2b9c779da5da775e78b95e9e0339720eaf
2016-05-27 09:18:56 -04:00
Nicolas Geoffray
fb6cf77a67 Cleanup performDexOpt with instruction sets.
Always use the packages' derived instruction sets.

This fixes a bug where otas and background dexopt would only
look at one instruction set.

bug:28994818

Change-Id: I730b59d24943c71de30adb485a823fd79c6806a6
2016-05-27 14:15:31 +01:00