101912 Commits

Author SHA1 Message Date
Bjorn Bringert
133e2db873 Merge "Hide VOICE_ASSIST intent DO NOT MERGE" into jb-mr2-dev 2013-03-13 13:28:01 +00:00
Jim Miller
8f4772feb4 am 86277467: Merge "Prevent momentary switch of keyguard to landscape" into jb-mr2-dev
* commit '86277467eec5e269328364e91abe164991653635':
  Prevent momentary switch of keyguard to landscape
2013-03-13 02:05:35 +00:00
Jim Miller
86277467ee Merge "Prevent momentary switch of keyguard to landscape" into jb-mr2-dev 2013-03-13 02:03:28 +00:00
Jim Miller
450a3a1697 Fix bug where Keyguard's emergencydialer wasn't being launched with a userid.
Fixes bug 8374423

Change-Id: Iafbcefa431105202b68b3444cb1b42271fe0ccda
2013-03-12 18:54:44 -07:00
Justin Koh
c631feed18 am c0ce7eeb: Add a minimum size for the event pools.
* commit 'c0ce7eeb481540e24bc45f52e604df923c507043':
  Add a minimum size for the event pools.
2013-03-13 01:49:48 +00:00
Jim Miller
8e26cd8687 Prevent momentary switch of keyguard to landscape
This fixes a bug where keyguard was created without setting
the preferred orientation.  The result is it would temporarily
assume the orientation of the device after being hidden.

The fix sets the flag when the keyguard view hierarchy is created
rather than when visibility changes.

Fixes bug 8124979

Change-Id: Ic54a185e4f51f79f2bb7fbc5ffc6992641e89132
2013-03-12 18:45:28 -07:00
Mathias Agopian
4a05f43698 remove uses of Surface in favor of IGraphicBufferProducer
Change-Id: I2ec590eed03c76a084ee6b0af362a3ca6476bf9f
2013-03-12 18:43:34 -07:00
Justin Koh
c0ce7eeb48 Add a minimum size for the event pools.
Add a minimum size for the event pools for devices which don't have sensors.
Otherwise the system server crash loops on boot.

Change-Id: Ic51c6fc26c8779d9f435f358d4274148a2ddbfb3
2013-03-12 18:06:35 -07:00
Jaikumar Ganesh
f667b7a7f9 am 6e544fd4: Remove spurious @Override.
* commit '6e544fd4ca82a3f415c4cf6ca70eedea5112015e':
  Remove spurious @Override.
2013-03-13 00:06:10 +00:00
Jaikumar Ganesh
6e544fd4ca Remove spurious @Override.
Change-Id: Idd468be5c05bcdf397c6ba02a902c4ef7719fca8
2013-03-12 17:00:27 -07:00
Matthew Xie
86b00416e8 am d6c87ccd: Merge "Fixed 32 bit characteristic value assignment" into jb-mr2-dev
* commit 'd6c87ccde6722c7dedd05a18f30d8634893e10ee':
  Fixed 32 bit characteristic value assignment
2013-03-12 23:18:12 +00:00
Matthew Xie
d6c87ccde6 Merge "Fixed 32 bit characteristic value assignment" into jb-mr2-dev 2013-03-12 23:16:02 +00:00
Michael Wright
d1bb4d4be2 am 999c2a69: Merge "Remove unused interface IInputConnectionCallback" into jb-mr2-dev
* commit '999c2a69b4c881b898555e8d84b1b38e276a65c0':
  Remove unused interface IInputConnectionCallback
2013-03-12 23:12:18 +00:00
Michael Wright
999c2a69b4 Merge "Remove unused interface IInputConnectionCallback" into jb-mr2-dev 2013-03-12 23:09:39 +00:00
Dianne Hackborn
0c42b58041 am 53149acf: Merge "Implement limited shared libraries in apks." into jb-mr2-dev
* commit '53149acf7bfe262ff8764351d35af247fcdc4ef0':
  Implement limited shared libraries in apks.
2013-03-12 23:08:47 +00:00
Shawn Pearce
c129d78eda am d665b495: Merge "Add new sensor types." into jb-mr2-dev
* commit 'd665b49518d1952c2c32825782ff117a13bc7484':
  Add new sensor types.
2013-03-12 23:05:21 +00:00
Dianne Hackborn
53149acf7b Merge "Implement limited shared libraries in apks." into jb-mr2-dev 2013-03-12 23:03:59 +00:00
Shawn Pearce
d665b49518 Merge "Add new sensor types." into jb-mr2-dev 2013-03-12 23:01:53 +00:00
kmccormick
d3458de9a6 am adfd7c51: am 00707306: am 37fc02be: am 61f13cd8: am ae657a05: am e23f97ba: Doc change: updates to Gestures training class.
* commit 'adfd7c51981edcda404baeaa19fb388ad389e367':
  Doc change: updates to Gestures training class.
2013-03-12 22:39:40 +00:00
kmccormick
adfd7c5198 am 00707306: am 37fc02be: am 61f13cd8: am ae657a05: am e23f97ba: Doc change: updates to Gestures training class.
* commit '00707306e28bbe8aac52dc07154d658a322a4985':
  Doc change: updates to Gestures training class.
2013-03-12 15:36:59 -07:00
kmccormick
00707306e2 am 37fc02be: am 61f13cd8: am ae657a05: am e23f97ba: Doc change: updates to Gestures training class.
* commit '37fc02be989e880314c05390eca01398ddee996a':
  Doc change: updates to Gestures training class.
2013-03-12 15:34:26 -07:00
kmccormick
37fc02be98 am 61f13cd8: am ae657a05: am e23f97ba: Doc change: updates to Gestures training class.
* commit '61f13cd877405f8bb72c2ad33c717ba3f02acf74':
  Doc change: updates to Gestures training class.
2013-03-12 15:32:46 -07:00
kmccormick
61f13cd877 am ae657a05: am e23f97ba: Doc change: updates to Gestures training class.
* commit 'ae657a05db910936a92340ffe721351d259d434b':
  Doc change: updates to Gestures training class.
2013-03-12 15:31:14 -07:00
kmccormick
ae657a05db am e23f97ba: Doc change: updates to Gestures training class.
* commit 'e23f97ba6ee5214679fff61e33deda075cfd741d':
  Doc change: updates to Gestures training class.
2013-03-12 15:29:21 -07:00
Eric Laurent
1f8ac95ac6 am 9105ce74: Merge "audio service: fix regression in startBluetoothSco" into jb-mr2-dev
* commit '9105ce744ecd237d4c74f4ee3a5b204c72e10c96':
  audio service: fix regression in startBluetoothSco
2013-03-12 22:20:08 +00:00
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
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
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
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
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