Commit Graph

4933 Commits

Author SHA1 Message Date
77b722b60f am 5e6aa492: am 2086152c: am f55aa972: Merge change I01935be3 into eclair
Merge commit '5e6aa492b78f38d0dabaaa1559e2a3afe5259d74'

* commit '5e6aa492b78f38d0dabaaa1559e2a3afe5259d74':
  Remove PowerManager.setAutoBrightness()
2009-10-16 09:59:13 -07:00
5e6aa492b7 am 2086152c: am f55aa972: Merge change I01935be3 into eclair
Merge commit '2086152c1b60ad3bfe85c1ddc3871cff77e6da1b' into eclair-mr2-plus-aosp

* commit '2086152c1b60ad3bfe85c1ddc3871cff77e6da1b':
  Remove PowerManager.setAutoBrightness()
2009-10-16 09:48:30 -07:00
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
f55aa972f9 Merge change I01935be3 into eclair
* changes:
  Remove PowerManager.setAutoBrightness()
2009-10-16 12:29:15 -04:00
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
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
8a7df536ae am 93968f43: am e1f43dad: Share chunks between all ByteArrayBuilders.
Merge commit '93968f43aff775395f71b7e03316dad6c4bea473'

* commit '93968f43aff775395f71b7e03316dad6c4bea473':
  Share chunks between all ByteArrayBuilders.
2009-10-16 05:37:01 -07:00
93968f43af am e1f43dad: Share chunks between all ByteArrayBuilders.
Merge commit 'e1f43dadb9a1f0744f7e24373ca796c7a8ca2b12' into eclair-mr2-plus-aosp

* commit 'e1f43dadb9a1f0744f7e24373ca796c7a8ca2b12':
  Share chunks between all ByteArrayBuilders.
2009-10-16 05:31:59 -07:00
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
68608741d4 am 49f8a0ee: am 7d4134a1: am 173a25f6: Merge change I0d74deb6 into eclair
Merge commit '49f8a0ee916c70dd5322d5f18951d50725ed3f95'

* commit '49f8a0ee916c70dd5322d5f18951d50725ed3f95':
  Fix possible NPE in the code that restores widgets' state.
2009-10-15 19:23:49 -07:00
49f8a0ee91 am 7d4134a1: am 173a25f6: Merge change I0d74deb6 into eclair
Merge commit '7d4134a1a67872c056d05330b1453395a7c8c4d1' into eclair-mr2-plus-aosp

* commit '7d4134a1a67872c056d05330b1453395a7c8c4d1':
  Fix possible NPE in the code that restores widgets' state.
2009-10-15 19:13:51 -07:00
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
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
94bda52a51 am f6411533: am be3feda4: Do not show soft keyboard for readonly textfields.
Merge commit 'f6411533ef8a4e6759dd214636ba3ab1ea25f774'

* commit 'f6411533ef8a4e6759dd214636ba3ab1ea25f774':
  Do not show soft keyboard for readonly textfields.
2009-10-15 13:17:18 -07:00
f6411533ef am be3feda4: Do not show soft keyboard for readonly textfields.
Merge commit 'be3feda46eac18a05aaea47d7ef34b611f8be6be' into eclair-mr2-plus-aosp

* commit 'be3feda46eac18a05aaea47d7ef34b611f8be6be':
  Do not show soft keyboard for readonly textfields.
2009-10-15 13:07:40 -07:00
3e1bfce7ff am 800ca40d: am 9f208824: Merge change I7f97011b into eclair-mr2
Merge commit '800ca40dfa296a90ec2dd2ae526b39181a809bc5'

* commit '800ca40dfa296a90ec2dd2ae526b39181a809bc5':
  check for native initialization before calling public function
2009-10-15 12:53:31 -07:00
800ca40dfa am 9f208824: Merge change I7f97011b into eclair-mr2
Merge commit '9f2088240272086cd9eb94d01b1872a1088b76f2' into eclair-mr2-plus-aosp

* commit '9f2088240272086cd9eb94d01b1872a1088b76f2':
  check for native initialization before calling public function
2009-10-15 12:48:17 -07:00
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
9f20882402 Merge change I7f97011b into eclair-mr2
* changes:
  check for native initialization before calling public function
2009-10-15 15:41:06 -04:00
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
901035acb6 am efe1910b: am 4874dcd4: Merge change I1a23191b into eclair-mr2
Merge commit 'efe1910b375d751a73c9c8d6204759731014cd8c'

* commit 'efe1910b375d751a73c9c8d6204759731014cd8c':
  fix build
2009-10-15 12:09:58 -07:00
efe1910b37 am 4874dcd4: Merge change I1a23191b into eclair-mr2
Merge commit '4874dcd417d7a07a8e802709c5d6895dc408d422' into eclair-mr2-plus-aosp

* commit '4874dcd417d7a07a8e802709c5d6895dc408d422':
  fix build
2009-10-15 11:41:21 -07:00
4874dcd417 Merge change I1a23191b into eclair-mr2
* changes:
  fix build
2009-10-15 14:33:39 -04:00
1a23191bbd fix build 2009-10-15 11:31:30 -07:00
69661d3666 am fc52737e: am badd8399: fix copy/paste using trackball on passion
Merge commit 'fc52737ecc8f62b403d0ce534bc7f01fa9c6749a'

* commit 'fc52737ecc8f62b403d0ce534bc7f01fa9c6749a':
  fix copy/paste using trackball on passion
2009-10-15 11:12:54 -07:00
fc52737ecc am badd8399: fix copy/paste using trackball on passion
Merge commit 'badd8399ca803f48ca43658b49c1cdcf0e3ec250' into eclair-mr2-plus-aosp

* commit 'badd8399ca803f48ca43658b49c1cdcf0e3ec250':
  fix copy/paste using trackball on passion
2009-10-15 11:02:27 -07:00
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
462e1b5d6c am 033696e0: am 70d71fdc: Merge change Ib839afc3 into eclair-mr2
Merge commit '033696e0597b64e54c2efa82ac618d6e4228571f'

* commit '033696e0597b64e54c2efa82ac618d6e4228571f':
  remove the bind helper and bind directly
2009-10-15 10:29:55 -07:00
033696e059 am 70d71fdc: Merge change Ib839afc3 into eclair-mr2
Merge commit '70d71fdcbf365ed148f2f4252a6975851424637e' into eclair-mr2-plus-aosp

* commit '70d71fdcbf365ed148f2f4252a6975851424637e':
  remove the bind helper and bind directly
2009-10-15 10:24:29 -07:00
70d71fdcbf Merge change Ib839afc3 into eclair-mr2
* changes:
  remove the bind helper and bind directly
2009-10-15 13:16:31 -04:00
2bc632bcf1 am 3ff0a5e5: am d753f070: Merge change I5d199964 into eclair-mr2
Merge commit '3ff0a5e55da0af3e120adbcc6ec3494d0905964e'

* commit '3ff0a5e55da0af3e120adbcc6ec3494d0905964e':
  add an IPC for sync initialization
2009-10-15 09:59:53 -07:00
3ff0a5e55d am d753f070: Merge change I5d199964 into eclair-mr2
Merge commit 'd753f070f73e41bcd316c562e3b807aaf4bf1017' into eclair-mr2-plus-aosp

* commit 'd753f070f73e41bcd316c562e3b807aaf4bf1017':
  add an IPC for sync initialization
2009-10-15 09:50:40 -07:00
d753f070f7 Merge change I5d199964 into eclair-mr2
* changes:
  add an IPC for sync initialization
2009-10-15 12:43:23 -04:00
7e60acdac2 am 144c8eb7: am e54ebd8c: Merge change I647ae75e into eclair-mr2
Merge commit '144c8eb7abbfcfdc7ffcc8caa57472b9b7dbda62'

* commit '144c8eb7abbfcfdc7ffcc8caa57472b9b7dbda62':
  Add Gservice for vending_restore_window, this determines the duration after first setup, during which we do not reconcile backup apps.
2009-10-14 18:16:34 -07:00
144c8eb7ab am e54ebd8c: Merge change I647ae75e into eclair-mr2
Merge commit 'e54ebd8c4f589a0a4a257a8d79b288dda67f3f8c' into eclair-mr2-plus-aosp

* commit 'e54ebd8c4f589a0a4a257a8d79b288dda67f3f8c':
  Add Gservice for vending_restore_window, this determines the duration after first setup, during which we do not reconcile backup apps.
2009-10-14 18:11:22 -07:00
1867b9a4c0 am ca802b6e: am 8b12144d: Merge change I170c8251 into eclair-mr2
Merge commit 'ca802b6ed5f60d3abc38d103b1cbd35e8883c4ca'

* commit 'ca802b6ed5f60d3abc38d103b1cbd35e8883c4ca':
  Add tests and fix vCard code.
2009-10-14 16:56:21 -07:00
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
ca802b6ed5 am 8b12144d: Merge change I170c8251 into eclair-mr2
Merge commit '8b12144dad94bc0807e20590d72b4aadc56189d4' into eclair-mr2-plus-aosp

* commit '8b12144dad94bc0807e20590d72b4aadc56189d4':
  Add tests and fix vCard code.
2009-10-14 16:46:09 -07:00
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
e7424ffdaf add an IPC for sync initialization 2009-10-14 16:06:39 -07:00
b839afc33e remove the bind helper and bind directly 2009-10-14 15:57:28 -07:00
c9ce985dab am 4a7ab6c2: am c4989b1b: update the authtoken permission granting UI
Merge commit '4a7ab6c24ccaefb21ac8b502e3d7f92dbd9bbae3'

* commit '4a7ab6c24ccaefb21ac8b502e3d7f92dbd9bbae3':
  update the authtoken permission granting UI
2009-10-14 15:51:26 -07:00
4a7ab6c24c am c4989b1b: update the authtoken permission granting UI
Merge commit 'c4989b1b75848acbeaf53850fbcfbf2f8812e325' into eclair-mr2-plus-aosp

* commit 'c4989b1b75848acbeaf53850fbcfbf2f8812e325':
  update the authtoken permission granting UI
2009-10-14 15:43:20 -07:00
647ae75e57 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 15:26:08 -07:00
c4989b1b75 update the authtoken permission granting UI
http://b/issue?id=2165284
2009-10-14 15:24:46 -07:00
1405a8b908 am e5856933: am 25415e2b: draw filtered if dragging but not moving after a 100ms delay
Merge commit 'e58569335279fa2d9a87ce7dffec97d4a317d7a1'

* commit 'e58569335279fa2d9a87ce7dffec97d4a317d7a1':
  draw filtered if dragging but not moving after a 100ms delay
2009-10-14 11:08:20 -07:00
e585693352 am 25415e2b: draw filtered if dragging but not moving after a 100ms delay
Merge commit '25415e2b9c80050525a0ebd51cecdaa5b1396674' into eclair-mr2-plus-aosp

* commit '25415e2b9c80050525a0ebd51cecdaa5b1396674':
  draw filtered if dragging but not moving after a 100ms delay
2009-10-14 11:01:36 -07:00
25415e2b9c draw filtered if dragging but not moving after a 100ms delay
Some artifacts show up when dragging, but since the screen is in
motion, they're usually go unnoticed. If one quits moving, the
artifacts are more visible.

Some devices generate fractional movement data while the
screen is touched and held steady; others do not. Also, mouse-based
implementations will not generate random fractional movements. If
the device generates movements, invalidate the screen to transition
once from unfiltered to filtered drawing.

For the case that the device does not generate movements, fire a
timer when the screen is drawn and a drag is in progress to detect
that there is no drag motion.

The timer fires if the dragged screen is unmoved for 100 ms, then
invalidates so the next redraw uses filtering to remove the artifacts,
and starts a continuous timer to keep the scrollbar awake until
the drag ends or there is more drag motion.

When detecting that there is no effective movement on a noisy device,
use the original fractional deltas instead of the integer ones to
detect sub 1 pixel differences.

This was tested on the emulator (no noise) and a sapphire (noise)
to make sure that events load the queue only when required.

fixes http://b/issue?id=2092446
2009-10-14 13:53:19 -04:00
101dbb3e07 am e020ff61: am 0a299af2: am fe4c8715: Making new Contacts APIs visible in Eclair SDK - Part II
Merge commit 'e020ff61750d8b1e9a4d8880391472598af173e3'

* commit 'e020ff61750d8b1e9a4d8880391472598af173e3':
  Making new Contacts APIs visible in Eclair SDK - Part II
2009-10-14 07:56:55 -07:00
e020ff6175 am 0a299af2: am fe4c8715: Making new Contacts APIs visible in Eclair SDK - Part II
Merge commit '0a299af21fda41aac8126ff40808ff82135eaf9c' into eclair-mr2-plus-aosp

* commit '0a299af21fda41aac8126ff40808ff82135eaf9c':
  Making new Contacts APIs visible in Eclair SDK - Part II
2009-10-14 07:47:18 -07:00