683 Commits

Author SHA1 Message Date
Dianne Hackborn
efa199f016 Add API to send an ordered sticky broadcast.
Change-Id: Ida7081204e226db0cd07ff618c08e308a909ec0c
2009-09-19 12:05:25 -07:00
Mike LeBeau
ed34418f7c am bca8673e: am ba9bf79d: Merge change 25911 into eclair
Merge commit 'bca8673ea50cc58ca50d6becbe86d14fa62a2dd4'

* commit 'bca8673ea50cc58ca50d6becbe86d14fa62a2dd4':
  Unhide attributes textAppearanceSearchResultSubtitle and
2009-09-19 01:55:44 -07:00
Mike LeBeau
5825b64e4a Unhide attributes textAppearanceSearchResultSubtitle and
attr/textAppearanceSearchResultTitle. We had discussed doing
this in Donut but looks like it never happened. We need these
attributes for voice search so now's as good a time as any.
2009-09-19 01:19:52 -07:00
Chih-Chung Chang
d93ee52927 am 87012028: am f22b7410: Merge change 25464 into eclair
Merge commit '87012028344dae6e9a0b0ad4615797284ce6c83f'

* commit '87012028344dae6e9a0b0ad4615797284ce6c83f':
  Improve ExifInterface API.
2009-09-18 12:08:33 -07:00
Chih-Chung Chang
872a30ec72 Improve ExifInterface API.
Change-Id: Ic6c4df8244b51b9a0d1c73c3797847220d86604d
2009-09-18 11:30:47 -07:00
Dianne Hackborn
379f3069a9 am 1f3914b7: am fa82f22f: Fix issue : Calendar widget takes a few seconds to launch
Merge commit '1f3914b7f2f3c233da8b643c426c0ffd42f32f87'

* commit '1f3914b7f2f3c233da8b643c426c0ffd42f32f87':
  Fix issue : Calendar widget takes a few seconds to launch
2009-09-17 18:19:00 -07:00
Dianne Hackborn
fa82f22f1d Fix issue : Calendar widget takes a few seconds to launch
Avert your eyes!

The key change here is that RemoteViews can now call a Context API to
start its pending intent, which inside of the activity manager we can
use to determine to cancel the timeout delay for external entities
to disrupt the home screen.

Change-Id: If097cf7478cbed7a3c04a304050bd7fd5703d197
2009-09-17 18:01:35 -07:00
Mike Lockwood
0e1d7a56a5 am ed78a4dd: am 409024e9: Merge change 25554 into eclair
Merge commit 'ed78a4dd501938152c7f733f5c7b26f9343df8cf'

* commit 'ed78a4dd501938152c7f733f5c7b26f9343df8cf':
  telephony: Add CdmaCellLocation class to the public API.
2009-09-17 17:35:04 -07:00
Mike Lockwood
1b90def3c6 telephony: Add CdmaCellLocation class to the public API.
Its twin sister GsmCellLocation is public, so this really should be in the SDK too.

Change-Id: If6f5899047546a7398f1e4191c67acf15555c21b
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-17 19:23:15 -04:00
Fred Quintana
94b0134c9a am 08f682c7: am 3ecd5f43: - Make the AccountManagerService delete accounts that have no Authenticator, both when the package is removed and when the phone is booted. - add the ability to register with the RegisteredServicesCache to be notified when the set of Au
Merge commit '08f682c7aad0a7db5c13f0db9a1edc7cfd068a24'

* commit '08f682c7aad0a7db5c13f0db9a1edc7cfd068a24':
  - Make the AccountManagerService delete accounts that
2009-09-17 16:06:16 -07:00
Fred Quintana
3ecd5f4375 - Make the AccountManagerService delete accounts that
have no Authenticator, both when the package is removed
  and when the phone is booted.
- add the ability to register with the RegisteredServicesCache
  to be notified when the set of Authenticators changes.
2009-09-17 15:45:41 -07:00
Dianne Hackborn
b1a3fcb31a am 3955bccd: am 4ac137ca: Merge change 25526 into eclair
Merge commit '3955bccd2d89573a065e16f3c0172f10f22fe7df'

* commit '3955bccd2d89573a065e16f3c0172f10f22fe7df':
  Add API to retrieve memory used by running processes.
2009-09-17 12:27:16 -07:00
Nick Pelly
d87daa756b am 171318c2: am 074c11c1: Do not @hide Parcelable implementations in BluetoothClass and BluetoothDevice.
Merge commit '171318c2d188bdb12085af288a44ac3ae2861a30'

* commit '171318c2d188bdb12085af288a44ac3ae2861a30':
  Do not @hide Parcelable implementations in BluetoothClass and BluetoothDevice.
2009-09-17 12:15:55 -07:00
Amith Yamasani
82ae45f773 am aa3620f3: am 12cc9d82: Add a new flag for IMEs to disable suggestions for certain fields.
Merge commit 'aa3620f3999ccf2d79105bdc3641ce4c9134032e'

* commit 'aa3620f3999ccf2d79105bdc3641ce4c9134032e':
  Add a new flag for IMEs to disable suggestions for certain fields.
2009-09-17 12:13:42 -07:00
Jaikumar Ganesh
45c2da09ba am 4f377394: am 972f0e38: Merge change 25325 into eclair
Merge commit '4f377394a9a7d66dd2f0ecba8310e512d85674a6'

* commit '4f377394a9a7d66dd2f0ecba8310e512d85674a6':
  Add a parcelable version of UUID file.
2009-09-17 12:12:49 -07:00
Dianne Hackborn
4f21c4cf07 Add API to retrieve memory used by running processes.
Change-Id: I9c1935c2ef3c78bd67ec4dfd811a1caaab4514c3
2009-09-17 11:13:45 -07:00
Mike Lockwood
ca4bb53c76 am bdd1f2e3: am 9092ab4d: Add support for launching activities when attaching to a car or desk dock.
Merge commit 'bdd1f2e37e67cc530e54ea7b8a23df60a4aa1a9b'

* commit 'bdd1f2e37e67cc530e54ea7b8a23df60a4aa1a9b':
  Add support for launching activities when attaching to a car or desk dock.
2009-09-17 09:57:52 -07:00
Chih-Chung Chang
696605ad77 am 53a67366: am d3ba4811: Merge change 25272 into eclair
Merge commit '53a673661cebc93649532a716b19cc22497c5bb6'

* commit '53a673661cebc93649532a716b19cc22497c5bb6':
  Make ExifInterface public.
2009-09-17 09:54:32 -07:00
Chih-Chung Chang
d127d2027f am 146a0fab: am 46ad7961: Unhide cancelAutoFocus API in Camera.
Merge commit '146a0fabb2db8d0677621d716ea02198c6a795ab'

* commit '146a0fabb2db8d0677621d716ea02198c6a795ab':
  Unhide cancelAutoFocus API in Camera.
2009-09-17 09:53:48 -07:00
Dianne Hackborn
31612db5f5 am 10bedaaf: am 7fc39b26: Merge change 25238 into eclair
Merge commit '10bedaaf3ec24af5fa4dcea54545e4d4953a1c7d'

* commit '10bedaaf3ec24af5fa4dcea54545e4d4953a1c7d':
  Implement issue : Need support hiding nav keys.
2009-09-17 09:51:33 -07:00
Dianne Hackborn
3a3defb98a am c5624813: am 6ee7b04d: Merge change 25192 into eclair
Merge commit 'c562481380a4f5ddffc67dd72d81e2ded5bd201f'

* commit 'c562481380a4f5ddffc67dd72d81e2ded5bd201f':
  Some improvements for wallpaper configuration.
2009-09-17 09:48:54 -07:00
Mike Reed
e827b296e7 am f099076b: am 4e54f330: update for new plugin api
Merge commit 'f099076bfbfb485ac3c030b61329d80f7bdf82e4'

* commit 'f099076bfbfb485ac3c030b61329d80f7bdf82e4':
  update for new plugin api
2009-09-17 09:46:31 -07:00
Derek Sollenberger
e67777ed3d am 21da3357: am 64ce0f8f: Merge change 24200 into eclair
Merge commit '21da33570278762d7e9375b83eb74130bf82728d'

* commit '21da33570278762d7e9375b83eb74130bf82728d':
  First pass at replacing native plugin views with java.
2009-09-17 09:46:15 -07:00
Nick Pelly
074c11c164 Do not @hide Parcelable implementations in BluetoothClass and BluetoothDevice.
Change-Id: I92389c53a9b99c9507f78898329ff87b631c7aa3
2009-09-17 08:25:30 -07:00
Bjorn Bringert
85434dfb74 am d8681c9a: am 88cd369c: Merge change 25048 into eclair
Merge commit 'd8681c9a93abb1a56eae9548d568bb9ae38419a1'

* commit 'd8681c9a93abb1a56eae9548d568bb9ae38419a1':
  Revert "Deprecate showSearchIconAsBadge and icon search attrs"
2009-09-17 06:39:17 -07:00
Dianne Hackborn
7966bfe691 am a90d14f2: am 1cd403ea: Add SurfaceView API to put surface on top of window.
Merge commit 'a90d14f2ddef7f09a1cfb98a7d25b1dbc237409c'

* commit 'a90d14f2ddef7f09a1cfb98a7d25b1dbc237409c':
  Add SurfaceView API to put surface on top of window.
2009-09-17 06:37:36 -07:00
Dianne Hackborn
38c105c359 am a4160068: am 294cd985: Merge change 24850 into eclair
Merge commit 'a4160068beadf64db99f42ca327bfe263cc46a85'

* commit 'a4160068beadf64db99f42ca327bfe263cc46a85':
  Last big work on : Make swipes work with capacitive keys
2009-09-16 23:56:47 -07:00
Dianne Hackborn
a246941d53 am 23b141ef: am c2974809: Fix issue : buttons are huge and bent
Merge commit '23b141efe5d63bd3859aba4ffa0533cb6fad0c59'

* commit '23b141efe5d63bd3859aba4ffa0533cb6fad0c59':
  Fix issue : buttons are huge and bent
2009-09-16 23:56:23 -07:00
Dianne Hackborn
d16ce30c31 am 7c32e4bc: am d023f9a9: Merge change 24829 into eclair
Merge commit '7c32e4bc300bb75203f65ca55b08ecd3156fa2bb'

* commit '7c32e4bc300bb75203f65ca55b08ecd3156fa2bb':
  Some optizations to wallpaper drawing/scrolling.
2009-09-16 23:55:33 -07:00
Amith Yamasani
12cc9d82a6 Add a new flag for IMEs to disable suggestions for certain fields. 2009-09-16 18:51:46 -07:00
Jaikumar Ganesh
82c3ef7adc Add a parcelable version of UUID file.
Change-Id:I2582e1c9893292ba35bb5cac90ccd2bd18041d8c
2009-09-16 17:05:09 -07:00
Bjorn Bringert
081f95ee8c am c0008342: am ab50b86b: Deprecate showSearchIconAsBadge and icon search attrs
Merge commit 'c00083425bacb27473e6ba45c826c9dd2bfc2457'

* commit 'c00083425bacb27473e6ba45c826c9dd2bfc2457':
  Deprecate showSearchIconAsBadge and icon search attrs
2009-09-16 15:05:39 -07:00
Mike Lockwood
9092ab4d45 Add support for launching activities when attaching to a car or desk dock.
Categories CATEGORY_CAR_DOCK and CATEGORY_DESK_DOCK can be assigned to
activities to make them launchable on docked events.
This is a better mechanism than listening for ACTION_DOCK_EVENT with a broadcast receiver.

Change-Id: Ic5f3ab3555ce02ca922bc31ebba41978cefe8bda
Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-09-16 14:43:21 -04:00
Chih-Chung Chang
017bb4ccf7 Make ExifInterface public. 2009-09-16 23:38:34 +08:00
Chih-Chung Chang
46ad796186 Unhide cancelAutoFocus API in Camera.
Change-Id: I29450867edf9c68ac06e6d76fae0ad93ea89b632
2009-09-16 22:43:46 +08:00
Dianne Hackborn
93e462b79d Implement issue : 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
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
Mike Reed
4e54f3309e update for new plugin api 2009-09-15 20:26:19 -04:00
Derek Sollenberger
0b3a5d6524 First pass at replacing native plugin views with java.
Change-Id: I6d1f45f31210c2353fa348cc37be8d91bcd5e887
2009-09-15 19:33:54 -04:00
Bjorn Bringert
ed2c13a9d2 Revert "Deprecate showSearchIconAsBadge and icon search attrs"
I tried to revert a flag, but that doesn't actually work
and ended up deprecating the entire attribute.

This reverts commit ab50b86b79936623b5e326f2ed84b3c947c8ec93.
2009-09-15 19:49:10 +01:00
Dianne Hackborn
1cd403eaac Add SurfaceView API to put surface on top of window.
Change-Id: I9db84ee63a362e54ebc2f5b24a20ae5bdc3588bf
2009-09-15 11:29:00 -07:00
Jesse Wilson
7b1568d667 Fixing apicheck problem by scrubbing unchecked exceptions from API XML. 2009-09-14 21:23:08 -07:00
Dianne Hackborn
83fe3f5592 Last big work on : Make swipes work with capacitive keys
This takes care of allowing us to cancel the back button.  The
back button is a bear because it is strewn all over the place --
everywhere you can close something, there is some code looking
for the back button that now needs to deal with being canceled.

The main things changed are activity (of course), dialog,
input method, search dialog.  There are some other misc places
in the framework (and some I missed here that I will get in a
second pass).

To facility all of this, the key dispatching APIs now provide
a lot more support for dealing with looking for cancelled keys,
and incidentally also provide an actual API for catching long
key presses.  This also helped clean up the code in PhoneWindow
where it deals with all of the combinations of key pressed and
releases.  (And also allows people to override
Activity.onKeyLongPress() to provide a different long press
action for a standard key like search.)

And while I was doing this, I reworked how we detect long
presses by having this be part of the key event delivered by
the window manager.  This should greatly reduce (hopefully
outright eliminate) the problems with long presses being
mis-detected when an application is being slow.

Change-Id: Ia19066b8d588d573df3eee6d96e1c90fdc19f57d
2009-09-14 17:53:52 -07:00
Dianne Hackborn
c297480937 Fix issue : buttons are huge and bent
Now that we are using preloaded drawables in compatibilty mode, when
constructing them from their constant state we need to set the new
drawable's target density appropriately.

Change-Id: I3665cbea09d38b9ac5f45f8c380dc8641f86b266
2009-09-14 16:32:56 -07:00
Dianne Hackborn
19382ac1a4 Some optizations to wallpaper drawing/scrolling.
First, fix some issues with the final wallpaper bitmap
we use: ensure it is always 16bpp, and make sure dithering
of its bitmap is turned off.   We take of dithering
when loading, to make sure we don't use it when drawing.

Also add new APIs to return the wallpaper with the equivalent
of Launcher's old FastBitmapDrawable.  As doing this, also load
the default wallpaper the same way as custom ones, taking care to
resize it as needed at load time.

Finally implement a mechanism for the window manager to wait
for the wallpaper to redraw at its new position before returning
from the application's call to change the offset.  This ensures
that the wallpaper better tracks the application.  Note that there
is a timeout in this wait that is relatively short, and if it
expires we will run for a while without waiting.

Change-Id: Ife449437746da85958bd447e0a6cf3d2223b398c
2009-09-14 15:29:44 -07:00
Bjorn Bringert
ab50b86b79 Deprecate showSearchIconAsBadge and icon search attrs
mlebeau says:
"Basically, because we now show the app icon for in-app
search, showSearchIconAsBadge is a bit unnecessary, but it does in
fact still work. Basically if either showSearchIconAsBadge or
showSearchLabelAsBadge are specified, we grow the height of the search
bar and place the provided icon or the provided label, respectively,
above the text field and app icon. But we do not remove the app icon
if the developer specifies showSearchIconAsBadge - it's still just the
'badge area' above the icon."

Fixes:
http://b/issue?id=2105329
"Deprecate searchable attributes 'showSearchIconAsBadge' and 'icon'"

Change-Id: Ie2976aafe42b4ab870be9e64b34eb0ed441ebbb0
2009-09-14 06:59:50 +01:00
Nick Pelly
7575b8ebb6 am e7eb85ca: am 005b228c: API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.
Merge commit 'e7eb85cae02375b8bc486d71f429ca0c60980d79'

* commit 'e7eb85cae02375b8bc486d71f429ca0c60980d79':
  API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.
2009-09-10 19:06:41 -07:00
Nick Pelly
005b228cdf API_CHANGE: Cleanup, javadoc and unhide more Bluetooth API.
This is a large batch, and covers:

-- Bluetooth Device Discovery --
BluetoothAdapter.ACTION_DISCOVERY_STARTED
BluetoothAdapter.ACTION_DISCOVERY_FINISHED
BluetoothAdapter.startDiscovery()
BluetoothAdapter.cancelDiscovery()
BluetoothAdapter.isDiscovering()

-- Bluetooth bonding (pairing) --
BluetoothAdapter.getBondedDevices()
BluetoothDevice.ACTION_BOND_STATE_CHANGED
BluetoothDevice.EXTRA_BOND_STATE
BluetoothDevice.EXTRA_PREVIOUS_BOND_STATE
BluetoothDevice.BOND_NONE
BluetoothDevice.BOND_BONDING
BluetoothDevice.BOND_BONDED
BluetoothDevice.getBondState()
BluetoothDevice.createBond()
BluetoothDevice.cancelBondProcess()
BluetoothDevice.removeBond()

-- BluetoothClass --
BluetoothDevice.ACTION_CLASS_CHANGED
BluetoothDevice.EXTRA_CLASS
BluetoothDevice.getBluetoothClass()
BluetoothClass.Service.*
BluetoothClass.Device.Major.*
BluetoothClass.Device.*
BluetoothClass.getDeviceClass()
BluetoothClass.getMajorDeviceClass()
BluetoothClass.hasService()

-- Misc BluetoothDevice --
BluetoothDevice.ACTION_ACL_CONNECTED
BluetoothDevice.ACTION_ACL_DISCONNECTED_REQUESTED
BluetoothDevice.ACTION_ACL_DISCONNECTED
BluetoothDevice.ACTION_DISCOVERED
BluetoothDevice.ACTION_NAME_CHANGED
BluetoothDevice.EXTRA_DEVICE
BluetoothDevice.EXTRA_NAME
BluetoothDevice.EXTRA_RSSI

-- Misc BluetoothAdapter --
BluetoothAdapter.ACTION_LOCAL_NAME_CHANGED
BluetoothAdapter.EXTRA_LOCAL_NAME
BluetoothAdapter.checkBluetoothAddress()

I deprecated BluetoothIntent and moved each intent into the class it relates
to.

Change-Id: I877b1280428ab46278b2bc25668bb44cda22dc36
2009-09-10 18:52:21 -07:00
Jim Miller
f60573d190 am bd75da5d: am 38a1081c: Merge change 24514 into eclair
Merge commit 'bd75da5da4a2dea7cb57a157f63c76bfb0c4d081'

* commit 'bd75da5da4a2dea7cb57a157f63c76bfb0c4d081':
  Add smallIcon and accountPreferences references to AuthenticatorDescription. Update after path conflict.
2009-09-10 18:24:46 -07:00
Jim Miller
70e1ad7d99 Add smallIcon and accountPreferences references to AuthenticatorDescription. Update after path conflict.
Update API for new AuthenticatorDescription preferences.xml
2009-09-10 18:10:53 -07:00