Commit Graph

229587 Commits

Author SHA1 Message Date
Yin-Chia Yeh
b99ed40fb0 Merge "Camera: cleanup dead code" 2016-01-13 21:50:02 +00:00
Samuel Tan
01208118b3 resolve merge conflicts of 3caecaec60 to master.
Change-Id: Ic3e9909c69f03a6ef1911a6b7589afbc02d7494f
2016-01-13 13:42:00 -08:00
Robert Sesek
3242734d05 Merge "Fix SDK docs after b9a8666eb5504f022343fef9087135b7d937ddf8." 2016-01-13 21:24:00 +00:00
Felipe Leme
50f9c75a9a Merge "Save bugreport info on share intent." 2016-01-13 21:23:09 +00:00
Felipe Leme
c4f6467702 Save bugreport info on share intent.
When a bugreport is finished, BugreportProgressService sends a
INTENT_BUGREPORT_SHARE intent containing the bugreport pid; then when
the user clicks the share notification, BugreportProgressService uses
the pid to retrieve the bugreport info.

The problem with this approach is that if the service dies before the
user clicks the notification, the bugreport won't be shared.

This change fix this scenario by saving the bugreport info in the share intent.

BUG: 26513652

Also added more logging statements.

Change-Id: Iba86d06369f843ad88194fb1dad0c8b69764df78
2016-01-13 13:01:07 -08:00
Chong Zhang
defd8f3b22 Merge "Several fixes for docking non-resizeable tasks" 2016-01-13 20:55:55 +00:00
Robert Sesek
7b0143cef4 Fix SDK docs after b9a8666eb5.
Change-Id: Icad19dd1c888b4857d288b460d88bebb9ec20a13
2016-01-13 15:35:50 -05:00
Chong Zhang
f66db43063 Several fixes for docking non-resizeable tasks
- Keep track of original task bounds and scrolled bounds separately,
  so that we can reset the scrolling when the it's no longer in effect.

- Calculate the vertical offset for the toast on top half using the
  content rect. The original toast position was relative to the bottom
  of the content rect, not the display rect.

- Move toast display to prepareSurfaceLocked, as performShowLocked() may
  not be called if the app surface is already shown.

related-to: b/26451625
related-to: b/26447921

Change-Id: I82113683c9e3c3beb4938dbd0829d0abf491efd9
2016-01-13 12:31:08 -08:00
Julia Reynolds
f890afad17 Merge "Mock compliance for notification guts." 2016-01-13 20:30:48 +00:00
xin He
5713b9acc3 Merge "Initial codes for Quality network selection [DO NOT MERGE]" into mm-wireless-dev
am: 5961142109  -s ours

* commit '596114210980ae89d040ee86a5daad257c6e5f4c':
  Initial codes for Quality network selection [DO NOT MERGE]
2016-01-13 20:18:58 +00:00
Julia Reynolds
205053615c Mock compliance for notification guts.
Change-Id: I6fc63ad5b9c241d5e003a9810fde6f5aea48214e
2016-01-13 15:13:03 -05:00
xin He
5961142109 Merge "Initial codes for Quality network selection [DO NOT MERGE]" into mm-wireless-dev 2016-01-13 20:03:50 +00:00
Adam Lesinski
71f42ad4d6 Merge "UsageStats: Fix issue where initializing data for first time would cause crash" 2016-01-13 20:03:26 +00:00
Dongwon Kang
9b554abf2b Merge "MediaResourceMonitor: Shorten the TAG" 2016-01-13 20:01:22 +00:00
Chong Zhang
cb11f8a288 Merge "Fix rect convert from screen to surface coordinates with scaling" 2016-01-13 19:52:45 +00:00
Dongwon Kang
ee3d8118b3 MediaResourceMonitor: Shorten the TAG
Bug: 26541185
Change-Id: Iad1115cfc31b458dc0daa0fe37efd795fb0a32fb
2016-01-13 11:51:45 -08:00
Sandra Kwan
f56a60fab2 Merge "AccountManager: make account session APIs SystemApi." 2016-01-13 19:46:21 +00:00
Chong Zhang
8438957153 Fix rect convert from screen to surface coordinates with scaling
When there is scaling, the top/left coordinates are also scaled. They
could be non-zero if the app is being cropped (eg. due to two-finger
scroll).

bug: 26451625
Change-Id: I90d537347b312d2438993780f52b023c2332eb68
2016-01-13 11:32:58 -08:00
Filip Gruszczynski
3e979d6229 Merge "Only request stack resize after non full screen bounds were set." 2016-01-13 19:31:31 +00:00
Filip Gruszczynski
dce2d16170 Only request stack resize after non full screen bounds were set.
Also make sure that the bounds passed to stacks and tasks are not bogus,
as these would mess up the configuration.

Bug: 26512887
Change-Id: I1a3a9c867a2c258a326b31df2bac614ccbb00579
2016-01-13 11:30:58 -08:00
Chet Haase
f73363cf51 Merge "Make Animation.cancel() actually work" 2016-01-13 19:30:29 +00:00
Chong Zhang
71888e9ff8 Merge "Launch non-resizeable task with fullscreen bounds in docked stack." 2016-01-13 19:18:39 +00:00
Chris Craik
3cfc373127 Merge "Skip layer updates for layerless nodes" 2016-01-13 19:16:16 +00:00
Chris Craik
e9c5fd888b Skip layer updates for layerless nodes
bug:26535405

Change-Id: I4d5ea8401f59815715c5b51f88d549474876160c
2016-01-13 11:13:01 -08:00
Jason Monk
561e219033 Merge "Round out the QS API" 2016-01-13 19:07:33 +00:00
Adam Lesinski
7856f3c283 UsageStats: Fix issue where initializing data for first time would cause crash
With the updated rolling window of stats for app idleness, we need to make sure
it is populated before we initialize some defaults.

Now that we look at older entries to figure out idleness, if those
entries are in the future (due to time change), set them to the current
screen on time.

Bug:26504153
Change-Id: I4c21e8f094a1a6727373368d043f523053280d7d
2016-01-13 11:03:35 -08:00
Matthew Bouyack
b79151759a Merge "In CanvasContext::doFrame, make a separate call to computeFrameTimeNanos and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments." into cw-e-dev am: eebf168e43 am: e0845e8629 am: 6222bb0f6a
am: 099bd9ca8f

* commit '099bd9ca8fea02795424d62c05c723290d68ae14':
  In CanvasContext::doFrame, make a separate call to computeFrameTimeNanos and save the result. Then pass that value to UiFrameInfoBuilder::setVsync as both arguments.
2016-01-13 19:00:07 +00:00
Michael Wright
9b974bf25b Merge "Make sure NaturalSurfaceLayout is consistent with SurfaceControl" am: 6fa9c5cd01
am: 35bdda107f

* commit '35bdda107fe76ab62087527946b201551ddfe965':
  Animate backlight quickly when display state request to change or power mode changed
  Make sure NaturalSurfaceLayout is consistent with SurfaceControl
2016-01-13 18:57:49 +00:00
Alan Viverette
7a66ba9ddb Merge "Clean up lint warnings in popup menu presenter classes" 2016-01-13 18:56:24 +00:00
Kenny Root
5be30a6d49 Merge "Track changes in libcore" am: a15ef2abab
am: 5defc912cd

* commit '5defc912cd2d8f15d03226b901ffc43db9f2d39e':
  Track changes in libcore
2016-01-13 18:53:10 +00:00
Alan Viverette
61a8fa83ff Merge branch 'master' of /usr/local/google/game/mirror/googleplex-android_googlesource_com/platform/frameworks/base 2016-01-13 18:51:40 +00:00
Alan Viverette
03d50e4855 Merge "Avoid drawable invalidation during draw()" into mnc-dr1.5-dev am: cf6885b7b7 am: c783ebc13a
am: ea2e422c23

* commit 'ea2e422c2381298b67f3ce81d01b454e85dbe269':
  Avoid drawable invalidation during draw()
2016-01-13 18:51:02 +00:00
Chris Craik
8e77ff5eff Merge "Disable buildLayer crash" 2016-01-13 18:50:56 +00:00
Alan Viverette
beb0978401 Merge "Handle null result from getVirtualChildAt()" into mnc-dr1.5-dev am: d9434699e4 am: 9c0890ea4b
am: 19150f05c4

* commit '19150f05c4c3b4b73175edc764fbd64fe6988197':
  Handle null result from getVirtualChildAt()
2016-01-13 18:47:59 +00:00
Jason Monk
5bdfd8c126 Get data type from service state as well am: 67b2c16a9a am: 05130f3f23
am: 8ced692e44

* commit '8ced692e445526a74d51391f2c7c30bd43322d46':
  Get data type from service state as well
2016-01-13 18:46:13 +00:00
Chong Zhang
7d5f510e6c Launch non-resizeable task with fullscreen bounds in docked stack.
This case could happen in real world if a non-resizeable activity opens
another activity (eg. Messenger app opens an activity to write up the
message). Need to make sure the new activity is not resized.

Change-Id: I222985fa7ee2cbd94c843ac1190239cce31d3c0c
2016-01-13 10:40:59 -08:00
Alan Viverette
02cd0f9105 Clean up lint warnings in popup menu presenter classes
Change-Id: I6b4cce1c4788b408615af0c93575e02e75b4c3ca
2016-01-13 13:33:17 -05:00
Steve McKay
f3b34603de Merge "Stop listening root change events when the activity is destroyed." 2016-01-13 18:21:08 +00:00
Dongwon Kang
ab064b3b36 Merge "Add a way for SystemUI to receive media resource (e.g. A/V codec) usage" 2016-01-13 18:21:00 +00:00
Clara Bayarri
4fce66668e Merge "Request Keyboard Shortcuts for SysUI Dialog via Window" 2016-01-13 18:06:38 +00:00
Jae Seo
1365602813 Merge "TIF: Fix typos" 2016-01-13 17:50:19 +00:00
Robert Sesek
81d867f5db Merge "Add external services, a way to run isolated processes as a different package." 2016-01-13 17:23:36 +00:00
Geoff Mendal
61f8f5d6a7 Merge "Import translations. DO NOT MERGE" 2016-01-13 17:05:42 +00:00
Clara Bayarri
75e097965c Request Keyboard Shortcuts for SysUI Dialog via Window
Keyboard shortcuts are requested via WindowManager, and
the request pipes through to the view root and the window
callback.

Bug: 22405482
Change-Id: Ic0071e91c7b554be3ac9df71e9539ee8a60e822e
2016-01-13 16:56:56 +00:00
Geoff Mendal
76cc58e19c Import translations. DO NOT MERGE
Change-Id: I02b0f5198801a8c8f836a123d15bd1dd8e2caf52
Auto-generated-cl: translation import
2016-01-13 17:56:52 +01:00
Jason Monk
a5abf80104 Merge "Make QS only have one Host and Tiles" 2016-01-13 15:58:42 +00:00
Adrian Roos
dc5b453516 Scroll to RemoteInputView
Scrolls to the RemoteInputView when it's beneath the IME.
Also fixes ViewRootImpl to take into account translation
when calculating the location of the focused rect.

Bug: 22452379
Change-Id: I9b9649edeabf9bcab8fc487fe92dec62f388737e
2016-01-13 15:40:42 +00:00
Chet Haase
f83464ed0a Make Animation.cancel() actually work
Cancel() has apparently never worked. Calling cancel() results
in the startTime being set to Long.MIN_VALUE. In theory, this means that
on the next animation frame (getTransformation()), the elapsed time
(currentTime - startTime) should result in a large positive number, which
is way more than needed to prove that the elapsed fraction is >1 and
therefore that the animation has ended. But in practice, anything subtracting
MIN_VALUE will result in a large negative number due to Long wraparound, so the
end check fails and the animation continues. Forever.

Moreover, event fixing the cancel issue results in a repeating animation
continuing to repeat, because the logic was never there to determine whether
a repeating animation was canceled.

This fix addresses both issues, but in a minimal way. The risk in fixing this
for real is changing the behavior of cancel in a way that existing apps would not
expect. For example, it's weird that cancel causes one more frame to run. And even weirder
that it does so with a negative elapsed duration (resulting in an animation fraction of 0).
But I wouldn't want to change that behavior for fear that I'd break apps who rely on
that weird behavior.

Instead, there's a simple check for for the "expired" check and the "repeat?" check that
sees whether the startTime has the magic value of MIN_VALUE, which should only happen
when an animation has been canceled. If this is the case, it ensures that the animation ends.
For real.

Issue #24984018 canceled animation runs forever

Change-Id: Ia137eb04bd7df3976a4d9cef86fd39a78dc56f39
2016-01-13 07:37:29 -08:00
Derek Sollenberger
613e5a0ee6 Merge "CreateLightingFilter is now on SkColorMatrixFilter" 2016-01-13 15:34:57 +00:00
Alan Viverette
8a77da8626 Merge "Apply tick mark tint during view construction" 2016-01-13 15:16:11 +00:00