7932 Commits

Author SHA1 Message Date
Android (Google) Code Review
57384101b9 Merge change 25270 into eclair
* changes:
  Use Resources to load search icons with android.resource URIs
2009-09-16 12:03:52 -04:00
Chih-Chung Chang
017bb4ccf7 Make ExifInterface public. 2009-09-16 23:38:34 +08:00
Bjorn Bringert
4c87a3f26a Use Resources to load search icons with android.resource URIs
Before, all icon URIs were opened with
ContentResolver.openInputStream(Uri), but that does not
include the density information from the source
application.

Now, if the URI uses the android.resource scheme,
we resolve the URI to a Resources and a resource ID,
and load it with Resources.getDrawable(int).
This requires making OpenResourceIdResult and getResourceId()
in ContentResolver public (but hidden).

This change also caches icons that were specified using just a
resource ID.

Since loading a Drawable from a URI is a generally useful operation,
it would be good to make it easy for apps to do it in the proper
density-independent way. We could add a getDrawable(Uri)
method to the framework. The question is where.

It would be easiest to add it to ContentResolver, but that may be a
bit odd since there is no other code for dealing with Drawables in
ContentResolver. Another alternative is in Resources, since
getDrawable(int) is there, but that class deals with the resources
for a single app, whereas getDrawable(Uri) can open a drawable
from any app. Putting it in Context may be the best choice,
since that's in android.content, and can thus access package
private members in ContentResolver, and since it's already
a dumping place for random useful high-level methods.
Opinions?

Fixes http://b/issue?id=2034526
"Icons on search do not scale for wide VGA"

Change-Id: I44de0b74826e5560141a3174bcbba991ba6264ac
2009-09-16 16:31:57 +01:00
Chih-Chung Chang
46ad796186 Unhide cancelAutoFocus API in Camera.
Change-Id: I29450867edf9c68ac06e6d76fae0ad93ea89b632
2009-09-16 22:43:46 +08:00
Eric Laurent
2bb6b2a11f Fix issue 2123668: Class scope typo in AudioFlinger.cpp. 2009-09-16 06:02:45 -07:00
Android (Google) Code Review
ccd064d411 Merge change 25255 into eclair
* changes:
  Clean ExifInterface. Prepare to make it public.
2009-09-16 08:14:53 -04:00
Chih-Chung Chang
700beb4846 Clean ExifInterface. Prepare to make it public.
Change-Id: Ibff719d02f525c1e8583d1892737224a0cc42c37
2009-09-16 20:03:48 +08:00
Wu-cheng Li
7478ea6848 Remove trailing spaces. 2009-09-16 18:52:55 +08:00
Chung-yih Wang
8e9ef0e789 Add the hide for the inner class definition. 2009-09-16 15:18:11 +08:00
Guang Zhu
6bf18bae60 Refactor logic for starting forward servers and http test cases hacking, so that they can be shared between automated test mode and UI launch mode. 2009-09-15 23:47:20 -07:00
Chung-yih Wang
4337476a66 Fix the missing part for reading enterprise fields in wifi configuration
+ refactor the enterprise fields.
2009-09-16 14:28:42 +08:00
Android (Google) Code Review
85628188e7 Merge change 25244 into eclair
* changes:
  Flag indicating if Contacts source has any unsynced groups.
2009-09-16 02:16:05 -04:00
Jeff Sharkey
97bda4c5ae Flag indicating if Contacts source has any unsynced groups.
Part of fixing http://b/2084771
2009-09-15 23:15:23 -07:00
Android (Google) Code Review
7fc39b26fc Merge change 25238 into eclair
* changes:
  Implement issue #1780928: Need support hiding nav keys.
2009-09-16 02:04:45 -04:00
Dianne Hackborn
93e462b79d Implement issue #1780928: Need support hiding nav keys.
This implements support for devices whose hardware can hide
their navigation keys.  It works much like the existing keyboardHidden
configuration, and for compatibility uses the same configuration
change bit.

Also add FLAG_TURN_ON_SCREEN for windows, which has the system
cause the screen to be turned on when the window is displayed.
Great fun when used with FLAG_SHOW_WHEN_LOCKED!

Change-Id: I0b867f19af85cfd8786a14cea194b34f7bdd9b7a
2009-09-15 22:50:40 -07:00
Android (Google) Code Review
9352b9fb9e Merge change 25232 into eclair
* changes:
  Fix NPE when provider returns null cursor.
2009-09-16 00:58:06 -04:00
Yu Shan Emily Lau
20a6b955fe modified: MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
Added the error callback to handle the media server crash.

	modified:   MediaFrameworkTest/src/com/android/mediaframeworktest/stress/MediaRecorderStressTest.java
2009-09-15 21:42:07 -07:00
Yu Shan Emily Lau
610e3595d2 modified: MediaFrameworkTest/src/com/android/mediaframeworktest/MediaNames.java
Fixed the meta data duration
2009-09-15 20:40:07 -07:00
Jeff Sharkey
42fc2c6f0a Fix NPE when provider returns null cursor.
Fixes http://b/2051283
2009-09-15 19:53:51 -07:00
Android (Google) Code Review
6cf05f1c3d Merge change 25206 into eclair
* changes:
  Make vCard importer code use Account information if possible.
2009-09-15 22:33:06 -04:00
Android (Google) Code Review
1f1135a29e Merge change 25212 into eclair
* changes:
  revert to black video background, since we don't need the color-key anylonger
2009-09-15 22:32:37 -04:00
Mathias Agopian
8ae0384a78 revert to black video background, since we don't need the color-key anylonger 2009-09-15 19:31:28 -07:00
Daisuke Miyakawa
d5bc296d94 Make vCard importer code use Account information if possible.
Internal isssue: 2116216, 2102720
2009-09-15 19:28:40 -07:00
Android (Google) Code Review
7bf75f6dc4 Merge change 25207 into eclair
* changes:
  fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
2009-09-15 22:26:26 -04:00
Mathias Agopian
e611a6ed33 fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
Take 2. We needed to check that the usage flags are "good enough" as opposed to "the same".

This reverts commit 8f17a762fe9e9f31e4e86cb60ff2bfb6b10fdee6.
2009-09-15 19:21:31 -07:00
Android (Google) Code Review
c6587dc870 Merge change 25178 into eclair
* changes:
  Add RotarySelector widget to android.internal for use by lock screen and incoming call screen.
2009-09-15 22:12:58 -04:00
Android (Google) Code Review
d9e28017f6 Merge change 25092 into eclair
* changes:
  New field in CallerInfo to cache if the call is an emergency one.
2009-09-15 22:11:57 -04:00
Android (Google) Code Review
6ee7b04d27 Merge change 25192 into eclair
* changes:
  Some improvements for wallpaper configuration.
2009-09-15 22:06:24 -04:00
Dianne Hackborn
9767e41d92 Some improvements for wallpaper configuration.
This introduces a new activity that you can derive from to implement
a wall paper configuration activity.  This is supposed to select
a theme based on whether it is being run to configure a real wallpaper
or a preview, but this is going to be more difficult to do than I
thought. :(

Also fix a problem in the white theme where the list view's background
was being set to white, so it wouldn't work on a transparent bg.

Change-Id: I26d5a8695a3c878a1664eb09900eded57eaff990
2009-09-15 18:59:31 -07:00
Android (Google) Code Review
dd8f618677 Merge change 25201 into eclair
* changes:
  Revert "fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer"
2009-09-15 21:57:44 -04:00
Fred Quintana
5ab78057a3 add the ability to do a newAssert with no values 2009-09-15 18:57:17 -07:00
Mathias Agopian
8f17a762fe Revert "fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer"
This reverts commit 486aa963b63e20b7910e1004cebb4f0afabbd80f.
2009-09-15 18:57:06 -07:00
Android (Google) Code Review
49071af7bd Merge change 25188 into eclair
* changes:
  make the window-shade use an opaque surface if possible
2009-09-15 21:56:44 -04:00
Nicolas Catania
e22415817f New field in CallerInfo to cache if the call is an emergency one.
Fixed a bug in the sync call, the photo resource was not set to picture_emergency.

Added tests to check the correct emergency fields are set in the caller info instance.

Bug 2112640
2009-09-15 18:33:34 -07:00
Mathias Agopian
cc9f52f943 make the window-shade use an opaque surface if possible 2009-09-15 18:23:59 -07:00
Android (Google) Code Review
5862b673d4 Merge change 25187 into eclair
* changes:
  fixing documentation for PluginStub
2009-09-15 21:23:42 -04:00
Derek Sollenberger
468f067cf4 fixing documentation for PluginStub
Change-Id: I68fd9d0df3d8a5c39ad1de136a116f1b034323af
2009-09-15 21:22:06 -04:00
Android (Google) Code Review
7c3e493d7b Merge change 25177 into eclair
* changes:
  Fix for #2092883: Allow manual sync even when background data is disabled
2009-09-15 21:17:44 -04:00
Android (Google) Code Review
d6b10fb862 Merge change 25168 into eclair
* changes:
  Preload Resources$DefaultTimeZones.
2009-09-15 21:15:38 -04:00
Android (Google) Code Review
e74050a9ca Merge change 25175 into eclair
* changes:
  Allow only System Service to send most Bluetooth intents.
2009-09-15 21:08:37 -04:00
Dirk Dougherty
5d55edc940 am 3dc0f94c: Misc. updates for 1.6 release notes and requirements docs.
Merge commit '3dc0f94cd44df2f9310946b0a0a1c7f8c6d95af5' into eclair

* commit '3dc0f94cd44df2f9310946b0a0a1c7f8c6d95af5':
  Misc. updates for 1.6 release notes and requirements docs.
2009-09-15 18:05:49 -07:00
Dirk Dougherty
3dc0f94cd4 Misc. updates for 1.6 release notes and requirements docs.
Change-Id: I9bd06df80ba48f2980604e4b5d70473f009655f9
2009-09-15 17:51:28 -07:00
Karl Rosaen
e4d95d02a2 Add RotarySelector widget to android.internal for use by lock screen and incoming call screen. 2009-09-15 17:46:57 -07:00
Android (Google) Code Review
5446ea77bc Merge change 25176 into eclair
* changes:
  fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer
2009-09-15 20:35:15 -04:00
Jim Miller
d2a3a8a7ba Fix for #2092883: Allow manual sync even when background data is disabled 2009-09-15 17:34:42 -07:00
Mathias Agopian
486aa963b6 fix [2122448] android_native_window_t::setUsage() only reallocates the first buffer 2009-09-15 17:34:04 -07:00
Mike Reed
4e54f3309e update for new plugin api 2009-09-15 20:26:19 -04:00
Nick Pelly
72440a0e2c Allow only System Service to send most Bluetooth intents.
Change-Id: I9f63425995f12741b60b85cdffe5a94e97ca03f1
2009-09-15 17:21:10 -07:00
Elliott Hughes
d3f00f95cc Preload Resources$DefaultTimeZones.
Depends on https://android-git.corp.google.com/g/25167.

Bug: 1941311, 1819285.
2009-09-15 17:07:00 -07:00
Android (Google) Code Review
64ce0f8f53 Merge change 24200 into eclair
* changes:
  First pass at replacing native plugin views with java.
2009-09-15 20:03:16 -04:00