19294 Commits

Author SHA1 Message Date
Sungsoo Lim
5c5b83fcd5 TIF: Use XML file for representing TvContentRating
This change addresses the following API council feedback.

- Remove all constants from TvContentRating. Instead this class becomes a
  general parser for a tuple of "rating domain"+type+subtype(s).
- Instead of constants in the API, the rating definitions should come from
  parsed XML meta-data tied to a TvInputService entry in the AndroidManifest.
  This XML should define a ranked order of the rating constants along with
  @string references for displaying in the Settings UI.  Mention that the
  "rating domain" should be scoped similar to a package name, for example
  "com.youtube.ratings".
- For system-defined rating types (like US, Korea, etc) we should parse this
  same XML format, but it may come from a hard-coded XML resource (since they
  aren't tied to a single TvInputService.)
- Thoroughly document the built-in supported types in javadoc on TvContentRating.

Change-Id: I0a9526c73c8ca67fd0eeac63f3c63c05657a45e3
2014-08-01 13:47:28 +09:00
Jinsuk Kim
7c3a95633d Fix bugs in active source command handling in HdmiControl
- Make sure input change listener is invoked
- The command from new device at the active path should
  start routing control

Change-Id: Ic0ca52d42cc1738f9effced322b00f3bd1957f60
2014-08-01 03:43:54 +00:00
Jinsuk Kim
fc2f1bde19 Merge "System API HdmiControlService.getActiveSource" into lmp-dev 2014-07-24 16:04:26 +00:00
Jinsuk Kim
7e74206693 System API HdmiControlService.getActiveSource
Added getActiveSource to provide Tv Input Service with the information
on HDMI active source/routing path. TIS side will be handled separately.

Change-Id: I3d7c12a6c9da9f96a7f22ba1f66ac2559928858d
2014-08-01 10:13:40 +09:00
Christopher Tate
73140e4df9 Attempt install-time restore even for no-agent apps
Packages without their own backup agents can still have restorable
data to be delivered.  Correct the logic for attempting a restore
at install time so that it no longer requires an app-defined backup
agent.

Bug 16688665

Change-Id: I7dcf7ef85ad6b5b393a2c97ce62f1b2eec9d3520
2014-07-31 21:41:12 +00:00
Sungsoo Lim
37c665bad3 Merge "TIF: Add a parameter (Bundle params) of tune method" into lmp-dev 2014-07-24 16:04:26 +00:00
Sungsoo Lim
1a6b25eabc TIF: Add a parameter (Bundle params) of tune method
- tune(Uri, Bundle) is added as a system API.

Bug: 15809017
Change-Id: I50bc9b510f469ac3c157f095ccfe27d1cd1d9854
2014-08-01 15:33:32 +09:00
Sandeep Siddhartha
6bf8be5552 Merge "Don't unload sound model in start recognition unless the model changes" into lmp-dev 2014-07-24 15:36:21 +00:00
Sandeep Siddhartha
299efbe1fb Don't unload sound model in start recognition unless the model changes
This helps in start -> detected -> start again scenarios

Change-Id: I6d8d55e469e0623b9eb07595df8897ad4942aa11
2014-07-31 09:39:47 -07:00
Christoph Studer
3f31f5db65 NoMan: Use Notification.isGroupX() methods
Change-Id: I041f449361959440a5be7375e655a31fd14e7862
2014-07-31 16:55:32 +02:00
Christoph Studer
5e8cb22e60 Merge "NoMan: Filter group children for pre-L listeners" into lmp-dev 2014-07-25 23:01:28 +00:00
Christoph Studer
cef37cf5c7 NoMan: Filter group children for pre-L listeners
Bug: 16189575
Change-Id: I5297b5273ab0aaee599981738eb736a49f21ce53
2014-07-30 22:37:21 +02:00
Lorenzo Colitti
691ed0561d Merge "Add logging of Legacy Type info." into lmp-dev 2014-07-24 16:04:26 +00:00
Sander Alewijnse
a87863a8bd Fix deadlock window manager and device policy manager.
Removed all communication from wm to device policy manager.
Added initialization of cache in wm by dpms.

Change-Id: Ifa0b8bfcd625464b156d5cc0fb66d342deda1c27
2014-07-31 09:16:46 +00:00
Jae Seo
d5ce975952 TIF: Make TvTrackInfo methods more explicit.
This change addresses the following API council feedback:

TvTrackInfo:
-- Remove all KEY_/VALUE_ constants, and replace with explicit,
   strongly-typed accessor methods.
-- Add additional Bundle getExtras() method (in addition to the explicit
   types); most of the time this Bundle will be null.

Bug: 16542165
Change-Id: Ie48cb170b2bbf07d9460fdc8ed77d7db01799772
2014-07-31 16:15:51 +09:00
Robert Greenwalt
d49ac33b5e Add logging of Legacy Type info.
There are some bugs where getActiveNetworkInfo gives bad data (seemingly)
and this will give the backing data in logs.

bug:16610051
Change-Id: Iad867485ad78daeb3e88665dcd0fdb0af756a3bf
2014-07-30 16:31:24 -07:00
keunyoung
fa75e3d465 Merge "add UiModeManager.ENABLE_CAR_MODE_NO_WAKE_LOCK flag for enableCarMode" into lmp-dev 2014-07-29 21:36:00 +00:00
keunyoung
1d0a7ccd00 add UiModeManager.ENABLE_CAR_MODE_NO_WAKE_LOCK flag for enableCarMode
- When this flag is set, system no longer keeps the display on while in car mode.

bug: 15472822
Change-Id: I277368be5227eaf96213684598f278c39e4c34db
2014-07-30 14:12:34 -07:00
Jason Monk
e47df8466b Allow System UI access to VPN.
Bug: 16153201
Change-Id: I5f5e9e0ed3e4e02d6a6995011356b350758f068d
2014-07-30 20:51:14 +00:00
Adili Muguro
4e68b65723 Fixed a NullPointerException in AccountManagerService.
Change-Id: If65d7870c609ae6c7467e26978ffd0ce0d52f518
2014-07-30 14:10:16 -07:00
Wonsik Kim
8750dbca94 Merge "TIF: fix TvInputHal bug for multiple devices" into lmp-dev 2014-07-25 11:19:20 +00:00
Wonsik Kim
21aa3467cd TIF: fix TvInputHal bug for multiple devices
In addition, add toString() method to TvStreamConfig for easier
debugging.

Bug: 16561829, Bug: 16666251
Change-Id: Ic192aef30f4d193b73bac7bc93a1563aa9af4377
2014-07-31 11:05:34 +09:00
destradaa
f9a274c9b8 Add support for sources in Geofencing APIs.
Support setting the source when adding geofences.
b/14117199

Surface the source when FLP geofence changes state.
b/14119200

Change-Id: I50dc40a9caee400594e1778c98e284e0db0d5e66
2014-07-30 23:35:08 +00:00
Yuncheol Heo
4b54271f1b Don't clear local device when it goes to the standby mode.
Some OEM/SOC will keep passing the received packets until the
application processor goes to the sleep mode actually.  so we'll
not clear the local devices to get the received packets and react
like in the standby mode.

Bug: 16661406
Change-Id: I6eb9c21877a29905bb0084256dc6692fe0d07170
2014-07-31 10:31:15 +09:00
Jeff Sharkey
ceb2adca49 Merge "Persist install sessions, more lifecycle." into lmp-dev 2014-07-25 23:00:08 +00:00
Jeff Sharkey
1cb2d0d4bb Persist install sessions, more lifecycle.
To resume install sessions across device boots, persist session
details and read at boot.  Drop sessions older than 3 days, since
they're probably buggy installers.

Add session callback lifecycle around open/close to give home apps
details about active installs.  Also give them a well-known intent
to show session details.

Extend Session to list staged APKs and open them read-only, giving
installers a mechanism to verify delivered bits, for example using
MessageDigest, before committing.

Switch to generating random session IDs instead of sequential.

Defensively resize app icons if too large.  Reject runaway
installers when they have too many active sessions.

Bug: 16514389
Change-Id: I66c2266cb82fc72b1eb980a615566773f4290498
2014-07-31 15:17:03 -07:00
Ye Wen
a3dbd1087d Move archived column from pdu/sms to threads (1/4)
Also add API to archive a conversation

Change-Id: Ib7daf6e0c3205c3c084406800c9c5bf054e1ca40
2014-07-30 12:57:10 -07:00
Christoph Studer
4579fd2d0c Merge "Strip RemoteViews from Notifications, re-create them in SysUI" into lmp-dev 2014-07-24 15:35:58 +00:00
Christoph Studer
4600f9b607 Strip RemoteViews from Notifications, re-create them in SysUI
Bug: 16329721
Change-Id: Ic0bea763ffaec4c5644ca78705007211ac6b4b88
2014-07-30 20:17:12 +02:00
Sandeep Siddhartha
7f60d881b3 Merge "Make startRecognition async" into lmp-dev 2014-07-24 15:36:21 +00:00
Sandeep Siddhartha
1ed12ddb8c Make startRecognition async
- This is needed for telephony and audio integration which should happen via async callbacks
that'll end up starting/stopping recognition.

e.g. if a startRecognition happens when in a phone call - the onDetectionStarted will get called once the phone
call ends.

For now the transient stoppages due to internal reasons will not be propagated back to the client.

Bug: 16514535
Bug: 16515468
Change-Id: I1b2b8edd28f5c5e67c453f66c23e1a67a626114e
2014-07-30 11:43:41 -07:00
Lorenzo Colitti
f0382899c7 Use a new socket for each of the host's IP addresses.
If Socket.connect() times out, the socket cannot be used any
more - any attempt to do so fails with EBADF. Use a new
socket for each IP address.

Bug: 16664129
Change-Id: If3616df86f7c2da0eabd30dca5db65d0da85cb17
2014-07-30 17:31:04 +00:00
Chris Wren
65d630bad3 Merge "Add a log and statistics for notification expansion." into lmp-dev 2014-07-24 15:36:05 +00:00
Chris Wren
78403d7973 Add a log and statistics for notification expansion.
Bug: 16618854
Change-Id: I501f396fa495e1e55a27d7d0b65aac66495418c1
2014-07-30 14:47:13 +00:00
Nicolas Prevot
29762c3dfb Removing old tag TAG_FORWARDING_INTENT_FILTERS.
By now, all devices should have updated, so we can remove the
old tag name.

Change-Id: Id0bc0e08f3979c5a2652c4eb8da9ff938b5d5bc4
2014-07-30 14:06:22 +00:00
Robin Lee
50c360790c Don't turn off screen after wiping user profiles
The activity manager should know when to lock the screen. If an admin
does want this to happen then they should be able to run both commands
in succession.

Also rectifies some creative code styling in the same DPM method.

@bug 15558805

Change-Id: I8918184a4585aa8b061eb4a68edc2ec6805d8127
2014-07-30 14:18:22 +00:00
Adrian Roos
8f21158fe6 Trust: Make setEnabledFeatures asynchronous
Unsynchronizes the call into app code from setEnabledFeatures,
replacing it with a callback mechanism. Also makes this actually
work by fixing the check in TrustManagerService to take into account
whitelisting.

Change-Id: I0831752cd2d3158eda9c8404a5569498f11ac2ac
2014-07-30 12:34:18 +00:00
Adrian Roos
7861c663fd Add setManagingTrust and expose it on lockscreen
Adds a facility for trust agents to indicate if they
are ready to manage trust. Also adds an indication to
the lock icon on the lockscreen to show whether trust is
being managed.

Bug: 15518469
Bug: 16123013

Change-Id: Ie17f588aebeafe66c81dea4a69c733b0d2c72fd4
2014-07-30 12:33:33 +00:00
Jae Seo
783645e99f TIF: Merge TvParentalControlManager into TvInputManager
This change addresses the following API council feedback.

TvParentalControlManager:
-- Replace the listener interface with a broadcast Intent with well-known
   action, something like ACTION_BLOCKED_RATINGS_CHANGED.
-- TvParentalControlManager goes away, and two remaining methods move to
   TvInputManager.

== Implementation changes ==
-- The user-selected rating preferences should be stored in an XML file, and
   loaded at boot by your internal system service.  It should _not_ be stored in
   a Secure/Global setting.

Bug: 16542165
Change-Id: I278df963576652ec9163a66c1ef99419fcdb36c2
2014-07-30 15:39:39 +09:00
Wonsik Kim
d922a546b9 TIF: ensure hardware / CEC event calling sequence
Bug: 16441047
Change-Id: Ie654b78ec91a081a1438cc036967f528e063f25b
2014-07-30 11:19:56 +09:00
Sandeep Siddhartha
8ef360f348 Notify VIS of shutdown before switching implementations
This lets the implementation cleanup before it's destroyed.

Bug: 16629417
Change-Id: Ia717d461677e9ca8fa66f02c030aacad1597692d
2014-07-29 17:23:40 -07:00
Ye Wen
1ac05fc61a Merge "Implement broker pattern for imms (1/3)" into lmp-dev 2014-07-24 15:37:54 +00:00
Ye Wen
d97e1fdb29 Implement broker pattern for imms (1/3)
b/16324360

Change-Id: I41dc9823820eed60406973f5edb5a71deb4b0130
2014-07-29 16:32:07 -07:00
Craig Mautner
f4f8bb793f Eliminate memory leak in TaskPersister
Bitmaps added to TaskPersister were piling up in the queue.

- The mRecentsChanged flag was being modified without holding the
lock. There is no mRecentsChanged flag now. Everything to be
written goes into a queue.
- TaskPersister now runs until the queue is empty.
- Bitmaps being written to the same file were being added to the
end of the queue without replacing the earlier bitmap. Now we
search the queue for matching tasks and replace the bitmaps
if needed.
- Method notify() was renamed to wakeup() so IDE could find usages
quicker.
- Bitmaps that were being requested but were still in the queue
are now being fetched from the queue.

Fixes bug 16512870.

Change-Id: Idca1c712e5d2df8196e93faaf563a54405ee96bf
2014-07-29 23:23:01 +00:00
Amith Yamasani
bf3a946548 Set profile owner via an intent
priv apps can request to become a profile owner after setup has
completed. This will pop up a consent dialog (in Settings).

Also, clean up profile owner concept to be a component name.

Change-Id: I5e8532866e8018f61836c4e84fbbadb6150218ae
2014-07-29 23:43:32 +00:00
Jeff Davidson
1561fd3b06 Merge "Add NetworkScoreManager.disableScoring()." into lmp-dev 2014-07-24 16:56:49 +00:00
Jeff Davidson
26fd143326 Add NetworkScoreManager.disableScoring().
Allows the active scorer app to disable itself.

Change-Id: I7bcdc3aafb95af4ea0b110b01b08ab4daf7a137f
2014-07-29 16:03:19 -07:00
Jinsuk Kim
43c23e273e Invoke input change listener at path change
Previously input change listener is not invoked if the routing change
does not cause the TV port change, but this failed to trigger the change
from an active source connected to port 1 to a non-cec device also
connected to port 1. Do this by comparing paths not ports.

Also did some cleanup:
- Avoid allocating empty lists too often for getActions
- ActiveSource.invalidate()

Change-Id: Id79531e2552ef7fa38bd604796108b8650db69a1
2014-07-29 22:57:52 +00:00
Yuncheol Heo
26ba7fddca Make it pass CECT 11.1.3 System standby
- Accept the broadcast <Standby> message.
- Fix the bug that onStandyCompleted() is called mutliple times.
- Fix the issue that <Standby> message is not sent when going to
  the standby state, since the local device was cleared already.

Bug: 16497304
Change-Id: Ib04ad2386621929814a801edd6b6c0e1a3902a7c
2014-07-30 07:55:39 +09:00
Jinsuk Kim
b2b3151a42 Send TV app the intent for the new active source
When signalled by an external CEC device about to become a new active
source, TIF(TvInputHardwareManager) sends an intent for TV app to tune to
the input mapped to the device. For non-CEC devices or MHL device
the device info comes with port ID only, which should be used to find
the right input.

Change-Id: I71c8454fead037d880ee440b0a8d64dd361ed558
2014-07-29 22:41:57 +00:00