81701 Commits

Author SHA1 Message Date
Jaikumar Ganesh
1abb1cb3a8 Changes to Bluetooth Service structure.
Changes to make Bluetooth Service part of the system_service.
These changes may be temporary.

Changes to update to the new disable API.

Change-Id: If89dba17e6e6c6daa53c37684221763a2da076e9

Conflicts:

	services/java/com/android/server/pm/PackageManagerService.java
2012-07-13 22:22:51 -07:00
Jaikumar Ganesh
3419618736 Remove BT references from System Server.
Change-Id: Icfdb3e140aa35174a8b70da57472a1bf2bd0143b

Conflicts:

	services/java/com/android/server/SystemServer.java
2012-07-13 22:22:51 -07:00
Jaikumar Ganesh
9773ebb778 Dock: Temporary removal of function to get BT address
Change-Id: I0d1033654e2708f864649f2b2568be7c9da014ed
2012-07-13 22:22:51 -07:00
Jaikumar Ganesh
313a216709 Delete various Bluetooth files for stack integration. 2012-07-13 22:22:51 -07:00
Amith Yamasani
d1cdfb3e42 Merge "Does not compile!!!" 2012-07-13 20:24:16 -07:00
Amith Yamasani
99e34591c6 Does not compile!!!
Revert "Removing a workaround for incorrect window position on window move."

This reverts commit 939f2e43a80f9a6df16b7e18eba5cfffdbf032da
2012-07-13 20:23:16 -07:00
Svetoslav Ganov
46b05cc411 Merge "Removing a workaround for incorrect window position on window move." 2012-07-13 19:54:43 -07:00
Svetoslav Ganov
939f2e43a8 Removing a workaround for incorrect window position on window move.
1. The window manager was not notifying a window when the latter
   has been moved. This was causing incorrect coordinates of the
   nodes reported to accessibility services. To workaround that
   we have carried the correct window location when making a
   call from the accessibility layer into a window. Now the
   window manager notifies the window when it is moved and the
   workaround is no longer needed. This change takes it out.

2. The left and right in the attach info were not updated properly
   after a report that the window has moved.

3. The accessibility manager service was calling directly methods
   on the window manager service without going through the interface
   of the latter. This leads to unnecessary coupling and in the
   long rung increases system complexity and reduces maintability.

bug:6623031

Change-Id: Ibbf98afd29439783ba331a7a0cdce55d7f138922
2012-07-13 19:53:37 -07:00
Romain Guy
b1d0a4ed21 Refactor GammaFontRenderer
This change is the first step to a shader-based text antialias
gamma correction.

Change-Id: I9eb02d4c56cb95d05219f712290c865b46141954
2012-07-13 18:25:35 -07:00
Jim Miller
dd0d0ba654 Merge "Fix regression in SIM state handling" 2012-07-13 15:43:15 -07:00
Romain Guy
c9cf9e5459 Merge "Improve rendering speed by disabling scissor tests" 2012-07-13 15:31:30 -07:00
Romain Guy
586cae3ac6 Improve rendering speed by disabling scissor tests
This change improves execution of display lists, particularly on
tiled renderers. The goal is to disable the scissor test as
often as possible. Drawing commands are rarely clipped by View
bounds so most of them can be drawn without doing a scissor test.

The speed improvements scale with the number of views and drawing
commands.

Change-Id: Ibd9b5e051a3e4300562463805acc4fd744ba6266
2012-07-13 15:28:31 -07:00
Jim Miller
646d60383d Fix regression in SIM state handling
This fixes a bug introduced by If6cb3c6ff952767fc10210f923dc0e4b343cd4ad
that accidentally reverted I019d1d8c65c55cbf4d10d4928e1d2b2b242162a6

Change-Id: Ia006bf31387162a520374f3bc9acb6e69197b106
2012-07-13 15:12:55 -07:00
Greg Hackmann
bb033ea362 Don't force RGB-565 for tablet status bar
RGBX-8888 is preferred on some devices because the HW composer doesn't
support RGB-565.  SurfaceFlinger can map PixelFormat.OPAQUE to RGB-565
or RGBX-8888 depending on the NO_RGBX_8888 flag.

Change-Id: I6848b11f694188b606a5547b6dd386d933e30601
Signed-off-by: Greg Hackmann <ghackmann@google.com>
2012-07-13 13:48:52 -07:00
Ying Wang
ad0c8c3a3b am d304e8bf: (-s ours) am df523ec5: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit 'd304e8bfc7094763cdbbfc2d84f71e2912f7bfcf':
  Import translations. DO NOT MERGE
2012-07-13 13:43:46 -07:00
Romain Guy
98b8eb6044 am 01f03dc3: (-s ours) am 0a386ffa: Text shadow alpha handling incorrect DO NOT MERGE
* commit '01f03dc3895352e0d4b50ecb3090b29c591f2502':
  Text shadow alpha handling incorrect DO NOT MERGE
2012-07-13 13:43:43 -07:00
Ying Wang
d304e8bfc7 am df523ec5: Merge "Import translations. DO NOT MERGE" into jb-dev
* commit 'df523ec5780aece1f63ce05a0ae57773fef50fbf':
  Import translations. DO NOT MERGE
2012-07-13 13:41:02 -07:00
Romain Guy
01f03dc389 am 0a386ffa: Text shadow alpha handling incorrect DO NOT MERGE
* commit '0a386ffac026e259c408b77c2dd2cc5d2e22b5f8':
  Text shadow alpha handling incorrect DO NOT MERGE
2012-07-13 13:41:00 -07:00
Ying Wang
6eb86ac40c Merge "Import translations. DO NOT MERGE" 2012-07-13 13:40:33 -07:00
Ying Wang
e89b6c38be Merge "Import translations. DO NOT MERGE" 2012-07-13 13:40:28 -07:00
Ying Wang
bff40dcf60 Merge "Import translations. DO NOT MERGE" 2012-07-13 13:39:56 -07:00
Ying Wang
df523ec578 Merge "Import translations. DO NOT MERGE" into jb-dev 2012-07-13 13:39:39 -07:00
Craig Mautner
052db7c25e Merge "Further isolate layout side from animation side." 2012-07-13 13:39:25 -07:00
Craig Mautner
322e403156 Further isolate layout side from animation side.
- Use local AppWindowAnimators in WindowAnimator rather than
    using shared WindowManagerService objects.
- Use local WindowStateAnimators in AppWindowAnimator rather
    than use AppToken's WindowState objects.
- Remove redundant WindowManagerService parameter passed to
    AppWindowAnimator ctor.
- Keep from copying parameters from performLayout if the
    parameters haven't changed since the last copy.
- Link WindowStateAnimator to AppWindowAnimator to keep
    from going through WindowStateAnimator.mWin,
    WindowState.mAppToken and AppWindowToken.mAppAnimator.
- Converted attached WindowState in WindowStateAnimator to
    WindowStateAnimator to eliminate multiple conversions.

Change-Id: I5e35af88d8fdc1a7454984eaea91a1bc4f926978
2012-07-13 13:35:20 -07:00
Romain Guy
0a386ffac0 Text shadow alpha handling incorrect
DO NOT MERGE

External bug: http://code.google.com/p/android/issues/detail?id=34879
This is a regression from ICS.

This CL also fixes a bug where a View's alpha would be applied twice.

Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa
2012-07-13 12:24:09 -07:00
Romain Guy
489041dd41 Merge "Text shadow alpha handling incorrect" 2012-07-13 12:21:32 -07:00
Chet Haase
899274ca39 am 6bcfe893: (-s ours) am 0f8e402e: Force invalidates on non-visible views. DO NOT MERGE
* commit '6bcfe893d46b1adb5a89920b82707c3d55a53e27':
  Force invalidates on non-visible views. DO NOT MERGE
2012-07-13 12:20:38 -07:00
Chet Haase
6bcfe893d4 am 0f8e402e: Force invalidates on non-visible views. DO NOT MERGE
* commit '0f8e402e954c6e37102fa70f81a1d8ec47156338':
  Force invalidates on non-visible views. DO NOT MERGE
2012-07-13 12:16:46 -07:00
Romain Guy
9c0b188e42 Text shadow alpha handling incorrect
External bug: http://code.google.com/p/android/issues/detail?id=34879

This CL also fixes a bug where a View's alpha would be applied twice.

Change-Id: I13a1546228f44d4c169259414b6fa103a6e4a0fa
2012-07-13 12:13:07 -07:00
Ying Wang
e2e24f8dd7 Import translations. DO NOT MERGE
Change-Id: Iabb056f645a910f3fbaea1e51348c3bef385546e
Auto-generated-cl: translation import
2012-07-13 11:57:48 -07:00
Ying Wang
bc6db8eaa8 Import translations. DO NOT MERGE
Change-Id: I8c0c4a930f757e2dd0edd581fe6b815c845dd984
Auto-generated-cl: translation import
2012-07-13 11:57:03 -07:00
Ying Wang
ab6996bdd8 Import translations. DO NOT MERGE
Change-Id: Iae5f07176cad4505b21f8adc5fef99ac848cc11d
Auto-generated-cl: translation import
2012-07-13 11:49:32 -07:00
Ying Wang
3b1ca7888c Import translations. DO NOT MERGE
Change-Id: Iac7759bb253431f5b75c246938a3cc3a726c8439
Auto-generated-cl: translation import
2012-07-13 11:41:59 -07:00
Chet Haase
87e8b25ea3 Merge "Remove redundant computeScroll() call for hw-accelerated views" 2012-07-13 07:39:41 -07:00
Romain Guy
401b1f8574 Merge "Remove obsolete optimization" 2012-07-12 18:02:37 -07:00
Romain Guy
f877308f77 Remove obsolete optimization
Change-Id: I2d43c009c62a7f4a4a2e0a6303bdfa692c4b8c8c
2012-07-12 18:01:00 -07:00
Fabrice Di Meglio
b8405c78fc Merge "Make ActionBar aware of layout direction" 2012-07-12 17:53:42 -07:00
Fabrice Di Meglio
51c0a6a6fd Merge "Make PhoneWindow aware of layout direction" 2012-07-12 17:53:34 -07:00
Chet Haase
526057bc77 Remove redundant computeScroll() call for hw-accelerated views
View.draw() calls computeScroll() to initialize scrolling values correctly.
But getDisplayList() also calls computeScroll() for the same reason, resulting
in 2 calls to that method for hw-accelerated views.
Fix: avoid calling computeScroll() in View.draw() for views with display lists.

Change-Id: I57a3862e2d554752cd0fdb862513cbb3dfb3105c
2012-07-12 17:50:41 -07:00
Fabrice Di Meglio
cf1ba0298c Make ActionBar aware of layout direction
- see bug #5429822 UI should be mirrored for RTL locales (Arabic, Hebrew, farsi)

Change-Id: Iea8a512311ee99548f39bbbe342f21eabaffbe09
2012-07-12 17:39:12 -07:00
Dianne Hackborn
af665efcbc Merge "Improve cleanup of file caches." 2012-07-12 16:37:01 -07:00
Jeff Brown
c643ca97a8 Merge "Fix bug in IME handling of pending key events." 2012-07-12 16:18:50 -07:00
Chris Craik
d442aaeb46 Merge "Don't attach functor for SW layers" 2012-07-12 16:17:16 -07:00
Jeff Brown
2499bbecc2 Fix bug in IME handling of pending key events.
Bug: 6812529
Change-Id: I7195a4346d44d65a79969a1bb5daa3bb8a018600
2012-07-12 16:14:37 -07:00
Dianne Hackborn
197a0c82a1 Improve cleanup of file caches.
This rewrites installd's code for deleting cache files to be better:

- Isn't really stupid about just deleting directories in the order
  they are found on the filesytem; now collects all cache files and
  sorts them by mod time to determine which to delete.
- Also deletes cache files in /data/media and for all users.

This also tweaks DeviceStorageMonitor to be a little smarter about
deciding when to flush cache files, having upper and lower limits
that it allows memory to get down to and then flash files to reach
the higher free storage limit.  This should reduce the amount that
we perform flushing when starting to reach the storage limit.

Finally add a new pm command to force a cache flush.

Change-Id: I02229038e1ad553d1168393e5cb6d5025933271d
2012-07-12 14:46:04 -07:00
Chet Haase
0f8e402e95 Force invalidates on non-visible views. DO NOT MERGE
An optimization prunes invalidates on views which are not inside their
parent's bounds. This works in most cases, but it is possible to run
a situation where a view has been invalidated (and is thus waiting to
be redrawn), but the pruning logic ensures that that draw call
will not happen. Further, when/if the view comes into the bounds
of its parent again, it may still not be redrawn, because now future
invalidates on the view are noop'd because it is already in an invalidated
state (and thus will not propagate invalidates up the hierarchy).

The fix is to remove the optitmization. This will cause some overhead
sending the invalidation request up to the view root, but this
overhead is minimal (and only extra for cases of out-of-bounds views),
and the more expensive part of rendering these views will still not be done
since the view root will avoid re-drawing the hierarchy when the dirty
rectangle is empty.

Issue #6813661 offscreen views don't get invalidated properly (may remain invisible when returning onscreen)

Change-Id: Ic4b439540084a7163be9afc585bea6560d073280
2012-07-12 14:40:28 -07:00
Chris Craik
793b7f8454 Don't attach functor for SW layers
Change-Id: I60fec1629bf1e343a0d69e0ce13a3d632c3f713d
2012-07-12 14:01:50 -07:00
Adam Cohen
289b55e55d Merge "Prevent crash in AppWidgetHost that can be triggered by an AppWidget" 2012-07-12 13:28:17 -07:00
Svetoslav Ganov
f1ca09b990 Merge "Gestures don't work when turning on Explore by Touch pragmatically." 2012-07-12 13:14:34 -07:00
Svetoslav Ganov
a43ef3d1c5 Gestures don't work when turning on Explore by Touch pragmatically.
1. There was a misspelled duplicate member in the accessibility service
   class which was causing inconsistent behavior because one field was
   updated and another checked.

2. When the set of services that can put the device in explore by touch
   mode changes we were disconnecting and reconnecting all services
   and this is not correct. Now only the state of explore by touch is
   updated appropriately.

bug:6798860

Change-Id: Ib3c119cef8e71c3458d56e4ce6fbde2c2f750dcd
2012-07-12 13:07:59 -07:00