88366 Commits

Author SHA1 Message Date
John Spurlock
780a13b0f4 Merge "Fix nav bar glitch when quickly turning screen off then on." into jb-mr1-dev 2012-10-23 04:10:29 -07:00
Daniel Sandler
bd9cafa433 Dreams/Sleep Mode is now Daydreams.
Bug: 7395321
Change-Id: I3173cd9205df94217911a2d432d1be1db9e3d539
2012-10-23 01:21:33 -04:00
Romain Guy
41308e2936 Properly draw the window background on window resize
Bug #7385090

This change gets rid of two silly asumptions:
- That a layer needs to be cleared with opaque black (it shouldn't,
it's already cleared to transparent and the view will cover it up
with its own background)
- The the clip should be dirty at the beginning of a frame only
when the render target is opaque

Change-Id: I415b6d3cab196057fb0281419a53fef601a44e28
2012-10-22 20:02:43 -07:00
Andy McFadden
d11ca4dd2c Improve systrace tag propagation
The native side of the tracing code latches a copy of the tags from a
system property on first use.  The Java-side tracing code latches a
copy of the native's copy during class init.  The tracing code is
preloaded by the zygote, which means we get the flags during zygote
init and don't update them when we launch a new app.

This changes the Java sources to also defer initialization until
first use, so that newly-launched apps will use the current value
of the system property.

Bug 7323431

Change-Id: I7db048ec54345ae9565088a35c2e2b4c82f993fd
2012-10-22 19:35:39 -07:00
Jeff Brown
e941b1e27f Improve auto-brightness hysteresis.
Reintroduced the stability time heuristic which requires brightness
to remain significantly above or below the currently accepted
ambient brightnes before effecting a brightness change.  The
heuristic has the nice property of preventing light sensor noise
from causing oscillations in brightness even when the noise has
a relatively large magnitude (such as in low light environments).

The time bound and filter thresholds are current set so that
brightness increases typically occur within 5 seconds of a change
in the ambient environment.  Decreases take somewhat longer and
typically occur within 10 seconds.

Changed the timing for brightness animations when the screen is
being dimmed due to a pending user activity timeout.  The screen
now dims slowly but then brightens rapidly when touched.
Previously the screen dimmed quickly and brightened slowly which
felt somewhat unresponsive.

Fixed a problem where a brightness change might not occur because
the light sensor had not reported a new value in a long time.
Now we synthesize measurements when needed to ensure that a
transition will take place if appropriate.

Bug: 7387800
Change-Id: I998df2fec59922042a41a1ba4af97ea52c0bd02a
2012-10-22 18:56:39 -07:00
Kenny Root
4525f5b69c Check non-primary user dirs during package scan
During package scan, only the primary user data directories were
checked. If the secondary user didn't have an application directory, it
would happily ignore it. The app would then crash upon startup.

Bug: 7391882
Change-Id: I1fa92aa27386104d4ac6bc5dc92bfbf2e7dfac9f
2012-10-22 18:48:24 -07:00
erin rosenthal
76c5144ec7 am 36425d19: Merge "Catch badly formed URLs in WebView accessibility injector." into jb-mr1-dev
* commit '36425d19fc578c2042098d2045092990a811d0e6':
  Catch badly formed URLs in WebView accessibility injector.
2012-10-22 17:56:27 -07:00
erin rosenthal
36425d19fc Merge "Catch badly formed URLs in WebView accessibility injector." into jb-mr1-dev 2012-10-22 17:53:27 -07:00
Eric Laurent
5624b30b19 am 3ac692f5: Merge "reduce camera sound volume." into jb-mr1-dev
* commit '3ac692f5114f058c82ca3855bdd36321f1540be5':
  reduce camera sound volume.
2012-10-22 17:26:04 -07:00
Eric Laurent
3ac692f511 Merge "reduce camera sound volume." into jb-mr1-dev 2012-10-22 17:23:20 -07:00
Amith Yamasani
9d20663d46 am 0b828ee0: Merge "Set the correct flags for brightness dialog to show on all users" into jb-mr1-dev
* commit '0b828ee0d53980d6f5ce62248cab57f177921fa8':
  Set the correct flags for brightness dialog to show on all users
2012-10-22 16:30:00 -07:00
Michael Jurka
be26411fec am 4ce82df5: Merge "Solve issue where labels in Recents were blank" into jb-mr1-dev
* commit '4ce82df5cc95826d499252f897573f79b514a347':
  Solve issue where labels in Recents were blank
2012-10-22 16:26:34 -07:00
Eric Laurent
ef2faae5af reduce camera sound volume.
Reduce new video start and stop sounds volume to
match camera shutter sound volume.

Bug 7377030.

Change-Id: Ic42b36f063006da30dd870fa5ed9c8c5361aa043
2012-10-22 16:26:14 -07:00
Amith Yamasani
0b828ee0d5 Merge "Set the correct flags for brightness dialog to show on all users" into jb-mr1-dev 2012-10-22 16:25:22 -07:00
Michael Jurka
4ce82df5cc Merge "Solve issue where labels in Recents were blank" into jb-mr1-dev 2012-10-22 16:23:44 -07:00
Michael Jurka
fe09ad80bc Solve issue where labels in Recents were blank
Bug: 7352816

Change-Id: Ic0d7f35191ce973a71744aa6ea81351b7bdb8d50
2012-10-22 16:14:26 -07:00
Kenny Root
55708a9dce am e03c0244: Merge "Clear data deletes too much" into jb-mr1-dev
* commit 'e03c0244717093e0fbc9b05073d3ae3dbd8fcea5':
  Clear data deletes too much
2012-10-22 16:14:14 -07:00
Kenny Root
e03c024471 Merge "Clear data deletes too much" into jb-mr1-dev 2012-10-22 16:11:45 -07:00
Amith Yamasani
7ecdc7fd9b Set the correct flags for brightness dialog to show on all users
Earlier fix was writing to the wrong flags.

Bug: 7393822
Change-Id: Ifd51fb30de00be6de381980a05f2769c4283b515
2012-10-22 16:09:58 -07:00
Raph Levien
9defd0663e am 74437532: Merge "Fix for bug: Gmail (and other places): cursor placed on top of letter" into jb-mr1-dev
* commit '74437532fe2a3e9ebd15c61327fd3f2b68c299b3':
  Fix for bug: Gmail (and other places): cursor placed on top of letter
2012-10-22 15:59:22 -07:00
Raph Levien
74437532fe Merge "Fix for bug: Gmail (and other places): cursor placed on top of letter" into jb-mr1-dev 2012-10-22 15:56:01 -07:00
Chet Haase
6534dd0275 am 74261d84: Merge "Don\'t null the reference to Bitmap pixels until we\'re really ready" into jb-mr1-dev
* commit '74261d847f64ccfeba0a7f08f6c59473a3b6647d':
  Don't null the reference to Bitmap pixels until we're really ready
2012-10-22 15:49:22 -07:00
Chet Haase
74261d847f Merge "Don't null the reference to Bitmap pixels until we're really ready" into jb-mr1-dev 2012-10-22 15:46:43 -07:00
Baligh Uddin
177d984ab9 Merge "Import translations. DO NOT MERGE" into jb-mr1-aah-dev 2012-10-22 15:33:14 -07:00
Baligh Uddin
8d98421ff5 am 5be59670: Merge "Import translations. DO NOT MERGE" into jb-mr1-dev
* commit '5be59670c26edf27bfdfdf0430b535dda718bd9d':
  Import translations. DO NOT MERGE
2012-10-22 15:31:49 -07:00
Baligh Uddin
5be59670c2 Merge "Import translations. DO NOT MERGE" into jb-mr1-dev 2012-10-22 15:28:42 -07:00
Chet Haase
547e66531d Don't null the reference to Bitmap pixels until we're really ready
A change in the VM triggers a native memory error more aggressively than before,
showing that there's a bug in the logic of recycling bitmaps. Since the pixel
memory is allocated on the Java heap, nulling out the reference to that memory
in the Java level Bitmap object can cause that memory to get collected at any time.
Meanwhile, we may have a reference to that memory at the native level for rendering
purposes, causing an error if/when we access that memory after it has been collected
by the VM.

The fix is to avoid setting the reference to the pixels to null unless we are
not referring to it in native code. This is determined at the time we call
recycle() - we return a boolean to indicate whether the native code is still
using the memory. if not, the Java code can null out the reference and allow the
VM to collect it. Otherwise, it will get collected later when the encompassing
Bitmap object is collected.

Issue #7339156 HTML5 tests crash the app (Vellamo)

Change-Id: I3a0d6b9a6c5dd3b86cc2b0ff7719007e774b5e3c
2012-10-22 15:25:19 -07:00
Kenny Root
9157d3f3b7 Clear data deletes too much
Bug: 7389445
Change-Id: Ic12d7a8e37747dc1a9b71ec5f881b5e440e0a75e
2012-10-22 15:20:52 -07:00
Jeff Sharkey
8c16579994 Update docs for multi-user storage behavior.
Define external storage as being isolated for each user, with the
caveat for shared OBB files. Also mention external storage
permissions.

Bug: 7384941
Change-Id: Ib156b5874c5587749d7bc066791e9e88d931b174
2012-10-22 15:04:35 -07:00
Raph Levien
42ef515d18 Fix for bug: Gmail (and other places): cursor placed on top of letter
This patch fixes bug 7346656. In this particular case, the text line in
the EditText was split into multiple spans, with the boundary between
the "r" and "," in "r,". These were being drawn as two separate runs,
but measured as a single run, leading to inconsistent measurements
because this is a kern pair in Roboto.

The fix is to eliminate the special-case code for measuring. This will
actually improve efficiency, as the value computed in one pass is now
more likely to be reused in another.

Change-Id: I04142a0ec98f280fc1027c7cbdbf903e3096f8e4
2012-10-22 15:01:17 -07:00
Colin Cross
08306ca060 am 034b386c: Merge "Add ro.revision property to checkin headers" into jb-mr1-dev
* commit '034b386ccfc42bc9b44e728bb39959c81b1d2e8c':
  Add ro.revision property to checkin headers
2012-10-22 14:23:46 -07:00
Colin Cross
034b386ccf Merge "Add ro.revision property to checkin headers" into jb-mr1-dev 2012-10-22 14:20:06 -07:00
John Spurlock
1bbd49d72e Fix nav bar glitch when quickly turning screen off then on.
Keyguard now disables all navbar buttons when turning screen off
instead of only recents.

Navbar is told about screen off/on and disables the layout transition
animation on screen off - if the user quickly turns the screen back
on they do not see the end of the fade out animation.

Bug:7377776
Change-Id: I96a050d58c6c9ce8537f50408655006fadbfcd4f
2012-10-22 17:10:25 -04:00
Colin Cross
8b2c916a8d Add ro.revision property to checkin headers
Early hardware revisions often have known issues.  Add the ro.revision
property to the header for the checkin reports so known issues can
be easily filtered.

Change-Id: I337b09ddfa41ebbe7f8f56223392b0bd491f897b
2012-10-22 14:01:36 -07:00
Jamie Gennis
9fee7bd73d am 23d62241: Merge "Set the secureness when creating displays" into jb-mr1-dev
* commit '23d622418b5c67dc43faabd930d1c59c5ce34f6a':
  Set the secureness when creating displays
2012-10-22 13:52:12 -07:00
Jamie Gennis
23d622418b Merge "Set the secureness when creating displays" into jb-mr1-dev 2012-10-22 13:49:35 -07:00
Svetoslav Ganov
a96040a7d4 am d07f8d0b: Merge "Re-fixing content descritpion on quick settings toggle. Bug: 7362316" into jb-mr1-dev
* commit 'd07f8d0b373fa4581c6b11738931c8f9fbd79ac7':
  Re-fixing content descritpion on quick settings toggle. Bug: 7362316
2012-10-22 13:48:16 -07:00
Svetoslav Ganov
d07f8d0b37 Merge "Re-fixing content descritpion on quick settings toggle. Bug: 7362316" into jb-mr1-dev 2012-10-22 13:45:13 -07:00
Victoria Lease
43a883759f am 92d99223: Merge "LocationManager javadoc permission fixes" into jb-mr1-dev
* commit '92d9922370ffe50932361602f46b275d085e61b8':
  LocationManager javadoc permission fixes
2012-10-22 13:41:15 -07:00
Victoria Lease
92d9922370 Merge "LocationManager javadoc permission fixes" into jb-mr1-dev 2012-10-22 13:38:09 -07:00
Amith Yamasani
6eb9844c8e am 22788981: Merge "System server should always send broadcasts to a specific or all users" into jb-mr1-dev
* commit '2278898126c1cea4bd345bb96313d381b4ad3993':
  System server should always send broadcasts to a specific or all users
2012-10-22 13:35:21 -07:00
Amith Yamasani
2278898126 Merge "System server should always send broadcasts to a specific or all users" into jb-mr1-dev 2012-10-22 13:32:24 -07:00
Victoria Lease
2291ca47c7 LocationManager javadoc permission fixes
The javadoc mistakenly claimed that GPS and PASSIVE location
providers could be used with ACCESS_COARSE_LOCATION permissions.
That was incorrect, and the javadoc has been amended.

Bug: 7389249
Change-Id: I6f6489bb539679a962c67ae7263857700df33c82
2012-10-22 12:53:32 -07:00
Amith Yamasani
cd75706117 System server should always send broadcasts to a specific or all users
Bug: 7368245

Log a warning if the system process calls unqualified sendBroadcast()
and other calls.

As a result of the logging above, found a few more method calls such as
bindService() that would benefit from being more explicit to avoid
future confusion and reduce the log warnings.

Change-Id: I17f15c8be9adf7becd456d6abbab606f19befdbf
2012-10-22 12:38:53 -07:00
Adam Powell
cad6dce596 am cd92db84: Merge "Remove View\'s long press callbacks when ACTION_CANCEL is received" into jb-mr1-dev
* commit 'cd92db84c6d9e0c9992abfbbda45d504c7f5e062':
  Remove View's long press callbacks when ACTION_CANCEL is received
2012-10-22 12:31:35 -07:00
Adam Powell
cd92db84c6 Merge "Remove View's long press callbacks when ACTION_CANCEL is received" into jb-mr1-dev 2012-10-22 12:29:02 -07:00
Daniel Sandler
45fc052d64 am a4be1b2b: Merge "Fix empty notification panel." into jb-mr1-dev
* commit 'a4be1b2bcdc768708f594b69923986617a367820':
  Fix empty notification panel.
2012-10-22 12:17:26 -07:00
Adam Powell
5311c4476e Remove View's long press callbacks when ACTION_CANCEL is received
Bug 7391646

Change-Id: Icd100d3eff63a54c892367fb70dec517257a01f8
2012-10-22 12:15:49 -07:00
Daniel Sandler
03b86a9b23 am 564c03da: Merge "Really hide the settings button on tablets." into jb-mr1-dev
* commit '564c03dac59ecd2255bba658b254fd1f5672ec22':
  Really hide the settings button on tablets.
2012-10-22 12:15:35 -07:00
Daniel Sandler
a4be1b2bcd Merge "Fix empty notification panel." into jb-mr1-dev 2012-10-22 12:14:13 -07:00