OSDN Git Service

android-x86/frameworks-base.git
10 years agoMerge "Fix build" into lmp-dev
Christopher Tate [Tue, 15 Jul 2014 00:13:29 +0000 (00:13 +0000)]
Merge "Fix build" into lmp-dev

10 years agoFix build
Christopher Tate [Tue, 15 Jul 2014 00:11:53 +0000 (17:11 -0700)]
Fix build

BridgeContext didn't show up in the working tree as a build participant.
Tsk tsk.

Change-Id: I2b52d99f319b43c2906a7fb9b25139a3df5b3676

10 years agoMerge "ITelephony.aidl: Minor spelling fix." into lmp-dev
Shishir Agrawal [Tue, 15 Jul 2014 00:00:10 +0000 (00:00 +0000)]
Merge "ITelephony.aidl: Minor spelling fix." into lmp-dev

10 years agoITelephony.aidl: Minor spelling fix.
Shishir Agrawal [Mon, 14 Jul 2014 23:58:12 +0000 (16:58 -0700)]
ITelephony.aidl: Minor spelling fix.

Change-Id: I88be72fce6184beb1ac7542af8ced7917900b593

10 years agocamera2: Update shader scaling matrix for legacy mode.
Ruben Brunk [Tue, 17 Jun 2014 01:43:59 +0000 (18:43 -0700)]
camera2: Update shader scaling matrix for legacy mode.

Bug: 15116722
Change-Id: Idaa4311dfd027b2d2b8ea5e2c6cba2da5779d753

10 years agoMerge "Add PackageManager feature strings for relative humidity and temperature senso...
Aravind Akella [Mon, 14 Jul 2014 23:31:54 +0000 (23:31 +0000)]
Merge "Add PackageManager feature strings for relative humidity and temperature sensors." into lmp-dev

10 years agoMerge "Remove CallServiceProvider and CallServiceDescriptor do not merge" into lmp-dev
Sailesh Nepal [Mon, 14 Jul 2014 23:24:03 +0000 (23:24 +0000)]
Merge "Remove CallServiceProvider and CallServiceDescriptor do not merge" into lmp-dev

10 years agoRemove CallServiceProvider and CallServiceDescriptor do not merge
Sailesh Nepal [Mon, 14 Jul 2014 15:19:46 +0000 (08:19 -0700)]
Remove CallServiceProvider and CallServiceDescriptor do not merge

This CL removes CallServiceProvider. Instead of using a
provider we'll look up ConnectionServices using the package
manager instead.

This CL also removes CallServiceDescriptor. For incoming calls,
connection services will now pass a PhoneAccount instead
of a call descriptor. For outgoing calls we already use
PhoneAccounts for everything.

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 7ade570fdc1ae719abca54867d97dc7f0130d664)

10 years agoMerge "Implement multi-SIM capabilities (1/6) [DO NOT MERGE]" into lmp-dev
Santos Cordon [Mon, 14 Jul 2014 23:20:15 +0000 (23:20 +0000)]
Merge "Implement multi-SIM capabilities (1/6) [DO NOT MERGE]" into lmp-dev

10 years agoAdd window elevation for dialogs, clean up surface insets API
Alan Viverette [Sun, 13 Jul 2014 03:01:27 +0000 (20:01 -0700)]
Add window elevation for dialogs, clean up surface insets API

BUG: 13211941
Change-Id: I9d605d0b2fb24f9bf8e73fbecd520b6b52ae5751

10 years agoMerge "Add Context.getNoBackupFilesDir()" into lmp-dev
Christopher Tate [Mon, 14 Jul 2014 22:56:21 +0000 (22:56 +0000)]
Merge "Add Context.getNoBackupFilesDir()" into lmp-dev

10 years agoAdd Context.getNoBackupFilesDir()
Christopher Tate [Sat, 12 Jul 2014 00:25:57 +0000 (17:25 -0700)]
Add Context.getNoBackupFilesDir()

This is an app-private filesystem space exactly like the one
reported by Context.getFilesDir(), with one exception:  files
placed here are never backed up by the full-backup infrastructure.
If an app attempts to back up any of its contents via the normal
API it's immediately ignored with a logged warning.

The restriction is also enforced on the restore side, because
apps using support libraries might wind up creating full backup
archives containing no_backup subdirs on pre-L devices (via
adb backup, Helium, &c.).  We check for this before passing the
restore data to the app, and drop it if we detect the situation
so that the app never sees the bits.

Bug 16240573

Change-Id: I11216a391f1d32117ec7ce15aafc9cd93d0337de

10 years agoMerge "Introduce new In-Call Service interface" into lmp-dev
Ihab Awad [Mon, 14 Jul 2014 22:54:06 +0000 (22:54 +0000)]
Merge "Introduce new In-Call Service interface" into lmp-dev

10 years agoIntroduce new In-Call Service interface
Ihab Awad [Thu, 10 Jul 2014 04:52:04 +0000 (21:52 -0700)]
Introduce new In-Call Service interface

Change-Id: I2dd8494f6e397c49180b19d1347c62edcae9b4e7
(cherry picked from commit e225fecca486858e8195eaf09d172a70fe7d632b)

10 years agoMerge "Zygote: make libprocessgroup failures non-fatal" into lmp-dev
Colin Cross [Mon, 14 Jul 2014 22:39:03 +0000 (22:39 +0000)]
Merge "Zygote: make libprocessgroup failures non-fatal" into lmp-dev

10 years agoChanged wording from "Mobile" to "Cellular" do not merge
PauloftheWest [Mon, 14 Jul 2014 14:50:47 +0000 (07:50 -0700)]
Changed wording from "Mobile" to "Cellular" do not merge

Bug: 15720445
Change-Id: Ifdf2667fb01ebd621b89facc0c6b4dbbe0d8c4bb
(cherry picked from commit ca506b22fafb9134280b8a94fb9a3b2aaa38cf2e)

10 years agoZygote: make libprocessgroup failures non-fatal
Colin Cross [Mon, 14 Jul 2014 22:07:04 +0000 (15:07 -0700)]
Zygote: make libprocessgroup failures non-fatal

createProcessGroup can fail if the kernel does not support the
cpuacct cgroup.  Print a more useful error message, and don't
runtime abort.

Bug: 16243791
Change-Id: Ibbf081bda58a99c83b8070f55d151905c706b378

10 years agoFixing potential crash when attemping to read null thumbnail (Bug. 16289301)
Winson Chung [Mon, 14 Jul 2014 21:16:04 +0000 (14:16 -0700)]
Fixing potential crash when attemping to read null thumbnail (Bug. 16289301)

- Refactoring to remove unnecessary updates of RecentsConfiguration
- Removing unused logs

Change-Id: If427e565ab7260009ffb9be8ca45ba833c8262af

10 years agoMerge changes I51f2e466,I5b67cb3e into lmp-dev
RoboErik [Mon, 14 Jul 2014 21:37:49 +0000 (21:37 +0000)]
Merge changes I51f2e466,I5b67cb3e into lmp-dev

* changes:
  Make PlaybackState immutable with a builder
  Add API to set a default session in Activity

10 years agoMake PlaybackState immutable with a builder
RoboErik [Mon, 14 Jul 2014 20:40:43 +0000 (13:40 -0700)]
Make PlaybackState immutable with a builder

bug:15862252
Change-Id: I51f2e466bd2c41bbe80d20aa9785126a7ac6ab3f

10 years agoMerge "ActivityTransition: restore callee activity shared element position" into...
Dake Gu [Mon, 14 Jul 2014 21:16:55 +0000 (21:16 +0000)]
Merge "ActivityTransition: restore callee activity shared element position" into lmp-dev

10 years agoActivityTransition: restore callee activity shared element position
Dake Gu [Sat, 12 Jul 2014 00:48:37 +0000 (17:48 -0700)]
ActivityTransition: restore callee activity shared element position

Move the shared element of callee activity to animation start position,
then restore the measured size and locations to original values before
call requestLayout(),  this fixes cases for RecyclerView optimized layout
which offsets siblings by delta of measure size.

Change-Id: I6e43c036e26986605ff008aba476e30ebd270fd1

10 years agoMerge "Add strings for QS user switcher" into lmp-dev
Adrian Roos [Mon, 14 Jul 2014 20:57:44 +0000 (20:57 +0000)]
Merge "Add strings for QS user switcher" into lmp-dev

10 years agoAdd strings for QS user switcher
Adrian Roos [Mon, 14 Jul 2014 20:39:54 +0000 (22:39 +0200)]
Add strings for QS user switcher

Bug: 15545213
Change-Id: Iec98b704cd4b662d3cc5ff0b76671d44f93837d5

10 years agoMerge "Page size not always adjusted" into lmp-dev
Svetoslav [Mon, 14 Jul 2014 20:34:33 +0000 (20:34 +0000)]
Merge "Page size not always adjusted" into lmp-dev

10 years agoPage size not always adjusted
Svetoslav [Mon, 14 Jul 2014 20:31:19 +0000 (13:31 -0700)]
Page size not always adjusted

A user can select the pages to print by selecting a range from the
UI after which the selected pages appear in the preview list. Now
the user can further prune pages by clicking on them. If the number
of pages change to two or one the page position and size were not
adjusted. Now after the constraints of desected by clicking pages
are propafated the page size position is also computed.

bug:16297811

Change-Id: I62c0ae8ab5b1d91b120cbf9faa9653ef4ccbd97f

10 years agoMerge "Initial KeySet API." into lmp-dev
dcashman [Mon, 14 Jul 2014 20:02:28 +0000 (20:02 +0000)]
Merge "Initial KeySet API." into lmp-dev

10 years agoInitial KeySet API.
dcashman [Mon, 9 Jun 2014 16:27:54 +0000 (09:27 -0700)]
Initial KeySet API.

Previously submitted but reverted due to doc-compilation bug.

Bug: 6967056
Change-Id: I9bd7ef299a4c92c4b327f5b5d7e951f0753b4c8a

10 years agoMerge "GpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf...
Colin Cross [Mon, 14 Jul 2014 19:51:29 +0000 (19:51 +0000)]
Merge "GpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf" into lmp-dev

10 years agoMerge "MediaRecorder: Fix crash when given a released Camera object" into lmp-dev
Eino-Ville Talvala [Mon, 14 Jul 2014 22:36:01 +0000 (22:36 +0000)]
Merge "MediaRecorder: Fix crash when given a released Camera object" into lmp-dev

10 years agoMediaRecorder: Fix crash when given a released Camera object
Eino-Ville Talvala [Mon, 14 Jul 2014 19:02:21 +0000 (12:02 -0700)]
MediaRecorder: Fix crash when given a released Camera object

Bug: 15617637
Change-Id: I420ecc3f7b946dcf705cf210a7d493290f838f09

10 years agoMerge "Pass install result message; path selection." into lmp-dev
Jeff Sharkey [Mon, 14 Jul 2014 19:22:06 +0000 (19:22 +0000)]
Merge "Pass install result message; path selection." into lmp-dev

10 years agoMerge "Add missing lock task API" into lmp-dev
Jason Monk [Mon, 14 Jul 2014 22:36:00 +0000 (22:36 +0000)]
Merge "Add missing lock task API" into lmp-dev

10 years agoAdd missing lock task API
Jason Monk [Mon, 14 Jul 2014 20:42:24 +0000 (16:42 -0400)]
Add missing lock task API

It seems that currently there is no un-hidden way to determine if
the device is in lock task.  This fixes that.

Change-Id: Ib5082b84de8073d261777b955fddff55367e5662

10 years agoMerge "Enable the bitmap cache for the VectorDrawable" into lmp-dev
ztenghui [Mon, 14 Jul 2014 22:56:12 +0000 (22:56 +0000)]
Merge "Enable the bitmap cache for the VectorDrawable" into lmp-dev

10 years agoEnable the bitmap cache for the VectorDrawable
ztenghui [Mon, 14 Jul 2014 21:53:48 +0000 (14:53 -0700)]
Enable the bitmap cache for the VectorDrawable

b/16299765

Change-Id: Ia2c0fd366abc097d1ce485936de74e4e898cc07a

10 years agoMerge "Add Intent to configure ConnectionService" into lmp-dev
Evan Charlton [Mon, 14 Jul 2014 19:12:01 +0000 (19:12 +0000)]
Merge "Add Intent to configure ConnectionService" into lmp-dev

10 years agoDO NOT MERGE Remove sub-position scroller
Alan Viverette [Mon, 14 Jul 2014 02:00:01 +0000 (19:00 -0700)]
DO NOT MERGE Remove sub-position scroller

BUG: 14477472
Change-Id: I019c58dedb383e9e906831c8e44bab8b88e92604
(cherry picked from commit 66072fe0e1494a851e54bc7756734141dfbf4fe0)

10 years agoImplement multi-SIM capabilities (1/6) [DO NOT MERGE]
Ihab Awad [Wed, 9 Jul 2014 19:30:52 +0000 (12:30 -0700)]
Implement multi-SIM capabilities (1/6) [DO NOT MERGE]

- Split PhoneAccount into PhoneAccount & PhoneAccountMetadata
- Move PhoneAccount methods from TelephonyManager to TelecommManager

Bug:16292368
Change-Id: Ib440368d6bd0572b63c942360450fde5c27d84b9
(cherry picked from commit 936b3552b4a3569be9904c826b95b632886fb45d)

10 years agoAdd API to set a default session in Activity
RoboErik [Wed, 9 Jul 2014 22:05:53 +0000 (15:05 -0700)]
Add API to set a default session in Activity

We may have multiple remote sessions at once so an app needs a way
to specify a default session to route media and volume commands to
when its activity is in the foreground. This adds an api that works
in parallel with the default stream api on Activity.

bug:15727927
Change-Id: I5b67cb3e20647f9437d90aa65be63efe8c7865cf

10 years agoGpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf
Colin Cross [Tue, 28 Jan 2014 17:33:53 +0000 (09:33 -0800)]
GpsLocationProvider: look for config file in /etc/gps.<ro.hardware.gps>.conf

The property ro.hardware.gps can be specifid to allow a single system
image to work with differrent GPS chips.  The HAL layer will use it to load
/system/lib/hw/gps.<ro.hardware.gps>.so.  Add support to GpsLocationProvider
to use the same property to find /etc/gps.<ro.hardware.gps>.conf, falling
back to /etc/gps.conf if the property is not set or the file is not present.

(cherry picked from commit 0246363b223f539ad01898b8ad0093fc6a58c5a3)

Change-Id: I3a3f7ae94b818b81550137c375adc9bf7ce3da99

10 years agoAdd PackageManager feature strings for relative humidity and temperature sensors.
Aravind Akella [Wed, 9 Jul 2014 18:52:39 +0000 (11:52 -0700)]
Add PackageManager feature strings for relative humidity and temperature sensors.

Change-Id: I56351f37f1c51517a3384b6040df0ed2be0c95b0

10 years agoPass install result message; path selection.
Jeff Sharkey [Mon, 14 Jul 2014 00:33:07 +0000 (17:33 -0700)]
Pass install result message; path selection.

Oops, forgot to include message argument to invoke the new-style
callback.  Also use more robust way of generating cluster APK
directory names, and add more logging details on rename failure.

Change-Id: Ifa8abdd1db58b73e13b9a8077ec126cf20a0d90e

10 years agoCorrect printer extra constant value.
Svet Ganov [Mon, 14 Jul 2014 17:49:40 +0000 (10:49 -0700)]
Correct printer extra constant value.

We are passing the current printer to the custom print options activity.
Before we were using a constant specified in the java docs as it was
added past API change was possible. For this release a constant is
defined but its value was wrong and clients using the old (correct) value
could not look up the printer extra.

bug:16291822

Change-Id: Iaff6728865690caa8aaaa49a5911009d9f099148

10 years agoMerge "Add TRANSCRIPTION column to Calls table" into lmp-dev
Yorke Lee [Mon, 14 Jul 2014 17:41:38 +0000 (17:41 +0000)]
Merge "Add TRANSCRIPTION column to Calls table" into lmp-dev

10 years agoRename historical records if printer name changed.
Svet Ganov [Mon, 14 Jul 2014 17:18:13 +0000 (10:18 -0700)]
Rename historical records if printer name changed.

We keep track of previously used printers. It is possible that the name
of a previously used printer changed. In this case we want to change
this printer's name in the historical records to be able to show the
correct name in the UI when loading the history.

bug:13524346

Change-Id: I0a37bd52a564df5a84c816abfcf03db83de93b97

10 years agoMerge "DO NOT MERGE Fixing some regressions" into lmp-dev
Winson Chung [Mon, 14 Jul 2014 17:17:08 +0000 (17:17 +0000)]
Merge "DO NOT MERGE Fixing some regressions" into lmp-dev

10 years agoDO NOT MERGE Fixing some regressions
Winson Chung [Mon, 14 Jul 2014 00:43:31 +0000 (17:43 -0700)]
DO NOT MERGE Fixing some regressions

- Removing some legacy code with task loading
- Ensure that doze triggers are set correctly on configuration change
- Adding WCAGv2 contrast checking for deciding which foreground color to use for labels
- Bumping up the max thumbnail cache size slightly
- Fixing case where visibility state was not correct if you toggle recents too quickly

Change-Id: I5e954890d53948547842edce3c76c34d74e180a8
(cherry picked from commit e99e1009ce49caf220aa51c044ed53ac0a3b7cc6)

10 years agoAdd TRANSCRIPTION column to Calls table
Yorke Lee [Mon, 14 Jul 2014 17:05:31 +0000 (10:05 -0700)]
Add TRANSCRIPTION column to Calls table

Bug: 10928782
Change-Id: I9ca266247cea0f4ce71576a88801034a6e6ee77b

10 years agoVolume: Delay adjustments made when showing ringer UI.
John Spurlock [Fri, 11 Jul 2014 17:10:58 +0000 (13:10 -0400)]
Volume: Delay adjustments made when showing ringer UI.

Since the volume rocker is now the primary system UI for
entering ringer modes, we need to provide a way to display
the ui without making a sound.

Change the policy for the ringer stream to only display the
UI on the initial adjustment request, don't actually make
an adjustment.  However, don't break previous ability to
press and hold the vol keys down to vibrate, so allow this
after the standard framework long-press delay.

Audio service had no way of knowing whether or not the registered
volume controller was visible, so add a mechanism for the
controller (volume panel) to send that info back to the service.

Found and fixed a discrepancy between AudioManager.handleKeyDown
and MediaSessionLegacyHelper so that an adjustment over the
keyguard is allowed to vibrate as well as play sound during
adjustments.

Bug:16202639
Change-Id: Icd36c23e8d08c4ed57922c05724b281f32049be7

10 years agoAdd Intent to configure ConnectionService
Evan Charlton [Fri, 11 Jul 2014 22:30:56 +0000 (15:30 -0700)]
Add Intent to configure ConnectionService

Change-Id: I187cb48f5b763fadeb5346fca34b0dc4ae7e4d43

10 years agoFix broken actions in print notifications.
Svet Ganov [Mon, 14 Jul 2014 15:40:12 +0000 (08:40 -0700)]
Fix broken actions in print notifications.

The notification handling broadcast receiver was renamed but the
manifest was not updated, hence the receiver was not registered.

bug:16289408

Change-Id: I094e20e472abff1f926e1dbfbac32f422f498f74

10 years agoImprove print options click to open behavior.
Svet Ganov [Mon, 14 Jul 2014 15:21:25 +0000 (08:21 -0700)]
Improve print options click to open behavior.

When print options are closed we show a summary and a handle to open
the options panel. Often the user instinctively clicks on the summary
and also the expand handle is a somehow small target. To improve user
experience clicking on the summary also opens the print options.

Change-Id: Ia2f3b80f5acf11b40af864729f67fa29e82729fc

10 years agoQS: Introduce cast control panel.
John Spurlock [Sun, 13 Jul 2014 15:59:50 +0000 (11:59 -0400)]
QS: Introduce cast control panel.

Make cast controller more granular, at the route level, and
bind a common detail item panel to the available routes.

Fix tile icon, add connecting label.

Remove dialog presentation, no longer needed.

Add the new empty state, and add controller state to dump.

Found a bug in keyguard when in presentation mode, added
a workaround - don't crash when no owner info in keyguard
status view.

Bug:15833210
Change-Id: I19afec390eac2260bccf4a7064065b666b7bceca

10 years agoImprovements to Restrictions API
Amith Yamasani [Thu, 10 Jul 2014 20:41:55 +0000 (13:41 -0700)]
Improvements to Restrictions API

Convert restrictions provider to a service instead of a receiver.
Add a way to get pending responses from restrictions provider.
Add AbstractRestrictionsProvider.
Add a callback API for responses.

Removed some constants in RestrictionsManager.
Added new constants for errors and error codes.
Much improved javadocs.

Bug: 16176009

Change-Id: I838a50fabc80b94b632294b3a55cd5d8092acf55

10 years agoTelephony: Introduce config item for Hot Swap support
Wink Saville [Fri, 11 Jul 2014 14:37:11 +0000 (07:37 -0700)]
Telephony: Introduce config item for Hot Swap support

When a Uicc Card is inserted or removed, Android pops up a prompt
to the user to reboot the device. This prompt is unnecessary if the
modem supports Hot Swapping of cards.

Introduce a new config item to indicate if the modem supports
hotswapping. Frameworks can then check this before propmting the
user.

Bug: 12161291
Change-Id: I0f2c3134525aa2301fd667d0a1819f4419eecae0
(cherry picked from commit 5cbf6098c0d4bb830acd6ef45e8a3c1cedfb165c)
(cherry picked from commit 067089c6a1a8acc638f563f817dafef9172083f0)
(cherry picked from commit fd5d8910922bb16095367d09077e5974422e57ce)

10 years agoUnhide isSmsCapable.
Wink Saville [Sat, 12 Jul 2014 13:53:01 +0000 (06:53 -0700)]
Unhide isSmsCapable.

Bug: 14113863
Change-Id: I57af2cf2482747e77c9bdf53559345b6b31f01a5

10 years agoMerge "Make sure to finish routing control action" into lmp-dev
Jinsuk Kim [Mon, 14 Jul 2014 01:31:07 +0000 (01:31 +0000)]
Merge "Make sure to finish routing control action" into lmp-dev

10 years agoMake sure to finish routing control action
Jinsuk Kim [Sun, 13 Jul 2014 22:39:32 +0000 (07:39 +0900)]
Make sure to finish routing control action

After HdmiControlService performs routing control action,
make sure it is finished all the time.

Change-Id: I38e130ee5d8712a18aac7a46cad0950a23713469
(cherry picked from commit 7d05469196721aaa888447149d3b93c8689ff72e)

10 years agoMerge "do not merge. Implement onVideoAvailable/Unavailable in TIF." into lmp-dev
Dongwon Kang [Mon, 14 Jul 2014 01:30:29 +0000 (01:30 +0000)]
Merge "do not merge. Implement onVideoAvailable/Unavailable in TIF." into lmp-dev

10 years agodo not merge. Implement onVideoAvailable/Unavailable in TIF.
Dongwon Kang [Fri, 4 Jul 2014 00:32:40 +0000 (09:32 +0900)]
do not merge. Implement onVideoAvailable/Unavailable in TIF.

Use cases:
  - VIDEO_UNAVAILABLE_REASON_TUNE: to show spinner on channel change.
  - VIDEO_UNAVAILABLE_REASON_WEAK_SIGNAL: to show a message and spinner on weak TV signal.
  - VIDEO_UNAVAILABLE_REASON_BUFFERING: to show spinner on buffering.
  - VIDEO_UNAVAILABLE_REASON_UNKNOWN: to show spinner.

Bug: 14126559
Change-Id: Ide2b68c74bd96d4ea1b9d85ab099a277253d05c7
(cherry picked from commit 1edfd8eb985ee41095c60f4aaf7029f56abff614)

10 years agoShortens the key length in HdmiControlService
Jinsuk Kim [Sun, 13 Jul 2014 23:20:47 +0000 (08:20 +0900)]
Shortens the key length in HdmiControlService

The key length for SystemProperties should not be over 31

Bug: 16274152
Change-Id: I25ffaf2fc502819a7aea12372717cd00497fd3be

10 years agoMerge changes I3c19e008,I2c7c6013,I5cfd37d9 into lmp-dev
Jeff Brown [Mon, 14 Jul 2014 12:01:54 +0000 (12:01 +0000)]
Merge changes I3c19e008,I2c7c6013,I5cfd37d9 into lmp-dev

* changes:
  Update media session test application for new media router.
  Initial draft of new MediaRouter APIs.
  Delete first draft of media routing APIs.

10 years agoUpdate media session test application for new media router.
Jeff Brown [Mon, 14 Jul 2014 11:05:08 +0000 (04:05 -0700)]
Update media session test application for new media router.

Change-Id: I3c19e008d211099b4d7320e3f195850cfb4dd927

10 years agoInitial draft of new MediaRouter APIs.
Jeff Brown [Wed, 2 Jul 2014 05:13:04 +0000 (22:13 -0700)]
Initial draft of new MediaRouter APIs.

This patch introduces basic infrastructure for the new MediaRouter
API.  The code is fully documented but incompletely implemented.
It is being submitted not to facilitate API reviews.

MediaRouter is a new class that applications used to discovery,
connect to, and control media devices as represented by media
destinations and their routes.  Routes may offer a variety of
capabilities.  This new class is a much more powerful replacement
for the existing MediaRouter.

MediaRouteService is a base class for creating media route services
which third-parties can implement to make routes available to
applications.  It is analoguous to the MediaRouteProvider
infrastructure of the old media router support library but it
is designed to be integrated into the framework and enable a
variety of new usages such as remote display projection.

Stay tuned for more...

Change-Id: I2c7c6013d9f751d71e83697e7fc9e49bf7751fef

10 years agoDelete first draft of media routing APIs.
Jeff Brown [Fri, 11 Jul 2014 05:50:50 +0000 (22:50 -0700)]
Delete first draft of media routing APIs.

The new APIs will not be as tightly integrated into MediaSession.

Change-Id: I5cfd37d9d8d0c5d46c55edb5cf0772a8f1ef13ab

10 years agoDimming deselected preview pages
Svet Ganov [Mon, 14 Jul 2014 07:28:19 +0000 (00:28 -0700)]
Dimming deselected preview pages

For print preview we show the pages the user selected in the range
affordance but the user can optionally further prune pages to be
printed by deselecting them in the preview. The deselected pages
change elevation and now also are dimmed.

bug:15912256

Change-Id: I53357b8e8b592387bbc26b937eda786bb4660d85

10 years agoTop printer not properly selected.
Svet Ganov [Mon, 14 Jul 2014 07:14:07 +0000 (00:14 -0700)]
Top printer not properly selected.

We keep track of historically used printers and when the print dialog
is opened we load them. We were selecting the first printer before the
historical ones are loaded which led to a case where the PDF printer
is selected and then a better printer appears but we have the PDF one
selected.

Also we were asking the printer spinner for the current printer but
if the data set of the adapter changes and we ask the spinner for the
selection we get a wrong answer because the adapter and the view are
off sync since the view is updated on the next message.

Change-Id: I0c12d2d3b19227a8f6af6e421b92013ec06cc021

10 years agoDeprecate android.hardware.Camera
Eino-Ville Talvala [Fri, 11 Jul 2014 00:45:03 +0000 (17:45 -0700)]
Deprecate android.hardware.Camera

             __
             ||
             ||
             ||
             ||---____-----+
             ||    \_/     |
             ||   /. .\    |
             ||  ||---||   |
             ||   |___|    |
             ||    | |     |
             ||---____-----+
             ||
             ||
             ||
_____________||_________________

Replaced by android.hardware.camera2

- Also deprecate MediaRecorder#setCamera
- Also deprecate all Camera inner classes
- Update reference documentation in various classes to point to camera2
- Add note to camera API guide that it uses the old API
  (until a new guide is available)
- Remove old hidden raw sensor format; superceded by RAW_SENSOR.

Change-Id: I3d839765fc9b9aae906751ee32d6956ef40451ce

10 years agoMerge "QS: Update rotation lock icons." into lmp-dev
John Spurlock [Mon, 14 Jul 2014 15:02:21 +0000 (15:02 +0000)]
Merge "QS: Update rotation lock icons." into lmp-dev

10 years agoQS: Update rotation lock icons.
John Spurlock [Mon, 14 Jul 2014 14:52:01 +0000 (10:52 -0400)]
QS: Update rotation lock icons.

Only three states: unlocked / portrait / landscape, no animation.

Bug:16161728
Change-Id: Id916b81c09925455f87cfccf1350ac4977bad42e

10 years agoRestore user switching logic.
Emily Bernier [Mon, 14 Jul 2014 14:07:24 +0000 (10:07 -0400)]
Restore user switching logic.

Change-Id: I859145efc8e7f426ca7f7ad915b082b7e8a2c516

10 years agoMerge "Adds hidden startActivityForResultAsUser APIs" into lmp-dev
Alexandra Gherghina [Mon, 14 Jul 2014 11:49:27 +0000 (11:49 +0000)]
Merge "Adds hidden startActivityForResultAsUser APIs" into lmp-dev

10 years agoAdds hidden startActivityForResultAsUser APIs
Alexandra Gherghina [Fri, 4 Jul 2014 11:05:20 +0000 (12:05 +0100)]
Adds hidden startActivityForResultAsUser APIs

Bug: 16056552
Change-Id: Ib50f95782748a9dfdb2ee64225971128ac78e1c8

10 years agoMerge "QS: Cellular usage warning marker + policy cycle." into lmp-dev
John Spurlock [Mon, 14 Jul 2014 11:36:23 +0000 (11:36 +0000)]
Merge "QS: Cellular usage warning marker + policy cycle." into lmp-dev

10 years agoQS: Cellular usage warning marker + policy cycle.
John Spurlock [Sun, 13 Jul 2014 20:07:57 +0000 (16:07 -0400)]
QS: Cellular usage warning marker + policy cycle.

Add warning marker to graph from policy, and use the
cycle day from policy to determine the usage period.

Change-Id: I31711eea6a0bf54ad0eb5841d2aa9b8e5927ed58
(cherry picked from commit b5e88019cd69d9320639b6736fabf7f407444967)

10 years agoMerge "Unhide Build.SUPPORTED_ABIS and friends."
Narayan Kamath [Sun, 13 Jul 2014 08:35:07 +0000 (08:35 +0000)]
Merge "Unhide Build.SUPPORTED_ABIS and friends."

10 years agoUnhide Build.SUPPORTED_ABIS and friends.
Narayan Kamath [Sat, 12 Jul 2014 10:46:37 +0000 (11:46 +0100)]
Unhide Build.SUPPORTED_ABIS and friends.

Also deprecates Build.CPU_ABI and Build.CPU_ABI2.

bug: 15018047

Change-Id: If8bda8481b29442c0208ba8a72ec0037e813946c

10 years agoMerge "Package installation listener events."
Jeff Sharkey [Sun, 13 Jul 2014 04:21:36 +0000 (04:21 +0000)]
Merge "Package installation listener events."

10 years agoPackage installation listener events.
Jeff Sharkey [Sun, 13 Jul 2014 01:09:46 +0000 (18:09 -0700)]
Package installation listener events.

Flesh out implementation of install session observers.  Carve out 20%
of published install progress for final system operations such as
dexopt, etc.

Add dumpsys output for active install sessions.  Create explicit
fsync() instead of overriding meaning of flush().  Hack to throw
IOExceptions over Binder calls.

Bug: 1497516015348430
Change-Id: I874457e40c45d2661bc0a526df9285ffea4bb77c

10 years agoSurface detailed error messages from PMS.
Jeff Sharkey [Sat, 12 Jul 2014 22:37:47 +0000 (15:37 -0700)]
Surface detailed error messages from PMS.

We now both log detailed error messages and relay them back to any
observer.  Start refactoring PMS to throw when errors are encountered
internally to make it easier to reason about flow control; already
uncovered a few instances of errors being silently ignored!

Change-Id: Ia335c5e31bd10243d52fd735c513ca828e83dca0

10 years agoHandle <Feature Abort> after <System Audio Mode Request>.
Yuncheol Heo [Fri, 11 Jul 2014 07:06:40 +0000 (16:06 +0900)]
Handle <Feature Abort> after <System Audio Mode Request>.

- Fix some wrong return values.

Bug: 15841647
Change-Id: Ia4596e87204196b48429d55da4945f84de51a07b

10 years agoMerge "Add simple InputMethodSubtypeTest"
Yohei Yukawa [Fri, 11 Jul 2014 10:59:07 +0000 (10:59 +0000)]
Merge "Add simple InputMethodSubtypeTest"

10 years agoAdd simple InputMethodSubtypeTest
Yohei Yukawa [Fri, 11 Jul 2014 10:41:07 +0000 (19:41 +0900)]
Add simple InputMethodSubtypeTest

Change-Id: I87105c4935adfca249378e667161d2998cf77840

10 years agoMerge "QS: Recenter feedback for non-dual tiles."
John Spurlock [Fri, 11 Jul 2014 02:51:18 +0000 (02:51 +0000)]
Merge "QS: Recenter feedback for non-dual tiles."

10 years agoQS: Recenter feedback for non-dual tiles.
John Spurlock [Fri, 11 Jul 2014 02:49:16 +0000 (22:49 -0400)]
QS: Recenter feedback for non-dual tiles.

And dial the radius down a bit.

Bug:15168179
Change-Id: I946c556b6c31a74a526368097c5c16a7ddbc9749

10 years agoMerge "Revamp HDMI-CEC system audio mode integration with audio service."
Jungshik Jang [Fri, 11 Jul 2014 02:15:31 +0000 (02:15 +0000)]
Merge "Revamp HDMI-CEC system audio mode integration with audio service."

10 years agoRevamp HDMI-CEC system audio mode integration with audio service.
Jungshik Jang [Tue, 8 Jul 2014 12:17:29 +0000 (21:17 +0900)]
Revamp HDMI-CEC system audio mode integration with audio service.

In previous change we use setForceUse(FORCE_MEDIA, XXX) method
in order to set specific audio output type, such as LINE, HDMI_ARC,
and SPDIF. But it turns out that it conflicts with bluetooth
a2dp which uses the same setForceUse(FORCE_MEDIA, yyy).

This change is based on several conditions.

1. When other non-speaker devices are on, prevent system audio
   from turing on.
2. In order to keep track of other devices' connectivity and to
   turn off system audio if other device like bluetooth or
   headphone preempts current output, register OnAudioPortChangeListner
   to audio manager.
3. All possible system audio outputs can be merged with other
   outputs without priority.

Change-Id: Id4e47d99db64b9f77a17c2c28c47787ab8980bf7

10 years agoFix BCP47 language tags in fallback_fonts.xml
Raph Levien [Thu, 10 Jul 2014 22:45:26 +0000 (15:45 -0700)]
Fix BCP47 language tags in fallback_fonts.xml

The BCP47 tag we use for selecting Simplified vs Traditional Chinese is
Hans and Hant. This patch uses those tags in fallback_fonts.xml rather
than country names, which weren't getting matched.

Change-Id: I97e1da7b86e8fe8f026365146393304a5ab74443

10 years agoMerge "Update HdmiControlService JNI to the change in HAL definition"
Jinsuk Kim [Fri, 11 Jul 2014 02:39:46 +0000 (02:39 +0000)]
Merge "Update HdmiControlService JNI to the change in HAL definition"

10 years agoQS: Enable wifi entering detail (if disabled).
John Spurlock [Fri, 11 Jul 2014 02:20:46 +0000 (22:20 -0400)]
QS: Enable wifi entering detail (if disabled).

Bug:16215297
Change-Id: I3cf2b7fadec0b10aeb894db5dc0b92d8b83511f7

10 years agoUpdate HdmiControlService JNI to the change in HAL definition
Jinsuk Kim [Thu, 10 Jul 2014 22:26:45 +0000 (07:26 +0900)]
Update HdmiControlService JNI to the change in HAL definition

Change-Id: Iab235785c4d0242ab5845d1f8ad62d78770ff9c4

10 years agoAdding call capabilities to indicate whether call supports VT.
Tyler Gunn [Thu, 10 Jul 2014 21:34:51 +0000 (14:34 -0700)]
Adding call capabilities to indicate whether call supports VT.

Bug: 16213105
Change-Id: Icb05d3f0f6bd90b2c45bdfb7b199f38aaecc16ca

10 years agoMerge "Specify light and shadow properties in theme"
Alan Viverette [Sun, 13 Jul 2014 03:51:52 +0000 (03:51 +0000)]
Merge "Specify light and shadow properties in theme"

10 years agoSpecify light and shadow properties in theme
Alan Viverette [Sun, 13 Jul 2014 03:33:45 +0000 (20:33 -0700)]
Specify light and shadow properties in theme

BUG: 15859361
Change-Id: I65c9aa8c7ad7a709504c879d96158efba040d3ce

10 years agoUpdated "with-default" layout added for ResolverActivity
Adam Powell [Sun, 13 Jul 2014 01:33:22 +0000 (18:33 -0700)]
Updated "with-default" layout added for ResolverActivity

Add a layout that promotes the last chosen activity to the top for
ResolverActivity. Alter ResolverActivity behavior as appropriate: Only
the last selected activity can be set as default. Different activity
selections take effect immediately. You can only set a default if it
was the last-used target of the intent.

Also add some default strings for invoking common intents to make the
no-title invocations a bit more user-friendly than just, "complete
action using."

Bug 15694906

Change-Id: I8c75d2f812926805c949cc76bab48aa4094e002f

10 years agoMerge "TIF: Add a way to enable/disable caption"
Jae Seo [Sun, 13 Jul 2014 03:44:22 +0000 (03:44 +0000)]
Merge "TIF: Add a way to enable/disable caption"

10 years agoTIF: Add a way to enable/disable caption
Jae Seo [Thu, 10 Jul 2014 21:57:01 +0000 (14:57 -0700)]
TIF: Add a way to enable/disable caption

This is required to handle the case that an application wants to turn
on/off the caption explicitly (e.g. TvView in PIP). TV input service
implementation must respond to the request immediately to avoid any
legal implication since the captioning is imposed by the law in many
countries.

Bug: 14121898
Change-Id: I9600debae709fdc99065d7a0138ae69d1dffc9ba

10 years agoMerge "Remove material progress drawable"
Alan Viverette [Thu, 10 Jul 2014 22:55:35 +0000 (22:55 +0000)]
Merge "Remove material progress drawable"

10 years agoRemove material progress drawable
Alan Viverette [Thu, 10 Jul 2014 22:48:37 +0000 (15:48 -0700)]
Remove material progress drawable

BUG: 16138805
Change-Id: If8a8981e6ce741d563e870e3c09cbb5f39d30ac9