15059 Commits

Author SHA1 Message Date
Alex Klyubin
6ab3d20d3c Make EntropyMixer mix in output of Hardware RNG into Linux RNG.
On devices with Hardware RNG (HW RNG), this makes EntropyMixer
periodically (every three hours) read 512 bytes from HW RNG and mix
them into the Linux RNG.

This is done without increasing Linux RNG's entropy estimates to
avoid having to trust the quality of the HW RNG. This approach cannot
reduce the quality of the Linux RNG output, but may increase it.

Change-Id: Ifde851004301ffd41b2189151a64a0c5989c630f
2013-10-03 15:07:37 -07:00
Alex Klyubin
6981a92433 am 3e64aa11: am 6a603e7b: am 1a07229b: Merge "Reduce EntropyMixer seed size from 4096 to 512 bytes."
* commit '3e64aa117ad52c71d9676761b8f6a6947cb7ac15':
  Reduce EntropyMixer seed size from 4096 to 512 bytes.
2013-10-03 15:00:45 -07:00
Alex Klyubin
3e64aa117a am 6a603e7b: am 1a07229b: Merge "Reduce EntropyMixer seed size from 4096 to 512 bytes."
* commit '6a603e7be9036c22d61a4977afd17bb227cf6ea2':
  Reduce EntropyMixer seed size from 4096 to 512 bytes.
2013-10-03 14:57:20 -07:00
Michael Wright
cf5b34b0c4 Merge "Ensure WallpaperEngine has correct size information" into klp-dev 2013-10-03 21:51:59 +00:00
Alex Klyubin
6a603e7be9 am 1a07229b: Merge "Reduce EntropyMixer seed size from 4096 to 512 bytes."
* commit '1a07229bc2042676c866051938ebe35d9cded900':
  Reduce EntropyMixer seed size from 4096 to 512 bytes.
2013-10-03 14:36:49 -07:00
Craig Mautner
27b826325c Merge "Retain IME assignment if no windows accept input." into klp-dev 2013-10-03 21:28:38 +00:00
Vinit Deshapnde
3eb6e4b4e4 Merge "Fix EAP-TLS reconnect after reboot issue" into klp-dev 2013-10-03 21:19:52 +00:00
Michael Wright
5203a8b50b Ensure WallpaperEngine has correct size information
Currently it's possible for the WallpaperManagerService to receive a
request to change the desired wallpaper size between when it attaches
to the WallpaperService and when the Engine attaches back to it. This
means that the Engine will be created with the prior dimensions and
won't receive the update. Check to see if we're in this state and
make note to update the Engine once it attaches to ensure that the
Engine always has the correct dimensions.

Bug: 10853302
Change-Id: I8d5cd3371b269dbb4c0ff2d75c68529b69028ae5
2013-10-03 14:16:42 -07:00
Craig Mautner
ae87962e3e Retain IME assignment if no windows accept input.
Was skipping over the default assignment due to new null value for
windows (ag/361266).

Fixes bug 10987178.

Change-Id: I89efd41ab54b42de384eec84c5e937cc2a59d099
2013-10-03 14:07:45 -07:00
Alex Klyubin
3c2ae2f4ed Reduce EntropyMixer seed size from 4096 to 512 bytes.
The suggested seed size from Linux drivers/char/random.c is 512 bytes
rather than the 4096 bytes currently used.

Change-Id: I3dd55105f0a95ce9cda34b4cf08987b8a28c4ac9
2013-10-03 13:56:09 -07:00
Ben Gruver
b70c534900 Merge "Check the return value of listFiles on the ifw directory" 2013-10-03 20:45:58 +00:00
Jeff Sharkey
fe5bf7a7c7 Merge "Fix mount path prefix checking." into klp-dev 2013-10-03 17:18:38 +00:00
Marco Nelissen
95867a6524 Merge "Add PowerManager method to assign blame to a single uid" into klp-dev 2013-10-03 16:34:57 +00:00
Jeff Sharkey
5786a278a5 Fix mount path prefix checking.
Uncovered as part of writing CTS tests.

Bug: 10577541
Change-Id: I7832bcd551bedeea0b2ee5d6926aba6ac9bd0fd2
2013-10-03 09:32:01 -07:00
Marco Nelissen
d983ba5cac Add PowerManager method to assign blame to a single uid
Currently used by audioflinger to account for recording wakelocks.
b/10985160

Change-Id: I18fc8487f2a197bf02b5269a4bcae9e75b6c2207
2013-10-03 08:49:36 -07:00
Wink Saville
3ec8e7fb79 Use networkType to display wifi and mobile notification separately.
There are two bugs one is I was clearing the notification in
CaptivePortalTracker when entering the ActivateState. (double check
according to bug 5021626 we should be calling enter)

Second is we could have the need to display both icons but can't
because we only allow one.

The solution I'm proposing here is to allow two notifications and
have then controlled separately.

Bug: 10886908
Change-Id: I30e7130bc542535492d175640a4990c592f32806
2013-10-03 08:34:46 -07:00
Craig Mautner
02fa2332ac Merge "Make DimLayer size dependent on stack layout." into klp-dev 2013-10-03 02:49:31 +00:00
John Spurlock
e660ecc436 Merge "Store decor rects per window for transition cropping." into klp-dev 2013-10-03 02:28:58 +00:00
Adam Lesinski
d65825ab1c Merge "Private flags are masked in correct variable" into klp-dev 2013-10-03 01:52:18 +00:00
Svetoslav
9907a109ce Merge "Fix screen magnifier scaling due to ScaleGestureDetector changes." into klp-dev 2013-10-03 01:17:10 +00:00
John Reck
9a93f6f039 Merge "Reduce max recents on lowram" into klp-dev 2013-10-03 01:13:58 +00:00
Svetoslav
1fdbaa100c Fix screen magnifier scaling due to ScaleGestureDetector changes.
The scale gesture detector has a new behavior to make onScale
callbacks during swipe after a double tap. The screen magnification
is triggered after a trippe tap so if the user trippe taps and
holds to do a temporary magnification and tries to change the
zoom level with another finger, erroneous results are obtained.

The ScaleGestureDetector uses an APIs level check for the new
behavior but the ScreenMagnifier is a platform feature. We now
explicitly ask for the old behavior.

bug:11033376

Change-Id: I0dfb14dd3abcaa34ad1f40447c631b4203797378
2013-10-02 17:53:00 -07:00
John Reck
172e87ce51 Reduce max recents on lowram
Bug: 10918599
 Reduce the number of recent tasks to 10 on lowram devices
 Use RGB_565 on low ram devices for thumbnails instead of ARGB_8888
 Combined this saves ~9MB across system_process and systemui

Change-Id: Ieddcb512c7341a90097bc7cbc72d7355a775b416
2013-10-02 17:51:11 -07:00
Michael Wright
c01a5980f3 Change WallpaperManagerService TAG to match class name
Previous TAG was "WallpaperService", which conflicted with the
WallpaperService class' tag, making debugging wallpaper issues more
confusing than necessary.

Change-Id: I0f60ff472304a1d8792d9941ddab7ce0304a2276
2013-10-02 17:50:06 -07:00
Vinit Deshapnde
a3038b2b31 Fix EAP-TLS reconnect after reboot issue
After a reboot, KeyStore is locked, and certificates encrypted with user
PIN are not accessible. So statemachines are not able to connect to
EAP-TLS networks. This change makes the problem less severe by

1. Not signing certificates with user PIN on devices with hardware backed
KeyStore.
2. Issuing a reconnect upon first USER_PRESENT event.

This means HH (which has a hardware backed keystore) can connect to
EAP-TLS networks without requiring user intervention and other devices
will automatically connect to those networks after user punches PIN.

Bug: 10325089

Change-Id: I023d60e58d8214152f051bd9ec84b85b702d829a
2013-10-02 17:26:05 -07:00
Craig Mautner
c7b8a10040 Make DimLayer size dependent on stack layout.
Only use the stack bounds for the DimLayer bounds if there is more
than one stack on a layer. Otherwise cover the entire screen (and
more) with the DimLayer. This way there are no exposed regions when
rotating.

Fixes bug 10428085.

Change-Id: I7bfff12b69d59e86610621c498dab35cf0db8eb5
2013-10-02 16:49:52 -07:00
Adam Lesinski
95c42974f7 Private flags are masked in correct variable
Newly added private flags were being masked in the public flag variable
as opposed to the correct privateFlags variable.

bug:11033280
bug:11043194
Change-Id: Idda3a70a083457f3f1b7d4b46d231f4a7e704cf0
2013-10-02 16:18:55 -07:00
Craig Mautner
fbb97954bb am 88d5c073: am 69a7d93b: am 4aca4c15: Merge "Don\'t reorder windows on non-default display." into klp-dev
* commit '88d5c07313609269ecec6cd8d877188b3c239d44':
  Don't reorder windows on non-default display.
2013-10-02 15:28:49 -07:00
Craig Mautner
88d5c07313 am 69a7d93b: am 4aca4c15: Merge "Don\'t reorder windows on non-default display." into klp-dev
* commit '69a7d93b42d4a1f5812e1966181fb2f178be7666':
  Don't reorder windows on non-default display.
2013-10-02 15:24:34 -07:00
Craig Mautner
4aca4c1520 Merge "Don't reorder windows on non-default display." into klp-dev 2013-10-02 22:19:19 +00:00
Craig Mautner
85689b9f48 Don't reorder windows on non-default display.
At least not until we add tasks to those displays.

Fixes bug 10264736.

Change-Id: I3baed4bf324c4a11bbf5b07755218c2992f5af39
2013-10-02 15:13:03 -07:00
John Spurlock
4664623c30 Store decor rects per window for transition cropping.
Instead of keeping a single global system decor rect around
in WindowManagerService, calculate and store policy-defined
system-decor frame for each window.

The per-window decor rect is useful for smooth transitions, since it
determines window cropping during transition animations.

Bug:10938001
Change-Id: Ice6652aa5946027c45c0b7ab4e46473a0f8e3f90
2013-10-02 18:12:16 -04:00
Vinit Deshapnde
28cf65a6cf am adcf8696: am b1992b55: am e42325c7: Merge "Fix incorrect VPN time" into klp-dev
* commit 'adcf86961356157089daa4dc13c865258d1eea49':
  Fix incorrect VPN time
2013-10-02 12:32:42 -07:00
Vinit Deshapnde
adcf869613 am b1992b55: am e42325c7: Merge "Fix incorrect VPN time" into klp-dev
* commit 'b1992b55e967329f3bc9a63229615130761df701':
  Fix incorrect VPN time
2013-10-02 12:29:26 -07:00
Vinit Deshapnde
e42325c765 Merge "Fix incorrect VPN time" into klp-dev 2013-10-02 19:23:23 +00:00
Vinit Deshapnde
2b862e5e75 Fix incorrect VPN time
First, startTime's default value is -1 and not 0, so use it to test
if the startTime is set. Also, startTime isn't being set when connecting
legacy VPN; this change fixes that too.


Bug: 10985174
Change-Id: Ibf52b8f489b18c96efba501b76aa73e9a9e0e3e8
2013-10-02 11:50:39 -07:00
Craig Mautner
e8a7bcde58 am 638ead32: am 76027655: am 93cb8f6b: Merge "Create new window-side task on demand." into klp-dev
* commit '638ead32b901a7f40ae532e50a483d87364806ef':
  Create new window-side task on demand.
2013-10-02 10:55:56 -07:00
Craig Mautner
638ead32b9 am 76027655: am 93cb8f6b: Merge "Create new window-side task on demand." into klp-dev
* commit '76027655fba1e3a3d548380767a7a8989a2cfc3d':
  Create new window-side task on demand.
2013-10-02 10:52:48 -07:00
Craig Mautner
93cb8f6b78 Merge "Create new window-side task on demand." into klp-dev 2013-10-02 17:45:47 +00:00
Craig Mautner
31482a7fe1 Create new window-side task on demand.
The activity manager can create a new task under certain
circumstances in resetTargetTaskIfNeededLocked(). In that case the
window manager was not told to create a new task. This fix creates the
task in window manager when it recognizes that there is a new task
required.

Fixes bug 10412588.

Change-Id: Ife9ecfeb7f53f9df5950322c9359c836adc258a2
2013-10-02 10:35:17 -07:00
Craig Mautner
7f3a3c26af am 8c3e643d: am 611fb917: am 09be37b2: Merge "Add debuggging for 10858941." into klp-dev
* commit '8c3e643dc47d1c637cb5ba545ccf71afcb083cc5':
  Add debuggging for 10858941.
2013-10-02 09:44:34 -07:00
Dianne Hackborn
5d93ad94a3 am 1d536848: am 239dc099: am 164371fb: Fix issue #11005453: [SUW] G+ profile creation for new user broken
* commit '1d536848af1531dd14af52000f5ab505162bf123':
  Fix issue #11005453: [SUW] G+ profile creation for new user broken
2013-10-02 09:44:30 -07:00
Adam Lesinski
49e43291b2 am 234c6c8a: am ff7cba54: am 42e9b631: Merge "Make room for new public flags" into klp-dev
* commit '234c6c8aafa4abc440d5bf38aac058b96ba1434c':
  Make room for new public flags
2013-10-02 09:44:23 -07:00
Jeff Brown
5d5e5733f9 am 0f7f648f: am 9601b51c: am 42544cf8: Merge "Track wireless charger detector timeout explicitly." into klp-dev
* commit '0f7f648f1af70bdc69ac93d1af12aefcdda0523d':
  Track wireless charger detector timeout explicitly.
2013-10-02 09:44:19 -07:00
Amith Yamasani
15ef4b4127 am a48f2419: am 0ba4a29c: am 86519dd5: Merge "Use correct method for sparsearray lookup" into klp-dev
* commit 'a48f2419cecf571bbe6500b9e1d7b03c297e9c7c':
  Use correct method for sparsearray lookup
2013-10-02 09:44:07 -07:00
Craig Mautner
473402a792 am 9814cf73: am 0e1daee3: am 66de7f4f: Merge "Fixes to handleAppDiedLocked." into klp-dev
* commit '9814cf73d4f73a4e6d8eebe2d828d24800184737':
  Fixes to handleAppDiedLocked.
2013-10-02 09:43:51 -07:00
Svetoslav Ganov
b3100e4e3d am bf4e8472: am fddc4bfe: am b1cd745f: Merge "Fail print jobs targeted to unavailable services." into klp-dev
* commit 'bf4e84724fbfaff8f2876af04e16f7047812f858':
  Fail print jobs targeted to unavailable services.
2013-10-02 09:43:47 -07:00
Craig Mautner
61f5d97984 am c5495c93: am eba784f0: am 3c98926b: Merge "Add a timeout for removing starting windows." into klp-dev
* commit 'c5495c93e51ba6493a6b99aaabd44abc9d25cd1e':
  Add a timeout for removing starting windows.
2013-10-02 09:43:32 -07:00
Jeff Sharkey
b6ab3b982b am 7f60e70e: am 666b998b: am 364fc14f: Merge "Detect wedged ContentProviders, treat as ANR." into klp-dev
* commit '7f60e70e815d381035b141843395830407c198d9':
  Detect wedged ContentProviders, treat as ANR.
2013-10-02 09:43:21 -07:00
Craig Mautner
8c3e643dc4 am 611fb917: am 09be37b2: Merge "Add debuggging for 10858941." into klp-dev
* commit '611fb91723718526a9d20fce92135b2e32fc3a8b':
  Add debuggging for 10858941.
2013-10-02 09:37:29 -07:00