3642 Commits

Author SHA1 Message Date
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
Wei Huang
50c786d19c add a checkin eventlog tag for reporting GTalk heartbeat timeout; remove unused adaptive heartbeat settings. 2009-06-18 13:28:07 -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
Feng Qian
1155e18ccc Merge commit 'goog/master' into webkit_merge 2009-06-18 10:33:04 -07:00
Ben Murdoch
5647bb3cc2 Update WebStorage methods used by DumpRenderTree to complete synchronously if they are called on the webcore thread. 2009-06-18 18:29:44 +01: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
Cary Clark
ed56eda373 clean up mouse move events in webview
Pass moveGeneration to setScrollOffset so it can
 generate mouseMove event
Remove node from event messages (no longer used)
Remove CursorData ignoreNullFocus parameter (no longer used)
Fix debug message range
2009-06-18 10:55:07 -04:00
Android (Google) Code Review
3fa058a5a9 am 36c153f8: Merge change 4535 into donut
Merge commit '36c153f84f2728ffc67b7f30a1f326a7731c2088'

* commit '36c153f84f2728ffc67b7f30a1f326a7731c2088':
  Add title to nested preference screens.
2009-06-18 07:13:49 -07:00
Android (Google) Code Review
36c153f84f Merge change 4535 into donut
* changes:
  Add title to nested preference screens.
2009-06-18 07:11:06 -07:00
Tammo Spalink
fc78f358cb for cdma concatenated (long) messages, replace ascii7bit with gsm7bit encoding 2009-06-18 14:57:06 +08:00
Dianne Hackborn
abb01dba70 am c14b9ccd: Extend Intent/Uri conversion for use by Browser
Merge commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b'

* commit 'c14b9ccdf13163cae5ce5d21bcf377010b37594b':
  Extend Intent/Uri conversion for use by Browser
2009-06-17 22:45:54 -07:00
Android (Google) Code Review
cc4b106f73 am e64bb1dd: Merge change 4579 into donut
Merge commit 'e64bb1dd9ed68281af9968cf2cd23b4e49ead76c'

* commit 'e64bb1dd9ed68281af9968cf2cd23b4e49ead76c':
  Fix issue #1924851
2009-06-17 22:45:51 -07:00
Christopher Tate
c452b4e86e am e9190a27: Base64 the keys to make filenames in LocalTransport
Merge commit 'e9190a2750e1fb67e300d2c128227cc9b7339efe'

* commit 'e9190a2750e1fb67e300d2c128227cc9b7339efe':
  Base64 the keys to make filenames in LocalTransport
2009-06-17 22:45:46 -07:00
Android (Google) Code Review
c0f088b06b am 3c2f8e66: Merge change 4456 into donut
Merge commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74'

* commit '3c2f8e6651178742bc685e7bd62fa8a6ca409a74':
  Replace the stub GoogleTransport with callout to the
2009-06-17 21:49:56 -07:00
Joe Onorato
72dcea1eed am 83248c43: backup fixes:
Merge commit '83248c432ffe2e2a17abbc8e4960c26574b46bca'

* commit '83248c432ffe2e2a17abbc8e4960c26574b46bca':
  backup fixes:
2009-06-17 21:49:50 -07:00
Android (Google) Code Review
d206fb4fea am 6ce1983a: Merge change 4532 into donut
Merge commit '6ce1983a2b5e9f5e735ac09b270b400084edb7db'

* commit '6ce1983a2b5e9f5e735ac09b270b400084edb7db':
  Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog.
2009-06-17 21:49:35 -07:00
Android (Google) Code Review
4fe0674c44 am cff19c1a: Merge change 4539 into donut
Merge commit 'cff19c1a014284dce2577f82d931e4c65edd437e'

* commit 'cff19c1a014284dce2577f82d931e4c65edd437e':
  Fixes #1925003. Make ListView honor the android:choiceMode XML attribute.
2009-06-17 21:49:30 -07:00
Romain Guy
845970ff25 am 465dee4b: Fixes #1819572. Do not resurrect the list\'s selection when the user moved it away.
Merge commit '465dee4b4b491fdbb082218e5eb1010a416992f9'

* commit '465dee4b4b491fdbb082218e5eb1010a416992f9':
  Fixes #1819572. Do not resurrect the list's selection when the user moved it away.
2009-06-17 21:49:26 -07:00
Android (Google) Code Review
6f8b5c12d3 am de72697b: Merge change 4524 into donut
Merge commit 'de72697b771d33738c5f9d6c28087504e0796622'

* commit 'de72697b771d33738c5f9d6c28087504e0796622':
  FileRestoreHelper and RestoreHelperDispatcher work.
2009-06-17 21:49:21 -07:00
Dianne Hackborn
c14b9ccdf1 Extend Intent/Uri conversion for use by Browser
This introduces a new Uri form of Intent with an "intent:" scheme, and a
corresponding update to the parser to handle these, so that the browser
can use this generic facility for starting activities based on the links
that are clicked and allow for web pages to link to arbitrary intents.

There is also a new "package" field on Intent which allows you to limit
the components it finds to a given package.  This replaces the new method
that was added to PackageManger for doing this when resolving activities,
and implements it for all Intent queries against the package manager.
2009-06-17 21:48:14 -07:00