1900 Commits

Author SHA1 Message Date
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
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
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
7cb6f3d615 Merge change 4629
* changes:
  Alter the HISTORY_PROJECTION and BookmarkColumns.
2009-06-18 13:53:17 -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
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
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
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
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
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
Christopher Tate
e9190a2750 Base64 the keys to make filenames in LocalTransport 2009-06-17 20:11:03 -07:00
Android (Google) Code Review
3c2f8e6651 Merge change 4456 into donut
* changes:
  Replace the stub GoogleTransport with callout to the GoogleTransportService (which lives in vendor/google). Use the Google transport by default. Also, fix a bug: Thread.run() != Thread.start()
2009-06-17 19:31:36 -07:00
Nick Pelly
eae311c78b resolved conflicts for merge of ed336839 to master 2009-06-17 19:06:51 -07:00
Android (Google) Code Review
2420186c89 am 5553f152: Merge change 3936 into donut
Merge commit '5553f1528e94377ae5adf423e91331f5eb57dd44'

* commit '5553f1528e94377ae5adf423e91331f5eb57dd44':
  add exception message to ApplicationErrorReport
2009-06-17 18:46:17 -07:00
Suchi Amalapurapu
e1fae30e20 Merge commit '0781df94' into manualmerge
Conflicts:
	Android.mk
	api/current.xml
2009-06-17 18:24:44 -07:00
Dan Egnor
87a02bcf68 Replace the stub GoogleTransport with callout to the
GoogleTransportService (which lives in vendor/google).
Use the Google transport by default.
Also, fix a bug: Thread.run() != Thread.start()
2009-06-17 18:23:05 -07:00
Joe Onorato
83248c432f backup fixes:
- BackupTestAgent calls the DispatchHelper
- Make BackupAgent.onRestore take a BackupDataInput, not just a
  generic ParcelFileDescriptor.
2009-06-17 17:57:30 -07:00
Android (Google) Code Review
6ce1983a2b Merge change 4532 into donut
* changes:
  Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog.
2009-06-17 17:04:33 -07:00
Romain Guy
764d5331d1 Fixes #1924909. When restoring managed dialogs, do exactly the same thing as when showing a dialog. 2009-06-17 17:04:09 -07:00
Android (Google) Code Review
cff19c1a01 Merge change 4539 into donut
* changes:
  Fixes #1925003. Make ListView honor the android:choiceMode XML attribute.
2009-06-17 17:01:55 -07:00
Amith Yamasani
ca74c90cf5 Add title to nested preference screens.
Fixes #1894381
2009-06-17 17:01:27 -07:00
Romain Guy
536fb04c1c Fixes #1925003. Make ListView honor the android:choiceMode XML attribute.
The attribute was simply ignored by the constructor.
2009-06-17 17:01:04 -07:00
Romain Guy
465dee4b4b Fixes #1819572. Do not resurrect the list's selection when the user moved it away.
This is a workaround for a touch mode issue.

Touch mode is propagated lazily to windows. This causes problems in
the following scenario:
- Type something in the AutoCompleteTextView and get some results
- Move down with the d-pad to select an item in the list
- Move up with the d-pad until the selection disappears
- Type more text in the AutoCompleteTextView *using the soft keyboard*
and get new results; you are now in touch mode
- The selection comes back on the first item in the list, even though
the list is supposed to be in touch mode

Using the soft keyboard triggers the touch mode change but that change
is propagated to our window only after the first list layout, therefore
after the list attempts to resurrect the selection.

The trick to work around this issue is to pretend the list is in touch
mode when we know that the selection should not appear, that is when
we know the user moved the selection away from the list.

This boolean is set to true whenever we explicitely hide the list's
selection and reset to false whenver we know the user moved the
selection back to the list.

When this boolean is true, isInTouchMode() returns true, otherwise it
returns super.isInTouchMode().
2009-06-17 16:49:17 -07:00
Android (Google) Code Review
de72697b77 Merge change 4524 into donut
* changes:
  FileRestoreHelper and RestoreHelperDispatcher work.
2009-06-17 16:34:41 -07:00
Joe Onorato
efd0fab04b FileRestoreHelper and RestoreHelperDispatcher work. 2009-06-17 16:20:55 -07:00