102306 Commits

Author SHA1 Message Date
Romain Guy
daafaff839 am baea5269: Merge "Add TaskManager API" into jb-mr2-dev
* commit 'baea5269b647ee9ee9b2db11625b36482b9c0266':
  Add TaskManager API
2013-03-12 22:16:35 +00:00
Eric Laurent
9105ce744e Merge "audio service: fix regression in startBluetoothSco" into jb-mr2-dev 2013-03-12 22:16:02 +00:00
Shawn Pearce
c2eb8221d5 am 2c91feb9: (-s ours) am c6da8d29: Merge "Remove old show/hide messages on new ime (DO NOT MERGE)" into jb-mr2-dev
* commit '2c91feb9d245cc6db8fcfb0a43461abb83d17663':
  Remove old show/hide messages on new ime (DO NOT MERGE)
2013-03-12 22:14:30 +00:00
Romain Guy
baea5269b6 Merge "Add TaskManager API" into jb-mr2-dev 2013-03-12 22:13:29 +00:00
Shawn Pearce
2c91feb9d2 am c6da8d29: Merge "Remove old show/hide messages on new ime (DO NOT MERGE)" into jb-mr2-dev
* commit 'c6da8d29f288bb457e7e9213398fe1582bfe573c':
  Remove old show/hide messages on new ime (DO NOT MERGE)
2013-03-12 22:10:02 +00:00
kmccormick
e23f97ba6e Doc change: updates to Gestures training class.
Change-Id: I5328a82736472e4a7507709380875ba0c9ef6f8e
2013-03-12 15:07:40 -07:00
Lorenzo Colitti
440662c481 am 7a1d77d2: am 8818d84a: Merge "Unit test routes with interfaces in LinkProperties" into jb-mr2-dev
* commit '7a1d77d217e42ec02d5c9f79924b1009fd2219c2':
  Unit test routes with interfaces in LinkProperties
2013-03-12 22:07:36 +00:00
Shawn Pearce
c6da8d29f2 Merge "Remove old show/hide messages on new ime (DO NOT MERGE)" into jb-mr2-dev 2013-03-12 22:07:03 +00:00
Romain Guy
5dc7fa7096 Add TaskManager API
This API can be used to run arbitrary tasks on a pool of worker
threads. The number of threads is calculated based on the number
of CPU cores available.

The API is made of 3 classes:

TaskManager
      Creates and manages the worker threads.

Task
      Describes the work to be done and the type of the output.
      A task contains a future used to wait for the worker thread
      to be done computing the result of the task.

TaskProcessor
      The processor dispatches tasks to the TaskManager and is
      responsible for performing the computation required by
      each task. A processor will only be asked to process tasks
      sent to the manager through the processor.

A typical use case:

class MyTask: Task<MyType>

class MyProcessor: TaskProcessor<MyType>

TaskManager m = new TaskManager();
MyProcessor p = new MyProcessor(m);
MyTask t = new MyTask();
p.add(t);

// Waits until the result is available
MyType result = t->getResult();

Change-Id: I1fe845ba4c49bb0e1b0627ab147f9a861c8e0749
2013-03-12 15:06:42 -07:00
Lorenzo Colitti
7a1d77d217 am 8818d84a: Merge "Unit test routes with interfaces in LinkProperties" into jb-mr2-dev
* commit '8818d84a3540de6e53e5d82e2112292102574118':
  Unit test routes with interfaces in LinkProperties
2013-03-12 22:06:33 +00:00
Lorenzo Colitti
8818d84a35 Merge "Unit test routes with interfaces in LinkProperties" into jb-mr2-dev 2013-03-12 22:04:52 +00:00
Lorenzo Colitti
1994bc14ab Unit test routes with interfaces in LinkProperties
Change-Id: Ie41a56bc9863ee72f4d7a8f72e436fc57e57b1af
2013-03-12 15:01:05 -07:00
Craig Mautner
274323ce8f Remove old show/hide messages on new ime (DO NOT MERGE)
The previous show/hide messages in the queue were still trying
to be honored even after a new ime was attached.

Fixes bug 8263462.

Change-Id: Iee60dbd1d58542f73aedeac5ccb54cddeb5d5dfe
2013-03-12 14:44:59 -07:00
Eric Laurent
f5a1fc3c0f audio service: fix regression in startBluetoothSco
Commit 2a57ca93 introduced a regression in startBluetoothSco()
where the calling pid was cleared before creating the entry for
the client app. The pid in the entry was always the system server pid
and the SCO client verification logic was broken preventing the activation
of the BT SCO connection.

Change-Id: I4e024b22fceb350f829ff0d8664703faeef7af48
2013-03-12 21:40:25 +00:00
John Reck
6d2679cd3b am 389a543d: am 93f99846: am bd5ee4d3: am 733329a2: Merge "Fix NPE when pasting non-text from Clipboard"
* commit '389a543d61e109ba03dd3d736d4a3e719906342a':
  Fix NPE when pasting non-text from Clipboard
2013-03-12 21:39:11 +00:00
John Reck
389a543d61 am 93f99846: am bd5ee4d3: am 733329a2: Merge "Fix NPE when pasting non-text from Clipboard"
* commit '93f99846df1e00f115c8870eab6ef3df54d1ec6a':
  Fix NPE when pasting non-text from Clipboard
2013-03-12 21:37:52 +00:00
John Reck
93f99846df am bd5ee4d3: am 733329a2: Merge "Fix NPE when pasting non-text from Clipboard"
* commit 'bd5ee4d39c8d7d1fc2c1f94980875f1900880880':
  Fix NPE when pasting non-text from Clipboard
2013-03-12 14:34:29 -07:00
John Reck
bd5ee4d39c am 733329a2: Merge "Fix NPE when pasting non-text from Clipboard"
* commit '733329a2745ce703029b40afaa5dd78c7a5b620c':
  Fix NPE when pasting non-text from Clipboard
2013-03-12 14:29:48 -07:00
Kenny Root
a4fd2fbfae am 358c6ffd: am ae19d2ca: am f3e3a7fd: am 7ad51409: Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey."
* commit '358c6ffdd43df805f5fb19c8d935c1e9220b95e5':
  Switch TLS Channel ID API from ECPrivateKey to PrivateKey.
2013-03-12 20:32:17 +00:00
Daniel Sandler
4e8d867cbd am 865f7f40: am faa4bea4: am 39099fee: am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit '865f7f4098fd3139b1c9e8a4d903187cbc31444c':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 20:32:14 +00:00
Kenny Root
358c6ffdd4 am ae19d2ca: am f3e3a7fd: am 7ad51409: Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey."
* commit 'ae19d2cac826e6b3ac17bc7849e2095c3c2ff27e':
  Switch TLS Channel ID API from ECPrivateKey to PrivateKey.
2013-03-12 20:29:40 +00:00
Daniel Sandler
865f7f4098 am faa4bea4: am 39099fee: am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit 'faa4bea4c07a943170b81b0ce772816eff65ca0a':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 20:29:38 +00:00
Kenny Root
ae19d2cac8 am f3e3a7fd: am 7ad51409: Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey."
* commit 'f3e3a7fd3cc386b69ae3275b829ddd0d137fcac5':
  Switch TLS Channel ID API from ECPrivateKey to PrivateKey.
2013-03-12 13:27:13 -07:00
Daniel Sandler
faa4bea4c0 am 39099fee: am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit '39099feeece6d76b0c68727506609331e7a6b64c':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 13:27:10 -07:00
Kenny Root
f3e3a7fd3c am 7ad51409: Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey."
* commit '7ad514094c8abbea0cc61b72fcaf0e23d6124b0d':
  Switch TLS Channel ID API from ECPrivateKey to PrivateKey.
2013-03-12 13:25:35 -07:00
Daniel Sandler
39099feeec am 1bc1699c: Merge ""[+>" more icon was never shown in PhoneStatusBar"
* commit '1bc1699c313a07693826a8d8b451a2ed72137957':
  "[+>" more icon was never shown in PhoneStatusBar
2013-03-12 13:25:32 -07:00
John Reck
733329a274 Merge "Fix NPE when pasting non-text from Clipboard" 2013-03-12 20:24:14 +00:00
Kenny Root
7ad514094c Merge "Switch TLS Channel ID API from ECPrivateKey to PrivateKey." 2013-03-12 20:05:09 +00:00
Dianne Hackborn
c895be7bc6 Implement limited shared libraries in apks.
You can now declare shared libraries in apks that are
on the system image.  This is like the existing mechanism
of using raw jar files as shared libraries, but since they
are contained in an apk the library can actually be updated
from the Play Store.  And this even (mostly) works.

There are some deliberate limitations on this feature.  A
new shared library *must* be declared by an apk on the system
image.  Installing an update to a system image apk does not
allow you to add new shared libraries; they must be defined
by everything on the base system image.  This allows us to
get rid of a lot of ugly edge cases (shared libraries that were
there disappearing after an update is uninstalled for example)
and give some brakes on apps that happen to be pre-installed
on devices from being able to throw in new shared libraries
after the fact.

In working on this, I ran into a recently introduced bug where
uninstalling updated to system apps would fail.  This was done
to allow for the new restricted users that don't have all
system apps, but conflicts with the existing semantics for
uninstalling system apps.  To fix this I added a new uninstall
flag that lets you switch on the new mode if desired.

Also to implement the desired logic for limitations on declaring
new shared libraries in app updates, I needed to slightly tweak
the initial boot to keep the Package object for hidden system
packages associated with their PackageSetting, so we can look at
it to determine which shared libraries are allowed.  I think
this is probably more right than it was before -- we already
need to parse the package anyway, so we have it, and when you
install an update to a system app we are in this same state
until you reboot anyway.

And having this fixed also allowed me to fix another bug where
we wouldn't grant a new permission to an updated app if its
system image version is updated to request the permission but
its version is still older than whatever is currently installed
as an update.  So that's good.

Also add new sample code showing the implementation of an apk
shared library and a client app using it.

Change-Id: I8ccca8f3c3bffd036c5968e22bd7f8a73e69be22
2013-03-12 12:51:38 -07:00
Daniel Sandler
1bc1699c31 Merge ""[+>" more icon was never shown in PhoneStatusBar" 2013-03-12 19:51:32 +00:00
Mats H Carlsson
cd231432ff "[+>" more icon was never shown in PhoneStatusBar
"[+>" more icon was never show in status bar because
the member variable for this icon was not initialized
from resources. This fix enables "[+>" icon to appear
in status bar when the number of indications in status
bar becomes large.

Bug: 8368569
Change-Id: Ieb3412eed831052d69c0cf63c9b4230c38171e4a
2013-03-12 19:51:07 +00:00
Bjorn Bringert
964e7d2549 Hide VOICE_ASSIST intent DO NOT MERGE
Bug: 8289964
Change-Id: I49874f379647ff4e85402a298b4181923212a0aa
2013-03-12 19:35:57 +00:00
Craig Mautner
b11b1f2679 Remove old show/hide messages on new ime
The previous show/hide messages in the queue were still trying
to be honored even after a new ime was attached.

Fixes bug 8263462.

Change-Id: Ie85369346cd3f843389a8e7837f5d97b56885309
2013-03-12 11:25:54 -07:00
Michael Wright
e8cc96b8f8 Remove unused interface IInputConnectionCallback
Bug: 8276952
Change-Id: I3755df557388bee55f0cc4780adc300672cbe9a1
2013-03-12 11:01:14 -07:00
Andre Eisenbach
3f36660a60 Fixed 32 bit characteristic value assignment
Also fixed link in comment.

Change-Id: I27223b8aadae2fc7c8037abc6396760e23f6f161
2013-03-12 10:53:56 -07:00
Jaikumar Ganesh
bc03a348d7 Add new sensor types.
1. Add uncalibrated gyros and magnetic field sensor.
2. Change max number of events from 3 to 16.
3. Add new APIs for trigger sensors.

Change-Id: I1957d723de2b65c31dadaee7386fd8d51ea2f7e5
2013-03-12 10:50:41 -07:00
Alex Klyubin
ac5eb03a7c Switch TLS Channel ID API from ECPrivateKey to PrivateKey.
This is to accept both the "transparent" and "opaque" ECC private
keys. "Transparent" keys provide structured access to their key
material -- these are instances of ECPrivateKey. "Opaque" private
keys are not required to provide structured (or even any) access to
their key material -- these are instances of PrivateKey.

Change-Id: Ib22e18b45b638b429f994ed965416c753226c4ee
2013-03-12 10:33:13 -07:00
Scott Main
bbc30a032d am 1dc98c5a: am 9725d80a: am 22bcc39b: am 5c748fa5: am 5cb405bc: am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '1dc98c5ac63cc855388f7f1542fd30e9445af284':
  resolve a few doc issues from external reports
2013-03-12 17:20:07 +00:00
Scott Main
1dc98c5ac6 am 9725d80a: am 22bcc39b: am 5c748fa5: am 5cb405bc: am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '9725d80adc7426ea20f3a193fc81dc1e8b8c4b31':
  resolve a few doc issues from external reports
2013-03-12 17:17:41 +00:00
Scott Main
9725d80adc am 22bcc39b: am 5c748fa5: am 5cb405bc: am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '22bcc39be8e7f7ef2b6b40714ae956fbaa5ff5b0':
  resolve a few doc issues from external reports
2013-03-12 10:15:40 -07:00
Scott Main
22bcc39be8 am 5c748fa5: am 5cb405bc: am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '5c748fa5fca06922279d17496ff61d16d3ba3c04':
  resolve a few doc issues from external reports
2013-03-12 10:12:25 -07:00
Scott Main
5c748fa5fc am 5cb405bc: am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '5cb405bcc71fb741f0feb70c71d6ae1fc5e810df':
  resolve a few doc issues from external reports
2013-03-12 10:09:35 -07:00
Scott Main
5cb405bcc7 am 679fe25b: am a15afd2b: resolve a few doc issues from external reports
* commit '679fe25b416f9e558922ea4f1eaa68e0ad0c81f6':
  resolve a few doc issues from external reports
2013-03-12 10:07:36 -07:00
Scott Main
679fe25b41 am a15afd2b: resolve a few doc issues from external reports
* commit 'a15afd2bc4b103146497b521c09c73722a8e3725':
  resolve a few doc issues from external reports
2013-03-12 10:06:03 -07:00
Jean-Michel Trivi
8fac5869d4 am 0e23dd63: am 998b692d: Merge "Keyguard remote control display artwork size" into jb-mr2-dev
* commit '0e23dd635aae47463fa457c43938898babd7e42c':
  Keyguard remote control display artwork size
2013-03-12 16:49:13 +00:00
Jean-Michel Trivi
0e23dd635a am 998b692d: Merge "Keyguard remote control display artwork size" into jb-mr2-dev
* commit '998b692d888765d10827264c953b227439fbf365':
  Keyguard remote control display artwork size
2013-03-12 16:47:19 +00:00
Baligh Uddin
1920949bda Import translations. DO NOT MERGE
Change-Id: Icf4bfb26c4271122bd5ff4ebfbd4bc3e780d6347
Auto-generated-cl: translation import
2013-03-12 09:47:12 -07:00
Jean-Michel Trivi
c1059ca337 am a2bb9327: am 7c8aeadd: Merge "Support multiple IRemoteControlDisplay" into jb-mr2-dev
* commit 'a2bb93273481f8d7633c993c22e8a31ab5930c22':
  Support multiple IRemoteControlDisplay
2013-03-12 16:45:48 +00:00
Jean-Michel Trivi
a2bb932734 am 7c8aeadd: Merge "Support multiple IRemoteControlDisplay" into jb-mr2-dev
* commit '7c8aeadd9a010b79c04261f0a9092942d1db0dc2':
  Support multiple IRemoteControlDisplay
2013-03-12 16:43:47 +00:00
Jean-Michel Trivi
998b692d88 Merge "Keyguard remote control display artwork size" into jb-mr2-dev 2013-03-12 16:42:48 +00:00