238255 Commits

Author SHA1 Message Date
Jorim Jaggi
d06e606b98 Do not retry taking screenshots
We are holding the activity manager lock during a sleep() :-(, which
is a really really bad idea, and leads to delays in certain cases.

Bug: 28026841
Change-Id: I0855350ee429907e4597e5813c7e4fefd889319d
2016-04-09 01:13:29 +00:00
Jorim Jaggi
b2005a0217 Fix BackdropFrameRenderer leak
Make sure to stop the thread when the window gets detached. When dismissing
the docked/fullscreen stack with the divider, we stop the activity while
we are still in resizing mode.

Bug: 28054032
Change-Id: I2d5d0ffaa9bc47e4d5252414b9a045beaebb7a69
2016-04-09 01:07:34 +00:00
Amith Yamasani
0cc0381714 Merge "Improved javadoc for onLocalVoiceInteractionStopped" into nyc-dev 2016-04-09 00:47:23 +00:00
Steve McKay
4f89b6c6b8 Use writeStringList for selection parceling.
Bug: 27208679
Change-Id: Id0506e49254e0b3fcddb7d3f92717da0a95f2f6d
2016-04-08 17:36:25 -07:00
Steve McKay
c15528afa6 Don't enable new folder in downloads...
During copy operation.
Also, relay intent extras when opening copy destination picker.

Bug: 28081616
Change-Id: I3109eaf993da93239ba25db066beb5787a924196
2016-04-08 17:34:27 -07:00
Wyatt Riley
da9f52a795 Merge "Fixed the sign error in GnssClock" into nyc-dev 2016-04-08 23:41:18 +00:00
Zhijun He
b0fe2a9637 Merge "Camera2: update API per API council review" into nyc-dev 2016-04-08 23:30:41 +00:00
Zhijun He
0034743236 Camera2: update API per API council review
Per API concil recommendation, made below API change:
* change method name from createCaptureSessionByOutputConfiguration to
createCaptureSessionByOutputConfigurations
* Change method name from
createReprocessableCaptureSessionWithConfigurations to
createReprocessableCaptureSessionByConfigurations

Bug: 27950067
Change-Id: I8346d384210556a40bc2544c3660cc4819f304a1
2016-04-08 23:21:06 +00:00
Aga Wronska
9870ad94ed Merge "Consolidate user actions metrics into one histogram." into nyc-dev 2016-04-08 22:40:46 +00:00
Phil Weaver
af93306a3d Merge "Reduce unnecessary accessibility cache clearing." into nyc-dev 2016-04-08 22:33:33 +00:00
Eric Laurent
15ad24b514 Merge "audio service: fix volume burst on user switch" into nyc-dev 2016-04-08 21:36:12 +00:00
Fyodor Kupolov
35f680893d Allow deleting accounts when user is locked
removeAccountInternal now allows removing account regardless of lock state:
- If user is unlocked, the account is remove from both CE and DE tables
- If user is locked, it will only be removed from DE. syncDeCeAccounts will
  remove account data from CE once the user is unlocked.

Bug: 26279712
Change-Id: I734aa474d3d98a85459c9795def83c5dbaaa2536
2016-04-08 14:32:25 -07:00
Tenghui Zhu
3cb5ba75b7 Merge "Update the documentation on createCircularReveal" into nyc-dev 2016-04-08 21:24:04 +00:00
Julia Reynolds
93bd44300c Merge "Improve content descriptions for volume dialog icons." into nyc-dev 2016-04-08 21:22:42 +00:00
Aga Wronska
43df577ac4 Consolidate user actions metrics into one histogram.
Bug: 27301081
Change-Id: Ib2ac46dd268e492c576bc082dc349c4a6826897f
2016-04-08 14:16:40 -07:00
Julia Reynolds
ed783798c3 DND related restrictions
- Apps without dnd access cannot call adjuststeamvolume if that will
change the ringer mode
- DND muted streams cannot be unmuted when DND total silence is enabled.

Bug: 27624414
Bug: 25395278
Change-Id: Id10988c42fc6cb6407aa2abcf66cc5c384fe533a
2016-04-08 17:16:10 -04:00
Julia Reynolds
dfe0b4df7e Improve content descriptions for volume dialog icons.
Bug: 27971063
Change-Id: I9282083f68a5cd607fe0cb2893829675559acb6d
2016-04-08 17:16:09 -04:00
Joe Onorato
e93fecf9a3 Merge "This assert is triggering when it shouldn't be. Disable it for now." into nyc-dev 2016-04-08 21:12:06 +00:00
Anthony Chen
da62fdcd50 For Auto, display battery status as that of a connected device.
For Android Auto Embedded, we would like to display the battery status
of a device that is connected via Bluetooth and not the battery status
of the device itself (which would not make sense in Auto).

To accomplish this, introduce a new CarBatteryController that only
monitors the status of battery via Bluetooth. Note that AAE is not
explicitly handling the battery icon that appears in the quick settings
because this will be hidden for Auto.

This CarBatteryController implements a new BatteryController interface.
What used to be the BatteryController has been moved to the
BatteryControllerImpl class.

Bug: 28002775
Change-Id: I2285bcbd3d207cdcc1ac5a98ec3685d4fff0f0d9
2016-04-08 14:12:05 -07:00
Lifu Tang
e50607efab Fixed the sign error in GnssClock
Bug: 28068514
Change-Id: I71b68acb70d4139f94f3829bd4a280d926e251de
2016-04-08 14:10:42 -07:00
Bryce Lee
196a05724d Merge "Add granular control over disabled effects." into nyc-dev 2016-04-08 20:59:10 +00:00
Mark Renouf
44303087cc Merge "Customizes input extract edit view for Wear" into nyc-dev 2016-04-08 20:58:48 +00:00
Mark Renouf
880602eb64 Customizes input extract edit view for Wear
Provides an alternate presentation of the extract edit area
of an input method window, designed for sub 250dp width screens.

An icon is used on a round material style button in place of a text
action, providing more horizontal space for the editing area.

BUG: 22512982
Change-Id: I16226ce393f2d15065d08e66a36d008eb1a0c8a1
(cherry picked from commit fd71a6a5d99bad5d3ab32edc328fb5b026b66215)
2016-04-08 16:56:25 -04:00
Todd Kennedy
c289922bee Merge "Fix NPE for MATCH_FACTORY_ONLY" into nyc-dev 2016-04-08 20:55:04 +00:00
Jason Monk
3212a4c759 Merge "Visual updates to battery screen" into nyc-dev 2016-04-08 20:47:17 +00:00
Todd Kennedy
421d8f5fab Fix NPE for MATCH_FACTORY_ONLY
Bug: 28087606
Change-Id: Ib86c5189aa9a9ca87504625dd19bdeab56fd4967
2016-04-08 13:45:49 -07:00
Eric Laurent
d9ac2be3e3 audio service: fix volume burst on user switch
Change the convention on use of default device volume with
audio policy manager: Now setting the default device volume on a stream does not
reset all specific device volumes. The default volume is just used by audio policy
manager if no specific device volume is present for a given selected device.

Bug: 27557733

Change-Id: I1edd9530ccafc615d9353b9b06489c688e21f719
2016-04-08 13:44:00 -07:00
Todd Kennedy
f7593344dd Don't allow userID changes on upgrade
Changing userID's on upgrade lead to all sorts of bad behaviour, so,
don't allow it.

Bug: 28075981
Change-Id: I4861603f4607d7bd85fa24951a62a00dadd6eeec
2016-04-08 13:33:37 -07:00
Adrian Roos
39eb1835b8 Merge "Fix early session termination in FalsingManager" into nyc-dev 2016-04-08 20:30:37 +00:00
Adrian Roos
f37c507619 Merge "Fix HUN Scrim" into nyc-dev 2016-04-08 20:29:17 +00:00
Makoto Onuki
abe8442951 Add UserHandle to ShortcutInfo, and simplify LauncherApps APIs.
- Also fixes the bitmap recycle bug in the service.

Fixes 28053541

Change-Id: I2b244feda0f85c60e2c15af427fcad95ad5e6da5
2016-04-08 13:28:18 -07:00
Andrii Kulian
10b0aa69d1 Merge "Fix invalid stack position when docked on right" into nyc-dev 2016-04-08 20:23:37 +00:00
Arunesh Mishra
78ab7cf301 SoundTriggerHelper re-design.
This CL redesigns and cleans up a lot of the core logic in STH.

Major changes include:
   - Adds Tron logging based counters.
   - Common startRecognition(), stopRecognition() and updateRecognition()
     routines that work on both Keyphrase and Generic sound models.
   - Common streamlined logic for when recognition is aborted, requested and
     paused due to phone call/power save etc, for both keyphrase and generic
     models.
   - Special handling of the singleton nature of keyphrase models in
     startRecognition().
   - Moves all Keyphrase model state to the common ModelData structure.
   - Adds Recognition pause/resume() for generic sound models so that they react
     to power save, call state, recognition aborted due to service unavailable
     etc.
Bug: 27972641

Change-Id: I96a7f567d2a4973facec556892a163ca74176bbf
2016-04-08 13:22:38 -07:00
Andrii Kulian
daea3572b3 Fix minimal size for tasks in right-hand pane
Minimal size adjustment was not applying correctly to right-hand pane.
Also when task with minimal size set was moved to docked stack on the
right, first configuration was calculated only for its visible part.

Bug: 27621228
Change-Id: I36bc5cdfe08056ee1aea8b0cc08fd28e87e578cc
2016-04-08 13:20:51 -07:00
Julia Reynolds
3898db9e15 Merge "Allow the ranker to autobundle notifications." into nyc-dev 2016-04-08 20:13:45 +00:00
Phil Weaver
e37cfab6c6 Reduce unnecessary accessibility cache clearing.
Tracking if accessibility focus is being cleared because it is being
set to another view in the same window. In this case, leave
accessibility focus on the window.

This change greatly reduces the amount of cache re-indexing.
Previously we flushed the cache every time accessibility focus moved.

Bug: 28077283
Change-Id: If80899d36e7f58b22635f844bdd4ea37a55b875e
2016-04-08 13:06:44 -07:00
Samuel Tan
44a4668b45 Rename enableAutoJoinWhenAssociated() to setEnableAutoJoinWhenAssociated()
This renaming better reflects how this method is a setter, and
supports variable renaming taking place in WifiConfigManager and
WifiStateMachine.

BUG: 28088867
Change-Id: Ic2f7a1f53ffec4072e556d2831bfdcff9fef1ad7
TEST: 'runtest frameworks-wifi' passes.
2016-04-08 12:50:23 -07:00
Andrii Kulian
ef3b27224b Fix invalid stack position when docked on right
If task is dragged from fullscreen recents to right to perform
dock-to-right, it's stack is initially positioned incorrectly.
This CL shifts position in correct direction.

Bug: 27621228
Change-Id: I14df76a036aa0f6f7b500e4e8b5ce04fbc03de9a
2016-04-08 12:45:27 -07:00
Jason Monk
aa336f8926 Merge "Allow mode of TileService to be changed" into nyc-dev 2016-04-08 19:37:55 +00:00
Suprabh Shukla
bb5e4e2b81 Merge "Moving HelpUtils to SettingsLib" into nyc-dev 2016-04-08 19:31:38 +00:00
Dianne Hackborn
80d48f108e Merge "Fix issue #26879170: Adjust doze maintenance windows..." into nyc-dev 2016-04-08 19:29:01 +00:00
Dianne Hackborn
6827db3e5f Merge "Fix issue #28075893: Don't hold strong refs on to JobService" into nyc-dev 2016-04-08 19:28:42 +00:00
Chong Zhang
d44063cb3f Fix for activity manager crash due to null task
Use top.task instead of mStartActivity.task, since in case of reusing
top without starting, the latter will not be set.

bug: 28059153
Change-Id: I91ec59203ca9ae650ad1d14fb9a42985a539d597
2016-04-08 12:21:33 -07:00
Adam Powell
fe5e1a75c1 Merge "Chooser filtering and caller direct share targets" into nyc-dev 2016-04-08 19:20:25 +00:00
Andrii Kulian
21400cb552 Merge "Fix multiple configuration changes in multiwindow" into nyc-dev 2016-04-08 19:05:20 +00:00
Andrii Kulian
701214b282 Fix multiple configuration changes in multiwindow
When in split-screen mode and activity handles configuration changes
it gets 2 onConfigurationChanged calls which originate from
ActivityManagerService#updateConfigurationLocked:
1. app.thread.scheduleConfigurationChanged calls to all process records
   send configuration of the whole screen for corresponding orientation,
   which leads to CONFIGURATION_CHANGED message in ActivityThread.
2. mStackSupervisor.resizeStackLocked call resizes both visible stacks and
   eventually ActivityThread receives ACTIVITY_CONFIGURATION_CHANGED
   message with correct configuration corresponding to space occupied in
   split-screen.

In this CL if component callback is an instance of Activity and it had
override config set - onConfigurationChanged will not be triggered unless
override config has changed.

Bug: 27948331
Change-Id: Ia73b045570b44eb5b351811bf6c4f63d78c3f909
2016-04-08 11:58:43 -07:00
Jason Monk
006572a63f Visual updates to battery screen
Change-Id: Ie9e2c45201a986493bb629b02cb7421805f38d85
Fixes: 27479696
Fixes: 27678421
2016-04-08 14:43:08 -04:00
Rob Carr
b918f1bfb8 Merge "Do not crop children to task bounds while resizing." into nyc-dev 2016-04-08 18:37:31 +00:00
Adrian Roos
77537b9dbf Fix HUN Scrim
Fixes: 26365345
Change-Id: I2dd0250cdeb83dec5f7bbdde6719a71a802bff84
2016-04-08 11:23:31 -07:00
Phil Weaver
ab4d5ffd12 Merge "Eliminate side effects of a11y window title." into nyc-dev 2016-04-08 18:22:02 +00:00