237640 Commits

Author SHA1 Message Date
Ashutosh Joshi
cafdee9a72 App upload to Context hub.
Fix constants
Use helper functions to address OS

Change-Id: I61bd1f3eff2716ead2771eda335998f2e9b73afc
2016-04-04 16:50:27 -07:00
Philip P. Moltmann
01ee1b7eb6 Allow to provide only a component name prefix to 'am instrument'
Bug: 27831862
Change-Id: I1d57e416c47fc7d9ea212f0002986932663081b8
2016-04-04 16:37:37 -07:00
Mady Mellor
5ba429c40a Merge "Fix slow dismiss animation" into nyc-dev 2016-04-04 23:29:07 +00:00
Muyuan Li
18d2b32423 SettingsLib: refactor for extensibility.
Add short version of charging / discharging labels. Extended getBatteryInfo method to take in additional flag for short version labels.

Change-Id: I499ce59493f1345c3084d48829ded5117d470e44
(cherry picked from commit e686bf4514d9c1116a4eaa8af285f44613e23b36)
2016-04-04 23:19:29 +00:00
Mady Mellor
e9301ed60d Merge "Fix showing gear behind notification when RTL language selected" into nyc-dev 2016-04-04 23:14:07 +00:00
Adam Powell
13af9845d4 Merge "Tweaks for ScaleGestureDetector" into nyc-dev 2016-04-04 23:06:00 +00:00
Jorim Jaggi
fe3442d366 Merge "Fix minimized dock" into nyc-dev 2016-04-04 23:05:38 +00:00
Makoto Onuki
e23283a6fa Do not enable binder exception logging.
Bug 28005618

Change-Id: Ie13fd5b6d1fcbf27ad480501e30b5cb1774e8b48
2016-04-04 15:58:39 -07:00
Winson Chung
7c8bf0f51e Merge "Adding content description for app-info button when talkback is enabled." into nyc-dev 2016-04-04 22:50:42 +00:00
Jeff Sharkey
a3ebfec731 Invalidate caches when locale changes.
When loading roots for the first time, we're okay using any cached
data from the system, but if the locale changes we need to
force-refresh everything.

Now that we're always using the system cache, we have a nice strong
signal for "empty" versus "not cached" results, so we don't need to
wait around for the first loading pass to finish.

Add logic to invalidate system cache when locale changes, and fix
locking bug.

Bug: 27977906
Change-Id: Ic50083eff360bea887799583f6c9f02c129eec91
2016-04-04 16:46:01 -06:00
Rob Carr
e15fb0172c Merge "Do not constrain width/height of child windows at layout." into nyc-dev 2016-04-04 22:33:45 +00:00
Robert Carr
bd9993662d Correct screenshot bounds calculation.
If we intersect each window in the application with
our screenshot bounds we will end up reduced to the bounds
of the smallest window. Modify logic to just check for
intersection without modifying the bounds.

Bug: 27996291
Change-Id: Ib0ebb6bd02a313f67f1562dabcfb394efa8f16cf
2016-04-04 15:30:31 -07:00
Adam Lesinski
b12c2601f4 Merge "AAPT2: Add option to add JavaDoc annotations to Java classes" into nyc-dev 2016-04-04 22:25:56 +00:00
Adam Lesinski
3ad1b4899f Fix issue with overridden configuration in onConfigurationChanged
When using applyOverrideConfiguration, subsequent callbacks to
onConfigurationChanged didn't take into account the locally overridden
configuration. This patches the incoming configuration to match
what is expected by the application.

Bug:27644297
Change-Id: I3a090e9862a56470d999aa0aa4d5bae29f533a11
2016-04-04 15:24:48 -07:00
Roshan Pius
bf8ea13069 Merge "power_profile: Move all wifi power values" into nyc-dev 2016-04-04 22:21:25 +00:00
Gustav Sennton
3d48074ed9 Merge "Provide command to change WebView implementation." into nyc-dev 2016-04-04 22:09:36 +00:00
Winson
b92dd63581 Adding content description for app-info button when talkback is enabled.
Bug: 27699389
Change-Id: Ia4a0e5f197fa5c51585c3cfb9c71aee858836047
2016-04-04 22:08:50 +00:00
Chris Craik
a7f775db93 Merge "Fix how outlines are sent to rendernode" into nyc-dev 2016-04-04 22:08:32 +00:00
Jorim Jaggi
ef92d6fd24 Fix minimized dock
- When SysUI crashed, make sure state is up-to-date
- When divider gets invisible, update state because animations
won't finish
- Make sure to keep mMinimizedDock up-to-date in all cases, even
if docked stack is already gone.
- If docked stack is going away, reset minimized state
- Disallow undocking when minimized.

Bug: 27588187
Bug: 27486464
Change-Id: I6ea48562fae3a8df038a690a488580d758681370
2016-04-04 15:00:29 -07:00
Jorim Jaggi
26952d748e Do not call forceLayout if not needed
If the relevant frames for the app don't actually change, there is
no reason to call forceLayout and force a layout pass.

Bug: 27864358
Change-Id: I2add8cc5791023937afc154e6e50bbf7efb35adb
2016-04-04 21:56:48 +00:00
Doris Liu
d9289085be Merge "Make AVD thread safe" into nyc-dev 2016-04-04 21:53:45 +00:00
Sunny Goyal
2857f1c783 Changing startListening to only fetch views which are bound
Also associating a lastUpdateTime with every widget. This allows
the host to query the widgets which were updated only after
the last stopListening call.

Change-Id: If9375cf2d8caa0ccca14b6649821d87ada1f3a84
2016-04-04 14:45:14 -07:00
Adam Powell
c6df18f5fa Tweaks for ScaleGestureDetector
Remove obsolete history and size tracking from ScaleGestureDetector.

Change-Id: I20c323a8a92e467b62eb412b718c2e9e906e7800
2016-04-04 14:42:24 -07:00
Doris Liu
1d8e194661 Make AVD thread safe
This CL introduces staging properties to VectorDrawable, which holds
properties coming from UI thread. When staging properties are changed,
they are marked dirty, and the staging properties then get pushed to
RenderThread at sync point. In cases where no staging property has
been changed, at sync point we sync the render thread properties back
to staging properties to reflect the latest render thread animation
value change.

Also, update Vector Drawable bitmap only when it's dirty

Bug: 27343970
Bug: 27385912
Bug: 27263667
Bug: 27927674
Bug: 27774383

Change-Id: Ia864f5400a53a08dbfb284fae581fb1aac4fff87
2016-04-04 14:40:17 -07:00
Eric Laurent
2523d8f1e3 Merge "MediaActionSound: fix SoundPool load race condition" into nyc-dev 2016-04-04 21:39:02 +00:00
Joe Onorato
146dcc0265 Add stack traces to logs about mismatched sequenece numbers in procstats.
Bug: 27045736
Change-Id: I7a0fc76928a55bb079b8234c5f5d689a401a204b
2016-04-04 14:16:03 -07:00
Andrii Kulian
1e9c685d45 Merge "Set correct bounds when docked stack is removed" into nyc-dev 2016-04-04 21:13:49 +00:00
Aga Wronska
d42a9bed93 Make Metrics.logKeyboardAction() method take @KeyboardAction type
instead of KeyEvent

Change-Id: Ib9a19532612b679141b6d611e448247d3b0bab23

Fixing: b/27942360
2016-04-04 14:07:27 -07:00
Gustav Sennton
ab3b6b1258 Provide command to change WebView implementation.
Add a shell command for switching webview implementation so that this
can be done automatically - without interacting with a Dev Setting.

Bug: 27540566
Change-Id: I3c4acaa1b8f4ba24c637ef8a1d48cc7b2616bd91
2016-04-04 20:46:50 +00:00
Ruchi Kandoi
a68fe1e4d3 Merge "PowerManager: Adds isSustainedPerformanceModeSupported()" into nyc-dev 2016-04-04 20:42:12 +00:00
Chris Craik
136d1af1cc Fix how outlines are sent to rendernode
bug:27918183

Fixes an issue where all convex outlines were pushed as empty rects to
RenderNode.

Also adds outline/reveal clip property logging, so such issues are
easier to debug in the future.

Change-Id: Ic4a996ecd09a8ef84cdf8b963bdb4853c7f6d180
2016-04-04 13:40:39 -07:00
Jorim Jaggi
bcff1431dd Move docked stack to the side in landscape instead of clip
Bug: 27154882
Bug: 27972642
Change-Id: Ie170571e356199bfbde014c80d670fd238825828
2016-04-04 20:31:04 +00:00
Jorim Jaggi
e1d4361497 Fix screen rotation animation
Bug: 25019187
Change-Id: I65b5a76147b93e081466035bfc3cce0c9473610e
2016-04-04 20:30:26 +00:00
Kirill Grouchnikov
67960a0a55 Add a hidden test-only API to get Toolbar's navigation view.
Change-Id: I15d4d9ac7ea77ff260bccdfb9d82c85a7bafdfab
2016-04-04 16:30:02 -04:00
Derek Sollenberger
c6418c04ab Merge "Cleanup addtional files that were missed in the first purge of AvoidXfermode" into nyc-dev 2016-04-04 20:26:28 +00:00
Rob Carr
817ef323c7 Merge "Ensure we leave space between layers in docked stack." into nyc-dev 2016-04-04 20:24:29 +00:00
Bo Liu
2f1eb93354 Merge "Expose setDrawGLFunctionDetachedCallback to webview" into nyc-dev 2016-04-04 20:20:10 +00:00
Gustav Sennton
7182d98777 Merge "Move more code from WebViewUpdateService to separate overridable class" into nyc-dev 2016-04-04 20:19:56 +00:00
Makoto Onuki
24b74150fb Merge "ShortcutManager: More command for CTS, more tests.." into nyc-dev 2016-04-04 20:03:22 +00:00
Christopher Tate
d43879c5e4 API feedback: clarify onQuotaExceeded() documentation
Bug 27530914

Change-Id: I5d185cfe9c7e0392a26d84e0e60d210ed6755016
2016-04-04 12:54:43 -07:00
Mady Mellor
dc6c97df48 Fix slow dismiss animation
An accelerated interpolator is used for dismissing when the
the velocity = 0 which can occur with dismiss all or if the
noti is swiped far enough but not fast enough.

There is no duration specified when the noti is swiped far
enough, and the velocity passed in is 0 so the default
duration is used without taking into account the velocity.

This CL alters the code to pass in the velocity so that a
duration is calculated.

Bug: 27864379
Change-Id: Ifac04bb8d1b714c040102fef035d55737c844157
2016-04-04 12:53:49 -07:00
Eric Laurent
d7a267de78 MediaActionSound: fix SoundPool load race condition
If play() was called shortly after load() and before the load
completion callback, the sample was considered
loaded although the SoundPool was not ready to play it.

Fixed by implementing a more robust state machine for sound
load and play control.

Bug: 22499793
Change-Id: I727e07f842a0adc5225dc248f16bc4a7225a1c8e
2016-04-04 12:53:01 -07:00
Adam Lesinski
3524a23edb AAPT2: Add option to add JavaDoc annotations to Java classes
Change-Id: I7ee8c20cdd91380927a65c41097ffd3a6ffa2df5
2016-04-04 12:42:05 -07:00
Eino-Ville Talvala
68a5811711 Merge "Camera: Allow preview operation of SCENE_MODE_HDR" into nyc-dev 2016-04-04 19:38:53 +00:00
Eino-Ville Talvala
ecfbb0a1bb Merge "Camera: Add proper buffer drop errors to LEGACY mode" into nyc-dev 2016-04-04 19:38:10 +00:00
Alan Viverette
952802e2d1 Fix bad workaround docs in Resources.getDrawable()
The real solution is to use ContextCompat, but we can't reference support
library from framework. C'est la vie.

Bug: 27727320
Change-Id: Ib9bcd5f2bdce1996f02fd44877df9ba202b26edc
2016-04-04 15:33:41 -04:00
George Mount
41fb99480c Restore fragment transaction animation state information.
Bug 17487986

Change-Id: Ic5154b0dd00f07804a1008f8b9f8328f1b2ec06c
2016-04-04 12:32:44 -07:00
Eino-Ville Talvala
ee46b5831c Camera2: Unlink camera device death listener on disconnect
Not removing the listener causes warning logging, which is especially
heavy when a lot of camera connect/disconnects are happening.

Bug: 27217534
Fixes: 28000512
Change-Id: I4911f27cc0f69301975b110a9b456977050ce5bc
2016-04-04 12:30:44 -07:00
Jason Monk
23c60f6736 Merge "Add app attribution to QS editing" into nyc-dev 2016-04-04 19:28:51 +00:00
Glenn Kasten
570f1c8b23 Fix typo
Change-Id: I973dfaa17adbb7dce4ceda2e6985937823ef039c
2016-04-04 12:27:32 -07:00