83021 Commits

Author SHA1 Message Date
Kenny Root
98e15e7893 Use Libcore's stat instead of FileUtils#getFileStatus
Remove the last user of FileUtils#getFileStatus and move it to
Libcore.os.stat instead. Then we can remove the JNI code that does the
equivalent of a stat.

Change-Id: Ieb566a2a8a17c2dd0150724b4eb3ac1cc41c823d
2012-08-16 15:27:55 -07:00
Kenny Root
786cbcacd2 Use Libcore.os.stat instead of FileUtils
PackageManagerService just needed to know the owner for this file, so
just use stat instead so we can remove the old JNI code.

This is the last user of FileUtils#getPermissions so just remove the
FileUtils method as well.

Change-Id: I953057cd6b9de4410f33b6f22e4bddff02fe2988
2012-08-16 15:27:55 -07:00
Nick Pelly
60020e2fa3 Merge "Improve coarse locations." into jb-mr1-dev 2012-08-16 15:23:11 -07:00
Nick Pelly
74fa7eabda Improve coarse locations.
Fix a couple of bugs, and modify the behavior of the random offset.

The random offset now slowly changes over time, to mitigate against
applications averaging out the offset over time while at a
grid boundary.

Change-Id: Iecffff29145b8c2b30d1eca1662cf9d3e8cff756
2012-08-16 15:22:24 -07:00
Chet Haase
2421439048 Merge "Remove CacheTextureLine structure from FontRenderer" into jb-mr1-dev 2012-08-16 15:02:44 -07:00
Kenny Root
3f1e8b90b0 Remove StatFs from AndroidRuntime JNI
Change-Id: I88039794cf3e4a959b37c29c67f16f2dc0751a5c
2012-08-16 14:55:18 -07:00
Jean-Baptiste Queru
d2fb6e99bd Merge "Fix Issue #35489: drm content corruption on GB" 2012-08-16 14:45:12 -07:00
Stephen Hines
31bc7f9f21 Merge "Initial version of Renderscript Compute Benchmark" into jb-mr1-dev 2012-08-16 14:38:43 -07:00
Kenny Root
9b0da58e3a Merge "Introduce a restorecon JNI binding." 2012-08-16 14:38:30 -07:00
Stephen Hines
9196c9a0c3 Merge "Fisheye filter: approx version, general performance improvements" into jb-mr1-dev 2012-08-16 14:37:34 -07:00
Kenny Root
1090f7023a Merge "Remove StatFs from AndroidRuntime JNI" 2012-08-16 14:37:31 -07:00
Chet Haase
2936fc0244 Make animators more robust against ending mid-stream
The logic in the frame processing code of ValueAnimator did not handle
the situation of animators being ended while the current animation list
was being processed. In particular, if a call to an animation update
(which could result in a call out to user code) caused that animation, or
other current animators, to end, then there was the risk of running off the
end of the list of current animators.

The fix is to work from a copy of the current animator list, processing frames
on each one only if they also exist in the real animations list.

Issue #6992223 Frequent System UI crash

Change-Id: I742964558f8354f04c311b7b51c7686f26a4dacf
2012-08-16 14:34:04 -07:00
Baligh Uddin
a4a5a85f8f Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-08-16 14:33:48 -07:00
Jeff Sharkey
c584b65b20 Merge "Multi-user external storage support." into jb-mr1-dev 2012-08-16 14:32:39 -07:00
Kenny Root
89db6a40af Remove StatFs from AndroidRuntime JNI
Change-Id: I88039794cf3e4a959b37c29c67f16f2dc0751a5c
2012-08-16 14:31:31 -07:00
Kenny Root
a579f7926a am d69b47c0: am 8942e5a3: Merge "Use libcore Posix class for StatFs implementation"
* commit 'd69b47c087a87355df76a5276ab18af847f64367':
  Use libcore Posix class for StatFs implementation
2012-08-16 14:26:07 -07:00
Kenny Root
d69b47c087 am 8942e5a3: Merge "Use libcore Posix class for StatFs implementation"
* commit '8942e5a32ae2d1a36b65efe5b26cc06227ea0ca5':
  Use libcore Posix class for StatFs implementation
2012-08-16 14:22:31 -07:00
Iliyan Malchev
ee98610f1a Merge "Set the brightness to zero on screen-off" into jb-mr1-dev 2012-08-16 13:43:14 -07:00
Kenny Root
8942e5a32a Merge "Use libcore Posix class for StatFs implementation" 2012-08-16 13:37:25 -07:00
Michael Jurka
c40771a90d Merge "Fix bug with preloading recent tasks" into jb-mr1-dev 2012-08-16 13:19:45 -07:00
Baligh Uddin
9e77bcdf3f Import translations. DO NOT MERGE
Change-Id: I8cda507820505a293fb31f0e8e0b804e85036b54
Auto-generated-cl: translation import
2012-08-16 13:14:12 -07:00
Daniel Sandler
5050813f15 Allow the panels to be temporarily dragged past their contents.
Once the user lets go, restore the "correct" height of the
panel.

Bug: 6999596
Change-Id: I2db393873cee876cf17fea25c9d25fe5e3a78424
2012-08-16 15:54:57 -04:00
Fabrice Di Meglio
23c89fd168 Improve resolution of RTL related properties
- fix bug #6887370 ListPreference shows misaligned radio drawables (in CheckedTextView?)
- fix bug #6938146 "Show more cards..." text on bottom button is not centered

- also defer scrollbar initialization as we need resolved padding values for them

Change-Id: Ife651ffe6bbcc228ff6724f3d9b91079fac3a740
2012-08-16 12:53:16 -07:00
Daniel Sandler
3fd688fa50 Merge changes Ifad4bd65,I6a4b7d69 into jb-mr1-dev
* changes:
  Turn off an assert.
  Fix crash in SystemUI.
2012-08-16 12:52:18 -07:00
Iliyan Malchev
122415f5c8 Set the brightness to zero on screen-off
Fixes b/6996990

Ideally, the HWC HAL should turn off the backlight when the display is turned
off.  This patch enforces this at the PowerManager, which can guard against
errant HWC implementations.

Change-Id: Ibb826a02871c983f8a68034d010e68abe9c5c1d5
Signed-off-by: Iliyan Malchev <malchev@google.com>
2012-08-16 12:48:28 -07:00
Dianne Hackborn
f02b60aa4f Rename UserId to UserHandle.
This is the start of turning this into a formal public API.

Change-Id: I5786d2c320f1de41a06ed5d0f65adb68967287a0
2012-08-16 12:46:38 -07:00
Svetoslav Ganov
ca34bcf674 resolved conflicts for merge of 80c904df to jb-mr1-dev
Change-Id: Ic2f8d64cd716d04a533ca0685d1fb0d5e2a21933
2012-08-16 12:22:23 -07:00
Jason Sams
14250ccf22 Merge "Testing java compat lib for RS." into jb-mr1-dev 2012-08-16 11:23:41 -07:00
Kenny Root
bdd23ae9f5 Use libcore Posix class for StatFs implementation
Remove some JNI and duplicated functionality and use libcore's Posix
class for the statfs function instead.

Change-Id: Ic1e161dc10c18c2c6ee81d895a0efd8910086dbf
2012-08-16 10:55:47 -07:00
Daniel Sandler
504135b5ce Merge "Fix status bar disabling." into jb-mr1-dev 2012-08-16 10:55:18 -07:00
Daniel Sandler
fa71962948 Turn off an assert.
Change-Id: Ifad4bd65ddcedc6e2dd018695fd37ddbf9163e80
2012-08-16 13:52:39 -04:00
Daniel Sandler
5a35a0d560 Fix crash in SystemUI.
It looks like we were end()ing the main timing animation in
the middle of the animation (and too many times, at that).

Bug: 6992223
Change-Id: I6a4b7d692171baa73f6211c7843e164b05383a30
2012-08-16 13:52:31 -04:00
Svetoslav Ganov
80c904df15 am 8631701b: Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
* commit '8631701bb770f3a4e3b2a139dc282f2244fe86e6':
  Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
2012-08-16 10:36:55 -07:00
Chet Haase
378e919ccb Remove CacheTextureLine structure from FontRenderer
CacheTextureLine was useful before we were packing the glyph
textures; it allowed simple packing of any particular texture according to
how many lines there were in a texture, and how tall those lines were.
Now that we are packing more efficiently (both horizontally and vertically
in any given texture line), it is more efficient to have
open space in every texture, removing the need for CacheTextureLine (which
now gets in the way since it limits how much can be stored in each line).

This change removes CacheTextureLine and just uses CacheTexture directly,
allowing caching of glyphs anywhere in the open space of each texture. As before,
the packing of these glyphs is determined by the CacheBlock structure, which
is a linked list of open spaces in each CacheTexture.

Change-Id: Id6f628170df0f676f8743ac7de76f2377fc6a012
2012-08-16 09:11:49 -07:00
Daniel Sandler
1e8feef1fa Fix status bar disabling.
Bug: 6998403
Change-Id: I8a47e694f2f3914ef5cf0d180b0309783148c627
2012-08-16 11:37:41 -04:00
Steve Block
7bf70dd1ac Merge "Fix alpha value for device orientation" into jb-mr1-dev 2012-08-16 04:38:03 -07:00
Steve Block
d5be055f79 Fix alpha value for device orientation
This seems to have been incorrect since this code was first written for HC. I
can only think that the error was made due to confusion between portrait and
landscape mode as development switched from phones to tablets.

Tested on stingray and prime.

A similar fix will be required for Chrome.

Change-Id: I5da13c489fdb9de340b9e6ea8868c9f1adc15bb2
2012-08-16 11:04:51 +01:00
Jeff Brown
7c964e7899 Merge changes I39804ee6,I6a5a7ea2 into jb-mr1-dev
* changes:
  Use spline interpolation for auto-brightness.
  Add FloatMath.hypot.
2012-08-16 02:07:27 -07:00
Jeff Brown
e663975055 Merge "Improve auto-brightness debounce." into jb-mr1-dev 2012-08-16 02:06:18 -07:00
Jeff Brown
1a30b55036 Use spline interpolation for auto-brightness.
Strictly speaking, this is a change in behavior for all products.
Instead of using discrete zones, they will all now use spline
interpolation.  We could make this behavior configurable
but there seems to be little point to it.  The range of brightness
values used will be more or less the same as before, it's just
that what used to be the brightness value for all levels within
a particular zone now becomes the brightness value for the
highest level in that zone and lower values are used for lower
levels within the zone.

Change-Id: I39804ee630ba55f018e1e53c0576b28e7bd27931
2012-08-16 01:45:10 -07:00
Jeff Brown
270e3381e7 Add FloatMath.hypot.
Change-Id: I6a5a7ea2254300614dbbf540f40e39dbec2d2900
2012-08-16 01:30:22 -07:00
Michael Jurka
01de93de1e Fix bug with preloading recent tasks
Don't send a "cancel preloading" event to recents
from PhoneWindowManager if we're not using
long-press on home to invoke recents (ie phones
with soft nav keys)
2012-08-16 00:16:25 -07:00
Michael Jurka
832cb229cd Adding a thumbnail scale down animation
Recents animation will temporarily look a bit
wrong, but a subsequent change will fix this.
2012-08-16 00:14:03 -07:00
Svetoslav Ganov
8631701bb7 Allow enabled accessibility service to toggle tocuh exploration after an upgrade to JellyBean.
1. Before JellyBean touch exploration was a global setting controlled by the user via
   the UI. However, if the enabled accessibility services do not handle touch exploration
   mode, enabling it makes no sense. Therefore, in JellyBean the services request touch
   exploration mode and the user is presented with a dialog to allow that and if she
   does we store that in the database.

   As a result of the above change a user that has enabled  accessibility, touch
   exploration, and some accessibility services running a pre-JellyBean system
   version may lose touch exploration state, thus rendering the device useless unless
   sighted help is provided, since the enabled service(s) are not in the list of
   services to which the user granted a permission to put the device in touch explore
   mode.

   The fix is during a database upgrade to allow allow all enabled accessibility
   services to toggle touch exploration provided accessibility and touch exploration
   are enabled and no services can toggle touch exploration. Note that the user has
   already manually enabled the services and touch exploration which means the she
   has given consent to have these services work in touch exploration mode

bug:6996354

Change-Id: I0af2dc578cc4fbcc90043341035163b876978ab2
2012-08-15 22:13:03 -07:00
Rajeev Sharma
000dc53ca9 Initial version of Renderscript Compute Benchmark
Tests all library functions with all input types and outputs timing data via
rsDebug.  Also tests all basic numerical operations and type conversions.

Change-Id: I39038606776bbf7361d5fc7a9a3ec3b05b8e6ae0
2012-08-15 21:58:19 -07:00
Rajeev Sharma
50b1ba0083 Fisheye filter: approx version, general performance improvements
Lightly refactor original filter and rework math for performance.  Add approx
version which uses approx_rsqrt, approx_sqrt, and the new approx_atan function.

Change-Id: I796d50da05c1684167696ea4da37d7d75fc78626
2012-08-15 21:50:42 -07:00
Jeff Brown
06565b64de Improve auto-brightness debounce.
Change-Id: I045e2a14cb31ff987a22872733c442fc92ebadbf
2012-08-15 21:10:32 -07:00
Daniel Sandler
228916713d Merge "Multiuser support for notifications, take 1." into jb-mr1-dev 2012-08-15 21:03:26 -07:00
Daniel Sandler
2b197db786 Merge "Confine the quick settings trigger to the right third of the status bar." into jb-mr1-dev 2012-08-15 20:01:30 -07:00
Daniel Sandler
b9301c3a68 Multiuser support for notifications, take 1.
Notifications for background users are hidden from the
panel and status bar.

Still need to add a concept of "any user" notifications (for
things coming from the system) and notification visibility
controls (for access to icons + possibly masked text of
a background user's notifications).

Change-Id: Iba121f35a6c25c2e1c44db029d776a5a59a6a008
2012-08-15 23:00:56 -04:00