231 Commits

Author SHA1 Message Date
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
Mark Wagner
fc03aa7894 check return value from Cursor.moveToFirst() 2009-08-03 14:27:04 -07:00
Evan Millar
b3ac9318ef Adds the ContactHeaderWidget for use by system apps.
The ContactHeaderWidget is a new widget that is used as a header banner
in various system applications, including contacts, mms, and gtalk.
Convenience methods are supplied for bind the widget to a specific
contact, which can be specified by contact id, email, or phone number.
2009-08-01 15:59:08 -07:00
Android (Google) Code Review
afa7d85b43 Merge change 9008
* changes:
  Only restore the bits for wallpapers that aren't built in.
2009-07-29 14:10:12 -07:00
Joe Onorato
9bb8fd77c8 Only restore the bits for wallpapers that aren't built in. 2009-07-29 12:05:36 -07:00
Android (Google) Code Review
4ed9d78754 Merge change 4768
* changes:
  Implement sliding window sync.
2009-07-29 10:18:30 -07:00
Fred Quintana
a9e3e72544 fix for a method rename 2009-07-27 11:55:26 -07:00
Android (Google) Code Review
461628716e Merge change 8177
* changes:
  Added patch support based on serializer state in the android client
2009-07-27 10:33:43 -07:00
Dianne Hackborn
e2dba02441 am 11ea3347: Allow for screen density drawables in compatibility mode.
Merge commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8'

* commit '11ea33471e1a14a8594f0b2cd012d86340dd3bd8':
  Allow for screen density drawables in compatibility mode.
2009-07-24 16:08:56 -07:00
Dianne Hackborn
11ea33471e Allow for screen density drawables in compatibility mode.
This change allows us to use drawables that match the current screen
density even when being loaded in compatibility mode.  In this case,
the bitmap is loaded in the screen density, and the bitmap and
nine-patch drawables take care of accounting for the density difference.

This should be safe for existing applications, for the most part, since
they shouldn't really be pulling the bitmap out of the drawable.  For
the small rare chance of them breaking, it worth getting the correct
graphics.  Also this will only happen when there is actually a resource
of the matching density, and no existing apps should have resources for
anything besides the default density (though of course all of the
framework resources will be available in the native density).

As part of this, the bitmap density API has been changed to a single
integer provider the DPI unit density.
2009-07-24 10:47:15 -07:00
Dan Egnor
62e7cbf0b2 Add some more (off by default) logging to trace what's happening with UrlRules 2009-07-23 16:38:51 -07:00
Android (Google) Code Review
c53d69e627 Merge change 8242
* changes:
  Make intent broadcasts in "am" synchronous (they wait until exit). Clean up error handling and reporting in "am". Make the usage message for "am" more informative.
2009-07-22 17:35:18 -07:00
Dan Egnor
9f4af53561 Make intent broadcasts in "am" synchronous (they wait until exit).
Clean up error handling and reporting in "am".
Make the usage message for "am" more informative.

Make it easier to turn on logging in GoogleHttpClient.
2009-07-22 16:56:55 -07:00
fmantek
513d217988 Added patch support based on serializer state in the android client 2009-07-22 13:04:07 +02:00
Android (Google) Code Review
a695d185f1 am ef1a92ab: Merge change 7961 into donut
Merge commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0'

* commit 'ef1a92abe1bebe4feba4ba33cd0c7e25ee83fcc0':
  Bluetooth at command tracking.
2009-07-20 23:33:44 -07:00
Amith Yamasani
3f7e35c2c7 Bluetooth at command tracking. 2009-07-20 12:38:55 -07:00
Android (Google) Code Review
4764605109 am fa8904a6: Merge change 7012 into donut
Merge commit 'fa8904a683903524ed9749f296e80381e5820178'

* commit 'fa8904a683903524ed9749f296e80381e5820178':
  Fix couple of issues in DatePicker
2009-07-14 16:03:30 -07:00
Suchi Amalapurapu
2bf761c202 Fix couple of issues in DatePicker
The NumberPicker's listener needs to be invoked only if
the current value changes when validating input.
This removes the some unwanted duplicate calls to onChanged.
Adjust day for month and leap years. note that updateDaySpinner
directly sets the value on day picker and doesn't invoke the
listener twice
2009-07-14 15:37:20 -07:00
Fred Quintana
0f4e1ab773 - remove an un-needed constant
- add a content provider helper that manages a table for storing sync state by account
- add contact definitions to Contacts access the sync state
2009-07-13 16:02:09 -07:00
Android (Google) Code Review
8a72cd9c7d am 1c9fb40c: Merge change 6845 into donut
Merge commit '1c9fb40cb6dbfeee58c41a43852c5b94a1b83613'

* commit '1c9fb40cb6dbfeee58c41a43852c5b94a1b83613':
  Use MeasureSpec.getWidth instead of default display in lock pattern widget.
2009-07-12 06:06:49 -07:00
Karl Rosaen
6a109b4874 Use MeasureSpec.getWidth instead of default display in lock pattern widget. 2009-07-10 16:10:10 -07:00
Android (Google) Code Review
85c3b727d7 Merge change 6186
* changes:
  Squashed commit of the following: Merged with batch, change to FORMAT_BATCH commit 4a6f359119771b7ac785aafcba757d049c82e490 Merge: e41dea4... 10063c1... Author: fmantek <fmantek@google.com> Date:   Fri Jul 3 14:58:11 2009 +0200
2009-07-08 04:42:34 -07:00
Android (Google) Code Review
0a04ca7c97 am 7c5ae202: Merge change 6104 into donut
Merge commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10'

* commit '7c5ae202c53be1ab4881a6811aa5bd091c3aef10':
  Add a "clear backed-up data" method to the backup mechanism
2009-07-06 11:02:50 -07:00
fmantek
ee0a8f20d5 Squashed commit of the following:
Merged with batch, change to FORMAT_BATCH
commit 4a6f359119771b7ac785aafcba757d049c82e490
Merge: e41dea4... 10063c1...
Author: fmantek <fmantek@google.com>
Date:   Fri Jul 3 14:58:11 2009 +0200

    Merge branch 'master' of ssh://android-git.corp.google.com:29418/platform/frameworks/base into GDataClient2
    Implemented batch on the android client

commit e41dea4ac27959c8d9f906afbc2e5c4b09e007e0
Author: fmantek <fmantek@google.com>
Date:   Wed Jul 1 15:36:01 2009 +0200

    New GDAtaClientInterface

    commit d70a4b7d088df217360825a79696e8dae669a8b2
    Author: fmantek <fmantek@google.com>
    Date:   Wed Jul 1 15:28:50 2009 +0200

        Removeg 2 unneeded files

    commit f5a25cbd43a14412a4cbd51bbd733ddb7d0e06ba
    Author: fmantek <fmantek@google.com>
    Date:   Wed Jul 1 15:26:07 2009 +0200

        Added gdata2 package

        commit dfd0d875a2eac69511419df375820f0b437ba398
        Author: fmantek <fmantek@google.com>
        Date:   Thu Jun 25 13:00:05 2009 +0200

            New Android Client to use Gdata2 package and support etags
2009-07-06 14:11:55 +02:00
Christopher Tate
ee0e78af5a Add a "clear backed-up data" method to the backup mechanism
It's now possible to ask that the backup manager wipe the saved data for a given
application from the backing store.  LocalTransport implements this now but the
Google backend does not yet.  When the data is wiped, the on-device backup state
is also wiped to ensure that the next backup pushes all necessary data.

Bmgr has not yet been modified to actually call into this method, but it will
be soon.
2009-07-02 11:30:29 -07:00