102587 Commits

Author SHA1 Message Date
Jeff Brown
bf978c3448 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
2013-04-05 15:37:32 -07:00
Daniel Sandler
0983cb91e6 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 15:37:22 -07:00
Nick Kralevich
9c48aae04b 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 16:27:48 -07:00
Adam Powell
5ecacd667c 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 16:27:39 -07:00
The Android Automerger
2ca9536e91 merge in jb-mr2-release history after reset to jb-mr2-dev 2013-04-04 05:55:35 -07:00
Jeff Sharkey
9059d3775a Merge "Nuke heavy parts of notification before archiving." into jb-mr2-dev 2013-04-04 06:09:35 +00:00
Ying Wang
0fa30372c7 Fix doc build.
Change-Id: I954a45866d968b0571040ba99cc93b818d02aeb5
2013-04-03 22:57:31 -07:00
Matthew Xie
26cd4d658f Merge "Change BluetoothGattCallback methods argument from BluetoothDevice to BluetoothGatt" into jb-mr2-dev 2013-04-04 03:16:40 +00:00
kmccormick
fb9a9713f4 am 614c155f: am f64ad28f: am 15ebf622: am f614d536: am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit '614c155fc6e4c3e83b152398df0e628d7a7f4051':
  Doc update: clean up text and code snippets
2013-04-03 18:45:29 -07:00
kmccormick
614c155fc6 am f64ad28f: am 15ebf622: am f614d536: am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit 'f64ad28f6b3c56c054f938680c58b69cf7237b2c':
  Doc update: clean up text and code snippets
2013-04-03 18:41:54 -07:00
kmccormick
f64ad28f6b am 15ebf622: am f614d536: am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit '15ebf622de39e1a8c7d8855f5b4ede35039a2b2b':
  Doc update: clean up text and code snippets
2013-04-03 18:38:05 -07:00
kmccormick
15ebf622de am f614d536: am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit 'f614d53664b78f0fb386bbea93f4513c92786ff1':
  Doc update: clean up text and code snippets
2013-04-03 18:35:46 -07:00
kmccormick
f614d53664 am e4922f28: Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs
* commit 'e4922f28b4d3c1f6ff166a6e5d5849c8533562ea':
  Doc update: clean up text and code snippets
2013-04-03 18:32:36 -07:00
kmccormick
e4922f28b4 Merge "Doc update: clean up text and code snippets" into jb-mr1.1-docs 2013-04-04 01:28:53 +00:00
kmccormick
fad80f7e53 Doc update: clean up text and code snippets
"Bug: 6942838"

Change-Id: I496cbcd4b6236b5bc8a41484890f96721ba598a0
2013-04-03 18:26:30 -07:00
Matthew Xie
33ec9840c7 Change BluetoothGattCallback methods argument from BluetoothDevice to BluetoothGatt
Change name of BluetoothDevice#connectGattServer to BluetoothDevice#connectGatt
Add BluetoothGatt#getDevice to retrieve device from BluetoothGatt
Add BluetoothGatt#connect() to reconnect back to the server.
Make BluetoothGatt#close() public to clean up/unregister callback
Add BluetoothDevice.getType() to return int of
bug 8529188

Change-Id: Iebd9ac68cc7a64c43972e617dd3068f66c8ea0b2
2013-04-03 18:20:13 -07:00
kmccormick
9b9c895774 am b2961bd6: am 8f662f12: am 026625ff: am 72146342: am e40b0810: Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs
* commit 'b2961bd6833697baac52888765fe8518133f489e':
  Doc update: typo in widget design doc
2013-04-03 18:16:32 -07:00
kmccormick
b2961bd683 am 8f662f12: am 026625ff: am 72146342: am e40b0810: Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs
* commit '8f662f125edf393943fa7cceaf4758aae0534841':
  Doc update: typo in widget design doc
2013-04-03 18:12:48 -07:00
kmccormick
8f662f125e am 026625ff: am 72146342: am e40b0810: Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs
* commit '026625ffd5f256997f5bda87d39afe10152f5a9e':
  Doc update: typo in widget design doc
2013-04-03 18:08:32 -07:00
kmccormick
e10b600d5d am 984f94ee: am f29ca256: am 57b73b4a: am 72da7af6: am b461a13f: Merge "Doc update: unterminated code tags" into jb-mr1.1-docs
* commit '984f94ee4c4ef0196d9b2c149d0a42f20b72bebf':
  Doc update: unterminated code tags
2013-04-03 18:06:40 -07:00
kmccormick
026625ffd5 am 72146342: am e40b0810: Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs
* commit '72146342cbe9ac1e1efffe90fa64d7f4026cf359':
  Doc update: typo in widget design doc
2013-04-03 18:06:02 -07:00
kmccormick
72146342cb am e40b0810: Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs
* commit 'e40b0810d9200c3de7e75ed3d311c8697bccd0a3':
  Doc update: typo in widget design doc
2013-04-03 18:03:31 -07:00
kmccormick
984f94ee4c am f29ca256: am 57b73b4a: am 72da7af6: am b461a13f: Merge "Doc update: unterminated code tags" into jb-mr1.1-docs
* commit 'f29ca256a4340a3d550d2c4a39a2e6a29a3ce850':
  Doc update: unterminated code tags
2013-04-03 18:03:00 -07:00
kmccormick
f29ca256a4 am 57b73b4a: am 72da7af6: am b461a13f: Merge "Doc update: unterminated code tags" into jb-mr1.1-docs
* commit '57b73b4a1d6ea84ae42c407ecb258829ab8dfa2c':
  Doc update: unterminated code tags
2013-04-03 18:00:11 -07:00
kmccormick
e40b0810d9 Merge "Doc update: typo in widget design doc" into jb-mr1.1-docs 2013-04-04 00:59:09 +00:00
kmccormick
57b73b4a1d am 72da7af6: am b461a13f: Merge "Doc update: unterminated code tags" into jb-mr1.1-docs
* commit '72da7af68a86e61281ba0af0e159fb480913ae74':
  Doc update: unterminated code tags
2013-04-03 17:58:30 -07:00
kmccormick
68f73a15e1 Doc update: typo in widget design doc
"Bug: 7042997"

Change-Id: I89d60c42bb846514ad6792fb4a901698128a21b6
2013-04-03 17:57:57 -07:00
kmccormick
72da7af68a am b461a13f: Merge "Doc update: unterminated code tags" into jb-mr1.1-docs
* commit 'b461a13f252e3888b8614a8f363f34731274e87e':
  Doc update: unterminated code tags
2013-04-03 17:55:50 -07:00
kmccormick
b461a13f25 Merge "Doc update: unterminated code tags" into jb-mr1.1-docs 2013-04-04 00:52:26 +00:00
kmccormick
43d5abbf03 Doc update: unterminated code tags
"Bug: 7250069"

Change-Id: I4c3eca8eacad6d0aced9f38788726ba95b914d5d
2013-04-03 17:43:44 -07:00
kmccormick
c0425eecbd am ea19228d: am 69b7a1cb: am 2456a3fa: am 7c4b45ec: am 7f932e88: Merge "Doc update: getString -> getInt" into jb-mr1.1-docs
* commit 'ea19228daabf42b4aa30d0b43638ddd5a4e3d6d5':
  Doc update: getString -> getInt
2013-04-03 17:37:20 -07:00
kmccormick
ea19228daa am 69b7a1cb: am 2456a3fa: am 7c4b45ec: am 7f932e88: Merge "Doc update: getString -> getInt" into jb-mr1.1-docs
* commit '69b7a1cb9a75374867f9d13117312335f11fe593':
  Doc update: getString -> getInt
2013-04-03 17:33:59 -07:00
kmccormick
69b7a1cb9a am 2456a3fa: am 7c4b45ec: am 7f932e88: Merge "Doc update: getString -> getInt" into jb-mr1.1-docs
* commit '2456a3fa3871c45378d2ad35d986cc9fa68bb5ed':
  Doc update: getString -> getInt
2013-04-03 17:31:38 -07:00
kmccormick
2456a3fa38 am 7c4b45ec: am 7f932e88: Merge "Doc update: getString -> getInt" into jb-mr1.1-docs
* commit '7c4b45ec0ede9b485446367ead5c54fac734c26a':
  Doc update: getString -> getInt
2013-04-03 17:29:35 -07:00
kmccormick
7c4b45ec0e am 7f932e88: Merge "Doc update: getString -> getInt" into jb-mr1.1-docs
* commit '7f932e88d61b977be48e2f6157f8de64c89400d9':
  Doc update: getString -> getInt
2013-04-03 17:26:42 -07:00
kmccormick
7f932e88d6 Merge "Doc update: getString -> getInt" into jb-mr1.1-docs 2013-04-04 00:23:30 +00:00
kmccormick
fa226b1de9 Doc update: getString -> getInt
"Bug: 7426857"

Change-Id: I0535b38f57c21a1951f45f428ca327f2cbdcb50a
2013-04-03 17:20:57 -07:00
Jeff Brown
e8cde4cbb9 Clear mCurSender when mCurChannel is modified.
This fixed an issue where an InputEventSender might outlive
its usefulness and continue to be used well after it should
have been disposed or recreated.

Also improves the queue management somewhat.

Bug: 8493879
Change-Id: I7e0b6a3c43cbe72f8762991f5d36560feebd214b
2013-04-03 17:03:34 -07:00
Jeff Brown
41c076715d Merge "Clear mCurSender when mCurChannel is modified." into jb-mr2-dev 2013-04-03 23:59:56 +00:00
Ben Gruver
8c3ee9d50a Merge "Initial implementation of IntentFirewall functionality" into jb-mr2-dev 2013-04-03 23:36:22 +00:00
Jeff Sharkey
0f8e8b03eb Merge "Warn when exposing file:// Uris beyond a process." into jb-mr2-dev 2013-04-03 23:28:07 +00:00
Nick Kralevich
0d17aaa543 Merge "Grant optional permissions by default for system apps." into jb-mr2-dev 2013-04-03 23:26:28 +00:00
Nick Kralevich
60792852c8 Grant optional permissions by default for system apps.
For pre-installed system apps, automatically grant all optional
permissions.

Change-Id: I99bb320a0bbaa9873baeb63655556fe0fae6f011
2013-04-03 16:17:06 -07:00
Jean-Baptiste Queru
9ce89835da Update list of all audio files.
This adds a script that can generate the list from the other
makefiles.

This also regenerates the list.

Bug: 6336895
Change-Id: If1546c4a3f5b1f0d7c3ca79d29383e9843b2a89d
2013-04-03 15:36:52 -07:00
kmccormick
f81e4b4745 am 43644aa1: am 23af4fff: am 3f000e58: am 82c01b09: am 28cb2024: Merge "Doc update: it\'s -> its" into jb-mr1.1-docs
* commit '43644aa1ead4e5219cff8a81f0818265b2b1eb28':
  Doc update: it's -> its
2013-04-03 15:31:00 -07:00
kmccormick
43644aa1ea am 23af4fff: am 3f000e58: am 82c01b09: am 28cb2024: Merge "Doc update: it\'s -> its" into jb-mr1.1-docs
* commit '23af4fffba3c9638d3fb7ffbaa50b09b510fd568':
  Doc update: it's -> its
2013-04-03 15:28:04 -07:00
kmccormick
23af4fffba am 3f000e58: am 82c01b09: am 28cb2024: Merge "Doc update: it\'s -> its" into jb-mr1.1-docs
* commit '3f000e58af4d8da4fd62feab28424a8eac9434ec':
  Doc update: it's -> its
2013-04-03 15:24:53 -07:00
kmccormick
3f000e58af am 82c01b09: am 28cb2024: Merge "Doc update: it\'s -> its" into jb-mr1.1-docs
* commit '82c01b09c8b0db759a3271e5b20e1a565491e3b7':
  Doc update: it's -> its
2013-04-03 15:22:02 -07:00
kmccormick
82c01b09c8 am 28cb2024: Merge "Doc update: it\'s -> its" into jb-mr1.1-docs
* commit '28cb20241bd3a31957cb034dc586eadee002ffbc':
  Doc update: it's -> its
2013-04-03 15:18:54 -07:00
kmccormick
28cb20241b Merge "Doc update: it's -> its" into jb-mr1.1-docs 2013-04-03 22:14:30 +00:00