8079 Commits

Author SHA1 Message Date
RoboErik
aa4e23bbb3 Add getPackageName to MediaController
This removes the MediaSessionInfo class and adds a method on the
controller to get the package name. This also converts code that
depended on the session's UUID to use the token for comparison or
the Tag in the case of test code that needs a string identifier.

Change-Id: Icb8dc76c70e23e897da8fd07651c524b96372bf9
2014-07-25 16:22:59 -07:00
RoboErik
b214efbb91 Expose a way to set a PendingIntent for restarting playback
This is to allow apps to set a PendingIntent to restart playback. This
is not persisted across reboots but will allow music to start playing
again for the life of the system. Only the most recent priority app with
a PI set will be cached. This also deprecates methods in AudioManager
that do this and unhides the unregister method in MediaSessionManager.

Change-Id: I66fbf5856333468d8cb8a3022809778ba00d426e
2014-07-25 16:22:18 -07:00
RoboErik
e34c09daf8 Finish plumbing for launch intents in sessions
This finishes out the plumbing for setting a launchable PendingIntent
on a session and getting it from a controller to launch an app's UI.

Change-Id: I0c9506e7c3f0ebf57070ca7e0d91324eb3fdd1e1
2014-07-25 16:22:17 -07:00
RoboErik
76fca4e177 Add getFlags and getSessionToken to MediaController
getFlags was hidden, should have been public. Also added getSessionToken
as a convenience method for apps to get the token used to create a
controller.

bug:15408392
Change-Id: Icb19b43ebb7e01727eec1a4e667dafcfc3b8d4eb
2014-07-25 16:22:16 -07:00
Evan Charlton
17a3814ac6 Merge "Make creating the Connection synchronous" into lmp-dev 2014-07-24 15:36:21 +00:00
Evan Charlton
bf11f98deb Make creating the Connection synchronous
Get rid of CreateConnectionResponse and have the ConnectionService
return the built connection instead.

Change-Id: Ibbf896e5b188b98eb386d6624d3a5d5cacf49922
2014-07-25 11:07:50 -07:00
Jay Civelli
3087e49667 Add new intent to prompt user for their device credential. DO NOT MERGE
Bug: 16242766
cherry-pick from master 2e7beadedeb7d41d8c2d1cc62956bdd9f5081d26

Change-Id: I76efb3bef888eb1e94c4e5455934816fb4acc5bc
2014-07-25 22:04:19 +00:00
Andrew Lee
63e44bd999 Merge "Add VideoCall and VideoCall.Listener as an inner classes of Call." into lmp-dev 2014-07-24 22:43:15 +00:00
Kenny Guy
466d203c4f Add method to launch settings app details page.
Add a method to LauncherApps to allow launchers to
show application details for an app in a managed profile.

Bug: 16371359
Change-Id: I23acb4365c09e4a7b9fa742ae6fc7e04434f45aa
2014-07-25 15:59:51 +00:00
Andrew Lee
50aca23bd7 Add VideoCall and VideoCall.Listener as an inner classes of Call.
Bug: 16494880
Bug: 16495203
Change-Id: Ife3b6723374ea5fbbff4927c4f9168d075be21e1
2014-07-25 08:58:10 -07:00
Kenny Guy
237aecd18d Change getBadgedLabelForUser to use CharSequence
Bug: 16401636
Change-Id: I45410a6293007dd789d6770d63397824559b756e
2014-07-25 10:12:11 +00:00
Santos Cordon
9d0f7c4fbc Add more disconnect causes 1/4
Bug: 15692074
Change-Id: Ib94c33fac8450b70e53dbe12d71f41777e9e140c
2014-07-25 03:16:00 +00:00
Craig Mautner
8746a478ab Create end of animation callback for Activity
Activities cannot draw while their entering animations are active.
This change introduces a callback, onEnterAnimationComplete() so
that activities can know when their draws will be effective.

Fixes bug 13658460.

Change-Id: Ic48540cd4c7e37538f10cb2dc0852aa3f55d11e1
2014-07-25 01:35:02 +00:00
Dongwon Kang
94a509b123 Remove COLUMN_CONDITIONAL_ACCESS from TvContract.
It turned out that having this flag in Channels table does not
make sense for some European countries because they scremble the signal
per program basis. Also, the current flag does not fit to the use-case
like 'pay per view'. Decided to remove this in L release because it's not
clear how we will handle the cases raised at this moment.

Change-Id: Ibbf829f331a307ac89a553e00ece18d5958e72b5
2014-07-25 10:19:12 +09:00
Zhijun He
86c545ea8c MediaFormat: add capture rate key
Change-Id: I2f7dd244d41d52aab6a172ae5df3e1fce3edd694
2014-07-25 00:52:42 +00:00
Selim Gurun
c5a1e2c872 Merge "Address API review" into lmp-dev 2014-07-24 22:06:48 +00:00
Selim Gurun
48f6c45069 Address API review
Bug: 16403458

Address API review. This change updates the FileChooser api. The
largest change is, as requested by API council, providing a helper
to reduce the code app developers need to implement. This
change does not include the CookieManager changes that was requested.

Change-Id: I30d75f36df6bc96d9842b63fdd25c4ff62aee5bb
2014-07-24 15:18:57 -07:00
Yorke Lee
eea3c5d735 Merge "Update the value of PinnedPositions.UNPINNED to 0" into lmp-dev 2014-07-24 15:36:02 +00:00
Yorke Lee
7d24679c6c Update the value of PinnedPositions.UNPINNED to 0
Bug: 16403306
Change-Id: I6ff5a6051694245831db31db9d37ac0793eb0c32
2014-07-25 10:05:55 -07:00
Alan Viverette
78b7211507 Merge "Remove duplicate Toolbar method for setting content description" into lmp-dev 2014-07-24 22:06:48 +00:00
Alan Viverette
e88700a2ad Remove duplicate Toolbar method for setting content description
Also moves the setNavigationIcon(int) method closer to the one that
takes a Drawable.

BUG: 16491458
Change-Id: Ia02f05e6270c9d420f61f7ab34117b4c7e6548ec
2014-07-25 12:57:31 -07:00
Jeff Sharkey
16c8e3f494 PackageInstaller changes based on feedback.
Mostly cosmetic changes from API council feedback.

Bug: 16543552
Change-Id: Ic926829b3f77c31f50a899c59b779353daf00d59
2014-07-25 11:59:48 -07:00
Yao Chen
186655285f fix build
Change-Id: Id5a93019b60ac4881f398b80de2e14786776a883
2014-07-25 11:23:30 -07:00
Paul Soulos
6b2dd6337e Adds getTypeLabel to ContactsContract Event
Bug: 16550284
Change-Id: Ie95093a2c9bca2b9ba130dea470c8beef94cd659
2014-07-25 18:17:35 +00:00
Hector Dearman
d49d6bf0cd Merge "Update CookieManager API for Council review." into lmp-dev 2014-07-24 15:36:05 +00:00
Ruben Brunk
1b1f1b611c camera2: Move noise model to dynamic metadata.
Bug: 16369384

Change-Id: I7a540705176c7be68431a977e2b7218ffa1bddd0
2014-07-24 17:43:54 +00:00
Hector Dearman
ffae672881 Update CookieManager API for Council review.
Remove synchronized from setAcceptThirdPartyCookies

Bug: 16403458
Change-Id: I6073da2c03fd0952bc447f7cfe0d959148af6877
2014-07-24 18:10:25 +01:00
Yorke Lee
7a5e5726ab Add Calls.TRANSCRIPTION to CallLog (2/2)
Dialer needs access to the TRANSCRIPTION column via the CallLog to
show voicemail transcriptions inline.

Change-Id: Id1807923a07af9e9e34783e6be2e39485eee7795
2014-07-24 08:30:33 -07:00
Nicolas Prevot
f1939901d2 Making the clipboard work across users.
When copying from the parent: the ClipData can be pasted in the managed profile.
When copying from a managed profile: it can be pasted in the parent,
unless the policies says it's disabled. In which case, the clipboard of the parent becomes empty.
Supporting content uris.

BUG: 15186236

Change-Id: I522564a7c07ff21df137adcda980bb52e5739964
2014-07-24 10:25:57 +00:00
Sandeep Siddhartha
9d9ef2e791 Merge "searchKeyphrase* should not be in the SDK" into lmp-dev 2014-07-23 18:56:15 +00:00
Sandeep Siddhartha
392981e172 searchKeyphrase* should not be in the SDK
Bug: 16400889
Change-Id: Idedaefe378e330910301a8f0a88527376398d743
2014-07-23 15:16:10 -07:00
Nick Kralevich
cdc7448b29 OsConstants: add PR_GET_DUMPABLE / PR_SET_DUMPABLE
Expose PR_GET_DUMPABLE and PR_SET_DUMPABLE via java.

Change-Id: Ibb60ed1d00c3a84fa77a34d0acc56cb995d14e1c
2014-07-24 03:41:34 +00:00
Alan Viverette
35efc633d0 Merge "Revert "Make lighting style and attribute public"" into lmp-dev 2014-07-23 18:56:15 +00:00
Alan Viverette
4c31decf17 Revert "Make lighting style and attribute public"
We're moving some things around. Stay tuned!

This reverts commit fe16224456b72966515190e19f8f85793a39d1c9.

Change-Id: I13a2013854cba64540dfee5c3e4ecb4929c336b5
2014-07-24 01:43:51 +00:00
Alan Viverette
ad7e715f8b Make lighting style and attribute public
BUG: 15859361
Change-Id: I8a12b820687c546d7441a06161da5928b2ac52fb
2014-07-23 17:31:00 -07:00
Joe Onorato
69b078599b Allow apps to be slow at loading children and thumbnails by making those functions allowed to be asynchronous.
Change-Id: Ibcaee3f0f8d9ba14f1b002df9c6d4594c6278045
2014-07-23 17:56:57 -07:00
Alan Viverette
1bc61376f5 Merge "Make lighting style and attribute public" into lmp-dev 2014-07-23 18:56:15 +00:00
Nancy Chen
2e02b9ea5c Merge "Hide multiple-account information if there is only a single account" into lmp-dev 2014-07-23 18:38:23 +00:00
Nancy Chen
6080118beb Hide multiple-account information if there is only a single account
Adding an API method to telecomm to determine whether there is a single
account.

Bug: 16483795
Change-Id: If30d3a53458b4c784995f3f9e471c8163a8175a4
2014-07-23 16:41:10 -07:00
Gabriel Peal
b8cb6518d8 Merge changes I925c8738,I1a8ad5c2 into lmp-dev
* changes:
  Added Action to PlaybackState
  Added QueueState, playUri, and playFromSearch.
2014-07-23 18:56:15 +00:00
Tao Bai
2871febb19 WebView permission change
As requested by API council, the following were changed
- Changed the PermissionRequest to abstract.
- Used String for resources instead of long.
- Also remove the WebView.preauthorizePermission() which we didn't think

BUG: 15432556
Change-Id: I900a98b4e0288d2bcd8faf0bbcd84970600548a5
2014-07-23 12:16:55 -07:00
Gabriel Peal
f364f94496 Added Action to PlaybackState
Added the ability to discover MediaBrowsers

Change-Id: I925c8738ac73afd0bee3dada2ee7ff2d5047e63f
2014-07-23 11:45:03 -07:00
Gabriel Peal
f0593bc17b Added QueueState, playUri, and playFromSearch.
Added QueueState to MediaSession/MediaController
Added play(Uri) and playFromSearch(String) to MediaController.TransportControls

Change-Id: I1a8ad5c22d05015ab6ff5700dc8a758455f1d89b
2014-07-23 11:45:03 -07:00
Yao Chen
7e21fe8be9 various fixes in MediaBrowserItem and MediaBrowserService
Change-Id: I57f2a6728eea14ff6243fd68d21886599a5a12f4
2014-07-23 13:15:23 -07:00
RoboErik
9db9bf7034 Switch Session APIs over to AudioAttributes
The session apis were using audioStream in several places. This
updates them to use AudioAttributes instead.

bug:16403289
Change-Id: Ic4da9ca5fbea2536e80c71503bd9a9bf7f346997
2014-07-23 17:08:32 +00:00
Sander Alewijnse
0c1dcfd161 Merge "Add Device Policy API to disable screen capture." into lmp-dev 2014-07-23 05:48:23 +00:00
Sander Alewijnse
d2a1eec400 Add Device Policy API to disable screen capture.
WindowManager will set secure flag on SurfaceControl for
all windows of a flagged user to prevent screen capture.
API is consistent with the camera disable API.

Change-Id: Ib180f67f1ad827b6f4aca2af615274256cce58f4
2014-07-23 13:44:28 +00:00
Santos Cordon
541a06e777 Merge "Change display Strings to CharSequence (1/3)" into lmp-dev 2014-07-22 22:02:55 +00:00
Bryan Mawhinney
e191f901d9 Store actions passed to MediaStyle.setShowActionsInCompactView in extras
So that they can be bridged appropriately by Android Wear

Change-Id: I3a21a74991c8067ece1a04fbd0b92dd21438e0fd
2014-07-23 08:49:28 +00:00
Lajos Molnar
4b902d72db MediaFormat: add KEY_TEMPORAL_LAYERING
Bug: 14562236
Change-Id: I343d2859e48552d7372fec3b77aea868ff1bfc33
2014-07-22 20:36:05 -07:00