OSDN Git Service

android-x86/frameworks-base.git
11 years agoRouting workaround.
Robert Greenwalt [Fri, 5 Apr 2013 23:49:32 +0000 (16:49 -0700)]
Routing workaround.

Change our order of operations so that secondary route table
adds succeed.  Working to understand the why of this too.
bug:8361314

Change-Id: Ie25061eb38c62eaa5e60aa8a488496de49bdbd9d

11 years agoam 405c6e2d: am d3724e02: am 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in...
Scott Main [Tue, 9 Apr 2013 17:50:29 +0000 (10:50 -0700)]
am 405c6e2d: am d3724e02: am 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in sample

* commit '405c6e2d656b628262ff3e3d0b79f58a46c839ec':
  fix xml error in sample

11 years agoam d3724e02: am 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in sample
Scott Main [Tue, 9 Apr 2013 17:47:50 +0000 (10:47 -0700)]
am d3724e02: am 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in sample

* commit 'd3724e02d898b66a5b94cf0f2d3bbfaec5295b32':
  fix xml error in sample

11 years agoam 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in sample
Scott Main [Tue, 9 Apr 2013 17:43:38 +0000 (10:43 -0700)]
am 2568d7f0: am 0bf013fd: am f417fc4a: fix xml error in sample

* commit '2568d7f0cb9ee568309a0347805a12b9e771b689':
  fix xml error in sample

11 years agoam 0bf013fd: am f417fc4a: fix xml error in sample
Scott Main [Tue, 9 Apr 2013 17:41:03 +0000 (10:41 -0700)]
am 0bf013fd: am f417fc4a: fix xml error in sample

* commit '0bf013fdbd11a18c010147aed5899034172feb9a':
  fix xml error in sample

11 years agoam f417fc4a: fix xml error in sample
Scott Main [Tue, 9 Apr 2013 17:38:18 +0000 (10:38 -0700)]
am f417fc4a: fix xml error in sample

* commit 'f417fc4a4f6aa577e0af08776825aa4569638f51':
  fix xml error in sample

11 years agoMerge "Kill processes when permissions are revoked." into jb-mr2-dev
Dianne Hackborn [Tue, 9 Apr 2013 17:38:00 +0000 (17:38 +0000)]
Merge "Kill processes when permissions are revoked." into jb-mr2-dev

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Tue, 9 Apr 2013 17:34:24 +0000 (17:34 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years agofix xml error in sample
Scott Main [Tue, 9 Apr 2013 17:29:00 +0000 (10:29 -0700)]
fix xml error in sample

Change-Id: I59ca15028c52e0be081f4e65308f88e06115f7fd

11 years agoMerge "Update Droid Serif" into jb-mr2-dev
Raph Levien [Tue, 9 Apr 2013 17:10:56 +0000 (17:10 +0000)]
Merge "Update Droid Serif" into jb-mr2-dev

11 years agoMerge "Fix [-] buttons in the notification builder test." into jb-mr2-dev
Daniel Sandler [Tue, 9 Apr 2013 14:34:19 +0000 (14:34 +0000)]
Merge "Fix [-] buttons in the notification builder test." into jb-mr2-dev

11 years agoFix [-] buttons in the notification builder test.
Daniel Sandler [Tue, 9 Apr 2013 05:20:02 +0000 (01:20 -0400)]
Fix [-] buttons in the notification builder test.

(Broken by change I9fae5a4a).

Bug: 8564511
Change-Id: I0d5b65e6678018630c812c5616e9b3f068029e66

11 years agoMerge "Fix janky icon fade-in animation in Recents" into jb-mr2-dev
Michael Jurka [Tue, 9 Apr 2013 06:04:35 +0000 (06:04 +0000)]
Merge "Fix janky icon fade-in animation in Recents" into jb-mr2-dev

11 years agoKill processes when permissions are revoked.
Dianne Hackborn [Tue, 9 Apr 2013 05:28:59 +0000 (22:28 -0700)]
Kill processes when permissions are revoked.

Some permissions are associated with gids, so we need to
kill any running processes if their permission is revoked.
We will do this for any permission being revoked, since
the association between gids and permissions can change
over time.

Change-Id: Ieb7408e032539c4f21eb089d65a7a7e6c289f010

11 years agoFix tests build.
Ying Wang [Tue, 9 Apr 2013 02:02:01 +0000 (19:02 -0700)]
Fix tests build.

Change-Id: I24d65c18018a8d6df6fa3414306fc0d586d4cfa2

11 years agoFix janky icon fade-in animation in Recents
Michael Jurka [Mon, 8 Apr 2013 22:44:00 +0000 (15:44 -0700)]
Fix janky icon fade-in animation in Recents

Change-Id: I15d2274add8903820dac3da0fa47c9e54f6ec97d

11 years agoMerge "Change dropbox tag for native crashes." into jb-mr2-dev
Eric Rowe [Tue, 9 Apr 2013 00:11:51 +0000 (00:11 +0000)]
Merge "Change dropbox tag for native crashes." into jb-mr2-dev

11 years agoMerge "Fix trackball interpretation of precision." into jb-mr2-dev
Jeff Brown [Tue, 9 Apr 2013 00:00:38 +0000 (00:00 +0000)]
Merge "Fix trackball interpretation of precision." into jb-mr2-dev

11 years agoMerge "Queues, queues, queues and input." into jb-mr2-dev
Jeff Brown [Mon, 8 Apr 2013 23:59:24 +0000 (23:59 +0000)]
Merge "Queues, queues, queues and input." into jb-mr2-dev

11 years agoFix trackball interpretation of precision.
Jeff Brown [Mon, 8 Apr 2013 23:44:19 +0000 (16:44 -0700)]
Fix trackball interpretation of precision.

The trackball to dpad synthesis was using the MotionEvent's precision
field to determine a threshold for movement but the calculations
involved did not actually make sense for any value of precision
less than 2.0.  This worked fine before since the InputReader
hardcodes the trackball's precision to 6.

Injected trackball events may have a different precision which can
result in the thresholds being set inappropriately.  For example,
it was not possible to move focus by one unit at a time when
the precision was set to 1.0.

The old code was probably using precision as a way to set a
threshold based on the trackball moving by some minimum number
of physical ticks, in this case 2.  But the code will work just
as well if we set an absolute threshold based on distance
traveled given that the input system is already expected to
normalize the trackball movements before delivering them to the
application.

So stop using precision.

Bug: 8473020
Change-Id: I3c6f7fb1b507f8cf5608b47550e7345fea3352fa

11 years agoMerge "Add support for common encryption" into jb-mr2-dev
Marco Nelissen [Mon, 8 Apr 2013 23:39:29 +0000 (23:39 +0000)]
Merge "Add support for common encryption" into jb-mr2-dev

11 years agoMerge "Check outInfo is not null" into jb-mr2-dev
Kenny Root [Mon, 8 Apr 2013 23:10:50 +0000 (23:10 +0000)]
Merge "Check outInfo is not null" into jb-mr2-dev

11 years agoCheck outInfo is not null
Kenny Root [Mon, 8 Apr 2013 23:05:00 +0000 (16:05 -0700)]
Check outInfo is not null

Only call keystore if outInfo is not null

Bug: 8568820
Change-Id: I24ab625ad02b8510da489911064453de642b6748

11 years agoMerge "Fix off by one in ListView's upward focus traversal" into jb-mr2-dev
Michael Wright [Mon, 8 Apr 2013 22:57:01 +0000 (22:57 +0000)]
Merge "Fix off by one in ListView's upward focus traversal" into jb-mr2-dev

11 years agoMerge "Amend getOverlay() docs for SurfaceView/TextureView" into jb-mr2-dev
Chet Haase [Mon, 8 Apr 2013 22:53:11 +0000 (22:53 +0000)]
Merge "Amend getOverlay() docs for SurfaceView/TextureView" into jb-mr2-dev

11 years agoQueues, queues, queues and input.
Jeff Brown [Fri, 5 Apr 2013 06:04:03 +0000 (23:04 -0700)]
Queues, queues, queues and input.

Redesigned how ViewRootImpl delivers input events to views,
the IME and to native activities to fix several issues.

The prior change to make IME input event delegation use
InputChannels failed to take into account that InputMethodManager
is a singleton attached to the main looper whereas UI may be
attached to any looper.  Consequently interactions with the
InputChannel might occur on the wrong thread.  Fixed this
problem by checking the current thread and posting input
events or callbacks to the correct looper when necessary.

NativeActivity has also been broken for a while because the
default event handling logic for joysticks and touch navigation
was unable to dispatch events back into the native activity.
In particular, this meant that DPad synthesis from touch navigation
would not work in any native activity.  The plan is to fix
this problem by passing all events through ViewRootImpl as usual
then forwarding them to native activity as needed.  This should
greatly simplify IME pre-dispatch and system key handling
and make everything more robust overall.

Fixed issues related to when input events are synthesized.
In particular, added a more robust mechanism to ensure that
synthetic events are canceled appropriately when we discover
that events are no longer being resynthesized (because the
application or IME is handling or dropping them).

The new design is structured as a pipeline with a chain of
responsibility consisting of InputStage objects.  Each InputStage
is responsible for some part of handling each input event
such as dispatching to the view hierarchy or to the IME.
As a stage processes an input event, it has the option of
finishing the event, forwarding the event to the next stage
or handling the event asynchronously.  Some queueing logic
takes care to ensure that events are forwarded downstream in
the correct order even if they are handled out of order
by a given stage.

Cleaned up the InputMethodManager singleton initialization logic
to make it clearer that it must be attached to the main looper.
We don't actually need to pass this looper around.

Deleted the LatencyTimer class since no one uses it and we have
better ways of measuring latency these days using systrace.

Added a hidden helper to Looper to determine whether the current
thread is the indicated Looper thread.

Note: NativeActivity's IME dispatch is broken by this patch.
This will be fixed later in another patch.

Bug: 8473020
Change-Id: Iac2a1277545195a7a0137bbbdf04514c29165c60

11 years agoChange dropbox tag for native crashes.
Eric Rowe [Mon, 8 Apr 2013 22:00:27 +0000 (15:00 -0700)]
Change dropbox tag for native crashes.

Change-Id: Id2738fc758c3d144e5fdd2c7f1c8617dad129338

11 years agoMerge "Implement event logging for intent firewall" into jb-mr2-dev
Ben Gruver [Mon, 8 Apr 2013 21:40:26 +0000 (21:40 +0000)]
Merge "Implement event logging for intent firewall" into jb-mr2-dev

11 years agoFix off by one in ListView's upward focus traversal
Michael Wright [Mon, 8 Apr 2013 21:37:01 +0000 (14:37 -0700)]
Fix off by one in ListView's upward focus traversal

Bug: 7985315
Change-Id: Ic67c8e346d6b51a5cfb05cc7d0c2b145b591b2db

11 years agoMerge "Remove the sender package filter from the intent firewall" into jb-mr2-dev
Ben Gruver [Mon, 8 Apr 2013 21:36:37 +0000 (21:36 +0000)]
Merge "Remove the sender package filter from the intent firewall" into jb-mr2-dev

11 years agoAdd support for common encryption
Marco Nelissen [Mon, 8 Apr 2013 21:28:55 +0000 (14:28 -0700)]
Add support for common encryption

Change-Id: I2d56a6a90dff3ce1c37296934fca01b8a2ca0f89

11 years agoUpdate Droid Serif
Raph Levien [Mon, 8 Apr 2013 21:32:24 +0000 (14:32 -0700)]
Update Droid Serif

This patch updates the Droid Serif fonts to version 20130131. This
fixes bug 6180699 and should expand the range of combining marks
(e.g. Polytonic Greek, African, Canadian aboriginal languages)
significantly.

Change-Id: I31975d0b35f5164b2da9fd7a5df0474aaed3ed5c

11 years agoAmend getOverlay() docs for SurfaceView/TextureView
Chet Haase [Mon, 8 Apr 2013 21:30:31 +0000 (14:30 -0700)]
Amend getOverlay() docs for SurfaceView/TextureView

SurfaceView and TextureView do not currently support overlays
correctly; the docs now reflect this constraint.

Change-Id: I79183c02b51ae4cd14638198d0668b2c2e3e22e1

11 years agoMerge "Update DataUsageStatColumns" into jb-mr2-dev
Yorke Lee [Mon, 8 Apr 2013 21:22:06 +0000 (21:22 +0000)]
Merge "Update DataUsageStatColumns" into jb-mr2-dev

11 years agoMerge "Fix SignalStrength response." into jb-mr2-dev
Wink Saville [Mon, 8 Apr 2013 20:26:02 +0000 (20:26 +0000)]
Merge "Fix SignalStrength response." into jb-mr2-dev

11 years agoMerge "Have audio service clean up new receivers in crashing processes." into jb...
Dianne Hackborn [Mon, 8 Apr 2013 20:09:18 +0000 (20:09 +0000)]
Merge "Have audio service clean up new receivers in crashing processes." into jb-mr2-dev

11 years agoMerge "AppSecurityPermissions: minor UI changes" into jb-mr2-dev
Nick Kralevich [Mon, 8 Apr 2013 20:08:59 +0000 (20:08 +0000)]
Merge "AppSecurityPermissions: minor UI changes" into jb-mr2-dev

11 years agoHave audio service clean up new receivers in crashing processes.
Dianne Hackborn [Fri, 5 Apr 2013 01:50:23 +0000 (18:50 -0700)]
Have audio service clean up new receivers in crashing processes.

The new media button receiver with only a pending intent (no
component name) could be left hanging if the process that
registered it went away.  These semantically need to be tied
to the calling process's lifetime; we now clean them up when
the calling process goes away.

Also added some additional cleanup of media button receivers
when packages change (updated, cleared).

And on top of that, a new "media" command for doing media
things.  Currently lets you send media keys and monitor
remote display data.

Oh and finally added a new BaseCommand base class for
implementing these command line utilities.

Change-Id: Iba1d56f10bab1eec4a94a7bb1d1c2ae614c8bcf5

11 years agoMerge "Awaken dreams on home + recents." into jb-mr2-dev
John Spurlock [Mon, 8 Apr 2013 20:05:50 +0000 (20:05 +0000)]
Merge "Awaken dreams on home + recents." into jb-mr2-dev

11 years agoMerge "HTML5Audio should handle content URI" into jb-mr2-dev
ztenghui [Mon, 8 Apr 2013 19:58:22 +0000 (19:58 +0000)]
Merge "HTML5Audio should handle content URI" into jb-mr2-dev

11 years agoMerge "Always take padding and margins into account Bug #8565842" into jb-mr2-dev
Romain Guy [Mon, 8 Apr 2013 19:57:03 +0000 (19:57 +0000)]
Merge "Always take padding and margins into account Bug #8565842" into jb-mr2-dev

11 years agoAlways take padding and margins into account
Romain Guy [Mon, 8 Apr 2013 17:51:35 +0000 (10:51 -0700)]
Always take padding and margins into account
Bug #8565842

Change-Id: I8ee398b5c36b3011950265eb7e22cc8338f1aeee

11 years agoMerge "Clean up language in forced foreground service notifications." into jb-mr2-dev
Daniel Sandler [Mon, 8 Apr 2013 19:46:01 +0000 (19:46 +0000)]
Merge "Clean up language in forced foreground service notifications." into jb-mr2-dev

11 years agoAwaken dreams on home + recents.
John Spurlock [Mon, 8 Apr 2013 16:59:26 +0000 (12:59 -0400)]
Awaken dreams on home + recents.

Fixes the KEYCODE_HOME case, awakes when home is
started for any reason.

Also awaken when toggling recents (and not locked).

Bug:8557212
Change-Id: I6578ae3971740a03c27596b838d27a5ab9b03752

11 years agoHTML5Audio should handle content URI
ztenghui [Mon, 8 Apr 2013 18:42:53 +0000 (11:42 -0700)]
HTML5Audio should handle content URI

Change-Id: Ib7ef4ad5fdd5b6b051ae32b0968a9bddef5c65ba

11 years agoFix SignalStrength response.
Wink Saville [Mon, 8 Apr 2013 18:35:47 +0000 (11:35 -0700)]
Fix SignalStrength response.

Add makeSignalStrengthFromRilParcel for use by
RIL responseRilSignalStrength.

Bug: 8561333
Change-Id: Ie6eb3b0335e8d7ea114ec70b3fb72e917094632e

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Mon, 8 Apr 2013 17:26:44 +0000 (10:26 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ia150446de499f4272f73b1c5f30bf5adc7b0ae39
Auto-generated-cl: translation import

11 years agoMerge "Update the documentiation for MediaMuxer::writeSampleData()" into jb-mr2-dev
ztenghui [Mon, 8 Apr 2013 17:22:28 +0000 (17:22 +0000)]
Merge "Update the documentiation for MediaMuxer::writeSampleData()" into jb-mr2-dev

11 years agoAppSecurityPermissions: minor UI changes
Nick Kralevich [Mon, 8 Apr 2013 17:02:08 +0000 (10:02 -0700)]
AppSecurityPermissions: minor UI changes

1) Make the box with the permission really go away when a
permission is revoked, not just invisible.
2) Change the order of the buttons, making the negative
button the "revoke" button, and the positive button "ok".

Change-Id: I73694583cbd014d3820f8df6c6b770caae299499

11 years agoClean up language in forced foreground service notifications.
Daniel Sandler [Mon, 8 Apr 2013 16:23:27 +0000 (12:23 -0400)]
Clean up language in forced foreground service notifications.

Old:  [ IC ] %s running
      [ ON ] %s is running

New:  [ IC ] %s is running
      [ ON ] Touch for more information or to stop the app.

Additionally, disallow these misbehaving services from
supplying their own content views; if you attempt to run a
foreground service with icon == 0, this is the notification
you will get, period.

Bug: 8525548
Change-Id: I2bfd7340396ef925885e8c2160a720f9eff07a35

11 years agoSet FLAG_SHOW_LIGHTS if *either* on or off is nonzero.
Daniel Sandler [Thu, 4 Apr 2013 15:01:04 +0000 (11:01 -0400)]
Set FLAG_SHOW_LIGHTS if *either* on or off is nonzero.

Previously they each had to be nonzero, which prevented
using the builder methods to create solid-on LED
notifications.

Change-Id: I30314ec33daa28ee2e1f0b87a184c3540254471c

11 years agoAdd tag "foo" to builder test's notifications.
Daniel Sandler [Thu, 4 Apr 2013 14:58:02 +0000 (10:58 -0400)]
Add tag "foo" to builder test's notifications.

This allows them to be conveniently cleared via adb:

  $ adb shell service call notification 5 \
    s16 com.android.statusbartest \
s16 foo \
i32 <NOTIFICATIONID> \
i32 <USERID>

Bug: 8564511
Change-Id: I9fae5a4a0be64d6707cc06ca938adeb8b3c0b735

11 years agoMake adding views specific to a ViewGroup's overlay
Chet Haase [Tue, 26 Mar 2013 14:55:30 +0000 (07:55 -0700)]
Make adding views specific to a ViewGroup's overlay

Adding views to views (possible with the new Overlay API) is weird.
This change moves the view-management facilities of Overlay to a subclass
that is specific to the overlay returned from ViewGroup.getOverlay().
So now you can add drawables to all view overlays, but only add/remove
views to/from the overlay returned from ViewGroup.getOverlay().

Also, the previous approach of using an interface for Overlay was
changed to classes for both ViewOverlay and ViewGroupOverlay.

Finally, this change makes not handling touch correctly the proper,
and documented, behavior of overlay views. There are various tricky issues
to sort out with input in overlays (including click handling as well as focus)
and we don't want developers starting to use overlays as some kind of general
container hierarchy, so we're purposely constraining overlays to have visual-only
behavior.

Issue #8459085 Overlay needs to handle touch correctly

Change-Id: I207b8dbf528f87c92369d270d8b0a6556826d207

11 years agoImplement event logging for intent firewall
Ben Gruver [Sat, 6 Apr 2013 02:21:19 +0000 (19:21 -0700)]
Implement event logging for intent firewall

Change-Id: If79052d07f3e5c02cfdbd0dd00026b01110045c2

11 years agofix build
Nick Kralevich [Sun, 7 Apr 2013 18:13:16 +0000 (11:13 -0700)]
fix build

Change-Id: I7f3b8a4df84630f40f5a3f19434df86b6287fb75

11 years agoMerge "AppSecurityPermissions: add support for revoking permissions" into jb-mr2-dev
Nick Kralevich [Sun, 7 Apr 2013 17:53:27 +0000 (17:53 +0000)]
Merge "AppSecurityPermissions: add support for revoking permissions" into jb-mr2-dev

11 years agoRevert "Remove AndroidKeyStore from API"
Kenny Root [Mon, 4 Feb 2013 17:35:16 +0000 (09:35 -0800)]
Revert "Remove AndroidKeyStore from API"

This reverts commit ce24985ad636c38b6ee01ec9cdecfb038bfeaeb6.

Change-Id: I02d6492c8db869619694c7209bb37522a7ec5a29

11 years agoAppSecurityPermissions: add support for revoking permissions
Nick Kralevich [Sat, 6 Apr 2013 01:32:07 +0000 (18:32 -0700)]
AppSecurityPermissions: add support for revoking permissions

Add UI support for revoking optional permissions. When the user
taps on an optional permission, two new boxes will appear:

  [Cancel] | [Revoke]

Selecting [Revoke] will revoke the permission from the app.

The [Cancel] / [Revoke] options are only shown for apps which support
optional permissions.

Bug: 8332307
Change-Id: I27e374773747737e3a6d7f48ea1448a0178e3393

11 years agoMerge "Update Roboto to version 1.200311" into jb-mr2-dev
Raph Levien [Fri, 5 Apr 2013 23:53:21 +0000 (23:53 +0000)]
Merge "Update Roboto to version 1.200311" into jb-mr2-dev

11 years agoFix accessibility in action bars and add extra customization
Adam Powell [Fri, 5 Apr 2013 23:27:35 +0000 (16:27 -0700)]
Fix accessibility in action bars and add extra customization

Fix a bug where the content description of the big unified Home/Up
button was not getting set properly.

Add the ability to change the home-as-up glyph from ActionBar.

Add the ability to set a custom action description for the home-as-up
button, useful if the above functionality is used.

Bug 8548229

Change-Id: I0635799772c7234b68247dfc105dce7f11acda32

11 years agoMerge "Remove all public mention of RS graphics from docs." into jb-mr2-dev
Tim Murray [Fri, 5 Apr 2013 22:47:29 +0000 (22:47 +0000)]
Merge "Remove all public mention of RS graphics from docs." into jb-mr2-dev

11 years agoMerge "Specify SDK version for RS graphics tests." into jb-mr2-dev
Tim Murray [Fri, 5 Apr 2013 22:46:05 +0000 (22:46 +0000)]
Merge "Specify SDK version for RS graphics tests." into jb-mr2-dev

11 years agoRemove all public mention of RS graphics from docs.
Tim Murray [Fri, 5 Apr 2013 22:06:43 +0000 (22:06 +0000)]
Remove all public mention of RS graphics from docs.

Change-Id: Ie43b5fb0353149aa9af433b6f5c5141349388ea0

11 years agoSpecify SDK version for RS graphics tests.
Tim Murray [Fri, 5 Apr 2013 22:17:09 +0000 (15:17 -0700)]
Specify SDK version for RS graphics tests.

Change-Id: Ia61c753392432b91f91260a9b8769dfd396c259f

11 years agoMerge "AudioService: do not use virtual call for bt sco" into jb-mr2-dev
Eric Laurent [Fri, 5 Apr 2013 22:14:12 +0000 (22:14 +0000)]
Merge "AudioService: do not use virtual call for bt sco" into jb-mr2-dev

11 years agoMerge "Fix crash in ConfigUpdater when the target dir doesn't exist." into jb-mr2-dev
Geremy Condra [Fri, 5 Apr 2013 21:52:36 +0000 (21:52 +0000)]
Merge "Fix crash in ConfigUpdater when the target dir doesn't exist." into jb-mr2-dev

11 years agoMerge "Pipe through device resolution information" into jb-mr2-dev
Michael Wright [Fri, 5 Apr 2013 21:43:31 +0000 (21:43 +0000)]
Merge "Pipe through device resolution information" into jb-mr2-dev

11 years agoMerge "Use float textures to render gradients when possible" into jb-mr2-dev
Romain Guy [Fri, 5 Apr 2013 21:31:57 +0000 (21:31 +0000)]
Merge "Use float textures to render gradients when possible" into jb-mr2-dev

11 years agoAudioService: do not use virtual call for bt sco
Eric Laurent [Fri, 5 Apr 2013 19:13:54 +0000 (12:13 -0700)]
AudioService: do not use virtual call for bt sco

Do not use startScoUsingVirtualVoiceCall() BluetoothHeadset
API to connect SCO audio. This will cause headsets to act as if an incoming
call was received which is not what we want for voice commands.

Bug 8157702

Change-Id: I271909d4d1f3822758740a8484e3d2d8b4f34c00

11 years agoMerge "Fix AlertDialog in RTL mode" into jb-mr2-dev
Fabrice Di Meglio [Fri, 5 Apr 2013 21:17:50 +0000 (21:17 +0000)]
Merge "Fix AlertDialog in RTL mode" into jb-mr2-dev

11 years agoUse float textures to render gradients when possible
Romain Guy [Fri, 5 Apr 2013 18:17:55 +0000 (11:17 -0700)]
Use float textures to render gradients when possible

Float textures offer better precision for dithering.

In addition this change removes two uniforms from gradient shaders.
These uniforms were used to dither gradients but their value is
a build time constant. Instead we hardcode the value directly in
the shader source at compile time.

Change-Id: I05e9fd3eef93771843bbd91b453274452dfaefee

11 years agoMerge "Correctly manage the lifecycle of IME InputChannels." into jb-mr2-dev
Jeff Brown [Fri, 5 Apr 2013 20:57:01 +0000 (20:57 +0000)]
Merge "Correctly manage the lifecycle of IME InputChannels." into jb-mr2-dev

11 years agoFix crash in ConfigUpdater when the target dir doesn't exist.
Geremy Condra [Fri, 5 Apr 2013 00:48:09 +0000 (17:48 -0700)]
Fix crash in ConfigUpdater when the target dir doesn't exist.

Change-Id: I44ee0e3791938da0bf890fb38cd886330c0ee01d

11 years agoNew NotificationListenerService.
Daniel Sandler [Sat, 23 Mar 2013 01:29:23 +0000 (18:29 -0700)]
New NotificationListenerService.

This is the best and only way for apps to listen for
notifications: create a NotificationListenerService, wait
for the NoMan to bind to you (as a result of the user
checking a box somewhere in Settings and agreeing to a
scary dialog box), and you'll start receiving notification
posted and dismissed callbacks. Your service, while enabled,
will also be able to clear one or all notifications.

Use this power wisely.

This change moves StatusBarNotification out of
com.android.internal into android.service.notification.
[Internal customers, including System UI and early users of
the system-only listener binder API, will need to be
updated.]

Bug: 8199624
Change-Id: I1be46f823d4b3ddc901109ec1e085cd6deb740c2

11 years agoRemove the sender package filter from the intent firewall
Ben Gruver [Fri, 5 Apr 2013 16:56:51 +0000 (09:56 -0700)]
Remove the sender package filter from the intent firewall

Change-Id: I3124c6969984eef646f22216c709bdfb324d6679

11 years agoMerge "Make the min layer go down through all windows" into jb-mr2-dev
Craig Mautner [Fri, 5 Apr 2013 17:28:08 +0000 (17:28 +0000)]
Merge "Make the min layer go down through all windows" into jb-mr2-dev

11 years agoMake the min layer go down through all windows
Craig Mautner [Thu, 28 Mar 2013 22:28:55 +0000 (15:28 -0700)]
Make the min layer go down through all windows

The min layer was set to only show the windows that matched
the specified app token. But that meant when dialogs were
launched it only showed the dialogs and not the background
windows.

Added improved debugging.

fixes bug 8502844.

Change-Id: I26b49568b872801ec9aa088df20317aa752dacd6

11 years agoMerge "Adding new Chomium-WebView property key, and deprecating old key." into jb...
Kristian Monsen [Fri, 5 Apr 2013 17:17:25 +0000 (17:17 +0000)]
Merge "Adding new Chomium-WebView property key, and deprecating old key." into jb-mr2-dev

11 years agoMerge "Add a config updater component for the intent firewall" into jb-mr2-dev
Ben Gruver [Fri, 5 Apr 2013 16:35:25 +0000 (16:35 +0000)]
Merge "Add a config updater component for the intent firewall" into jb-mr2-dev

11 years agoMerge "Import translations. DO NOT MERGE" into jb-mr2-dev
Baligh Uddin [Fri, 5 Apr 2013 16:13:17 +0000 (16:13 +0000)]
Merge "Import translations. DO NOT MERGE" into jb-mr2-dev

11 years agoImport translations. DO NOT MERGE
Baligh Uddin [Fri, 5 Apr 2013 15:50:47 +0000 (08:50 -0700)]
Import translations. DO NOT MERGE

Change-Id: Ifb0d09822f93bb719c48bc3e0108e0f81c592c66
Auto-generated-cl: translation import

11 years agoMerge "Fix AudioTrack.setPlaybackRate() error handling" into jb-mr2-dev
Glenn Kasten [Fri, 5 Apr 2013 15:45:15 +0000 (15:45 +0000)]
Merge "Fix AudioTrack.setPlaybackRate() error handling" into jb-mr2-dev

11 years agoCorrectly manage the lifecycle of IME InputChannels.
Jeff Brown [Fri, 5 Apr 2013 05:45:12 +0000 (22:45 -0700)]
Correctly manage the lifecycle of IME InputChannels.

InputChannels are normally duplicated when sent to a remote process
over Binder but this does not happen if the recipient is running within
the system server process.  This causes problems for KeyGuard because the
InputMethodManagerService may accidentally dispose the channel
that KeyGuard is using.

Fixed the lifecycle of InputChannels that are managed by the IME
framework.  We now return a duplicate of the channel to the application
and then take care to dispose of the duplicate when necessary.
In particular, InputBindResult disposes its InputChannel automatically
when returned through Binder (using PARCELABLE_WRITE_RETURN_VALUE).

Bug: 8493879
Change-Id: I08ec3d13268c76f3b56706b4523508bcefa3be79

11 years agoAdd a config updater component for the intent firewall
Ben Gruver [Thu, 4 Apr 2013 19:05:49 +0000 (12:05 -0700)]
Add a config updater component for the intent firewall

Change-Id: I43f6defa16691099592bf87e75f2d1a732135cf3

11 years agoMerge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev
Jeff Tinker [Fri, 5 Apr 2013 01:16:23 +0000 (01:16 +0000)]
Merge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev

11 years agoPipe through device resolution information
Michael Wright [Tue, 2 Apr 2013 03:56:04 +0000 (20:56 -0700)]
Pipe through device resolution information

Bug: 8424494
Change-Id: Iafeeee0d5cd29342c1cdc86b9616222aaa5d1b94

11 years agoMerge "Error on conflicting <uses-permission>" into jb-mr2-dev
Nick Kralevich [Fri, 5 Apr 2013 00:23:53 +0000 (00:23 +0000)]
Merge "Error on conflicting <uses-permission>" into jb-mr2-dev

11 years agoMerge "aapt: add support for optional uses-permission" into jb-mr2-dev
Nick Kralevich [Fri, 5 Apr 2013 00:22:58 +0000 (00:22 +0000)]
Merge "aapt: add support for optional uses-permission" into jb-mr2-dev

11 years agoError on conflicting <uses-permission>
Nick Kralevich [Thu, 4 Apr 2013 21:38:13 +0000 (14:38 -0700)]
Error on conflicting <uses-permission>

Don't install packages where we have multiple, conflicting
<uses-permission> lines for the same permission.

For example, a package which contains:

<uses-permission android:name="android.permission.INTERNET" android:required="false" />
<uses-permission android:name="android.permission.INTERNET" android:required="true" />

will now fail to install.

In addition, this change slightly refactors the code, and creates a new
parseUsesPermission() method.

Change-Id: I0f4bb8b51dc4a0c5b73458a70f706e19829275d2

11 years agoMerge "First OpenGL ES 3.0 based optimization" into jb-mr2-dev
Romain Guy [Thu, 4 Apr 2013 22:47:53 +0000 (22:47 +0000)]
Merge "First OpenGL ES 3.0 based optimization" into jb-mr2-dev

11 years agoMerge "Reduce the size of dirty invalidates" into jb-mr2-dev
Romain Guy [Thu, 4 Apr 2013 22:47:49 +0000 (22:47 +0000)]
Merge "Reduce the size of dirty invalidates" into jb-mr2-dev

11 years agoReduce the size of dirty invalidates
Romain Guy [Thu, 4 Apr 2013 22:26:04 +0000 (15:26 -0700)]
Reduce the size of dirty invalidates

Remove remnants from times long gone. We don't need to redraw the
union of the previous frame's dirty region and the new dirty
region.

Change-Id: I9fb96f99a6a72c2233f9ca563cf6432a42b2b65b

11 years agoMerge "Traverse layers in update order" into jb-mr2-dev
Chris Craik [Thu, 4 Apr 2013 22:26:59 +0000 (22:26 +0000)]
Merge "Traverse layers in update order" into jb-mr2-dev

11 years agoTraverse layers in update order
Chris Craik [Thu, 4 Apr 2013 21:46:24 +0000 (14:46 -0700)]
Traverse layers in update order

bug:8540150

Layers now require traversal in update order, as it will be child
first, then parent for layer-in-layer

Fixes issue with deferred layer playback not flushing in order, and
thus child not painting before parent

Also fixes DisplayList to only be cleared after flush in deferred list

Change-Id: I2f284d00079cdb20798aeef6a1c94e823940db40

11 years agoMerge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" into...
Fabrice Di Meglio [Thu, 4 Apr 2013 21:16:43 +0000 (21:16 +0000)]
Merge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" into jb-mr2-dev

11 years agoMerge "PackageParser: ignore <uses-permission> android:required on older apps" into...
Nick Kralevich [Thu, 4 Apr 2013 20:27:32 +0000 (20:27 +0000)]
Merge "PackageParser: ignore <uses-permission> android:required on older apps" into jb-mr2-dev

11 years agoPackageParser: ignore <uses-permission> android:required on older apps
Nick Kralevich [Thu, 4 Apr 2013 20:19:10 +0000 (13:19 -0700)]
PackageParser: ignore <uses-permission> android:required on older apps

Don't honor <uses-permission android:required="false"> on older apps.
Lots of apps in the wild are improperly using this, and we don't
want to break them.

Bug: 8528162
Change-Id: I6e0a10bc9feac58d13ef624239c6b91e9fc34590

11 years agoFirst OpenGL ES 3.0 based optimization
Romain Guy [Thu, 4 Apr 2013 19:27:54 +0000 (12:27 -0700)]
First OpenGL ES 3.0 based optimization

This change uses a new OpenGL ES 3.0 feature to upload less data when
the font cache needs to be update. This can result in significant
performance improvements on device with large textures or with locales
that use a lot of glyphs (CJK for instance.)

This change also fixes various unpack alignment issues. The unpack
alignment, as well as the unpack row length, is not texture specific
but a global state that affect all glTex/SubImage2D calls. Some of
them were missing the appropriate glPixelStorei() call. This could
result in corrupted textures.

Change-Id: Iefb429d4d0d0b4e0faeadf27daafee6d30a21d85

11 years agoMerge "Adding small animation features" into jb-mr2-dev
Chet Haase [Thu, 4 Apr 2013 18:24:46 +0000 (18:24 +0000)]
Merge "Adding small animation features" into jb-mr2-dev

11 years agoAdding small animation features
Chet Haase [Tue, 2 Apr 2013 22:10:58 +0000 (15:10 -0700)]
Adding small animation features

RectEvaluator is useful when animating object bounds.
The other change is a hidden API that allows temporary suspension
of layout, useful for animations which need to animate view bounds
without conflicting with layout passes that might happen in the middle
of the animation.

Change-Id: I3dc08cb6ec455dfa3409e825506b218d3ea63d7a