147029 Commits

Author SHA1 Message Date
Jorim Jaggi
e0640dd524 Allow closing the whole panel when QS is open
If the user drags below the notifications, we close everything. Only
implemented for the SHADE, and not on Keyguard because of
time constraints.

Bug: 15414856
Change-Id: I4cf656484bc1217d552211c2bfdd7598eb52dad7
2014-08-05 23:01:56 +00:00
Jorim Jaggi
28f0e59329 Edge swipes should also dismiss notifications
To prevent falsing with phone/camera affordance.

Bug: 16571057
Change-Id: I5da5efc5529af8211357b556f1db4858e8775e05
2014-08-05 23:01:34 +00:00
Michael Wright
ce0c13a169 Mark all Meta combos as system combos
Also make a meta-tab a recents accelerator.

Bug: 14066931
Change-Id: Iac6aab276e4e16d5f70c92a5a03172bd81559afa
2014-08-05 23:01:15 +00:00
John Spurlock
5f72e16847 Merge "AudioService: getMasterStreamType -> RING on tablets." into lmp-dev 2014-08-05 00:35:13 +00:00
Chris Craik
f99f320dc7 Fix large radius RR clipping issue on certain devices
bug:16804363

Since dist can be in the 1000s of pixels, and length() may square it
in its current precision, scale the value down significantly first,
since final precision isn't very important.

Change-Id: Id20f7a49d6171355c8e242442c2b5083f746dca3
2014-08-05 22:39:31 +00:00
John Spurlock
4f0f120316 AudioService: getMasterStreamType -> RING on tablets.
Since all service-internal checks use stream alias, and the alias
for NOTIFICATION is RING, even on tablets.

This is a followup to ag/506532.

Ensure that #getMasterStreamType always follows the stream_system
alias, and update the system alias for tablets per the new policy.
Update the associate javadoc comment in AudioManager to make this
clear.

Note: there is now no difference in the alias maps between phones
and tablets.

Also fix a condition affected by this in VolumePanel.

Bug:16626879
Change-Id: I2700a48d2a3e7703607f771a1ab7f325596fd789
2014-08-05 16:23:14 -04:00
Amith Yamasani
f17e498fea Merge "Allow phone UID to export singleton providers" into lmp-dev 2014-08-05 00:19:02 +00:00
Amith Yamasani
41c1ded7f0 Allow phone UID to export singleton providers
Also add a user variant of replacePreferredActivity for use
by SmsApplication.

Map user restrictions for SMS/MMS to AppOps perms.

Bug: 16681533
Change-Id: I3dfed5fc754e33bb51c6f571851653a7c2770e46
2014-08-05 14:37:27 -07:00
Sandeep Siddhartha
3962aa5d40 Merge "Use @IntDef for manage actions" into lmp-dev 2014-08-04 23:48:34 +00:00
Sandeep Siddhartha
0db30899f0 Use @IntDef for manage actions
Change-Id: I12473fb82bf865af36aaf681a1b12a19e9f218fc
2014-08-05 13:07:06 -07:00
Svetoslav
f5997badd8 Merge "Fix build" into lmp-dev 2014-08-04 23:48:34 +00:00
Svetoslav
4f6a6c48a4 Fix build
Change-Id: I96eec52472bec122074b0ec2ee051c1b55eaa8f4
2014-08-05 15:17:49 -07:00
Brian Carlstrom
eaeae259fa Switch from core to core-libart
Bug: 14298175

(cherry picked from commit dbcae5ceb766b0bc65fa819841f9bfab9ae11c2f)

Change-Id: I982d02184b7bfdd14f447e2761fe5d058c53489b
2014-08-05 15:01:01 -07:00
Hui Shu
eb8ac25fe5 DO NOT MERGE: Revert "Update makefile for clang host build."
This CL is somehow merged to lmp-dev and breaking Mac builds.

This reverts commit 132ed0f2b45acf982bbd06616f14164b612661d1.

Change-Id: I5a3472c0e2924db5c605340d7abdd407b956dcc2
2014-08-05 21:38:03 +00:00
Deepanshu Gupta
cf49a24e2f Merge "Get filename from File faster" into lmp-dev 2014-08-05 00:34:22 +00:00
Deepanshu Gupta
70d1574db9 Get filename from File faster
Use the direct call from a File object to get the filename instead of
going through Path which depends on Java 7 making the LayoutLib tests
incompatible with Java 6.

Change-Id: I815895eedbc10245ee09bdb53b11e5548b076aad
2014-08-05 14:34:56 -07:00
RoboErik
75847b98f3 Add display metadata and change strings to CharSequences
This adds some fields for display purposes to MediaMetadata and also
makes the default for all text CharSequence instead of String. Also
adds a hidden method for getting a Description for the metadata.

bug: 11708293
Change-Id: I0ed58d9ac3aeff41325c4ccf5fed0539bbf03b4d
2014-08-05 14:30:27 -07:00
Deepanshu Gupta
b0d767dcf1 Skip loading otf fonts on Java 6
Change-Id: I9668b84812e9be333d10603657dd911024fc292d
2014-08-05 14:19:27 -07:00
Deepanshu Gupta
0c5cd96522 Add SystemProperties native method implementations.
Bug: http://b.android.com/73046
Change-Id: Ia695e7beb81f426509b646cfd929201f7e0a4ade
2014-08-05 21:13:00 +00:00
Deepanshu Gupta
45aab0eb8f LayoutLib: Use ICU's line break algo.
Change-Id: I7e5b0ab7423a72f5a4b0e1163d0a537f0b03ba07
2014-08-05 21:12:16 +00:00
Michael Wright
01e840ff94 Add resize method for virtual displays
Change-Id: I2632fc56c2d2cba356379e42f5c1a3e283b11d1e
2014-08-05 21:10:03 +00:00
Jinsuk Kim
e877138d44 Merge "CEC: Make port info unmodifiable" into lmp-dev 2014-08-04 23:56:40 +00:00
Jinsuk Kim
30c74d9ba6 CEC: Make port info unmodifiable
Puts HDMI port information behind unmodifiable type. This helps API make use
of port-related information without having to switch to service thread.
See getActiveSource().

Added the unmodifiable version of SparseArray/SparseIntArray.

Change-Id: Idcf05d1d6e19b47c91a7e89a920abccc607a3eb5
2014-08-05 21:05:16 +00:00
Jinsuk Kim
58500f43ec CEC: Make deviceSelect to active device a no-op
Changing input to already the active source should return
immediately without initiating routing control. This is also required
for processing the incoming <Active Source>

Also set the flag in intent for input change to start a new
activity from a service. The service fails to launch an activity
without it.

Bug: 15570939
Change-Id: I9b20b31137dfa4dc847bc43cc7fd35e669d0dec7
2014-08-05 21:04:44 +00:00
Svetoslav
976e8bd201 Allow adding widgets from user profiles.
The goal of this change is to enable support for appwidget from
user profiles to the user main profile. A user profile is a user
which is associated as a child of the main user profile. For example,
a user may have a personal (parent) and corporate (child) profile.
The device policy should be able to control whether adding a widget
from a child profile and given packages is allowed. This change
assumes that all packages from managed profiles are white listed.
Another change will add the device policy changes.

Change-Id: I267260b55d74c48b112a29979a9f59eef7a8194e
2014-08-05 20:57:20 +00:00
John Reck
c79eabcd3c roundOut layer damage
Bug: 16734708

Change-Id: I8815b7cf5f74be6deda98aaaf7cde85509def373
2014-08-05 20:54:28 +00:00
Jon Eklund
43cc8bbbbd Add support for line out audio device
Change-Id: I48750511b56a2bc5f06b7bdd11cfb4e0cd2728af
2014-08-05 20:27:40 +00:00
John Reck
063592c483 Merge "Add Bitmap.compress to TRACE_TAG_RESOURCES" into lmp-dev 2014-08-05 00:19:02 +00:00
John Reck
0df3bd5594 Add Bitmap.compress to TRACE_TAG_RESOURCES
Bug: 16800719

 TRACE_TAG_RESOURCES shows bitmap decoding, have it show
 compressing as well

Change-Id: I04f62545be52698de5371a2594973fa336e7b2fa
2014-08-05 21:00:05 +00:00
Alexandra Gherghina
d6a98979b5 Fix resetAllModes call to act only on the calling user
This makes it consistent with other methods in different services.
Also fixes the Settigns bug referenced below.

Bug: 16727586
Change-Id: I0b8bcb248f621fcfa2cb12163caeec9eb8ff5b1c
2014-08-04 23:45:45 +00:00
Jae Seo
dfab517fb2 Merge "TIF: Make selected tracks identifiable" into lmp-dev 2014-08-04 23:42:57 +00:00
Jae Seo
10d285ac06 TIF: Make selected tracks identifiable
A recent change on the multi-track API surfaced an issue that it's hard to
identify selected tracks from the list of tracks obtained from
TvView.getTracks() method, especially when two or more tracks convey the same
track information (e.g. two English stereo audio tracks with the same sample
rate). This change introduced a new public method getId() in TvTrackInfo that
returns an ID with which one can identify the tracks uniquely. It also led to
minor signature changes across the multi-track API to make it more
developer-friendly in both application and TV input service developers'
perspectives.

Change-Id: I226f75e697b0ce52b44db7471660f6d9f646f6f9
2014-08-05 12:06:49 -07:00
Jorim Jaggi
81a0d40839 Merge "Empty notification shade state." into lmp-dev 2014-08-04 23:37:12 +00:00
Jorim Jaggi
a2052ea218 Empty notification shade state.
Bug: 16483230
Change-Id: I7953a7954cae12124146f462ed8c0dc44769a38f
2014-08-05 16:38:02 +02:00
Jorim Jaggi
f479792e05 New swipe-up assist animation for L.
Bug: 16307470
Bug: 14623152
Change-Id: Ib7e0381d118bda177981cc56ec9a8fb418dfb0e3
2014-08-05 15:24:26 +02:00
John Spurlock
fdfd4f8f83 Merge "Allow user-prioritized packages through in priority mode." into lmp-dev 2014-08-05 00:35:13 +00:00
John Spurlock
6ac5f8df62 Allow user-prioritized packages through in priority mode.
Bug:16396715
Change-Id: I115d717e5c25500407d4f7876f070a1497fb2887
2014-08-05 09:58:19 -04:00
Adrian Roos
ca4ab058ec Merge "QS: Enable availability listener for flashlight" into lmp-dev 2014-08-05 00:19:02 +00:00
Adrian Roos
034a6c9667 QS: Enable availability listener for flashlight
Enables the availability listener now that the
underlying framwork is stable.

Bug: 16483222
Change-Id: I586a43941ade1ee8a8f3cb1a087e5356539703c1
2014-08-05 16:54:13 +02:00
Przemyslaw Szczepaniak
1eb47e1624 Merge "Set the TTS voice name for the default language." into lmp-dev 2014-08-05 00:35:13 +00:00
Przemyslaw Szczepaniak
fd80746bb9 Set the TTS voice name for the default language.
This changes makes the initial, default language set and
the #setLanguage call with the default language as input
exactly the same.

Previously, the requests made after the initial default language
set were missing the name of the default voice.

+ Some tests clean-up. Some of them fail due to issues with
Locale#toLanguageTag upper-casing the variant field.

Change-Id: I5470617007fe45462b7198bf62a03eb5fe47a590
2014-08-05 14:50:34 +01:00
John Spurlock
9c84aab892 Merge "QS: Share usage tracking timeout with color inversion tile." into lmp-dev 2014-08-05 00:19:02 +00:00
John Spurlock
3976f3d943 QS: Share usage tracking timeout with color inversion tile.
Pull out 30-day feature timeout code into a separate helper, use
in both ColorInversionTile and HotspotTile.

Expose an intent to force a reset of the timeout.

Change-Id: Ic0b89913fd5cec4e1df3cb0d5a548f052a60550f
2014-08-05 00:41:04 -04:00
Jorim Jaggi
05204dc227 Merge "Dismiss all layout updates." into lmp-dev 2014-08-05 00:15:52 +00:00
Eric Laurent
d3b8223377 SoundTrigger API update.
Add sound model update callback.
Add native service state change callback.
Add vendor UUID in sound model description.
Add coarse confidence level in recognition event.
Add capture format in recognition event.

Bug: 12378680.

Change-Id: Id63437819ec7b9a4a69e1ff6185b747e20cad95e
2014-08-04 16:35:27 -07:00
Jorim Jaggi
2ae259df68 Dismiss all layout updates.
Bug: 14826666
Change-Id: I19773d0afaf34f92d987a5292de861b5963a7d8a
2014-08-05 00:07:16 +02:00
Sungsoo Lim
732be11cef TIF: Remove countryCode in TvContentRating
In the standard TV content rating systems, there are no cases that
a TV content rating system is used for multiple countries.
Moreover, since we allow the case that the country code is null for
a custom rating system (e.g. YT), the country code should be removed.

Change-Id: I79472dbd491aa7efb40f3e081f90b45e13a91505
2014-08-04 16:46:42 +09:00
Dongwon Kang
bd2fa2c02d TIF: Rearchitecting TvInputPassthroughWrapperService.
This change addresses the following issues raised in the API review:

TvInputPassthroughWrapperService needs to be rearchitected:
-- Create a nested class (possibly called RemoteTvInput) inside TvInputService that
   represents remote connection to the underlying physical TV input (HDMI).
   RemoteTvInput which will need to have additional method like createRemoteSession.
-- This class has methods to control that remote input, and a callback so TvInputService
   to observe state changes.
-- Add TvInputService.onGetParentInputId() (no argument) which returns null by default.
-- Extend TvInputService.onCreateSession(String inputId, RemoteTvInput parent) to pass
   in the RemoteTvInput requested by onGetParentInputId(), if any.

Bug: 16542165
Change-Id: Ic6b0c9b5d770c9d1f9377061af8dcb6bae0cb9dc
2014-08-04 11:44:45 +09:00
Jorim Jaggi
ae44128776 Animate public/private notification layouts
This change move the boolean whether we hide sensitive contents into
AmbientState, which makes it consistent with the other stack states
and allows for a orchestrated transition between public/private
layouts. We need this transition when going into the full shade.

Bug: 16291973
Change-Id: I379a6119b5b73eca900a4a2ba9d5ec95b293e487
2014-08-03 18:55:33 +00:00
Jorim Jaggi
dbc3dce886 Handle go to full shade motion for redacted case
Bug: 16291973
Change-Id: Idc5ea93548e17ef9cd2d7c36416b293950554703
2014-08-03 18:52:28 +00:00