9248 Commits

Author SHA1 Message Date
Mike Lockwood
2086152c1b am f55aa972: Merge change I01935be3 into eclair
Merge commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542' into eclair-mr2

* commit 'f55aa972f9911c6aafc9fbdb736bdec11e004542':
  Remove PowerManager.setAutoBrightness()
2009-10-16 09:38:03 -07:00
Android (Google) Code Review
f55aa972f9 Merge change I01935be3 into eclair
* changes:
  Remove PowerManager.setAutoBrightness()
2009-10-16 12:29:15 -04:00
Mike Lockwood
dc3494e3d8 Remove PowerManager.setAutoBrightness()
We will use the System.SCREEN_BRIGHTNESS_MODE Settings value instead.
Add SCREEN_BRIGHTNESS_MODE_MANUAL and SCREEN_BRIGHTNESS_MODE_AUTOMATIC constants.

Change-Id: I01935be3fcb48cf76392d2c594205cb47babc5b2
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-16 07:42:26 -07:00
Cary Clark
d21b725627 am 39e67734: (-s ours) do not merge: fix copy/paste using trackball on passion
Merge commit '39e6773431e6010c5066c0e13facfd943c932c7e' into eclair-mr2

* commit '39e6773431e6010c5066c0e13facfd943c932c7e':
  do not merge: fix copy/paste using trackball on passion
2009-10-16 07:12:54 -07:00
Cary Clark
39e6773431 do not merge: fix copy/paste using trackball on passion
This fix is alrady in mr2. It does not affect sholes --
this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
2009-10-16 09:27:47 -04:00
Patrick Scott
e1f43dadb9 Share chunks between all ByteArrayBuilders.
If a single ByteArrayBuilder accumulates many chunks, it is possible that many
of those chunks will not be reused and will just take up memory in the pool. If
the pool is shared across all instances, fewer chunks need to be allocated. This
allows a site like http://www.606studios.com/bendisboard/showthread.php?t=170286
to load without crashing due to OOM.

The shared pool contains SoftReferences to each chunk. If the vm feels memory
pressure, it is allowed to mark these references for collection. Before
accessing the pool of chunks, I remove any queued references from the pool.

Cleanup ByteArrayBuilder a little by removing unused methods and fields.
Document some synchronization spots in LoadListener and add a lock when
downloading a certificate.

Bug: 1637965
2009-10-16 08:07:29 -04:00
Dave Sparks
2d3168dc29 am b9a22122: Merge change I0e09e56f into eclair
Merge commit 'b9a22122b08d749368f90128e29aff035031f8db' into eclair-mr2

* commit 'b9a22122b08d749368f90128e29aff035031f8db':
  Don't callback on NULL client. Bug 2180510.
2009-10-15 22:24:45 -07:00
Android (Google) Code Review
b9a22122b0 Merge change I0e09e56f into eclair
* changes:
  Don't callback on NULL client. Bug 2180510.
2009-10-16 01:19:10 -04:00
Joe Onorato
2b7e284dc1 am 034cd0be: Merge change I486fdb55 into eclair
Merge commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772' into eclair-mr2

* commit '034cd0be57d76b3bf5c7a3c118f6f10e67755772':
  Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
2009-10-15 20:39:51 -07:00
Android (Google) Code Review
034cd0be57 Merge change I486fdb55 into eclair
* changes:
  Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
2009-10-15 23:32:39 -04:00
Joe Onorato
486fdb5596 Fix bug 2183179 - Hitting the back key repeatedly makes the notification shade jump up and down
This thing needs to be rewritten.  It's grown too complicated for what it's doing,
and I don't like the physics anyway.

Also, this leaves the bug where if you press back while it's animating down, the
animation is ignored.  However it no longer jumps down all the way, it just
essentially ignores the back key.

Also, this makes the collapse get executed on the back key up event, so it works
with the swipe on the soft keys at the bottom of the screen.
2009-10-15 20:31:33 -07:00
Jason Sams
6c502d0b2a am 4f1d7656: Merge change I741a6100 into eclair
Merge commit '4f1d765699b1be320d49530313b750a4d153a0bb' into eclair-mr2

* commit '4f1d765699b1be320d49530313b750a4d153a0bb':
  Fix bug where dirty messages for allocations attached to programVertex objects could be lost.
2009-10-15 19:07:06 -07:00
Mike Lockwood
df284aa534 am 37a13208: Add separate configuration flag for hardware ALS support.
Merge commit '37a13208c93bbe00cf233baf1ebcd6e081972a27' into eclair-mr2

* commit '37a13208c93bbe00cf233baf1ebcd6e081972a27':
  Add separate configuration flag for hardware ALS support.
2009-10-15 19:06:52 -07:00
Jason Sams
193c985e44 am 41c19db9: Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code.
Merge commit '41c19db90e250e2b7cb438904f0e96a0ef455d6d' into eclair-mr2

* commit '41c19db90e250e2b7cb438904f0e96a0ef455d6d':
  Remove hack in RS that called exit to WAR now fixed driver bugs.  Make gloabal init safe by locking around the critical code.
2009-10-15 19:06:43 -07:00
Android (Google) Code Review
4f1d765699 Merge change I741a6100 into eclair
* changes:
  Fix bug where dirty messages for allocations attached to programVertex objects could be lost.
2009-10-15 21:47:03 -04:00
Jason Sams
741a6100a0 Fix bug where dirty messages for allocations attached to programVertex objects could be lost. 2009-10-15 18:45:45 -07:00
Mike Lockwood
37a13208c9 Add separate configuration flag for hardware ALS support.
A new flag config_hardware_automatic_brightness_available indicates
that the device has hardware support for automatic screen brightness management,
while config_automatic_brightness_available now indicates that automatic
brightness mode is available in general.

If config_automatic_brightness_available is true but config_hardware_automatic_brightness_available is false,
then automatic brightness mode support in PowerManager support will be used.

Bug b/2015734 (Ambient light sensor support in power manager)

Change-Id: I6cd888252043dd63df3c25a1d14c21a04a91ad28
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-10-15 19:58:33 -04:00
Jason Sams
41c19db90e Remove hack in RS that called exit to WAR now fixed driver bugs. Make gloabal init safe by locking around the critical code. 2009-10-15 16:47:31 -07:00
Jason Sams
8dab969302 am c7412b3b: Minor bug fixes and add glError check.
Merge commit 'c7412b3b08d62c298dc7c3e5f369f406a3c0eac2' into eclair-mr2

* commit 'c7412b3b08d62c298dc7c3e5f369f406a3c0eac2':
  Minor bug fixes and add glError check.
2009-10-15 16:17:08 -07:00
Jason Sams
8111da3ecf am 6a17e163: Add egl init start message to help debug driver init hangs.
Merge commit '6a17e163a0dca28c1b2f957561e909172b7259c8' into eclair-mr2

* commit '6a17e163a0dca28c1b2f957561e909172b7259c8':
  Add egl init start message to help debug driver init hangs.
2009-10-15 16:16:59 -07:00
Jason Sams
c7412b3b08 Minor bug fixes and add glError check. 2009-10-15 16:06:42 -07:00
Jason Sams
6a17e163a0 Add egl init start message to help debug driver init hangs. 2009-10-15 16:06:42 -07:00
jsh
1398295617 am 2a39758e: Merge change I51d41230 into eclair
Merge commit '2a39758ecb315a77f05800cc04f7ca65954c9026' into eclair-mr2

* commit '2a39758ecb315a77f05800cc04f7ca65954c9026':
  Make sure CF icon updates when using "all CF" MMI.
2009-10-15 15:57:28 -07:00
Android (Google) Code Review
2a39758ecb Merge change I51d41230 into eclair
* changes:
  Make sure CF icon updates when using "all CF" MMI.
2009-10-15 18:49:44 -04:00
Romain Guy
7d4134a1a6 am 173a25f6: Merge change I0d74deb6 into eclair
Merge commit '173a25f670e0e9cba2eb78d7c93bc1c0fc70b725' into eclair-mr2

* commit '173a25f670e0e9cba2eb78d7c93bc1c0fc70b725':
  Fix possible NPE in the code that restores widgets' state.
2009-10-15 15:42:05 -07:00
Android (Google) Code Review
173a25f670 Merge change I0d74deb6 into eclair
* changes:
  Fix possible NPE in the code that restores widgets' state.
2009-10-15 18:33:12 -04:00
Dave Sparks
dd158c9a90 Don't callback on NULL client. Bug 2180510.
We weren't checking to see if there was a valid camera client when
calling the notify callback function. Now we grab a strong pointer
before the callback to guarantee that the client is not destroyed
before we complete the callback. This change also fixes other
places in the code where we weren't holding a local strong pointer.
2009-10-15 15:18:08 -07:00
Romain Guy
a8a720d8cd Fix possible NPE in the code that restores widgets' state.
Bug #2189714
Reviewed by: ryanpc

Change-Id: I0d74deb6dc8e90e3b0eafd6b3c16b0c557c72873
2009-10-15 15:09:26 -07:00
Leon Scroggins
be3feda46e Do not show soft keyboard for readonly textfields.
Part of a fix for http://b/issue?id=2159869.  The request to show
the soft input has been moved to nativeTextInputMotionUp, where it
can check if the input field is readOnly.  This way it is also
handled by shortPressOnTextField, for when a user shortpresses
on the field.
2009-10-15 15:44:37 -04:00
Android (Google) Code Review
9f20882402 Merge change I7f97011b into eclair-mr2
* changes:
  check for native initialization before calling public function
2009-10-15 15:41:06 -04:00
Cary Clark
7f97011b55 check for native initialization before calling public function
Added more checks where it is possible to call a native function
after creating a WebView but before the native side is initialized.

These cases can be triggered by the monkey.

Fixes http://b/issue?id=2187719
2009-10-15 15:29:08 -04:00
Guang Zhu
d1a720d06f am 9e58e642: Enable some tests that requires local http server
Merge commit '9e58e6427c8e5fefb65432ea4b56c6cb31e80bbd' into eclair-mr2

* commit '9e58e6427c8e5fefb65432ea4b56c6cb31e80bbd':
  Enable some tests that requires local http server
2009-10-15 11:59:05 -07:00
Android (Google) Code Review
4874dcd417 Merge change I1a23191b into eclair-mr2
* changes:
  fix build
2009-10-15 14:33:39 -04:00
Fred Quintana
1a23191bbd fix build 2009-10-15 11:31:30 -07:00
Android (Google) Code Review
662e49912a Merge change I6719d39d into eclair-mr2
* changes:
  Fix alert dialog separator
2009-10-15 14:15:03 -04:00
Guang Zhu
9e58e6427c Enable some tests that requires local http server 2009-10-15 11:01:30 -07:00
Tom Taylor
6719d39db1 Fix alert dialog separator
Update the line that separates the alert dialog's title from a custom view
with the correct asset to match the rest of the UI.
2009-10-15 11:01:26 -07:00
Cary Clark
badd8399ca fix copy/paste using trackball on passion
This fix should be considered for passion mr1, but
does not affect sholes -- this is a trackball only bug.

The selection caret and arrow now take the scale factor and
the height of the title bar into account when preparing the
canvas for drawing.

Clicking the trackball at the end of selecting text no longer
sends a click event.

Requires a companion fix in external/webkit
Fixes http://b/issue?id=2187591
2009-10-15 13:55:06 -04:00
Android (Google) Code Review
70d71fdcbf Merge change Ib839afc3 into eclair-mr2
* changes:
  remove the bind helper and bind directly
2009-10-15 13:16:31 -04:00
Android (Google) Code Review
d753f070f7 Merge change I5d199964 into eclair-mr2
* changes:
  add an IPC for sync initialization
2009-10-15 12:43:23 -04:00
Scott Main
f18b9311e8 am 30a6657e: Merge change Ic9b31801 into eclair
Merge commit '30a6657ec6051ba5a1c72a714c9dc535dff127a4' into eclair-mr2

* commit '30a6657ec6051ba5a1c72a714c9dc535dff127a4':
  docs: setup new SDK documentation for 2.0 and change sdk build version to 2.0...
2009-10-14 18:02:32 -07:00
Android (Google) Code Review
30a6657ec6 Merge change Ic9b31801 into eclair
* changes:
  docs: setup new SDK documentation for 2.0 and change sdk build version to 2.0... move upgrading doc into a new guide for "updating" with the new manager tools and remove the previous updating doc from the dev guide. set up preliminary download page and guide for installing the full SDK. add the requirements doc in sdk/ for all general purposes. revise the download 'thank you' message.
2009-10-14 20:52:50 -04:00
Scott Main
efd83af0a7 docs: setup new SDK documentation for 2.0 and change sdk build version to 2.0...
move upgrading doc into a new guide for "updating" with
the new manager tools and remove the previous updating doc
from the dev guide. set up preliminary download page and guide
for installing the full SDK. add the requirements doc in sdk/
for all general purposes. revise the download 'thank you'
message.

bug: 2160782
2009-10-14 17:44:13 -07:00
jsh
51d412304f Make sure CF icon updates when using "all CF" MMI.
Fixes b/2074739.
2009-10-14 16:57:16 -07:00
Android (Google) Code Review
e54ebd8c4f Merge change I647ae75e into eclair-mr2
* changes:
  Add Gservice for vending_restore_window, this determines the duration after first setup, during which we do not reconcile backup apps. after that apps restored via market/backup will be treated just like any other app and being synced with the server state.
2009-10-14 19:53:09 -04:00
Android (Google) Code Review
8b12144dad Merge change I170c8251 into eclair-mr2
* changes:
  Add tests and fix vCard code.
2009-10-14 19:40:25 -04:00
Android (Google) Code Review
df830fdaf3 Merge change I52c235db into eclair-mr2
* changes:
  Return valid package info for packages that have been uninstalled with an option to retain data and resources using the flag GET_UNINSTALLED_PACKAGES These packages do not have a package setting. just check the flag and return the required info from PackageParser.generatePackageInfo
2009-10-14 19:32:47 -04:00
Daisuke Miyakawa
99a0a2cd73 Add tests and fix vCard code.
Now, basic tests are almost ready.

TODO:
- importer test toward multiple vCard input (though it was tested with real usage)
- exporter tests for multiple composition
- tests with non-Ascii
- tests with special types like TYPE_DOCOMO

ISSUE:
In order to fully check the validity of exporter, we may have to develop
some vCard importer which rejects vCard which is valid but a kind of dubious.

Internal Issue Number: 2160039
2009-10-14 16:07:40 -07:00
Fred Quintana
e7424ffdaf add an IPC for sync initialization 2009-10-14 16:06:39 -07:00
Fred Quintana
b839afc33e remove the bind helper and bind directly 2009-10-14 15:57:28 -07:00