136839 Commits

Author SHA1 Message Date
Winson Chung
b2f4bc8727 Merge "Updating paddings to design spec." into lmp-preview-dev 2014-05-30 21:06:18 +00:00
John Spurlock
3a00419a13 Merge "QuickSettings: Fix flash when expanding panel." into lmp-preview-dev 2014-05-30 20:29:19 +00:00
John Spurlock
bc3a5e9469 QuickSettings: Fix flash when expanding panel.
Bug:15186962
Change-Id: Ib42776989d687f8873f7bd3c2567c31a23e0490f
2014-05-30 16:20:05 -04:00
Igor Murashkin
1998daf1ee Merge "camera2: Change android.lens.focusRange to Pair<Float,Float>" into lmp-preview-dev 2014-05-30 20:19:32 +00:00
Chris Wren
99f963ea04 Add people signals to Zen mode.
Depends-On: I51fcf689ddbee7715e3387b865f18a715887c943
Change-Id: I7c91dec1afeb54505426c4da59ec4d072a60c240
2014-05-30 16:16:23 -04:00
Chris Wren
4f0e39a929 Merge "Track Zen Mode status in the NotificationRecord" into lmp-preview-dev 2014-05-30 20:15:38 +00:00
Chris Wren
333a61c3a5 Track Zen Mode status in the NotificationRecord
This requires the record to be present in makeRankingUpdateForListener,
however, if the ranking object is created before the post to the handler,
then no cloning is necessary.

Depends-On: I907a1ff28123219db1c08889d723ad1b70b191ab
Change-Id: I51fcf689ddbee7715e3387b865f18a715887c943
2014-05-30 16:09:51 -04:00
Adam Powell
da44532b61 Merge "Compatibility fix for apps that construct Notification.Builders early" into lmp-preview-dev 2014-05-30 20:01:54 +00:00
Sreeram Ramachandran
b0e25870dc Merge "Support legacy routes added by apps via ensureRouteToHost()." into lmp-preview-dev 2014-05-30 19:47:50 +00:00
John Reck
ca8eb243d1 Merge "Re-jigger layers" into lmp-preview-dev 2014-05-30 19:46:24 +00:00
Wei Wang
94fec83db4 Merge "Address API review comments. 1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings. 2. Make all callbacks abstract classes instead of interfaces. 3. Moved AdvertisementData and ScanRecord out and removed AdvertiseBaseData 4. Removed newBuild and use new Builder for all builders. 5. Using setxxx in builders. 6. Misc other changes." into lmp-preview-dev 2014-05-30 19:39:11 +00:00
Santos Cordon
515e09b837 Merge "Update showCallScreen to use Telecomm (1/6)" into lmp-preview-dev 2014-05-30 19:36:41 +00:00
Adam Powell
bf06fa0479 Compatibility fix for apps that construct Notification.Builders early
Some apps in the wild are known to construct a Notification.Builder
from within their Activity constructor, passing said Activity instance
as the Context parameter. However at this point in the Activity's
lifecycle the ContextWrapper's base context has not yet been populated
and most calls to Context methods will fail.

Even though this was technically undefined behavior in the past, as
apps have little to no way to guess at these internal implementation
details it's probably best to preserve old expectations. Add a note
in Notification.Builder for future framework developers and remove the
offending call - the associated field was never used anyway.

ಠ_ಠ

Change-Id: I4cf3df10be14739babc8ae9a969d261a7ecf8beb
2014-05-30 12:32:18 -07:00
Dianne Hackborn
f69af6b6d5 Merge "Mark getRecentTasks() and getRunningTasks() as deprecated." into lmp-preview-dev 2014-05-30 19:31:28 +00:00
Dianne Hackborn
a25a8b289b Mark getRecentTasks() and getRunningTasks() as deprecated.
Change-Id: Idba79d7a4c0b9f0929f8dd27f25bd6aa548f5622
2014-05-30 12:30:35 -07:00
John Reck
d72e0a339b Re-jigger layers
Bug: 15185239
 Bug: 15238382

 Make DeferredLayerUpdater ref counted so that
 HardwareLayer:finalizer() works non-crashily on
 leaked layers
 Give DeferredLayerUpdater the ability to have a layer destroyer
 set so that leaked layers can still be recycled on the
 RenderThread
 Order layer updates based off of pushLayerUpdate() calls to fix
 issue with nested layers

Change-Id: I4449cee607f7e5126e02fed7464cf48038e3dfdf
2014-05-30 12:19:33 -07:00
Winson Chung
cd23c849af Updating paddings to design spec.
Change-Id: I11286937216494304c38c87280bc69ef9522c596
2014-05-30 11:44:27 -07:00
Santos Cordon
3534ede572 Update showCallScreen to use Telecomm (1/6)
- Add API methods to InCallService and ITelecommService.
- Remove old methods from ITelephony.
- Route the TelephonyManager methods through ITelecommService instead of
  ITelephony.
- Update Lock screen to use TelephonyManager instead of ITelephony.

Bug: 15008165
Change-Id: Ib674e2e48efaa1cc97d1513dc2c2b27fdb343657
2014-05-30 11:35:42 -07:00
Igor Murashkin
5743868e15 camera2: Change android.lens.focusRange to Pair<Float,Float>
Since the focus range is defined in diopters (1/distance), it just so
happens that in a range [near, far] near >= far which is against the
android.util.Range contract.

Change it to pair instead.

Also adds a marshaler for Pairs since they didn't have one before
(and aren't parcelable).

Bug: 15335269
Change-Id: If2f3259aeec072438a1c18c1b9728a4c81e92a40
2014-05-30 11:28:49 -07:00
Sreeram Ramachandran
515350a5e2 Support legacy routes added by apps via ensureRouteToHost().
Change-Id: I0ee1ca89fdc859d75a89021ca8c1902811b1e4a9
(cherry picked from commit fb17b32550de624b7f476b70b7a2fc77f31dde7d)
2014-05-30 18:21:34 +00:00
Adam Powell
eec8f0cbbb Guard against missing progress bars in window decor layouts
This is temporary; in general requesting the window feature means you
have the progress bars available. This can be removed once Toolbar
supports the additional progress bar features.

Bug 15329703

Change-Id: Ica520a4fb600fd132a88c5204197185d7e0689c9
2014-05-30 11:00:00 -07:00
Adam Powell
a24114e7b1 Merge "Fix bad casts in action bars" into lmp-preview-dev 2014-05-30 17:49:19 +00:00
John Spurlock
303170e5c2 Merge "QuickSettings: Maintain tile panel Y in detail mode." into lmp-preview-dev 2014-05-30 17:40:23 +00:00
Adam Powell
76d1466dfc Fix bad casts in action bars
Not all DecorToolbars are themselves views. Use the interface
passthrough instead.

Bug 15335176

Change-Id: I88f1701822406d4204d344aef855a4a707e4c7ab
2014-05-30 10:34:40 -07:00
Sebastien Hertz
8d07a14ee4 Merge "Report runtime information to DDMS" into lmp-preview-dev 2014-05-30 17:31:52 +00:00
John Spurlock
3e04cc8c9b QuickSettings: Maintain tile panel Y in detail mode.
Hide the brightness slider to reduce visual clutter.
Stabilize the tile panel further by preventing it from
shrinking to less than the tiles height.

Bug:15341870
Change-Id: I785ff9c13f8489e86e3bdc8dde45ebd39f9a1413
2014-05-30 13:14:16 -04:00
Dianne Hackborn
2d2e30eeac Merge "More work on voice interaction visuals." into lmp-preview-dev 2014-05-30 17:11:19 +00:00
Tim Kilbourn
1d285b091b Merge "Add global key mappings to dump output." into lmp-preview-dev 2014-05-30 17:09:12 +00:00
Yuhao Zheng
8407968db6 Merge "DO NOT MERGE - Wifi Passpoint API change" into lmp-preview-dev 2014-05-30 17:08:07 +00:00
Dianne Hackborn
20d9474904 More work on voice interaction visuals.
There is now a special theme for voice interaction activities
to use, so they can be a panel that is better intergrated with
the rest of the voice interaction experience.  This is still
not completely working, I have some hacks in the demo app to
get it right; I'll fix that in a future change.

Also improve VoiceInteractor to be retained across activity
instances, for things like rotation.

And bump up the number of concurrent broadcasts that are allowed
on non-svelte devices, since they can handle more and this makes
the boot experience better when dispatching BOOT_COMPLETED.

Change-Id: Ie86b5fd09b928da20d645ec2200577dee3e6889d
2014-05-30 10:06:16 -07:00
Tim Kilbourn
d7c0c2ee45 Add global key mappings to dump output.
Example:

    mKeyMapping={
      KEYCODE_FOO=com.example/com.example.KeyReceiver
    }

Change-Id: I03ed8327cebf245ff1e3e5f2aaef3cdec1b94d98
2014-05-30 09:58:13 -07:00
Vinit Deshpande
c05cb5ffb3 Merge "DO NOT MERGE: Revert "Make Wifi WPS API available on application layer"" into lmp-preview-dev 2014-05-30 15:55:54 +00:00
Amith Yamasani
fc2ae28f78 Merge "Tweak LauncherApps API based on feedback" into lmp-preview-dev 2014-05-30 15:49:21 +00:00
Selim Cinek
a02fe523cc Reduced overexpansion when expanding the panel
Bug: 14486987
Change-Id: Ic1546e1661e3afe842b044abf636421d2620bddd
2014-05-30 15:32:52 +00:00
Selim Cinek
79525b2f02 Merge "Implemented the appear animation for the pattern security." into lmp-preview-dev 2014-05-30 15:32:39 +00:00
Selim Cinek
3018197cf0 Implemented the appear animation for the pattern security.
Also refactored AppearAnimationUtils slightly to support this.

Bug: 15163546
Change-Id: I411fad20c410875dcf7bc465ea545ed90aac187e
2014-05-30 17:29:22 +02:00
Martijn Coenen
748fca45fc Merge "Address HCE API review comments." into lmp-preview-dev 2014-05-30 14:52:48 +00:00
Adrian Roos
4314f6d5fa Eagerly dismiss Keyguard when launching notifications and phone
Uses the new code path when launching phone that delays the launch
until the Keyguard is actually dismissed, which fixes another way
for 14622312 to pop up. Also adds a flag to prevent the Keyguard
from waiting for the launch animation to finish.

Bug: 15280103
Bug: 14622312

Change-Id: Id24e40785c9f760648140e5572b1d39889d3666b
2014-05-30 16:01:43 +02:00
Jorim Jaggi
5c0727ff2d Merge "Cache whether a password/pattern is set." into lmp-preview-dev 2014-05-30 12:30:55 +00:00
Yuhao Zheng
0cb59f2c03 DO NOT MERGE - Wifi Passpoint API change
- hide package android.net.wifi.passpoint
- extend android.net.wifi APIs for Passpoint credential management
  > hide for preview

Bug: 15191967
Change-Id: Ic90818cf5c91e93dd7890774543e08b842edc594
2014-05-29 23:53:21 -07:00
John Spurlock
5286624b64 Merge "VolumeZen: shadow protection for volume dialog." into lmp-preview-dev 2014-05-30 02:22:23 +00:00
John Spurlock
2078caf797 VolumeZen: shadow protection for volume dialog.
Bug:15186962
Change-Id: I8525e62348e2cc8b68b938d2f7d986f5cbe0273f
2014-05-29 22:20:14 -04:00
Amith Yamasani
e781c81d33 Tweak LauncherApps API based on feedback
UserHandle must be after packageName/componentName.
Improved javadoc for density.
Added getApplicationInfo().
Remove synchronized methods.

Temporarily @hide the old APIs to make sure they continue to work
for unbundled launchers.

Bug: 15025908
Change-Id: Iee6336b54e1b4d5c43f1e643062327ff463cb695
2014-05-29 19:00:40 -07:00
Paul Jensen
034bfbb113 Merge "Adjust Network's SocketFactory to restrict host name resolution to that Network" into lmp-preview-dev 2014-05-30 01:45:52 +00:00
Jose Lima
4f8a92bd20 Merge "Only allow 1 Stack on Leanback-only devices" into lmp-preview-dev 2014-05-30 01:41:18 +00:00
John Reck
432fe98297 Merge "Fix NPE in onVisibilityChanged" into lmp-preview-dev 2014-05-30 01:01:16 +00:00
John Spurlock
3bd4feec3d QuickSettings: visual updates.
- Update style for do not disturb subhead.
- Fix strict mode warning setting zen from volume panel.
- Longer delay in volume panel when expanded.
- Update zen icons.
- Update header peek height.
- Update detail pane back icon.

Bug:15186962
Change-Id: Icb8b95656f866bf9b0aa076d0b85c019a77e76c0
2014-05-29 20:51:09 -04:00
John Reck
2dedafb48f Fix NPE in onVisibilityChanged
Bug: 15089790
 onVisibilityChanged may happen before the View is attached.
 Only attempt to re-set the update listener if mLayer is not null,
 as it means the View is attached and has already drawn once. If
 mLayer is null then the update listener will be set when the view
 next draws

Change-Id: I406e359a0a0720988f026f9cbde26afdb564ca92
2014-05-29 17:40:09 -07:00
Wei Wang
6d81118032 Address API review comments.
1. Moved le stuff to it's subpackage. Remove BluetoothLe for all classes
except *Scanner, *ScanSetting, *Advertiser and *AdvertiseSettings.
2. Make all callbacks abstract classes instead of interfaces.
3. Moved AdvertisementData and ScanRecord out and removed
AdvertiseBaseData
4. Removed newBuild and use new Builder for all builders.
5. Using setxxx in builders.
6. Misc other changes.

Fixes b/15140940

Change-Id: I32ae3d24a9491baf96048040b5ac78f6f731e468
NO_SQ: multi-project submit
2014-05-29 17:21:54 -07:00
John Spurlock
414a486e4c Merge "QuickSettings: Hide the expanded header in detail mode." into lmp-preview-dev 2014-05-29 23:43:51 +00:00