Commit Graph

38061 Commits

Author SHA1 Message Date
Adam Powell
b3e411458c Fix a copy/paste bug in Toolbar.
Bug 15868762

Change-Id: Ie2a0c492f9d7baa05d520cd2fee652245ab4b61b
2014-07-01 17:42:34 -07:00
Ruben Brunk
4a61a86b36 camera2: Update camera metadata with legacy mode enum.
Bug: 15116722

- Adds enum for a device running in compatibility mode.  When running
  in compatibility mode, the Camera2 API is emulated using the
  deprecated Camera API, and many capabilities will not be supported.

Change-Id: I94f31775699447a82d53b7f2a6f9fbdc0a5afb3f
2014-07-01 23:59:23 +00:00
Ruben Brunk
3c8fa3b356 camera2: Fix configured surface check in Legacy shim.
Bug: 15116722

- Switch to checking IBinder pointer when making sure
  requested output surface has been configured (same as
  the camera service).
- Needed to use TextureView in TestingCamera2.

Change-Id: If8831a9b2f9ec3e81cc8348e067a57cca2d46440
2014-07-01 23:55:42 +00:00
Martijn Coenen
d46eba18be Merge "Add new IPC for direct Beam invoke." 2014-07-01 16:34:37 +00:00
Martijn Coenen
dbedb4cc0f Add new IPC for direct Beam invoke.
Used by BeamShareActivity when Beam is invoked
through the share menu. Also made these IPCs
one-way as they can run asynchronously.

Bug: 15939863
Change-Id: I7d048947c96c697e6b04bbda2ec3fbf28cccc29b
2014-07-01 23:01:04 +00:00
Sujith Ramakrishnan
cc32bd83e4 Add support for mouse-based text selection.
Incorporate patch from Logitech (donated under AOSP license) to the
framework to add mouse-based text selection to ArrowKeyMovementMethod.

Bug: 14652753

Change-Id: Iab264bb954b72ccedfada763eba8f13ef37a4578
2014-07-01 15:57:45 -07:00
Alan Viverette
d361a4f98b Use touch hotspot in drag-to-open, fix forwarding cancellation
BUG: 14230395
Change-Id: Ibea615bcd6a2e57fca8b49ffea23f0df951d497c
2014-07-01 23:16:49 +00:00
Jeff Davidson
b096bdceaf Add a SCORER_CHANGED broadcast.
Sent whenever the active network scorer is changed.

Bug: 16007033
Change-Id: Ib71e89e2cc98fa424db7e489445ec03edefb6880
2014-07-01 15:43:02 -07:00
Adam Powell
d76008352e Remove ActionBar.LayoutParams MarginLayoutParams constructor
Adding this for L caused some fun issues with source compatibility.
Apps that previously passed another MarginLayoutParams subclass to
ActionBar.LayoutParams' constructor started statically linking to a
constructor overload that did not exist on older platform changes with
no other source changes. In the interests of avoiding these headaches
for developers, remove it.

Bug 15933193

Change-Id: I01cf8dfa2341b9d9629331639433b59352e7e15a
2014-07-01 15:39:28 -07:00
George Mount
009edbb276 Merge "Don't return null from ActivityOptions.makeSceneTransitionAnimation." 2014-07-01 14:40:15 +00:00
George Mount
0b6f3e1afa Don't return null from ActivityOptions.makeSceneTransitionAnimation.
Change-Id: I77c331848eb5f05ac3010fa6ab85ad2a45760ebc
2014-07-01 14:54:07 -07:00
Svetoslav
ff1d65b32f Merge "Reverting change in accessibility focus behavior" 2014-07-01 14:50:43 +00:00
Svetoslav
f159c1a460 Reverting change in accessibility focus behavior
bug:15995066

Change-Id: Ie22f203b9a95c3002188dacc3d753ff5d789ffd9
2014-07-01 14:54:29 -07:00
George Mount
8f7e0bfac2 Merge "Wait 2 frames before hiding shared elements." 2014-07-01 14:40:15 +00:00
George Mount
e678ab6866 Wait 2 frames before hiding shared elements.
Bug 15991516

Because of double and triple buffering, we can't guarantee
that the called Activity will show shared elements prior to
the calling activity hiding them. This forces the called
Activity to wait 2 frames prior to telling the calling activity
to hide its shared elements.

Change-Id: Ia49e71637ea04f8d7f93093abf6f47b00dcc7c06
2014-07-01 20:40:31 +00:00
Yorke Lee
e49dd7dda2 Merge "Clean up SearchSnippetColumns API (1/3)" 2014-07-01 16:28:20 +00:00
Yorke Lee
eaf09493b3 Clean up SearchSnippetColumns API (1/3)
Renamed SearchSnippetColumns to SearchSnippets to be more consistent
with ContactsContract naming conventions (Data, Groups, StatusUpdates, etc).

Fix some stale documentation, add more documentation and examples

Bug: 6948882

Change-Id: I614e8d7506a4a291a57d693043481557c975f7f7
2014-07-01 14:23:52 -07:00
John Reck
7379b5209e Merge "ViewPropAnimRT fixes" 2014-07-01 14:50:43 +00:00
Jorim Jaggi
29db1bd3d6 Merge "Fix jank in TextView.Marquee" 2014-07-01 17:52:42 +00:00
Jorim Jaggi
3aa422033a Fix jank in TextView.Marquee
Use Choreographer animation callbacks to update the scrolling and
make the delta dependent on the time passed since the last update.

Change-Id: If6ce365014e8d32dadfc93bba0d4733050f673f7
2014-07-01 20:15:01 +02:00
Hemant Gupta
8949bfb90c Bluetooth: Support MAP Client role on Bluedroid.
Implementation changes to support MAP client and PBAP client
role on Bluedroid stack.

Change-Id: I1733a67bf5256bd7b181bd5e68e40b476994ebfd
2014-07-01 18:01:27 +00:00
John Reck
a0b13bddb2 ViewPropAnimRT fixes
* Fixes NPE in isNativeInterpolator
 * Fixes null interpolator to mean LinearInterpolator instead of
   the default interpolator which is AccelerateDecelerateInterpolator

 Bug: 15991759

Change-Id: I66ff27154de1e227a07daaebc0519ee3cc0dd38f
2014-07-01 09:39:54 -07:00
Martijn Coenen
1bfc3d6249 Validate AIDs when registered.
Change-Id: Ib7140c30a8a7587f1809f529d3303e69933bb245
2014-07-01 17:37:59 +00:00
Andre Eisenbach
061cfd0049 LE: Fix GATT server documentation to reflect API updates
Change-Id: I21100dd55a7bf9e85a07742f571d5743bad5ece1
2014-07-01 17:16:11 +00:00
Dianne Hackborn
a165e14d2f Merge "Issue #15986092: Add power tracking of flashlight." 2014-07-01 14:40:15 +00:00
Dianne Hackborn
abc7c49913 Issue #15986092: Add power tracking of flashlight.
Not yet hooked up.

Change-Id: Id95e44ecc365e9f38169c0a629b0a48ddb29aa06
2014-07-01 10:02:45 -07:00
Dianne Hackborn
be7c50e0a1 Add network access blocking when in battery save mode.
The network policy manager now monitors battery save mode and,
when in battery save, uses its facility to block access to metered
networks to block access to all networks.  That is, it tells the
network management service that all networks have an (infinite)
quota, and puts various app uids to be restricted under quota
interfaces as appropriate.

This new network blocking needs a new facility to be able to white
list apps, such as GmsCore.  To do this, I refactored the package
manager's permission configuration stuff into a separate SystemConfig
class that can be used by others, and it now has a new tag to
specify package names that should be white-listed for power save
mode.  These are retrieved by the network policy manager and used
to build a whitelist of uids.

The new general config files can now go in system/etc/config,
though currently everything still remains in the permissions dir.

Still left to be done is changing the semantics of what uids are
allowed in this mode, to include all perceptable uids.  (So that we
can still do things like background music playback.)  This will be
done in a follow-on CL.

Change-Id: I9bb7029f61dae62e6236da5ca60765439f8d76d2
2014-07-01 09:22:57 -07:00
John Reck
d907e5b1ef Merge "Fix onTrimMemory for HardwareRenderer" 2014-06-30 22:27:39 +00:00
John Reck
f47a594f52 Fix onTrimMemory for HardwareRenderer
Also fixes detachFunctor possibly drawing after return

 Bug: 15189843
 Bug: 15990672

Change-Id: I64c48cb674c461a8eeaba407b697e09f72c98ce3
2014-06-30 16:36:26 -07:00
George Mount
58bbdbd1f1 Fix targeting transition by transitionName.
Change-Id: I5e51b524a3a249cd2d7dbba3ccb06d0a5ca8fb73
2014-07-01 15:33:12 +00:00
Hector Dearman
a70d1d99de Deprecate the Cookie Sync Manager
The CookieSyncManager is largely useless as the WebView
automatically syncs cookies every 30s (whether you like it
or not). The one method which needs to be saved is sync,
there is no other way to force a sync without this.
We move sync to the CookieManager and rename it to flush
for greater consistency.

Bug: 11060034
Change-Id: I8a14998020eea54f196fc6ed845b09ed69cfd447
2014-07-01 13:12:29 +01:00
Amith Yamasani
374041a63d Merge "Add a method to set a profile owner and active admin at once" 2014-06-26 23:19:11 +00:00
Amith Yamasani
aba4f1b54a Add a method to set a profile owner and active admin at once
This can be used by system apps to register a profile owner during setup

Bug: 15922051
Change-Id: Iee1b5adeb47d7e40ab36df18e3a057d8ee430f46
2014-07-01 15:36:12 +05:30
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
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
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
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