360 Commits

Author SHA1 Message Date
Dianne Hackborn
a085d5e747 am 0b03fa8b: am 490d5222: Merge change I6cacaa0d into eclair
Merge commit '0b03fa8b6f1bda3dd3fa7544dd16f88441ea6fad'

* commit '0b03fa8b6f1bda3dd3fa7544dd16f88441ea6fad':
  Hack to fix issue #2125365: Sports Trivia compatability with Eclair
2009-10-01 11:16:09 -07:00
Dianne Hackborn
afa78967b8 Hack to fix issue #2125365: Sports Trivia compatability with Eclair
Adds a mechanism to tell Paint the scaling factor its target
canvas will have, for it to compute font metrics based on the
correct font size.  Only TextView uses this, but that is enough
for the large majority of apps.

Change-Id: I6cacaa0dd26d40ee3ad959bed0028678d6e9016e
2009-09-28 17:33:54 -07:00
Nick Pelly
15039f91d0 am 3ecb11e0: am 65dea14c: Merge change 27129 into eclair
Merge commit '3ecb11e099e8c0c84381c38775103cc7d42234d6'

* commit '3ecb11e099e8c0c84381c38775103cc7d42234d6':
  Bounds check read and write path in native code.
2009-09-28 01:12:24 -07:00
Nick Pelly
57a2292bff Bounds check read and write path in native code.
Already checked in Java, but requested by security review.

Change-Id: I5314dbc32546278b977236a154fba03f38610b1a
2009-09-25 14:13:49 -07:00
Nick Pelly
561837422a am b2209a35: am 1a42cfac: Use LM_SECURE when auth && encrypt.
Merge commit 'b2209a35af672c086c28fbcf3a5101bbb10eb523'

* commit 'b2209a35af672c086c28fbcf3a5101bbb10eb523':
  Use LM_SECURE when auth && encrypt.
2009-09-25 11:16:24 -07:00
Chih-Chung Chang
0cff245456 am 5e367bfe: am 0665ae22: Merge change 26939 into eclair
Merge commit '5e367bfe0726d7d7108279721179dcd6de326ee5'

* commit '5e367bfe0726d7d7108279721179dcd6de326ee5':
  Fix 2101425: Camera crashes spontaneously in preview.
2009-09-25 11:15:04 -07:00
Mike Reed
ec44a6932a am e493bf79: am 9251c344: Merge change 26851 into eclair
Merge commit 'e493bf7985ad4cac7bafcfa788eb281b694967aa'

* commit 'e493bf7985ad4cac7bafcfa788eb281b694967aa':
  use new setDither on ImageRef to retain that setting for purgeable images
2009-09-25 11:05:07 -07:00
Dianne Hackborn
466ccfd9ef am 5ddbc0d5: am de0dfb7b: Fix issue #2125720 Weather Forecast Widget - graphics do not scale
Merge commit '5ddbc0d59d8143d50a19950624c38fdb8102156b'

* commit '5ddbc0d59d8143d50a19950624c38fdb8102156b':
  Fix issue #2125720 Weather Forecast Widget - graphics do not scale
2009-09-25 10:52:48 -07:00
Nick Pelly
1a42cfac15 Use LM_SECURE when auth && encrypt.
LM_SECURE enforces man in the middle (MITM) protection.

Change-Id: Ia800bb657b429f8872d72072f7c9450a74028af0
2009-09-24 19:36:27 -07:00
Android (Google) Code Review
0665ae22aa Merge change 26939 into eclair
* changes:
  Fix 2101425: Camera crashes spontaneously in preview.
2009-09-24 19:59:08 -04:00
Chih-Chung Chang
6157de0e2d Fix 2101425: Camera crashes spontaneously in preview.
The problem is we missed an "obj" parameter while calling
postEventFromNative (which put it in a field of a Message object),
so a garbage value on stack is used.

When the GC tries to follow that "obj" field, expecting to find
another object, it crashes.
2009-09-24 15:38:18 -07:00
Android (Google) Code Review
9251c34459 Merge change 26851 into eclair
* changes:
  use new setDither on ImageRef to retain that setting for purgeable images
2009-09-24 12:38:23 -04:00
Mike Reed
17154417e8 use new setDither on ImageRef to retain that setting for purgeable images 2009-09-24 12:35:27 -04:00
Dianne Hackborn
de0dfb7b65 Fix issue #2125720 Weather Forecast Widget - graphics do not scale
I forgot to add the new density field to the Bitmaps' parcelable data.

Change-Id: I77cf3e93e356297e0caed6fc71b62b5cd8f79124
2009-09-23 14:26:02 -07:00
Wu-cheng Li
8f7bd3031a am cd3a0242: am ffe1cf25: Unhide Camera lock and unlock API.
Merge commit 'cd3a02425179ea881f3534d687c143a2ce683684'

* commit 'cd3a02425179ea881f3534d687c143a2ce683684':
  Unhide Camera lock and unlock API.
2009-09-20 17:18:03 -07:00
Wu-cheng Li
ffe1cf251a Unhide Camera lock and unlock API. 2009-09-21 07:28:44 +08:00
Jaikumar Ganesh
34e4f6267e am 1781edd2: am 0647b580: Merge change 25970 into eclair
Merge commit '1781edd28639b23443f9d319d1e5cea41acab8e9'

* commit '1781edd28639b23443f9d319d1e5cea41acab8e9':
  Make removeBond() call async.
2009-09-20 13:30:06 -07:00
Jaikumar Ganesh
995ae82f38 Make removeBond() call async.
This call has been synchronus since Bluez3.36.
However, since the semantics for all Bluetooth API calls are
asynchronous make this so too. It does fix an occasional ANR
seen while unpairing.

Change-Id: If81f8ec262ea1f6f62775282ab33855a8669c41a
2009-09-20 11:28:34 -07:00
Jaikumar Ganesh
f1aa097ddc am 480a353f: am ac810e53: Merge change 25779 into eclair
Merge commit '480a353f589035b62a81e2981cfba325ad1264f2'

* commit '480a353f589035b62a81e2981cfba325ad1264f2':
  Add new API for fetching UUIDs using SDP.
2009-09-19 11:47:16 -07:00
Jaikumar Ganesh
1caa6d111e Add new API for fetching UUIDs using SDP.
Add new API which clients can use to force an SDP query.
The result is broadcast using an intent having the UUIDs.
The intent is broadcast after a timeout, in case of an error.
This timeout is greater than the page timeout.

Change-Id: I61e6db4c05b34c42f679a66987e37e2063a793b6
2009-09-19 11:29:24 -07:00
Jaikumar Ganesh
2548794913 am 7a00336c: am cfc7f1aa: Merge change 25382 into eclair
Merge commit '7a00336cadace0f7c1a3151953709a739c073337'

* commit '7a00336cadace0f7c1a3151953709a739c073337':
  Fix async calls with Connect And Disconnect Sink.
2009-09-17 12:13:16 -07:00
Chih-Chung Chang
ae5e468f65 am e8f77e69: am 244f8c26: Fix 2083478: Camera needs an auto-focus cancel API
Merge commit 'e8f77e69c095ff029c114159d8ae7ecb3b10d762'

* commit 'e8f77e69c095ff029c114159d8ae7ecb3b10d762':
  Fix 2083478: Camera needs an auto-focus cancel API
2009-09-16 23:57:30 -07:00
San Mehat
18cc8fb537 am d5b281f4: am aa931bcb: Merge change 24841 into eclair
Merge commit 'd5b281f4b4e018a41846f1e81d02e75059bf7030'

* commit 'd5b281f4b4e018a41846f1e81d02e75059bf7030':
  process: Switch to common cutils sched_policy api
2009-09-16 23:55:25 -07:00
Jaikumar Ganesh
4f3ebc43af Fix async calls with Connect And Disconnect Sink.
Change-Id: I814c7fdf40ec0d6aefeb410b1a1b1572ab4a8d88
2009-09-16 17:27:10 -07:00
Jaikumar Ganesh
01c0a12985 am e08e60a7: am 32d8571f: Changes for BT 2.1
Merge commit 'e08e60a7cbb07b84d18b3b6cb35b64b33bdc3cb0'

* commit 'e08e60a7cbb07b84d18b3b6cb35b64b33bdc3cb0':
  Changes for BT 2.1
2009-09-15 13:17:45 -07:00
Dianne Hackborn
295c900011 am b7860bea: am 8cae124a: Various cleanup around resources and nine-patches.
Merge commit 'b7860bea3bcbd5217f42f2fa5ead4c498600d517'

* commit 'b7860bea3bcbd5217f42f2fa5ead4c498600d517':
  Various cleanup around resources and nine-patches.
2009-09-15 13:17:17 -07:00
Jaikumar Ganesh
1006988baf am e291ee80: am 7ff269f3: Merge change 24735 into eclair
Merge commit 'e291ee80006e2c91480d1d856a3771ec6b7c2cc8'

* commit 'e291ee80006e2c91480d1d856a3771ec6b7c2cc8':
  Handle DisconnectRequested message sent by Bluez.
2009-09-15 13:16:23 -07:00
Mike Reed
c1523fdf31 am e450e55d: am d68781ac: Merge change 24675 into eclair
Merge commit 'e450e55d6395a3052f93946da42757a7f6df2ad1'

* commit 'e450e55d6395a3052f93946da42757a7f6df2ad1':
  change default for dither to true
2009-09-15 13:15:52 -07:00
Chih-Chung Chang
244f8c2636 Fix 2083478: Camera needs an auto-focus cancel API
Change-Id: I13bda991b32aee47e82b5cf9d43b3021c416a9a2
2009-09-15 18:29:03 +08:00
San Mehat
242d65bf9f process: Switch to common cutils sched_policy api
Signed-off-by: San Mehat <san@google.com>
2009-09-12 10:48:03 -07:00
Jaikumar Ganesh
32d8571f50 Changes for BT 2.1
1) Handle incoming 2.1 pairing requests
2) Modify displaying error messages on bond failures.
3) Add delay while accepting incoming pairing for certain 2.1 devices.
When MITM is on, the link key request might come more than once.
Auto accept with a delay.
4) Handle DisplayPasskey callback for pairing a 2.1 keyboard with
a 2.1 device
2009-09-11 14:12:48 -07:00
Dianne Hackborn
8cae124af2 Various cleanup around resources and nine-patches.
Remove the stuff that doesn't use preloaded drawables when in
compatibility mode, since this works fine ever since we were able
to deal with drawables in a different density than the canvas.

Change the snapshot function on View to return a snapshot at
the same size that will actually be drawn on screen (when in
compatibility mode), to be able to show scaling artifacts and
all.

This change was original an attempt to fix issue #2101917: Text
field edges appears to be improperly rounded.  That turns out to
probably be something deeper in the graphics system, but also
included here is the debugging code I did to try to track down the
problem to make it easy to turn on again later.

Change-Id: I34bfca629639c7ff103f3989d88874112ef778d9
2009-09-11 13:31:45 -07:00
Ben Cheng
acc56ec7d7 Add support to suppress individual JIT optimizations. 2009-09-11 13:06:06 -07:00
Android (Google) Code Review
7ff269f359 Merge change 24735 into eclair
* changes:
  Handle DisconnectRequested message sent by Bluez.
2009-09-11 15:24:01 -04:00
Jaikumar Ganesh
5e59ca8ae4 Handle DisconnectRequested message sent by Bluez. 2009-09-11 12:16:19 -07:00
Mike Reed
211db4a287 change default for dither to true 2009-09-11 14:40:15 -04:00
San Mehat
181b31a0d8 Process: Add support for using scheduler policies instead of cgroups.
Preference is given to cgroups if available.

Signed-off-by: San Mehat <san@google.com>
2009-09-10 15:09:38 -07:00
Eric Laurent
96c08a69ea Fix issue 1992233: DTMF tones on Sholes is really long.
Add a parameter to ToneGenerator.startTone() allowing the caller to specify the tone duration. This is used by the phone application to have a precise control on the DTMF tone duration which was not possible with the use of delayed messaged.
Also modified AudioFlinger output threads so that 0s are written to the audio output stream when no more tracks are ready to mix instead of just sleeping. This avoids an issue where the end of a previous DTMF tone could stay in audio hardware buffers and be played just before the beginning of the next DTMF tone.
2009-09-08 22:56:07 -07:00
Dianne Hackborn
0586a1b77a Fix issue #2095422: Some fades from opaque to transparent don't work
ViewRoot was using Surface.clear(), which has different behavior
in different processes -- in the system process it would kill the
surface, causing all windows in that process to immediately disappear
instead of animating away.

This change makes Surface.release() public and uses that instead.  It
also renames Surface.clear() to Surface.destroy().

Also fixed some issues in the window manager that were causing the
wallpaper to not get immediately resized when the orientation changes
and its target window is removed and re-added.

Change-Id: I2a992e365cf5747511f0bf1193db32dc2525b218
2009-09-07 01:01:15 -07:00
Eddie Ho
eb40aae254 GPS: Fix race condition reporting NMEA data.
Change-Id: I80997e2686d9c08d7d2def094f9922e83cf41013
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-04 07:05:08 -04:00
Android (Google) Code Review
d4c1baf937 Merge change 23646 into eclair
* changes:
  Immediately destroy BluetoothSocket's on close().
2009-09-02 16:01:15 -07:00
Nick Pelly
71c3c7806a Immediately destroy BluetoothSocket's on close().
Unfortunatley, shutdown() on the underlying fd does not actually stop a
listening socket from listening. You need to call close() on the fd to
do this. There is no way around it.

So this means the Java BluetoothSocket code has to call destroyNative() during
BluetoothSocket.close().

Since native methods cannot be called after destroyNative(), add a ReadWrite
lock and mClosed field to protect access to native methods.

This fixes the "resource busy" error when Bluetooth OPP and Bluetooth PBAP
tried to resume listening after turning BT off and then on.
2009-09-02 11:51:35 -07:00
Android (Google) Code Review
c937b5ce4f Merge change 23463 into eclair
* changes:
  Wait for HCI to come up if getting the adapter path fails.
2009-09-01 19:19:47 -07:00
Jaikumar Ganesh
176c3d64a7 Wait for HCI to come up if getting the adapter path fails. 2009-09-01 19:17:02 -07:00
Android (Google) Code Review
485e6dca96 Merge change 23462 into eclair
* changes:
  Add Bluetooth Device trust
2009-09-01 14:10:06 -07:00
Lixin Yue
efa1dd716d Add Bluetooth Device trust 2009-09-01 13:58:31 -07:00
Dianne Hackborn
3025ef332c Various infrastructure to support a running services UI.
Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
2009-09-01 11:16:25 -07:00
Android (Google) Code Review
ad82219718 Merge change 23380 into eclair
* changes:
  Change util_texSubImage2D to call glCompressedTexImage2D correctly.
2009-08-31 17:45:03 -07:00
Jack Palevich
106006cbde Change util_texSubImage2D to call glCompressedTexImage2D correctly.
Previously we had been setting the imageSize parameter to 0, which was
incorrect. According to the OpenGL ES spec for glCompressedTexImage2D
this parameter should be the size in bytes of the compressed data.
2009-08-31 17:42:50 -07:00
Android (Google) Code Review
450ff8a48c Merge change 23357 into eclair
* changes:
  Fix double-free problem in EmojiFactory.
2009-08-31 16:33:10 -07:00