494 Commits

Author SHA1 Message Date
Dianne Hackborn
a246941d53 am 23b141ef: am c2974809: Fix issue #2116977: buttons are huge and bent
Merge commit '23b141efe5d63bd3859aba4ffa0533cb6fad0c59'

* commit '23b141efe5d63bd3859aba4ffa0533cb6fad0c59':
  Fix issue #2116977: 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
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
Jesse Wilson
7b1568d667 Fixing apicheck problem by scrubbing unchecked exceptions from API XML. 2009-09-14 21:23:08 -07:00
Dianne Hackborn
c297480937 Fix issue #2116977: 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
Dianne Hackborn
3a972b29cf am 62e5480a: am bcbcaa7e: Wallpapers, animations, pending intent.
Merge commit '62e5480a70650ec3d151e627dc175c2fa1350edb'

* commit '62e5480a70650ec3d151e627dc175c2fa1350edb':
  Wallpapers, animations, pending intent.
2009-09-10 13:11:35 -07:00
Dianne Hackborn
bcbcaa7edd Wallpapers, animations, pending intent.
Some more tweaks and fixes to wallpapers.  Make sure wallpapers are
told they are not visible when the screen is off.  Add some new animations
for transitions across tasks, and fiddle with many of the existing
animations.  Clean up the relationship between translucent activities
and animations.  Add new API to start a PendingIntent from an
activity.

Change-Id: Ie0bf45fe44081bb6982c75361257a55d9cd9d863
2009-09-10 12:08:50 -07:00
Nick Pelly
38615fc692 am bf765b6c: am 41140098: Merge change 24274 into eclair
Merge commit 'bf765b6c70c0cc5e494c1361747d3b93e98d962d'

* commit 'bf765b6c70c0cc5e494c1361747d3b93e98d962d':
  API_CHANGE
2009-09-09 16:28:58 -07:00
Nick Pelly
3f51fee5f7 am 16a54b28: am aadc9220: Merge change 24202 into eclair
Merge commit '16a54b2861209a13194b02f7882a0ec247b69060'

* commit '16a54b2861209a13194b02f7882a0ec247b69060':
  API_CHANGE
2009-09-09 16:28:52 -07:00
Eric Laurent
7fae310537 am d3a31996: am db603b0b: Merge change 24114 into eclair
Merge commit 'd3a31996e6ef915bc25ff67f1f35274447a14862'

* commit 'd3a31996e6ef915bc25ff67f1f35274447a14862':
  Fix issue 1992233: DTMF tones on Sholes is really long.
2009-09-09 13:41:53 -07:00
Fred Quintana
be5bc78a98 am f43d282d: am b0dccf73: Merge change 24012 into eclair
Merge commit 'f43d282dc7ed88e6d018fa3729da568af8b58158'

* commit 'f43d282dc7ed88e6d018fa3729da568af8b58158':
  add a transaction monitor
2009-09-09 10:58:43 -07:00
Nick Pelly
b24e11baac API_CHANGE
Deprecate BluetoothError.java.

I spent a lot of time experimenting with a class BluetoothError to enumerate
the many error codes returned by the Bluetooth API. But at the end of the day
they were never used. The vast majority of method calls only really need a
true/false error value, and often not even that.

Methods which do need more detailed error enumeration (for example, bonding
failures) can have there own enumerated error codes. But there is no need
for a common set of error codes.

Also change the IPC failed warnings in BluetoothA2dp to Log.e. These indicate
a very serious error.

Introduce BluetoothAdapter.ERROR and BluetoothDevice.ERROR as helper sentinel
values.
2009-09-09 10:52:18 -07:00
Nick Pelly
de893f5503 API_CHANGE
Another round of Bluetooth API clean up, javadoc'ing and unhide'ing.

-- Symbols for getting/setting bluetooth state --
BluetoothAdapter.ACTION_STATE_CHANGED
BluetoothAdapter.EXTRA_STATE
BluetoothAdapter.EXTRA_PREVIOUS_STATE
BluetoothAdapter.STATE_OFF
BluetoothAdapter.STATE_TURNING_ON
BluetoothAdapter.STATE_ON
BluetoothAdapter.STATE_TURNING_OFF
BluetoothAdapter.isEnabled()
BluetoothAdapter.getState()
BluetoothAdapter.enable()
BluetoothAdapter.disable()

-- Symbols for getting/setting scan mode --
BluetoothAdapter.ACTION_SCAN_MODE_CHANGED
BluetoothAdapter.EXTRA_SCAN_MODE
BluetoothAdapter.EXTRA_PREVIOUS_SCAN_MODE
BluetoothAdapter.SCAN_MODE_NONE
BluetoothAdapter.SCAN_MODE_CONNECTABLE
BluetoothAdapter.SCAN_MODE_DISCOVERABLE
BluetoothAdapter.getScanMode()
BluetoothAdapter.setScanMode()

-- Symbols for getting address/names --
BluetoothAdapter.getAddress()
BluetoothAdapter.getName()
BluetoothAdapter.setName()
2009-09-09 10:52:02 -07:00
Eric Laurent
96c08a69ea Fix issue 1992233: DTMF tones on Sholes is really long.
Add a parameter to ToneGenerator.startTone() allowing the caller to specify the tone duration. This is used by the phone application to have a precise control on the DTMF tone duration which was not possible with the use of delayed messaged.
Also modified AudioFlinger output threads so that 0s are written to the audio output stream when no more tracks are ready to mix instead of just sleeping. This avoids an issue where the end of a previous DTMF tone could stay in audio hardware buffers and be played just before the beginning of the next DTMF tone.
2009-09-08 22:56:07 -07:00
Fred Quintana
c4516a7b62 add a transaction monitor 2009-09-08 17:25:09 -07:00
Derek Sollenberger
ac6d106643 am af4ce5bd: am c3a30a00: Merge change 24153 into eclair
Merge commit 'af4ce5bd00be6fd3319c7cdcc3ddf27ac81ac24e'

* commit 'af4ce5bd00be6fd3319c7cdcc3ddf27ac81ac24e':
  adding support for webkit plugins to use the java view system
2009-09-08 16:01:47 -07:00
Dianne Hackborn
3331da069c am da2e19c6: am eb034652: Implement all of the infrastructure for configuring wallpapers.
Merge commit 'da2e19c6ad5c153d87c8da1a695e5e823d17e29b'

* commit 'da2e19c6ad5c153d87c8da1a695e5e823d17e29b':
  Implement all of the infrastructure for configuring wallpapers.
2009-09-08 16:01:18 -07:00
Derek Sollenberger
2c3eb14d43 adding support for webkit plugins to use the java view system
Change-Id: I4fb328e5f30476fe4aa70565bacb969dc97b495d
2009-09-08 15:42:23 -04:00
Dianne Hackborn
eb034652c2 Implement all of the infrastructure for configuring wallpapers.
Actually being able to configure a wallpaper relies on additional
work in the launcher and wallpapers that will be in another change.
Also note that this breaks all existing wallpapers, since they now
need to include a meta-data item about themselves.  This also
will be fixed in another change.

Change-Id: I97d2c2bd07237abc32f92b9147c32530a2f73c71
2009-09-07 22:48:02 -07:00
Dianne Hackborn
ed9f8514e1 am bdbe87d0: am 6e4b7d66: Merge change 24020 into eclair
Merge commit 'bdbe87d0756a54dbc2edd24b75b9cd98cab31442'

* commit 'bdbe87d0756a54dbc2edd24b75b9cd98cab31442':
  Wallpapers: new transitions, hiding when not visible, other cleanup.
2009-09-04 15:44:38 -07:00
Dianne Hackborn
25994b4306 Wallpapers: new transitions, hiding when not visible, other cleanup.
This is work on the transitions with wallpapers.  There are now new
animations specifically for leaving the wallpaper and returning to
it, which allow us to have a consistent animation when entering home
and returning to it.  I also renamed the existing animations across
wallpapers, and cleaned up some junk in the various interpolators.

This also now hides the wallpaper surface when it is not visible,
to get rid of the wallpaper flickers people complained about albeit
in a somewhat brutal way. :)  (Though really returning us to the
previous behavior with the same previous bugs and name back to them
not being very visible, yay!)  There is are also some bug fixes
here and there about managing the wallpaper visibility that this
change revealed.

Change-Id: I913990a9a81651728122ed2e1101b75ed2c36fcb
2009-09-04 14:28:42 -07:00
Jesse Wilson
f163f7f0f2 do not merge: fix API current.xml for Hashtable. 2009-09-03 18:20:50 -07:00
Jesse Wilson
6de753bffe do not merge: update API for Josh's optimizations for Eclair 2009-09-03 17:48:11 -07:00
Dianne Hackborn
56aae57075 am 6b085a3d: am ebf0bbaa: Merge change 23868 into eclair
Merge commit '6b085a3d821306a9b65cebdae19d75597b3c680e'

* commit '6b085a3d821306a9b65cebdae19d75597b3c680e':
  Add better service reporting.
2009-09-03 14:44:23 -07:00
Dianne Hackborn
dd9b82c283 Add better service reporting.
This will be used elsewhere.

Change-Id: Id561fa7fed5eb65446312cb697813483903d33a6
2009-09-03 14:11:02 -07:00
Joshua Bloch
b1c3015f28 Fix xml file for recent Hashtable change. 2009-09-02 16:33:18 -07:00
Suchi Amalapurapu
dcd49c9775 am 743a7495: am 23db1731: Merge change 23717 into eclair
Merge commit '743a7495ab365d8a84a25ac93e22b6e6e4c5e0b4'

* commit '743a7495ab365d8a84a25ac93e22b6e6e4c5e0b4':
  Make new attribute EXTRA_CHANGED_COMPONENT_NAME in
2009-09-02 16:29:28 -07:00
Suchi Amalapurapu
32f589046b Make new attribute EXTRA_CHANGED_COMPONENT_NAME in
broadcast intent ACTION_PACKAGE_CHANGED public so that
apps like launcher can find out the changed component name
when loading changes made in components.
2009-09-02 16:11:14 -07:00
Wu-cheng Li
210eedeff7 am eb05398f: am 9b6a8ab8: Add camera parameters constants and methods.
Merge commit 'eb05398fcc598b252c3d5b0c09ea1da72bb8db0b'

* commit 'eb05398fcc598b252c3d5b0c09ea1da72bb8db0b':
  Add camera parameters constants and methods.
2009-09-02 13:32:16 -07:00
Wu-cheng Li
9b6a8ab822 Add camera parameters constants and methods. 2009-09-02 12:45:23 +08:00
Christopher Tate
fbea729dcc am 9073dc69: am 9756a70b: Merge change 23582 into eclair
Merge commit '9073dc69b110cbd0d4bebd128ed6cc2b24a16695'

* commit '9073dc69b110cbd0d4bebd128ed6cc2b24a16695':
  Expand apps' control over the settings restore process
2009-09-01 21:05:10 -07:00
Christopher Tate
5e1ab335e6 Expand apps' control over the settings restore process
Applications can now specify two more aspects of the restore process:  whether
they need to run with their own custom Application subclass rather than being
launched in the usual restricted mode during restore, and whether it's okay for
the backup manager to kill the app process once restore has completed.  The new
manifest attributes for these are, respectively, android:restoreNeedsApplication
and android:killAfterRestore.

If unspecified in the manifest, restoreNeedsApplication is false, and
killAfterRestore is true.

In order to support kill-after-restore cleanly, this change also adds a new
system-process-only interface to the Activity Manager, which will schedule a
"commit suicide" event on the target app's main thread looper.

The framework backup agents have been given the appropriate new backup
attributes as well.
2009-09-01 20:59:36 -07:00
Dianne Hackborn
87672d2bd9 am 470f54d2: am 2d2d5c43: am c804efe2: Merge change 23569 into donut
Merge commit '470f54d299f1eece316a03ee3a2607f0555cb170'

* commit '470f54d299f1eece316a03ee3a2607f0555cb170':
  Update 4.xml to the most recent APIs.
2009-09-01 19:23:07 -07:00
Dianne Hackborn
2d2d5c4372 am c804efe2: Merge change 23569 into donut
Merge commit 'c804efe278fa33555e6e836504a467cb14505eb3' into eclair

* commit 'c804efe278fa33555e6e836504a467cb14505eb3':
  Update 4.xml to the most recent APIs.
2009-09-01 19:18:18 -07:00
Dianne Hackborn
2c8859aeda Update 4.xml to the most recent APIs. 2009-09-01 19:14:55 -07:00
Wink Saville
cd4fd153ec am 3d122b56: am 65d62c77: Add hasIccCard to IccCard and TelephonyManager.
Merge commit '3d122b56d9bf2a5c63b55bc6a67f56aff8e65b6f'

* commit '3d122b56d9bf2a5c63b55bc6a67f56aff8e65b6f':
  Add hasIccCard to IccCard and TelephonyManager.
2009-09-01 16:14:04 -07:00
Wink Saville
65d62c774e Add hasIccCard to IccCard and TelephonyManager.
Expose the presence/absence of IccCards in the system.
This is needed to fix bug 2033811 which needs to show
some SIM menus in the Mms app and Contact apps only if
there is a SIM and on CDMA there is no sims yet.

The current implementation assumes CDMA never has an
IccCard this is true at the moment but needs to change.

Change-Id: I4167368e364623ea68e9b2778556e6d730b1e715
2009-09-01 15:52:42 -07:00
Dianne Hackborn
7004a65fe3 am 93ca790c: am d31825c6: Merge change 23403 into eclair
Merge commit '93ca790c025d51780bff9be42cffdd0055091edb'

* commit '93ca790c025d51780bff9be42cffdd0055091edb':
  Various infrastructure to support a running services UI.
2009-09-01 13:59:24 -07:00
Dianne Hackborn
3025ef332c Various infrastructure to support a running services UI.
Some of this is temporary (in particular the two approaches for getting
process memory, one working but horrible, the other not working but
preferred) until I figure out the best way to do it.

Change-Id: I8c8f25062d481fcea22a47d459b083d2fd8a5040
2009-09-01 11:16:25 -07:00
Patrick Scott
7ef8e73b08 am d15dcf07: am 05c9ed9c: Fix the documentation for onReceivedError.
Merge commit 'd15dcf07adfa04a3b1ce41c3bcb9455314025264'

* commit 'd15dcf07adfa04a3b1ce41c3bcb9455314025264':
  Fix the documentation for onReceivedError.
2009-09-01 05:42:38 -07:00
Patrick Scott
05c9ed9ce1 Fix the documentation for onReceivedError.
This change adds the EventHandler error codes to WebViewClient for the public
api. Previously, the api was ambiguous about the value of the errorCode
parameter and falsely documented that the values are HTTP status codes.
2009-09-01 08:37:22 -04:00
Fred Quintana
598ec41b37 am 9b52ad61: am 56f67d21: add the ability to specify yieldpoints in a ContentProviderOperation
Merge commit '9b52ad61642c84f74c89627eeb28d03ebb44386c'

* commit '9b52ad61642c84f74c89627eeb28d03ebb44386c':
  add the ability to specify yieldpoints in a ContentProviderOperation
2009-08-28 17:06:18 -07:00
Fred Quintana
56f67d2145 add the ability to specify yieldpoints in a ContentProviderOperation 2009-08-28 17:01:16 -07:00
Mike LeBeau
b4758199dd am 8c0fa1a2: am e9df3cf7: resolved conflicts for merge of 1e348378 to eclair
Merge commit '8c0fa1a2e5966b685f75e438eb089701b404b6ef'

* commit '8c0fa1a2e5966b685f75e438eb089701b404b6ef':
  Revert "Remove third party support for Quick Search Box (aka global search)."
2009-08-28 00:02:41 -07:00