937 Commits

Author SHA1 Message Date
Android (Google) Code Review
f781b39cb8 Merge change 4786 into donut
* changes:
  gps: Set SUPL server via hostname rather than IP address.
2009-06-19 12:09:36 -07:00
Mike Lockwood
a9e546169b gps: Set SUPL server via hostname rather than IP address.
The GPS engine needs the hostname for the secure SUPL case
and deferring the DNS lookup to the HAL might be helpful in the future
if the SUPL server is on a carrier's private network.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-06-19 14:54:42 -04:00
Android (Google) Code Review
ba6409f1f6 Merge change 4706 into donut
* changes:
  Add a new checkin server flag for Vending Machine heartbeats.
2009-06-19 11:50:22 -07:00
Dianne Hackborn
3d74bb4ab2 Add "why?" button to low battery dialog.
This takes the user to the power usage activity.
2009-06-19 11:46:58 -07:00
Android (Google) Code Review
03255de32d Merge change 4757 into donut
* changes:
  Add getBatteryUsageHint() to BluetoothHeadset for power monitoring.
2009-06-19 11:29:57 -07:00
Android (Google) Code Review
697f9caf8b Merge change 4687 into donut
* changes:
  Use standalone month name instead of format month name in year-month format.
2009-06-19 10:30:15 -07:00
Suchi Amalapurapu
bc806f65ed Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage. 2009-06-19 10:25:37 -07:00
Nick Pelly
6c901db72d Add getBatteryUsageHint() to BluetoothHeadset for power monitoring.
This is a monotonically increasing integer. Wraps to 0 at
Integer.MAX_INT, and at boot.
Current implementation returns the number of AT commands handled since
boot. This is a good indicator for spammy headset/handsfree units that
can keep the device awake by polling for cellular status updates. As a
rule of thumb, each AT command prevents the CPU from sleeping for 500 ms
2009-06-19 10:08:09 -07:00
Wu-cheng Li
649f99e834 Add Intent.ACTION_SEND_MULTIPLE
Activities can use this intent to send multiple data.
2009-06-19 18:48:37 +08:00
Android (Google) Code Review
e0b7e916a1 Merge change 4679 into donut
* changes:
  Replace the dummy code with Keystore for <keygen> support.
2009-06-18 19:52:00 -07:00
Android (Google) Code Review
63e7155c7d Merge change 4696 into donut
* changes:
  Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
2009-06-18 19:33:33 -07:00
Android (Google) Code Review
5502f04c1d Merge change 4709 into donut
* changes:
  backup stuff
2009-06-18 19:02:39 -07:00
Android (Google) Code Review
16ce3504c5 Merge change 4708 into donut
* changes:
  Make RestoreHelper and friends also write out the snapshot state.
2009-06-18 19:02:30 -07:00
Linda Nguyen
abd7eba70b Add a new checkin server flag for Vending Machine heartbeats. 2009-06-18 18:52:59 -07:00
Android (Google) Code Review
568b62c861 Merge change 4702 into donut
* changes:
  Fix bug 1927213 test failures.
2009-06-18 18:45:08 -07:00
Joe Onorato
5d605dc56b backup stuff 2009-06-18 18:41:11 -07:00
Joe Onorato
d2d9ceb730 Make RestoreHelper and friends also write out the snapshot state. 2009-06-18 18:41:11 -07:00
Dianne Hackborn
d7ed9175aa Fix bug 1927213 test failures.
Eat the security exception that is now thrown by the window manager to
retain the old behavior for tests.  (We still need to throw the
exception from the WM for the new permission tests.)
2009-06-18 18:36:37 -07:00
Dianne Hackborn
5c1e00b14d Fix targetSdkVersion, make resize mode a flag, delayed dexopt, easy ApplicationInfo.
- Fix a bug where targetSdkVersion could not be set if minSdkVersion.  Stupid, stupid.
  Also make sure to fail if minSdkVersion is for a code name.  Really stupid.

- Change the API for resize compatibility mode to be a bit in the flags field, instead
  of a separate boolean.

- Implement delayed dexopting, to avoid the looong full dexopt during boot.  This is
  only enabled for "eng" builds.  When in this mode, the activity manager will make
  sure that a dexopt has been done before loading an .apk into a process, and will
  try to avoid displaying ANRs if they are due to the dexopt causing some operation
  to take longer than it normally would (though I make no guarantees about this
  totally working).

- Add API to Context to get the ApplicationInfo for its package, for easy access to
  things like targetSdkVersion.
2009-06-18 17:10:57 -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
Eric Fischer
693a223722 Use standalone month name instead of format month name in year-month format.
I think this is the last place the Czech date formats still had problems.
2009-06-18 16:37:41 -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
Grace Kloba
0de8e4398d Replace the dummy code with Keystore for <keygen> support. 2009-06-18 15:52:42 -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
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
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
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
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
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
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
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
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