255 Commits

Author SHA1 Message Date
Dianne Hackborn
8d37426c75 Various fixed for back key handling.
My last change was far from perfect.  Hopefully this gets us
a little closer.

Change-Id: I413e55b6af42400b565de3040859d25d668bc9d2
2009-09-14 21:21:52 -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
Android (Google) Code Review
93f00def4b Merge change 24509 into eclair
* changes:
  Addressed reviewer comments.
2009-09-13 18:43:38 -04:00
Android (Google) Code Review
5b61bea7ab Merge change 24581 into eclair
* changes:
  Dialog titles would sometimes use a font too large.
2009-09-10 17:26:05 -04:00
Romain Guy
4bdf17c697 Dialog titles would sometimes use a font too large.
This was due to code in DialogTitle.java which would multiply the textSize of
the theme twice.

Change-Id: Id44e39e729ebd43b08c967a67cde0d33dd8f2efb
2009-09-10 14:11:20 -07:00
Dmitri Plotnikov
84b4d37dd1 [Issue 2099206] Encoding phone number prior to sending it to the phone lookup filter
Change-Id: I80327febe7134ac1bdef958251943a9777879d53
2009-09-10 11:47:10 -07:00
Bob Lee
eec2f41d60 Addressed reviewer comments. 2009-09-10 11:01:24 +02:00
Android (Google) Code Review
1048ad554a Merge change 24395 into eclair
* changes:
  Make NumberPicker subclassable
2009-09-09 17:24:51 -04:00
Tom Taylor
fdf6db6748 Make NumberPicker subclassable
Make a few methods and member variables protected so behavior can be
overridden. In this case, Messaging app uses the control and doesn't
want wrap-around behavior.

Change-Id: Iceb34743b7d17e933400750a5de56b9ecfe8f146
2009-09-09 11:37:58 -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
Fred Quintana
c4516a7b62 add a transaction monitor 2009-09-08 17:25:09 -07: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
Bob Lee
e540833fdf Integrated the profiler into the framework. We run it all the time if the persist.sampling_profiler
system property is set. Saves snapshots to the SD card.
2009-09-05 11:53:18 -07:00
Dmitri Plotnikov
b1e2a4d0d0 Removing references to deprecated API and the deprecated API itself. 2009-09-03 16:27:37 -07:00
Jeff Hamilton
b623a7c953 Don't crash when a user taps on a fast track trigger that isn't hooked up to a contact. 2009-09-02 14:30:55 -05:00
Dianne Hackborn
284ac93aa3 More work on wallpapers: animations, lifecycle, scaling, etc.
Yet more work on improving the behavior of wallpapers.  This fixes a few
problems in their lifecycle (corresponding change in the picker also
required for this), makes their animations better for hardware that supports
alpha fades, adds animations for the wallpapers themselves, eliminates
fixed size wallpapers, and adjusts the API for retrieving a wallpaper
bitmap to take care of scaling the raw wallpaper image to match the current
desired width and height.

Change-Id: If1c0aaceba4ea4e175dcb7a8416ca7ddbb9bfa6f
2009-08-30 10:53:53 -07:00
Danke Xie
22d1f9fb23 gps: Network initiated SUPL
Initial contribution from Qualcomm.

Signed-off-by: Mike Lockwood <lockwood@android.com>
2009-08-27 14:18:30 -07:00
Karl Rosaen
678771b811 New strings and utlity method tweaks associated with updated account unlock screen flow.
- 'setPermanentlyLocked(false)' no longer automatically resets the pattern
- new string for "waiting to verify account" progress dialog
- new string for account unlock screen title when you aren't past the too many
attempts, but just hit the 'forgot pattern' button
2009-08-25 08:26:38 -07:00
Jeff Sharkey
f7eab4f78f Don't use deprecated API in contact header widget.
Fixes http://b/2074981
2009-08-24 22:05:35 -07:00
Jeff Sharkey
84235ee923 Add extra to exclude specific MIME-types from Fast-Track.
Also added ContactHeaderWidget accessor for passing along
this list when triggering Fast-Track.  This is used so that
the header widget can hide the profile icon when launched
while already looking at the profile.
2009-08-23 14:11:00 -07:00
Android (Google) Code Review
00ddbcaa2e Merge change 22314 into eclair
* changes:
  Purge cache
2009-08-21 14:10:12 -07:00
Tom Taylor
4ddacd014b Purge cache
When persisting a PDU, make sure we purge any old instances of the
PDU from the cache.
2009-08-21 13:09:55 -07:00
Romain Guy
07ef599b9f Fix typo: the x offset was assigned to the y coordinate.
Also remove a couple of useless casts.
2009-08-21 10:40:49 -07:00
Dmitri Plotnikov
60662b035c The API for phone lookup has changed - updating Contact Header accordingly. 2009-08-20 11:01:09 -07:00
Android (Google) Code Review
b22293590c Merge change 21748 into eclair
* changes:
  Get At command count from Bluetooth headset.
2009-08-18 12:39:34 -07:00
Amith Yamasani
82cb029e2a Get At command count from Bluetooth headset.
Pass in the BT headset object when available to the BatteryStats.
2009-08-18 12:38:06 -07:00
Nick Pelly
bd022f423a Bluetooth: API change.
Split BluetoothDevice into BluetoothDevice and BluetoothAdapter.

BluetoothAdapter: Represents the local BT adapter. Operations on the local
                  adapter (start a scan, etc).
BluetoothDevice: Represents a remote BT device. Operations on remote devices
                 (pair, connect, etc).

IBluetoothDevice.aidl -> Bluetooth.aidl
BluetoothDeviceService.java -> BluetoothDeviceService.java

TODO:
Javadoc
2009-08-18 08:24:22 -07:00
Dianne Hackborn
8df8b2b405 Allow wallpapers to get touch events. 2009-08-17 21:23:05 -07:00
Dianne Hackborn
7341d7a104 More work on wallpapers.
- Do better about figuring out when to stop them and other related window
  management.
- Fix problem where we were not redrawing the surface when the orientation
  changed.  This was the cause of the device hang.
2009-08-17 10:42:59 -07:00
Dianne Hackborn
0cd48879dc A little more wallpaper robustness.
- Recover if a live wallpaper is crashing repeatedly.
- Don't crash when someone tries to set a static wallpaper.
- Make the static wallpaper update correctly when the image changes.
2009-08-13 19:24:07 -07:00
Mathias Agopian
317a6280cc Surface::GPU and Surface::HARDWARE are now deprecated; they will be set automatically if needed.
this also ripples into the window manager API by making some constant there deprecated as well.
2009-08-13 18:19:32 -07:00
Mark Wagner
97f3209b45 more support for bindStatic
some minor tweaks to the layout in the hopes I can start using this for gtalk soon
2009-08-13 14:30:21 -07:00
Jeff Sharkey
ab13c7792e Add methods for directly setting Contact header data.
Previously, ContactHeaderWidget only allow data binding
through helper methods, or a single static call.  In the
Contacts edit UI, we need to set individual fields directly
based on internal EntityDelta states.  Also added more
documentation and exposed more-direct query helpers.
2009-08-13 12:14:18 -07:00
Dianne Hackborn
9875e6117a Should clear background. 2009-08-12 17:19:03 -07:00
Dianne Hackborn
72c82ab992 Report wallpaper offset to the wallpaper, use this in the image wallpaper.
Wallpapers can now be just the size of the screen, and get told when their
scroll position should change to do the updating on their own.
2009-08-12 14:41:29 -07:00
android-build SharedAccount
45e503ae91 resolved conflicts for merge of 802527c6 to master skipping preloaded-classes as pre Bob 2009-08-12 12:01:35 -07:00
Evan Millar
773c634124 Add presence to ContactsHeaderWidget 2009-08-12 11:27:45 -07:00
Mark Wagner
93187560b5 contrary to popular belief ContentResolver.query can return null.
so check.
2009-08-12 09:34:51 -07:00
Romain Guy
ef654bdd5b Draw the wallpaper chosen by the user 2009-08-11 19:12:17 -07:00
Romain Guy
b4f59bffc0 Fix possible exception in default live wallpaper 2009-08-11 14:42:19 -07:00
Bob Lee
2e93f65cab Updated preloaded-classes file. 2009-08-11 12:42:02 -07:00
Jeff Sharkey
ad2eaf208d Added long-press hooks to Contact header widget.
To match Contacts edit UI mocks, the user long-presses on
the photo or display name to select a new primary.  This
change provides the hooks needed over in Contacts.
2009-08-11 10:09:42 -07:00
Dianne Hackborn
759a39e8d2 Live wallpapers become a little more real.
This adds a new theme for having a wallpaper, and fixes up the window manager
to do the right thing when transitioning between a windows with and without
wallpapers (between two windows with wallpapers is not yet addressed).

The wallpaper API now has callbacks to tell you when to start/stop animating.

Also fiddle the image wallpaper to be a little more interesting.
2009-08-09 17:20:27 -07:00
Dianne Hackborn
4c62fc0e1e Very primitive wallpapers in a surface.
This is all of the basic pieces:

- The WallpaperService now creates a surface with the window manager for its
  contents.
- There is a simple service that displays a bitmap.
- The wallpaper manager takes care of starting and stopping the service.
- The window manager knows about wallpaper windows and how to layer them with
  the windows that want to be shown on top of wallpaper.

Lots and lots of issues remain, but at this point you can actually write a
wallpaper service, select it in the UI, and see it behind an activity.
2009-08-08 22:13:46 -07:00
Mark Wagner
23d479588f Mods to the ContactHeaderWidget to be able to have it display strings
as passed in by the caller.  For example we may want to use this in
the case when there is no contact in a given circumstance.
2009-08-07 14:51:35 -07:00
Jeff Sharkey
6bfe14dea2 Add SHOW_OR_CREATE size modes, trigger from contact header.
Added constants so that apps triggering SHOW_OR_CREATE can
request a desired size through EXTRA_MODE.  Also added hooks
to internal ContactHeaderWidget to launch SHOW_OR_CREATE
when user taps on photo.
2009-08-06 13:07:20 -07:00
Karl Rosaen
8db05867bd am 0e74f5a5: Guard against index out of bounds exception in lock pattern widget.
Merge commit '0e74f5a50b3b08c4519a040dafa895ab1f5b4d2e'

* commit '0e74f5a50b3b08c4519a040dafa895ab1f5b4d2e':
  Guard against index out of bounds exception in lock pattern widget.
2009-08-04 14:26:43 -07:00
Fred Quintana
3f86715d77 add missing types 2009-08-04 14:12:21 -07:00
Karl Rosaen
0e74f5a50b Guard against index out of bounds exception in lock pattern widget.
Fixes bug 2027516.
2009-08-04 13:23:36 -07:00