3304 Commits

Author SHA1 Message Date
Android (Google) Code Review
64d4d8343f Merge change 4698
* changes:
  Fix bug in BluetoothInputStream.read().
2009-06-18 17:42:25 -07:00
Android (Google) Code Review
6be4025b12 am 2810f681: Merge change 4694 into donut
Merge commit '2810f681991d1beb5ceb3515159f9fad3cc341d5'

* commit '2810f681991d1beb5ceb3515159f9fad3cc341d5':
  Make SettingsProviders SecurityException messages more verbose.
2009-06-18 17:26:48 -07:00
Android (Google) Code Review
2810f68199 Merge change 4694 into donut
* changes:
  Make SettingsProviders SecurityException messages more verbose.
2009-06-18 17:24:47 -07:00
Android (Google) Code Review
0c7b07a003 Merge change 4692
* changes:
  Replace spins with proper pthread conditions.
2009-06-18 17:21:31 -07:00
Android (Google) Code Review
5c2f39af8d am 167dbe0b: Merge change 4670 into donut
Merge commit '167dbe0bf1f8d807d1ced400f146b7780eb6c721'

* commit '167dbe0bf1f8d807d1ced400f146b7780eb6c721':
  Update RandomBlock to use RandomAccessFile.  This helps
2009-06-18 17:07:29 -07:00
Android (Google) Code Review
167dbe0bf1 Merge change 4670 into donut
* changes:
  Update RandomBlock to use RandomAccessFile.  This helps prevent certain unusual conditions from corrupting the entropy file.  (for example, if Android should happen to crash while a write is in progress)
2009-06-18 17:05:19 -07:00
Brett Chabot
16dd82cfdc Make SettingsProviders SecurityException messages more verbose. 2009-06-18 17:05:03 -07:00
Android (Google) Code Review
351b36c414 am 0bceb77b: Merge change 4669 into donut
Merge commit '0bceb77b004a688ca044b794e0622385c6e2953d'

* commit '0bceb77b004a688ca044b794e0622385c6e2953d':
  Fixes #1922373. Resolves a case of keys collision in Resources' cache.
2009-06-18 17:03:10 -07:00
Android (Google) Code Review
0bceb77b00 Merge change 4669 into donut
* changes:
  Fixes #1922373. Resolves a case of keys collision in Resources' cache.
2009-06-18 17:01:37 -07:00
Jason Sams
5f7fc27dce Replace spins with proper pthread conditions. 2009-06-18 16:58:42 -07:00
Nick Pelly
8edae3dfd3 Fix bug in BluetoothInputStream.read().
InputStream.read() must return values in range [0, 255]. But the previous code
would sign extend when casting to int so return [-128, 127]. Bitwise AND with
0xff to remove sign extension.
2009-06-18 16:25:47 -07:00
Android (Google) Code Review
e4839c4325 am 07eac016: Merge change 4682 into donut
Merge commit '07eac016446c63711bebe6e553e98c02d1fe55a5'

* commit '07eac016446c63711bebe6e553e98c02d1fe55a5':
  Store the app signatures as part of the backup set
2009-06-18 16:17:12 -07:00
Android (Google) Code Review
07eac01644 Merge change 4682 into donut
* changes:
  Store the app signatures as part of the backup set
2009-06-18 16:15:47 -07:00
Christopher Tate
6785dd8420 Store the app signatures as part of the backup set
Under a pseudo-app for the Package Manager, we store the app signatures for all
participating applications installed on the device.  At restore time we will
restore this first, then ensure that the current on-device signature chain is
compatible with the one in the backup set.  If there's a mismatch, this may be a
spoof attempt and we will refuse to restore that app's data.

The restore side of this is not implemented, but the Package Manager agent is
here as well as the backup side theoretically pushing the data now.
2009-06-18 15:58:25 -07:00
Android (Google) Code Review
eba76ad5c8 am c9dc19bb: Merge change 4668 into donut
Merge commit 'c9dc19bb96d2d77ec50f6e40fc22d1ff615f2044'

* commit 'c9dc19bb96d2d77ec50f6e40fc22d1ff615f2044':
  Fix runtime restarts due to sending the wrong flags to dbus.
2009-06-18 15:43:34 -07:00
Android (Google) Code Review
e9c1970bbf am b1cdb648: Merge change 4565 into donut
Merge commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982'

* commit 'b1cdb64877ebd3b8c5182913ff02edd8b54a6982':
  Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
2009-06-18 15:43:28 -07:00
Android (Google) Code Review
c9dc19bb96 Merge change 4668 into donut
* changes:
  Fix runtime restarts due to sending the wrong flags to dbus.
2009-06-18 15:42:00 -07:00
Android (Google) Code Review
b1cdb64877 Merge change 4565 into donut
* changes:
  Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
2009-06-18 15:41:34 -07:00
Nick Pelly
4a364130fb Fix runtime restarts due to sending the wrong flags to dbus.
In eventLoopMain we were correctly translating from unix events to dbus flags,
but a coding typo then gave the unix events to dbus. Fix this typo.

Also noticed that we were passing raw dbus flags to poll() in another area.
This did not cause any immediate problem, since POLLIN | POLLPRI is harmless
and we do not usually need POLLOUT. But fixed anyway.
2009-06-18 15:33:31 -07:00
Nick Kralevich
2854254c2f Update RandomBlock to use RandomAccessFile. This helps
prevent certain unusual conditions from corrupting the
entropy file.  (for example, if Android should happen to
crash while a write is in progress)
2009-06-18 15:23:17 -07:00
David 'Digit' Turner
2a578ae518 Allow the qemu.sf.lcd_density property to override the value of ro.sf.lcd_density
ro.sf.lcd_density is usually defined in the build.prop file which is parsed by init
before anything else. Since its name begins with "ro.", this property is write-once
and cannot later be modified, e.g. in /system/etc/init.goldfish.sh.

In other words, you cannot use "emulator -prop ro.sf.lcd_density=<value>", since
it is impossible to override the value defined in build.prop

This patch modifies the system to recognize "qemu.sf.lcd_density" as an override
value, which can be set with "emulator -prop qemu.sf.lcd_density=<value>", forcing
a specific density.

A later patch will allow the emulator to automatically set this property depending
on AVD hardware configuration settings.
2009-06-19 00:17:31 +02:00
Romain Guy
fdbf6a7eac Fixes #1922373. Resolves a case of keys collision in Resources' cache.
The Resources class keeps a cache of known resources. The keys used by the
cache are stored as int primitives. For any given drawable resource, a key
is built thusly:

TypeValue.assetCookie << 24 | TypedValue.data

In the case of a plain color drawable, assetCookie always equals -1, that
is 0xFF once right-shifted and the data contains the color value. Which
means the key for the following two colors is the same:

0xFF000000
0x00000000

Because of the int storage and the use of the (constant in this case)
asset cookie, the alpha channel of a color is ignored. That means that
if you first load an opaque black color (0xFF000000), subsequent loads
of a totally transparent black color (0x00000000) will give you an
opaque black color.

A workaround is to use a transparent color that is not black,
0x00000001 for instance. Note that this issue would arise with any color
and any opacity level.

The solution to fix this issue is simply to change the cache to use
longs instead of ints to represent the keys. A key thus becomes:

TypedValue.assetCookie << 32 | TypedValue.data

This allows us correct storage of all colors at the cost of a few bytes.
The tradeoff is that we can keep caching ColorDrawable, which is
definitely worth it.
2009-06-18 15:13:40 -07:00
Android (Google) Code Review
ccbf125d64 Merge change 4666
* changes:
  Another javadoc attempted fix.
2009-06-18 15:13:06 -07:00
Leon Scroggins
9f53fcaacf Another javadoc attempted fix. 2009-06-18 18:12:10 -04:00
Android (Google) Code Review
6b6e1c4b79 am 7153739a: Merge change 4661 into donut
Merge commit '7153739a92dda971fd865defae0747bec921d8af'

* commit '7153739a92dda971fd865defae0747bec921d8af':
  Grouping under TextToSpeech.Engine the constants to be used by
2009-06-18 15:08:47 -07:00
Android (Google) Code Review
7153739a92 Merge change 4661 into donut
* changes:
  Grouping under TextToSpeech.Engine the constants to be used by a TTS engine implementation or a settings application for default values, and data integrity check return codes.
2009-06-18 15:07:00 -07:00
Android (Google) Code Review
1942c74976 Merge change 4662
* changes:
  Truly fix the build (I hope).
2009-06-18 14:46:28 -07:00
Jean-Michel Trivi
d146874d73 Grouping under TextToSpeech.Engine the constants to be used by
a TTS engine implementation or a settings application for default
values, and data integrity check return codes.
2009-06-18 14:46:25 -07:00
Leon Scroggins
7e2ff1a600 Truly fix the build (I hope).
I also changed the API.  Hide the new fields.
2009-06-18 17:45:14 -04:00
Android (Google) Code Review
6ff97edef7 am 8696d703: Merge change 3874 into donut
Merge commit '8696d7030af6f0d58859f1027c423143b67f9fb4'

* commit '8696d7030af6f0d58859f1027c423143b67f9fb4':
  for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding
2009-06-18 13:56:41 -07:00
Android (Google) Code Review
7cb6f3d615 Merge change 4629
* changes:
  Alter the HISTORY_PROJECTION and BookmarkColumns.
2009-06-18 13:53:17 -07:00
Android (Google) Code Review
8696d7030a Merge change 3874 into donut
* changes:
  for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding
2009-06-18 13:45:19 -07:00
Android (Google) Code Review
f8cd5d9988 am 77dcf735: Merge change 4561 into donut
Merge commit '77dcf735ff3115ef20244408313823d489d88143'

* commit '77dcf735ff3115ef20244408313823d489d88143':
  Work around the Czech lack of abbreviated month names.
2009-06-18 12:23:23 -07:00
Android (Google) Code Review
77dcf735ff Merge change 4561 into donut
* changes:
  Work around the Czech lack of abbreviated month names.
2009-06-18 12:20:50 -07:00
Android (Google) Code Review
366a40884c am 47a67ebc: Merge change 4544 into donut
Merge commit '47a67ebcf2d772d5dcae459caa57125b3fe733b3'

* commit '47a67ebcf2d772d5dcae459caa57125b3fe733b3':
  Connect TabHost/TabWidget/FrameLayout in the layout editor.
2009-06-18 12:09:15 -07:00
Android (Google) Code Review
47a67ebcf2 Merge change 4544 into donut
* changes:
  Connect TabHost/TabWidget/FrameLayout in the layout editor.
2009-06-18 12:06:59 -07:00
Android (Google) Code Review
a791bc070f am 5ad76ef5: Merge change 4521 into donut
Merge commit '5ad76ef5ee1b437b4c07ed0be78ec7cc16c81dfe'

* commit '5ad76ef5ee1b437b4c07ed0be78ec7cc16c81dfe':
  load entropy data at boot.  Periodically write entropy data to disk.
2009-06-18 12:00:41 -07:00
Android (Google) Code Review
5ad76ef5ee Merge change 4521 into donut
* changes:
  load entropy data at boot.  Periodically write entropy data to disk.
2009-06-18 11:58:54 -07:00
Xavier Ducrohet
83189c985a Connect TabHost/TabWidget/FrameLayout in the layout editor.
Basically this does automatically what the developer has to do in his/her
activity so that the TabHost gets tabs that connects the TabWidgets and the
content of the FrameLayout.
2009-06-18 11:56:36 -07:00
Eric Fischer
5669ce59aa Work around the Czech lack of abbreviated month names.
Make the date formats that want abbreviated month names use either
the full name or a numeric format.
2009-06-18 11:34:06 -07:00
Mike LeBeau
ecde11351d am df1ff2cb: Use a full-screen-width version of the in-app search dropdown with rounded corners. We may decide to use this for global search too, I\'ll try that out in a bit.
Merge commit 'df1ff2cb332ad2d819671f1e78e5bd68d758ca54'

* commit 'df1ff2cb332ad2d819671f1e78e5bd68d758ca54':
  Use a full-screen-width version of the in-app search dropdown with
2009-06-18 11:09:14 -07:00
Mike LeBeau
df1ff2cb33 Use a full-screen-width version of the in-app search dropdown with
rounded corners. We may decide to use this for global search too,
I'll try that out in a bit.
2009-06-18 11:02:22 -07:00
Nick Kralevich
4fb256117c load entropy data at boot. Periodically write entropy data to disk. 2009-06-18 11:00:19 -07:00
Mike LeBeau
96d0a54a19 am 0b1ff191: Icons for create a contact and call contact suggestions, to be used by all contacts providers.
Merge commit '0b1ff191cd94a450c01e0ce5139ca08af0677dd6'

* commit '0b1ff191cd94a450c01e0ce5139ca08af0677dd6':
  Icons for create a contact and call contact suggestions, to be used by all
2009-06-18 10:57:34 -07:00
Mike LeBeau
349569b285 am cce7dbc3: Re-enable query jamming.
Merge commit 'cce7dbc31ed100b39c3e1174dd3d9a01de648e5b'

* commit 'cce7dbc31ed100b39c3e1174dd3d9a01de648e5b':
  Re-enable query jamming.
2009-06-18 10:57:30 -07:00
Mike LeBeau
0b1ff191cd Icons for create a contact and call contact suggestions, to be used by all
contacts providers.
2009-06-18 10:52:31 -07:00
Mike LeBeau
cce7dbc31e Re-enable query jamming. 2009-06-18 10:52:31 -07:00
Leon Scroggins
908baedfcf Alter the HISTORY_PROJECTION and BookmarkColumns.
A change to BrowserProvider has added an extra
column.  Edit HISTORY_PROJECTION to include it,
add a constant index to access it, and add a
constant to BookmarkColumns to refer to it.  Requires
the change to the browser's application package.
2009-06-18 13:39:38 -04:00
Android (Google) Code Review
cd94979e57 am e748161c: Merge change 4529 into donut
Merge commit 'e748161ca89867e8c57d4e71c780486d4de8039c'

* commit 'e748161ca89867e8c57d4e71c780486d4de8039c':
  In the TTS service, read the default TTS settings from Settings.Secure.
2009-06-18 08:56:19 -07:00
Android (Google) Code Review
e748161ca8 Merge change 4529 into donut
* changes:
  In the TTS service, read the default TTS settings from Settings.Secure.
2009-06-18 08:53:58 -07:00