Commit Graph

38028 Commits

Author SHA1 Message Date
Narayan Kamath
aeaf87fe45 Update javadoc for android.os.Bundle.
Call out the fact that defaultValue is returned if a null
mapping exists for a given key.

bug: https://code.google.com/p/android/issues/detail?id=68453

(cherry picked from commit ca2197b045)

Change-Id: Iec70478ae091bb222be6e9ef9726c817395e9e23
2014-07-01 09:03:10 +00:00
Jungshik Jang
a13da0d591 Add api, setArcMode, used to turn on/off ARC.
Usual TV can switch on and off of ARC feature in its settings page.
Along with it, removed locking block from the code,
because arc flags are accessed by actions and internal services.

Change-Id: I737ac0c2671b537551eaac202d2065cc99c6d0a0
2014-07-01 17:25:06 +09:00
Amith Yamasani
e4afaa3a3d Store and retrieve default Guest settings
Save the default guest restrictions for use when a guest is created.

Bug: 15761405
Change-Id: I28db7d823944b0b47527a4909c10cc856c842a62
2014-07-01 10:29:46 +05:30
Jeff Brown
8fef877310 Merge "Make MediaSessionToken an inner class of MediaSession." 2014-06-30 22:24:07 +00:00
Ram
3e0e3bc617 MS: Adding Support for Emergency APN in Telephony Framework
(base/telephony)

Replacement for https://partner-android-review.googlesource.com/#/c/171175/

Change-Id: I16fc37f5c00ed79f2370bc46554fc7a24c52c4cb
Conflicts:
	core/java/android/net/ConnectivityManager.java
2014-07-01 02:00:51 +00:00
Jeff Brown
dba34ba35c Make MediaSessionToken an inner class of MediaSession.
Also add some missing AIDLs to the framework makefile to ensure
they are included in the SDK.

Change-Id: If85a3091c7591e0b3bbe6cc4bb74aba2284b4f42
2014-06-30 16:05:25 -07:00
Jinsuk Kim
854157308e Merge "Refactor handling sequences in HdmiControlService" 2014-06-26 23:19:11 +00:00
Mudumba Ananth
177d078d90 Add WBS support on Bluedroid (6/6)
Bug 13764086

Change-Id: I7afbddb02fc247d7799ab0fb264a467c7853cb32
2014-06-30 22:44:24 +00:00
Jinsuk Kim
92b77cf9cb Refactor handling sequences in HdmiControlService
- Rewrote some methods to match more closely to the handling
  sequences in guideline
- Added setControlEnabled() API in the aidl
- Handled <Routing Control> command
- Handled some scenarios invoking RoutingControlAction

Change-Id: I5db0c6fc775cef709c2e0f338b85937deebf2a54
2014-07-01 07:28:41 +09:00
Anish Athalye
88b5b0be88 Implement line breaking using ICU break iterator
Change-Id: I4ad98757aa2eab5dbc2ae44c0391e900ef20c4d0
2014-06-30 22:14:05 +00:00
Chet Haase
cef139470d Merge "Avoid null-deref crashes in ScrollBarDrawable" 2014-06-26 23:40:51 +00:00
Chet Haase
6c8fef7fb8 Avoid null-deref crashes in ScrollBarDrawable
Some of the code in ScrollBarDrawable automatically derefs
the horizontal and/or vertical thumb objects. The drawable can
sometimes be in a state where these objects are null, causing
a null deref. This fix simply avoids dereferencing null objects.

Also, fixed doc bug in attrs.xml for Transition tags.

Issue #13210554 Transition style documentation refers to 'move' instead of 'changeBounds'
Issue #15636059 ScrollBarDrawable crashes in setAlpha() and other methods when thumbs are null

Change-Id: I6664ba17dae0845de8a8658381ae6e9c9ef99214
2014-06-30 14:15:03 -07:00
Jeff Davidson
b6646a8987 Allow network scorers to provide an opt-in activity.
A candidate scorer may have an activity registered to listen for the
ACTION_CUSTOM_ENABLE intent action. If so, when the user attempts to
select this scorer as the active one, this custom activity will be
launched and will be responsible for requesting that the framework
activate the scorer. This is to enable more complex opt-in flows prior
to becoming the active scorer.

Scorers which do not specify this activity will default to using the
framework switcher (currently ActiveNetworkScorerDialog, though this
may change).

Note that all switches must still go through the framework switcher;
the opt-in activity simply allows scorers to first show another screen
and perform the framework switch on their own terms.

Bug: 15775314
Change-Id: I3847e5d3161a8fcc9622abc03218795697c32778
2014-06-30 14:06:40 -07:00
Christopher Tate
51fea57e06 Refactor restore to deal with heterogeneous datasets
Transport-based restore now handles both key/value and full-data
(stream) data delivery.

Also: PMBA now holds metadata for *all* apps, not just those with
backup agents.  Since we need to consult this for every restore-
at-install operation we cache this locally now, tagged per transport
and per remote dataset, to avoid having to re-download it as part
of every future restore operation.

Also fixed a bug in LocalTransport that was preventing restore of
key/value datasets, i.e. all of them that were nominally available
prior to this change.

NOTE: at present there is no automatic full-data backup; if for
testing purposes you need to create some to then use for restore,
you still need to use 'bmgr fullbackup ...' to push them.

NOTE: at present the unified transport restore uses a refactored
"engine" implementation to handle stream data that encapsulates
the existing "adb restore" implementation.  However, the adb
restore code path has not yet been refactored to wrap the newly-
extracted engine version; it still contains its own copy of all
the relevant logic.  This will change in a future CL, at which
point offline/USB archive restore will simply wrap the same
shared stream-restore engine implementation.

Bug 15330073
Bug 15989617

Change-Id: Ieedb18fd7836ad31ba24656ec9feaaf69e164af8
2014-06-30 17:43:05 -07:00
Chris Craik
9a347f1992 Initial replacement of setOutline() with ViewOutlineProvider API
bug:15283203

A View's outline is now managed by its outline provider. This means
the outline is automatically requeried when needed (e.g. drawable
updates or resize), with customizable querying behavior.

Also adds 'isFilled' property to outline, to be used for hinting
shadow overdraw avoidance.

Change-Id: Ie137548fa850f1ff7863ab2f660d05145c2ad11e
2014-07-01 00:16:25 +00:00
Alan Viverette
d87c7767d9 Merge "Fix NPE in AbsListView hotspot management" 2014-06-30 22:33:05 +00:00
Alan Viverette
8390fab6f4 Fix NPE in AbsListView hotspot management
BUG: 15989761
Change-Id: I1c2fc2ddf3128bf3ba4aa7d986899193559b0c76
2014-06-30 16:03:43 -07:00
George Mount
2f00033f14 Merge "Target only the proper views in activity transitions." 2014-06-26 23:40:51 +00:00
George Mount
8881502da5 Target only the proper views in activity transitions.
Bug 15725361

Change-Id: I0b50aac9323653b6652d6ec638d54ff2d55ba8d5
2014-06-30 11:32:18 -07:00
George Mount
ecd857be39 Add curved motion to Transitions.
Bug 15197527

Added two public PathMotions: PatternMotion and ArcMotion.
ArcMotion is the algorithm provided by UX. PatternMotion
provides a mechanism for using a Path as a pattern.

Change-Id: Ie57fd5f4e62269acc1164eced39853a12c52bd77
2014-06-30 19:25:04 +00:00
Dan Stoza
f74930be60 Merge "Surface: Add allocateBuffers to avoid render delay" 2014-06-27 15:56:14 +00:00
John Reck
9fa3a24d65 Add missing invalidate calls
Bug: 13675947

Change-Id: Ifaf8a43f487d167672d40fa49c85949738ab9396
2014-06-30 14:18:35 +00:00
John Reck
711ecaf000 Merge "More cleanups" 2014-06-27 15:56:14 +00:00
John Reck
918ad523b2 More cleanups
Change-Id: Id5967944b949a2aec57e4fe9fdcdc04c11b8c35a
2014-06-27 22:34:16 +00:00
Przemyslaw Szczepaniak
0e83b499df Merge "Remove TextToSpeechClient API." 2014-06-26 21:23:48 +00:00
Przemyslaw Szczepaniak
fc4b289037 Remove TextToSpeechClient API.
Removed all of TTS V2 api with exception of error codes.

Bug: 15834470
Change-Id: I9d9d2aad01811af9b86bf7a3fd018a8d4e5c2f33
2014-06-30 11:25:12 +01:00
Yohei Yukawa
5d6b6f2892 Allow TextInfo to store ParcelableSpans for TextService
This CL adds a new constructor of TextService so that spell
parcelable spans can be preserved in TextInfo.  The primary usage
scenario is to provide locale information for spell checker
service.

BUG: 15869548
Change-Id: Ib58ece68dee4c6187d469049fca8c35a307c7a01
2014-06-30 09:42:18 +09:00
Craig Mautner
55302e154d Merge "Restore saved fragment state" 2014-06-28 11:29:09 +00:00
Dianne Hackborn
cb3ed1dc28 Add new sendingUid field to Message.
This tell you where the message came from when it was
delivered through a Messenger.

Change-Id: I86a5f521c8ae919b45872dd76b61e83447f397ab
2014-06-28 14:26:02 -07:00
Craig Mautner
33acfbed07 Restore saved fragment state
DialogFragment was saving the state of the dialog in
onSavedInstanceState() but this was being lost because it was
only being saved in the FragmentState but not being restored
into the Fragment when the Fragment was being reinstantiated.
This left us in a state after a rotation where the
DialogFragment was in the state "showing" but had never been
relaunched. Restoring the saved Bundle to the Fragment causes
the DialogFragment to be relaunched after the rotation.

Fixes bug 15559669.

Change-Id: I953a6c4bfdaed1ebcad1d99f47ceac5e017797db
2014-06-28 14:00:53 -07:00
John Spurlock
6612727c18 Doze: allow devices to opt-out of sigmotion trigger.
For devices with unreliable significant motion sensors, allow
the tease signal to be disabled via device config.

Also add doze state to dream service dumpsys.

Bug:15863249
Change-Id: I23eeec09c69cc3bd43b187e49555391ac0a99d9f
2014-06-28 11:31:44 -04:00
John Spurlock
eb8d1be6ac Add a BIND_DREAM_SERVICE signature-level permission.
Starting in api 21, will be required to bind to a
declared dream or doze service.

Also added to aapt dump badging output.

Bug:15862654
Change-Id: Ifa0a594eeecf21e6146176c7810a847e1d08fe3b
2014-06-27 18:33:42 -04:00
Jessica Hummel
a55fc99201 Merge "Provide api to set the managed profile name." 2014-06-26 21:33:38 +00:00
Jessica Hummel
1333ea1ed7 Provide api to set the managed profile name.
Instead of sending the profile name in the provisioning intent
the mdm should set the profile name after provisioning has completed.
This allows us to simplify the provisioning flow and the mdm can
change the name of the profile later on if required.

Change-Id: I821ef2300eae74e89872152ae1c89ac3ecbb82e7
2014-06-30 12:40:37 +01:00
Sander Alewijnse
420b9f4037 Merge "Add public constants for Device Owner Provisioning." 2014-06-26 21:23:48 +00:00
Sander Alewijnse
1cc4ecc3e2 Add public constants for Device Owner Provisioning.
Change-Id: I46dca4e31ab256273eb810f57083f31541815735
2014-06-30 11:36:42 +01:00
George Mount
31e8005e06 Merge "Don't use overlay to transition ImageViews." 2014-06-27 15:56:14 +00:00
Alan Viverette
6a0a338ead Merge "Fix unsafe public methods that take TypedArray" 2014-06-26 23:40:51 +00:00
Nancy Chen
5ffbfccea0 Add Subscription field to Call-related framework objects
Getter and setter methods for framework objects that will need to pass
subscription information between activities.

Bug: 15473965

Change-Id: If1e33fd1fe13262954572558580cdcda73795dc0
2014-06-27 16:17:21 -07:00
Alan Viverette
abda548088 Fix unsafe public methods that take TypedArray
BUG: 15782973
Change-Id: Ifeb032976cd20cf25fe7ecea83eab9d71a16ebc3
2014-06-27 23:11:55 +00:00
Yorke Lee
1d80a877d6 Merge "Unhide more ContactsContracts fields" 2014-06-26 18:42:03 +00:00
Yorke Lee
8d3700988e Unhide more ContactsContracts fields
These are needed for unbundling of Dialer/Contacts

Bug: 6948882
Change-Id: I1640387a44608acc9c737bebea9c4f77e774fab1
2014-06-27 11:23:33 -07:00
Andre Eisenbach
d0cba405bc Merge "LE: Hide new congestion constant for now" 2014-06-27 16:52:20 +00:00
Andre Eisenbach
fad6726724 LE: Hide new congestion constant for now
Change-Id: I86455be16bc3356a1ad24db6d6e6835cb299eb5f
2014-06-27 11:42:19 -07:00
George Mount
566cbf20cc Merge "Fix activity transitions enter transition." 2014-06-26 18:07:29 +00:00
George Mount
2eb983be20 Merge "Activity Transitions: change default behavior." 2014-06-27 16:52:20 +00:00
Andre Eisenbach
dadefdad8e LE: Add notification sent and congestion callbacks (3/4)
This change introduces two new callbacks for applications to better
handle LE notification flow control and transport congestion. The
notification callback is invoked when the remote platform confirms an
indication or when a local notification has been passed to the
controller. No new notifications should be sent until a callback is
received.

Congestion callbacks are triggered when a GATT operation cannot be sent
to the local Bluetooth controller. Repeatedly calling
writeCharacteristic() for example will eventually trigger a congestion
callback. Applications cannot send additional data until a further
callback is received, indicating that the congestion has cleared up.

Also made server callbacks "oneway" in the AIDL definition file.

Change-Id: I7fa3324712205c79efce58e5e3df8b80a265a442
2014-06-27 10:31:41 -07:00
George Mount
8885ac9518 Merge "Add IN/OUT flag for all Visibility transitions." 2014-06-26 17:57:04 +00:00
Hector Dearman
5622e8b669 Merge "Add Third Party Cookie API" 2014-06-26 21:23:48 +00:00
Yohei Yukawa
a1fda005f9 Use CharSequence instead of String in CursorAnchorInfo
This might be useful if we need to pass some spans from the
application to the input method through CursorAnchorInfo.

This change makes CursorAnchorInfo more consistent with other
input method APIs where CharSequence is preferred over String.

BUG: 15088391
Change-Id: Ie04e8a27050849fee1c93ef14b9944acc70fafe4
2014-06-27 16:23:09 +09:00