84451 Commits

Author SHA1 Message Date
Dianne Hackborn
5b329e8501 Fix debug log.
Change-Id: If65abf43ee7a455b12d49b5800657dbf4489e5b9
2012-09-14 11:54:12 -07:00
Raph Levien
f4afc40101 Merge "framework: fix bug for uninitialized variable" 2012-09-14 11:52:11 -07:00
Svetoslav Ganov
e136a72810 Merge "Text layout in switch may be null when accessibility events are fired." into jb-mr1-dev 2012-09-14 11:37:15 -07:00
Svetoslav Ganov
b8c50e8e44 Text layout in switch may be null when accessibility events are fired.
1. The layout containing the text of a Switch is initialized on measure
   and if an accessibility event is fired before that then a NPE happens.

bug:7169419

Change-Id: Iee3c01ca9157d14d228c4ff33c0810507e0e25a7
2012-09-14 11:36:29 -07:00
Christopher Tate
0dbc410800 Merge "Fix Settings writes to a different user" into jb-mr1-dev 2012-09-14 11:35:19 -07:00
Kenny Root
a96fa35e50 Merge "Don't prematurely delete temporary files" into jb-mr1-dev 2012-09-14 11:19:44 -07:00
Romain Guy
a938f569ce Fix modulation and gamma correction issues
Modulation is normally enabled in a shader when drawing with an alpha
mask (A8 texture.) Modulation is used to do one of two things:

- Colorize the primitive (to draw text in red for instance)
- Apply extra translucency (50% translucent circle filled with a bitmap)

The current implementation has four issues:

1. Unnecessary work is performed by assigning the modulation color
   to vec4 fragColor early in the shader
2. The modulation color's alpha is applied twice when the primitive
   is drawn with an SkShader
3. The decision to modulate is wrong and triggers when any of the
   RGB channels is < 1.0. Only the alpha channel needs to be taken
   into account to make the decision
4. Gamma correction is not applied properly

This change addresses all four issues above.

Change-Id: I73fcc74efc4b094bf2d1b835f10ffaa2ea4b9eb9
2012-09-14 10:50:51 -07:00
Romain Guy
494ac35c27 Merge "Multiply alpha for AA as late as possible" into jb-mr1-dev 2012-09-14 10:34:47 -07:00
Kenny Root
0b2fa8ca22 Don't prematurely delete temporary files
When verification and encryption is used, the temporary file was deleted
prematurely.

Also, on next boot-up, scan the directory we use for temporary files to
clean them up if the user rebooted in the middle of installation.

Bug: 7132197
Change-Id: Ic9e8aab9a664ca00d9ac16f72e53fc43d78d21bc
2012-09-14 10:34:21 -07:00
Jeff Brown
2dc6af2082 Merge "Fixup a comment." into jb-mr1-dev 2012-09-14 00:01:06 -07:00
Jeff Brown
565f0425ba Fixup a comment.
Change-Id: I7b73f7e0f0aa903e5cd02d1cdb678e65a6d40e0c
2012-09-14 00:00:17 -07:00
Romain Guy
51d71003e4 Merge "Prevent crash when invalidating all Views Bug #7165793" into jb-mr1-dev 2012-09-13 22:53:13 -07:00
Romain Guy
f84208faf8 Prevent crash when invalidating all Views
Bug #7165793

A ViewRootImpl's root view can be null. Check for this condition to
prevent an NPE invalidateWorld(). Other messages perform a similar
check to properly handle the case where mView == null.

Change-Id: I5bcfc41c48a469d38b21be74df2f6c715b0f9352
2012-09-13 22:50:18 -07:00
Baligh Uddin
cd6e7e1b5c Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-13 21:58:41 -07:00
Baligh Uddin
1a5efec6a0 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-09-13 21:49:37 -07:00
Romain Guy
3418648064 Merge "Foundation for tiling optimization" into jb-mr1-dev 2012-09-13 20:31:02 -07:00
Romain Guy
85ef80d890 Foundation for tiling optimization
Change-Id: I4db32a4749f196472ba0dde7e102439d2ba4a3a7
2012-09-13 20:26:50 -07:00
Stephen Hines
2f2f0d40e8 Merge "Failing uchar4->int4 test" into jb-mr1-dev 2012-09-13 19:45:56 -07:00
Svetoslav Ganov
a6d846afea Merge "Fix the build" into jb-mr1-dev 2012-09-13 19:40:53 -07:00
Svetoslav Ganov
3240ad0f39 Fix the build
Change-Id: Ibdabfbd70fe27188be3361792b2886dec78a49d4
2012-09-13 19:40:03 -07:00
Jeff Brown
44015010ac Merge "Eat copy pasta." into jb-mr1-dev 2012-09-13 19:26:46 -07:00
Jeff Brown
5380a064c3 Eat copy pasta.
Change-Id: I74cbad279c15f1999cc68d732fc04d6c448b5c39
2012-09-13 19:24:57 -07:00
Christopher Tate
78d2a66ac1 Fix Settings writes to a different user
Oops.  Stacked bugs:  first, the desired user handle was not properly
being passed from the call() entry point to the database operations;
then on top of that, the client-side cache management was still
looking in the local user's cache for the data, so a request to read
a different user's settings would return the local user's instead if
that key was already known to the local user's cache.

Reads and writes of a different user's settings are now uncached,
so they're relatively much slower.  They're rare, however, so this
is not something to worry about unless we encounter a real world
case where it's a significant factor.

This CL also adds a bit of cross-user settings read/write testing
to the existing provider suite.  These new tests caught both the
known wrong-user-write bug and discovered the client-side cache
bug, so yay.

Finally, the existing wholesale mutual-exclusion approach would
deadlock in certain circumstances due to the fact that the
settings database creation code might have to call out to the
Package Manager while populating the bookmark/shortcut table,
and the Package Manager would then call back into the settings
provider in the course of handling that request.  The synchronization
regime has been significantly tightened up now: now the database
code [which is known to deal with concurrency itself] is allowed
to cope with multiple parallel openers of the same db; this
allows the settings provider to avoid calling out to other parts
of the system even implicitly while its internal lock is held.

Change-Id: Ib77d445b4a2ec658cc5c210830f6977c981f87ed
2012-09-13 19:15:54 -07:00
Jeff Brown
3a1136eeeb Merge "We don't need black frames for forced display size." into jb-mr1-dev 2012-09-13 18:55:32 -07:00
Svetoslav Ganov
33aef98fd2 Allowing association between a view and its label for accessibility.
1. For accessibility purposes it is important to be able to associate
   a view with content with a view that labels it. For example, if
   an accessibility service knows that a TextView is associated with
   an EditText, it can provide much richer feedback.

   This change adds APIs for setting a view to be the label for another
   one and setting the label for a view, i.e. the reverse association.

bug:5016937

Change-Id: I7b837265c5ed9302e3ce352396dc6e88413038b5
2012-09-13 18:41:40 -07:00
Alan Viverette
0f7551341f Revert "Add accessibility scroll actions to TabWidget"
This reverts commit 6053088884171f67e2df253576eab116fd05b4fe

Change-Id: Ia648d7e3e092c396a038740d708de37fe4169d80
2012-09-13 18:36:06 -07:00
Chris Craik
9f44a13a12 Multiply alpha for AA as late as possible
Should be done after all color computation

Change-Id: Iaadd565f7d2263f111f6841a00e7c341025833d3
2012-09-13 18:34:55 -07:00
Jatin Lodhia
8d16778efd Update account list on account picker activity resume
Activities which help select an account gather the list of accounts only during create and dont update it agian. When a user moves out of the account selection activity by clicking home page, deletes an accout in the background and comes back to the earlier accout selection activity, the deleted account still exists as an option. This cl fixes this by updating the account list on resume.

Bug: 7135608
Change-Id: Idc9a2fa6451b032310c0ad66f6db0e2f0967feeb
2012-09-13 18:23:10 -07:00
Winson Chung
ed1395f398 Updating Wifi/Mobile tiles to reflect actual connection state with new assets.
Change-Id: Ic1cd78c77f94f1c9cf9bbc1bcea3082ca536d94c
2012-09-13 18:16:02 -07:00
Jason Sams
35f3a22418 Merge "Unhide intrinsics and document API." into jb-mr1-dev 2012-09-13 18:06:28 -07:00
Jason Sams
80d819033d Unhide intrinsics and document API.
Change-Id: I0233245c68f9a08780213062e62cfea6cf909c13
2012-09-13 17:00:48 -07:00
Adam Powell
83835b17f2 Merge "Break flings with opposing velocities" into jb-mr1-dev 2012-09-13 16:45:24 -07:00
Winson Chung
81665b9b37 Merge "Updating assets, fixing Battery tile to show proper states." into jb-mr1-dev 2012-09-13 16:38:49 -07:00
Winson Chung
eaa5ab01a1 Updating assets, fixing Battery tile to show proper states.
Change-Id: I0df6d62f57e8034f17d6add31416b050af8a0c15
2012-09-13 16:36:59 -07:00
Craig Mautner
4796dfd92c Merge "Improve debug output." into jb-mr1-dev 2012-09-13 16:35:56 -07:00
Craig Mautner
dc5a6384e7 Improve debug output.
Change-Id: I94f46e1e373dc9e67bfbc1d1847399c119ec2fcb
2012-09-13 16:34:41 -07:00
Adam Powell
cd66359ab9 Break flings with opposing velocities
Change-Id: Iafab692997ad7c2cbbf02d786a716e6edb6475a7
2012-09-13 16:28:29 -07:00
Jeff Brown
76a3cb9773 We don't need black frames for forced display size.
Now that surface flinger lets us set a display projection,
the window manager no longer needs to place a black frame
around the content when simulating a different display size.

Bug: 7139798
Change-Id: I6014390f47444633d434ccf918cee5ff7b502869
2012-09-13 16:02:10 -07:00
Jeff Brown
cdfc56a387 Merge "Add preliminary API for reporting display capabilities." into jb-mr1-dev 2012-09-13 15:34:51 -07:00
Victoria Lease
1f1f5970f9 Merge "Require ACCESS_FINE_LOCATION for Geofence use." into jb-mr1-dev 2012-09-13 15:32:00 -07:00
Jeff Brown
45a0b90a7e Merge "Enable remote submix for wifi display." into jb-mr1-dev 2012-09-13 15:32:00 -07:00
Svetoslav Ganov
83cdb021eb Merge "Add accessibility scroll actions to TabWidget" into jb-mr1-dev 2012-09-13 15:04:03 -07:00
Christopher Tate
303309cb42 Merge "Settings db upgrade steps only apply to the owner user" into jb-mr1-dev 2012-09-13 14:48:20 -07:00
Christopher Tate
59c5beec64 Settings db upgrade steps only apply to the owner user
Change-Id: Ib74b42bcc2554edf721199f31f563daa9fc227a2
2012-09-13 14:46:25 -07:00
Jason Sams
bd6acda96f Merge "Fix bugs in grain where values could go out of bounds." into jb-mr1-dev 2012-09-13 14:44:34 -07:00
Kenny Root
24271a8c4c Merge "Use shared app gid for forward-locked processes" into jb-mr1-dev 2012-09-13 14:43:20 -07:00
Victoria Lease
4fab68b532 Require ACCESS_FINE_LOCATION for Geofence use.
Bug: 7153226
Change-Id: I49236379e739fcda66bbc9a31cfdca9a87122aec
2012-09-13 14:17:41 -07:00
alanv
6053088884 Add accessibility scroll actions to TabWidget
Bug: 6537369
Change-Id: I8a5bf1d6f85f0ceef316aa4a5938d32a545587db
2012-09-13 14:02:29 -07:00
Craig Mautner
dcd8c81bf4 Merge "Propagate systemUiVisibility changes to window manager" into jb-mr1-dev 2012-09-13 13:55:51 -07:00
Craig Mautner
7eac0f557c Propagate systemUiVisibility changes to window manager
The mAttachInfo.mSystemUiVisibility value was changing in
View.dispatchAttachedToWindow but
mAttachInfo.mRecomputeGlobalAttributes was not being set.
Consequently ViewRootImpl.collectViewAttributes was returning
without updating the subtreeSystemUiVisibility. This is fixed
by calling needGlobalAttributesUpdate in dispatchAttachedToWindow.

WIthin ViewRootImpl.collectViewAttributes the assignment to
subtreeSystemUiVisibility was only being made if
mAttachInfo.mSystemUiVisibility was changed within
collectViewAttributes. But mAttachInfo.mSystemUiVisibility
was changing outside of collectViewAttributes in
dispatchAttachedToWindow. Consequently subtreeSystemUiVisibility
was never updated. By looking for a mismatch between
subtreeSystemUiVisibility and mSystemUiVisibility
subtreeSystemUiVisibility gets assigned whenever it is out of
sync.

Fixes bug 7091817.

Change-Id: I1e97a7dec14dc9594876175ae26370fb9030a8a6
2012-09-13 13:14:14 -07:00