103169 Commits

Author SHA1 Message Date
Daniel Sandler
29211d3a16 am 5feceebb: New NotificationListenerService.
* commit '5feceebb892d4cb5777cea3c6174b206705d456b':
  New NotificationListenerService.
2013-04-05 12:58:43 -07:00
Daniel Sandler
5feceebb89 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
2013-04-05 19:54:44 +00:00
Craig Mautner
d339818d9a am bab9687e: Merge "Make the min layer go down through all windows" into jb-mr2-dev
* commit 'bab9687e6473072d6ff4f7ea5a7b21bcfbf95744':
  Make the min layer go down through all windows
2013-04-05 10:31:35 -07:00
Craig Mautner
bab9687e64 Merge "Make the min layer go down through all windows" into jb-mr2-dev 2013-04-05 17:28:08 +00:00
Craig Mautner
4238e3e4b5 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
2013-04-05 10:26:19 -07:00
Kristian Monsen
91128afa95 am 4ac0462e: Merge "Adding new Chomium-WebView property key, and deprecating old key." into jb-mr2-dev
* commit '4ac0462e7121c89f5cd76136fda7f14874dfd787':
  Adding new Chomium-WebView property key, and deprecating old key.
2013-04-05 10:22:46 -07:00
Kristian Monsen
4ac0462e71 Merge "Adding new Chomium-WebView property key, and deprecating old key." into jb-mr2-dev 2013-04-05 17:17:25 +00:00
Ben Gruver
a1607a8c62 am 65f420ec: Merge "Add a config updater component for the intent firewall" into jb-mr2-dev
* commit '65f420ec98f451cb17e55c6ace3f249d73b33399':
  Add a config updater component for the intent firewall
2013-04-05 09:39:11 -07:00
Ben Gruver
65f420ec98 Merge "Add a config updater component for the intent firewall" into jb-mr2-dev 2013-04-05 16:35:26 +00:00
Baligh Uddin
5b8f221b15 am f0a79e31: Merge "Import translations. DO NOT MERGE" into jb-mr2-dev
* commit 'f0a79e31d334e79c738e6c7a5e20ff06abfd142d':
  Import translations. DO NOT MERGE
2013-04-05 09:17:47 -07:00
Baligh Uddin
f0a79e31d3 Merge "Import translations. DO NOT MERGE" into jb-mr2-dev 2013-04-05 16:13:17 +00:00
Baligh Uddin
1cbe12157f Import translations. DO NOT MERGE
Change-Id: Ifb0d09822f93bb719c48bc3e0108e0f81c592c66
Auto-generated-cl: translation import
2013-04-05 08:50:47 -07:00
Glenn Kasten
90771cbaed am 564c866b: Merge "Fix AudioTrack.setPlaybackRate() error handling" into jb-mr2-dev
* commit '564c866bdfa0a415bfd34722767836add1517951':
  Fix AudioTrack.setPlaybackRate() error handling
2013-04-05 08:49:16 -07:00
Glenn Kasten
564c866bdf Merge "Fix AudioTrack.setPlaybackRate() error handling" into jb-mr2-dev 2013-04-05 15:45:15 +00:00
Jeff Brown
ca5ecdc2fe am 9658de2d: Merge "Add new physical keyboard layouts."
* commit '9658de2df79f6472dd0728d50074e27a3553637d':
  Add new physical keyboard layouts.
2013-04-05 03:28:02 -07:00
Jeff Brown
9658de2df7 Merge "Add new physical keyboard layouts." 2013-04-05 09:39:49 +00:00
Ben Gruver
633dc9bcef Add a config updater component for the intent firewall
Change-Id: I43f6defa16691099592bf87e75f2d1a732135cf3
2013-04-04 19:46:22 -07:00
Jeff Tinker
72e2307c6a am 1e0f36cf: Merge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev
* commit '1e0f36cffd8a4399fcd12e25bddde4544992bcb2':
  Implement async event callout from drm plugin to Java app
2013-04-04 18:23:10 -07:00
Jeff Tinker
1e0f36cffd Merge "Implement async event callout from drm plugin to Java app" into jb-mr2-dev 2013-04-05 01:16:23 +00:00
Nick Kralevich
1fdaace1b1 am 80fdc962: Merge "Error on conflicting <uses-permission>" into jb-mr2-dev
* commit '80fdc9624e6d53a78031bf99d34e7c01d53ad66e':
  Error on conflicting <uses-permission>
2013-04-04 17:27:44 -07:00
Nick Kralevich
ecc5b43635 am 745a42bb: Merge "aapt: add support for optional uses-permission" into jb-mr2-dev
* commit '745a42bbb9db8d54af5381ef5fe41828bf6fc352':
  aapt: add support for optional uses-permission
2013-04-04 17:27:42 -07:00
Nick Kralevich
80fdc9624e Merge "Error on conflicting <uses-permission>" into jb-mr2-dev 2013-04-05 00:24:40 +00:00
Nick Kralevich
745a42bbb9 Merge "aapt: add support for optional uses-permission" into jb-mr2-dev 2013-04-05 00:23:11 +00:00
Nick Kralevich
73f2d3c79e 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
2013-04-04 17:12:00 -07:00
Romain Guy
21af446ce9 am a151ef8c: Merge "First OpenGL ES 3.0 based optimization" into jb-mr2-dev
* commit 'a151ef8c667a52d9fae28c09f780784f19bdb039':
  First OpenGL ES 3.0 based optimization
2013-04-04 15:57:21 -07:00
Romain Guy
9ff408c17b am faec826b: Merge "Reduce the size of dirty invalidates" into jb-mr2-dev
* commit 'faec826bd6051e41e1299cd14d580a4f50f6fe97':
  Reduce the size of dirty invalidates
2013-04-04 15:53:36 -07:00
Romain Guy
a151ef8c66 Merge "First OpenGL ES 3.0 based optimization" into jb-mr2-dev 2013-04-04 22:51:38 +00:00
Romain Guy
faec826bd6 Merge "Reduce the size of dirty invalidates" into jb-mr2-dev 2013-04-04 22:47:49 +00:00
Chris Craik
233f67302e am de4f8c38: Merge "Traverse layers in update order" into jb-mr2-dev
* commit 'de4f8c3872c6284605c168687c69ebfa72ea49d2':
  Traverse layers in update order
2013-04-04 15:32:54 -07:00
Romain Guy
e55945e219 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
2013-04-04 15:29:09 -07:00
Chris Craik
de4f8c3872 Merge "Traverse layers in update order" into jb-mr2-dev 2013-04-04 22:27:00 +00:00
Chris Craik
1206b9bba9 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
2013-04-04 14:55:43 -07:00
Fabrice Di Meglio
378b7b7bc7 am 5a78b1b2: Merge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" into jb-mr2-dev
* commit '5a78b1b20d1f137f867bd1dba76377a41af1af18':
  Fix for bug #8146846 Phone App should be mirrored for RTL languages
2013-04-04 14:22:35 -07:00
Fabrice Di Meglio
5a78b1b20d Merge "Fix for bug #8146846 Phone App should be mirrored for RTL languages" into jb-mr2-dev 2013-04-04 21:16:43 +00:00
Nick Kralevich
2c0283f5d1 am b2c3aa8e: Merge "PackageParser: ignore <uses-permission> android:required on older apps" into jb-mr2-dev
* commit 'b2c3aa8e322a4c08e3aca3a877da3732ec93e042':
  PackageParser: ignore <uses-permission> android:required on older apps
2013-04-04 13:32:58 -07:00
Nick Kralevich
b2c3aa8e32 Merge "PackageParser: ignore <uses-permission> android:required on older apps" into jb-mr2-dev 2013-04-04 20:27:32 +00:00
Nick Kralevich
38f130e19a 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
2013-04-04 13:19:10 -07:00
Romain Guy
0908764b2b 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
2013-04-04 12:27:54 -07:00
Chet Haase
98f69881ce am 77d94957: Merge "Adding small animation features" into jb-mr2-dev
* commit '77d94957d793aba16a1352d25d5555bf59fe74e7':
  Adding small animation features
2013-04-04 11:30:31 -07:00
Chet Haase
77d94957d7 Merge "Adding small animation features" into jb-mr2-dev 2013-04-04 18:24:46 +00:00
Adam Powell
2987c218e3 am 728827ff: Merge "Uphold common ordering expectations around action bar Home/Up dispatch" into jb-mr2-dev
* commit '728827ff472b72ed7a86971ed8e35a01ce5bc8bf':
  Uphold common ordering expectations around action bar Home/Up dispatch
2013-04-04 11:05:31 -07:00
Chet Haase
b989502e5c 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
2013-04-04 11:00:07 -07:00
Romain Guy
ae74f59856 am eaadd123: Merge "Add internal API to query GL version number" into jb-mr2-dev
* commit 'eaadd123a7d7b0a02046db33e882ddcef33e1a49':
  Add internal API to query GL version number
2013-04-04 10:58:33 -07:00
Adam Powell
728827ff47 Merge "Uphold common ordering expectations around action bar Home/Up dispatch" into jb-mr2-dev 2013-04-04 17:58:27 +00:00
Romain Guy
eaadd123a7 Merge "Add internal API to query GL version number" into jb-mr2-dev 2013-04-04 17:53:06 +00:00
Adam Powell
8c16aa9fa2 Uphold common ordering expectations around action bar Home/Up dispatch
Some apps aren't particularly happy if a stray key event is dispatched
to a newly created window before its menu is prepared, causing the
action bar's Home/Up event to be dispatched. Ignore these clicks on
the Home/Up button before the menu goes through its initial prepare
step.

Note that it is still possible (and valid!) for Home/Up to be
dispatched even if the app chose to return false from
onCreateOptionsMenu or similar.

Bug 7085070

Change-Id: If4b7d5f8c5a08ce8a094f1919347604d78ddedfb
2013-04-04 10:51:09 -07:00
Romain Guy
df1dc28ba0 Add internal API to query GL version number
Change-Id: Idc02efc237b8e97445a9bab05c291bf193c7f279
2013-04-04 10:50:48 -07:00
Victoria Lease
1e2c967b16 am 8712e4cc: Merge "use libphonenumber for Linkify.PHONE_NUMBER" into jb-mr2-dev
* commit '8712e4cc4a08f9d54013e96cc2420637c2114f08':
  use libphonenumber for Linkify.PHONE_NUMBER
2013-04-04 07:47:35 -07:00
Victoria Lease
8712e4cc4a Merge "use libphonenumber for Linkify.PHONE_NUMBER" into jb-mr2-dev 2013-04-04 14:40:52 +00:00
Victoria Lease
430fc97e7e use libphonenumber for Linkify.PHONE_NUMBER
This commit replaces a regex pattern match for Linkify.PHONE_NUMBER
with a call to libphonenumber's PhoneNumberUtil.findNumbers().

Bug: 5533245
Change-Id: I0e0563b241fb62e77d7f49e4a8484c6b0685dd8f
2013-04-04 07:38:24 -07:00