245211 Commits

Author SHA1 Message Date
Adrian Roos
a4b5486a70 Fix data race
Fixes a race in BluetoothControllerImpl that could lead
to a ConcurrentModificationException, by moving the manipulation
of the callbacks array to the handler.

Change-Id: I7c3be74d239d4706f55357f54e539b7b6439e76d
Fixes: 29390132
2016-06-17 14:44:20 -07:00
Winson Chung
b1f3404f8f Merge "Ensure that the tint is properly applied in docked mode." into nyc-dev 2016-06-17 21:29:04 +00:00
Calvin On
a0b91d77d6 Fix race with BT disable in BLE_ON_STATE
This will restart the BT stack when it detects a transition
into OFF state while the user enable flag (mEnable) is set.

Bug: 29363429
Change-Id: I9839119b34c4694ad92e96240c6989008b2f8d52
2016-06-17 21:18:21 +00:00
John Reck
501ff9acfe Avoid re-calculating vsync mid-frame
Fixes: 29072773

By using computeFrameTime AnimationContext would
potentially end up modifying the latest vsync if
a very-slow frame was received from the UI thread.

This could potentially desync animations that were
RT & UI thread 'synchronized', but more significantly
it would confuse the swap chain which tries to only
draw one frame per vsync causing unneccessary frame
drops.

Change-Id: Ibd2ec3157ce32fee1eec8d56837c45a35e622895
2016-06-17 20:44:43 +00:00
Dianne Hackborn
6bc33b07f4 Merge "Work on issue #29328569: NPE in " com.google.android.configupdater"" into nyc-dev 2016-06-17 20:33:22 +00:00
John Reck
34bf49e4de DO NOT MERGE Move SurfaceView offscreen if the app stops drawing it
Bug: 29360411
Change-Id: Iefb9d7a9dafb34a2b4f79130a2a8b5a7cf7de906
(cherry picked from commit aa6e84f21ddf89ea649a3f00044bc23adfe86978)
2016-06-17 20:26:10 +00:00
TreeHugger Robot
dd65ee628f Merge "QS Edit: Fix auto-selecting add location" into nyc-dev 2016-06-17 20:22:46 +00:00
Selim Cinek
73cf02a078 Fixed a bug where the expanded layout would flash
When the heads up disappeared from the shade, it's layout would
switch to the expanded state. We're now delaying this until
the animation is done.

Change-Id: I6c5c970f6b471fb10b197922dfea520b07c84abc
Fixes: 	29318819
2016-06-17 13:08:00 -07:00
Chris Wren
888b7a8faf assume a generous prior in the rate estimator
currently with one data point the estimator is biased high. If we don't
have any data we want to be biased low to allow the first interaction
to be an isolated burst.

Also add metrics for enqueue rate to make it easier to debug this
code in the future (currently we only have metrics after the
rate limiter).

Bug: 29379789
Change-Id: I7b1d379290a55f120d039fd29d1bc0abbc6d4932
2016-06-17 15:50:30 -04:00
Andrii Kulian
d3bbb13fe2 Compare intent filter when launching adjacent
When we're looking for a task during adjacent launch, we need to
perform full intent filter comparison instead of just comparing
components.

Bug: 29424577
Change-Id: I10f271986a8dc405e28a053e4cb122c1e9aa6ee0
2016-06-17 12:41:39 -07:00
TreeHugger Robot
fc70b07385 Merge "QS API: Fix mService and mTile being null once and for all" into nyc-dev 2016-06-17 18:38:26 +00:00
Android Build Merger (Role)
68bfdd71b5 Merge "Merge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs am: eebe22fef6 am: f693ea687f" into nyc-dev 2016-06-17 18:35:51 +00:00
Hemal Patel
f12c00dea4 Merge \\"Docs: Completed updates to the Data Binding docs\\" into mnc-io-docs am: eebe22fef6
am: f693ea687f

Change-Id: I235e73606098e54fc14568c6437af314f9bea337
2016-06-17 18:35:24 +00:00
Joe Fernandez
9f0722a4c7 Merge "docs: NDK r12 release notes and downloads" into nyc-dev 2016-06-17 18:35:09 +00:00
Yigit Boyar
f693ea687f Merge \"Docs: Completed updates to the Data Binding docs\" into mnc-io-docs
am: eebe22fef6

Change-Id: I47b4003b1bd1bb5cdfc12bde543dd2c9d8babdcc
2016-06-17 18:31:17 +00:00
Hemal Patel
eebe22fef6 Merge "Docs: Completed updates to the Data Binding docs" into mnc-io-docs 2016-06-17 18:25:48 +00:00
Chong Zhang
2756d0707f Merge "Do a forceLayout if pending insets is changed after relayout window" into nyc-dev 2016-06-17 18:22:30 +00:00
Joe Fernandez
d5ca5aa4a0 docs: NDK r12 release notes and downloads
b/29188616

Change-Id: Ida2b9b0e308799f9001127006e3be84318857aaa
2016-06-17 11:07:07 -07:00
Jason Monk
968d2695ff QS: Fix missing tiles
It was possible for the state to be updated in the background
but before the callback was actually registered and never propagate
to the UI.  Call the callback directly after it is added (from the
QS thread) to ensure that the current state gets sent out on tiles
being added.

Change-Id: Idd76dce5cbc9dc9c99f9b3dc13998751fd170582
Fixes: 29419435
2016-06-17 13:48:44 -04:00
Mady Mellor
4f9404f6f2 Merge "Fix shade background not aligning with bottom of a group" into nyc-dev 2016-06-17 17:22:36 +00:00
Jason Monk
3aee783837 Merge "Bring out your toggles" into nyc-dev 2016-06-17 17:22:02 +00:00
Jason Monk
0c0df7943c QS Edit: Fix auto-selecting add location
We depend on a layout listener for when we ask for focus, but layout
sometimes doesn't happen.  Make it always happen.

Change-Id: I7c805470c6ce9863bf7eac627f59d49191ce8946
Fixes: 29126464
2016-06-17 13:15:34 -04:00
Alan Viverette
6d823891bb Only block invalidation in DrawableContainer initialization
Blocking (un)scheduling breaks AnimationDrawable's internal consistency.

Bug: 29309316
Change-Id: I59c79a4a9a92b599cd94bd941ae78ac25b874add
2016-06-17 13:08:42 -04:00
Jason Monk
a3453b8bd9 QS API: Fix mService and mTile being null once and for all
Change-Id: Idd82e4c2f6cfc2b30432e15e23963c1d7a959e43
Fixes: 29121793
2016-06-17 13:04:05 -04:00
Wale Ogunwale
7774bd554c Always report window move to client
ag/1037916 added logic to only report window movement to the client
if the window doesn't have a task or its stack is bounds animating.
This causes problems on the client side for window that don't fall
into this category as they will have the wrong information of where
they are no screen.

Bug: 29093176
Change-Id: I958174af430f2c4003a1c0a74956964d209c0e4a
2016-06-17 09:44:22 -07:00
Aurimas Liutikas
377617b983 Fix spelling error in Core App Quality docs.
Bug:
https://code.google.com/p/android/issues/detail?id=213248

Change-Id: Idf83eb4fdc09bc3c78a7786b4bf11707178092c7
(cherry picked from commit 08b10586120f3db6e29e5ece9c3e05462f0c01e9)
2016-06-17 16:27:10 +00:00
Fyodor Kupolov
1f0151220e Merge "Do not schedule restarts if the system is shutting down" into nyc-dev 2016-06-17 16:01:10 +00:00
Fyodor Kupolov
1347cdb2e1 Merge "Call AppOpsService from the handler thread" into nyc-dev 2016-06-17 15:59:07 +00:00
Jason Monk
c59249faf5 Bring out your toggles
Switch Wifi and BT back to toggling from QQS.  Make cell open a
detail panel.

Change-Id: Ibdd8fa52a31c4bf81ee0e6974e263b46b6f71a31
Fixes: 29406644
2016-06-17 10:19:43 -04:00
Alan Viverette
c577a50d09 Merge "Notify user when application does not support current display zoom" into nyc-dev 2016-06-17 13:59:14 +00:00
Tony Mak
ab8d4cf645 Merge "Allow stopping user to access AppWidgetService API" into nyc-dev 2016-06-17 13:25:06 +00:00
Fyodor Kupolov
9b80b94167 Do not schedule restarts if the system is shutting down
Bug: 29357754
Change-Id: Id5cf43fb6c4c6ea04d60bd09e910a9cec194c753
2016-06-16 18:54:09 -07:00
Chong Zhang
71f2c31469 Do a forceLayout if pending insets is changed after relayout window
We might have a pending MSG_RESIZED_REPORT, but if it's executed after
relayoutWindow, mPendingInsets will already be the new value and it'll
not forceLayout. So we need to forceLayout here to make sure the measure
cache is cleared.

bug: 29391054

Change-Id: I73793b1427b89e75700369ec3b37053a6a732f0d
2016-06-17 01:11:49 +00:00
Christopher Tate
02435d2419 DO NOT MERGE: Don\\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf -s ours am: c61f35ed9a am: 34fb87b519 am: 1a450675f3
am: 790c87a05b  -s ours

Change-Id: I33148f02fc665d5ffa7f6a651ce2b6102456eb1b
2016-06-17 00:41:07 +00:00
Christopher Tate
790c87a05b DO NOT MERGE: Don\\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf -s ours am: c61f35ed9a am: 34fb87b519
am: 1a450675f3

Change-Id: I5fef884dbf640b60c1bf4c28a6d95abb4d42061b
2016-06-17 00:34:47 +00:00
Christopher Tate
1c3be1a5b1 resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab am: e2c9b1af3e
am: d2a4e1b39c

Change-Id: I8e59a88278ba50ab7e3768031611065131ed6834
2016-06-17 00:32:26 +00:00
Christopher Tate
1a450675f3 DO NOT MERGE: Don\\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf -s ours am: c61f35ed9a
am: 34fb87b519

Change-Id: If7444547d0bd82f43bb05439977e536a01589b3c
2016-06-17 00:31:08 +00:00
Christopher Tate
d2a4e1b39c resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386 am: d6c1126fab
am: e2c9b1af3e

Change-Id: Iab52ff84be41c1d18274d1a82492b624a7456726
2016-06-17 00:24:29 +00:00
Christopher Tate
34fb87b519 DO NOT MERGE: Don\\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140 am: 918fb5d453 am: 2149ebeadf -s ours
am: c61f35ed9a

Change-Id: Ied60b535ef69385c369110045ea755ebe9b0b94e
2016-06-17 00:22:07 +00:00
Christopher Tate
e2c9b1af3e resolve merge conflicts of cffb19c to mnc-dev am: 3f9ea2d386
am: d6c1126fab

Change-Id: I0414a137b1aab218fa57f291dbf2f7a1519bd973
2016-06-17 00:18:48 +00:00
Christopher Tate
c61f35ed9a DO NOT MERGE: Don\\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140 am: 918fb5d453
am: 2149ebeadf  -s ours

Change-Id: I42300992feac56eb94ab71e160da5fa8fc04929a
2016-06-17 00:15:14 +00:00
Christopher Tate
d6c1126fab resolve merge conflicts of cffb19c to mnc-dev
am: 3f9ea2d386

Change-Id: Iadf90edb02bacf645896f7d074d011a2aca4b251
2016-06-17 00:15:07 +00:00
Dianne Hackborn
66ec21a817 Work on issue #29328569: NPE in " com.google.android.configupdater"
Make the activity manager look at the "killed" state of a process
before deciding it is in a state where a new client can attach to
a content provider.  Hopefully this will get rid of some races
around attaching to providers and processes being killed.

Also add a little more information when killing a client of a
provider describing the oom adj of that provider's process.

Change-Id: I4efe5daf0a96e4663d5df88827ef401b1311de3f
2016-06-16 17:05:47 -07:00
Adrian Roos
a66746d167 Merge "Remove RemoteInput on lockscreen setting" into nyc-dev 2016-06-16 23:33:57 +00:00
Christopher Tate
3f9ea2d386 resolve merge conflicts of cffb19c to mnc-dev
Change-Id: I4dba574de2678d851e3d82961a07de27d61f5940
2016-06-16 16:31:39 -07:00
Andrew Solovay
bc7b3b5e52 Merge "docs: DP4 release notes: add Android Auto known issue" into nyc-dev 2016-06-16 23:29:14 +00:00
Christopher Tate
2149ebeadf DO NOT MERGE: Don\\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours am: b1e31ad140
am: 918fb5d453

Change-Id: I660124fada1a86288a9bfb10308cec0e1503f62e
2016-06-16 22:53:29 +00:00
Christopher Tate
918fb5d453 DO NOT MERGE: Don\\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours am: 41821a26a5 -s ours
am: b1e31ad140

Change-Id: I3668160c863e8fe34ca6d233d63113069fec8e5a
2016-06-16 22:50:23 +00:00
Christopher Tate
b1e31ad140 DO NOT MERGE: Don\\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2 am: 6633a4fee4 -s ours
am: 41821a26a5  -s ours

Change-Id: I028d0714c52079b71645197ac70a321285928fec
2016-06-16 22:45:45 +00:00
Christopher Tate
41821a26a5 DO NOT MERGE: Don\\\'t trust callers to supply app info to bindBackupAgent() am: d85a4ed283 am: f615799ef2
am: 6633a4fee4  -s ours

Change-Id: I2c10cc7ff790c84767167c76e028456ba4dcaeb3
2016-06-16 22:39:05 +00:00