Commit Graph

2308 Commits

Author SHA1 Message Date
Android (Google) Code Review
44224695de Merge change 20632
* changes:
  call super.finalize() from WebView
2009-08-11 08:17:43 -07:00
Dianne Hackborn
c8a0a75e1c Implement support for scrolling a wallpaper.
This currently only works for a wallpaper that is larger than the
screen.  Set the scroll position with the new wallpaper API.  Right
now only does jump scrolls.
2009-08-11 10:03:16 -04:00
Jeff Sharkey
08b75b1ffb New ContentProviderOperation to assert values during batch.
When performing a set of batch operations, some callers need
to enforce that a query has specific values.  For example,
when persisting edited Contact values, we need to assert
that the RawContacts.VERSION matches the version we read out
through queryEntities().

This change adds a new TYPE_ASSERT that uses withValues()
and withSelection(), and checks all values when applying the
batch operation, bailing if any values don't match.
2009-08-10 20:59:20 -07:00
Dmitri Plotnikov
507f1607f7 Adding a MARKED_AS_DIRTY parameter to Groups. 2009-08-10 17:37:36 -07:00
Cynthia Wong
0d54b02b75 Add a new setting for controling how much time to wait before discarding uphill operations 2009-08-10 16:53:44 -07:00
Android (Google) Code Review
8cb14280d4 Merge change 20660
* changes:
  add the deleted flag to the Groups table
2009-08-10 16:30:16 -07:00
Android (Google) Code Review
a1cbccd7b3 Merge change 20643
* changes:
  Add calendar_sync_window_days setting to control calendar sync window.
2009-08-10 15:53:46 -07:00
Ken Shirriff
326580d59a Add calendar_sync_window_days setting to control calendar sync window. 2009-08-10 15:00:11 -07:00
Fred Quintana
00c89f6266 add the deleted flag to the Groups table 2009-08-10 14:54:03 -07:00
Cary Clark
9a4c063874 call super.finalize() from WebView
found by findbugs
http://b/issue?id=1857144
this fixes ViewDebug which otherwise will report the
incorrect number of views
2009-08-10 17:09:51 -04:00
Android (Google) Code Review
07cbacc117 Merge change 20622
* changes:
  Remove unused member mHeaderValueIndex
2009-08-10 11:28:39 -07:00
Cary Clark
3db35b48cc Remove unused member mHeaderValueIndex
found by findBugs
fixes http://b/issue?id=1857163
2009-08-10 14:03:54 -04:00
Derek Sollenberger
fa32db15a0 setting the pixel format for a given surface 2009-08-10 10:41:35 -04:00
Android (Google) Code Review
42431bc35e Merge change 20582
* changes:
  Live wallpapers become a little more real.
2009-08-09 20:11:20 -07:00
Romain Guy
a9d2d5ed28 Make the laves follow the ripples 2009-08-09 19:12:27 -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
Android (Google) Code Review
542040c51c Merge change 20493
* changes:
  unhide postUrl
2009-08-08 10:27:36 -07:00
Alex Gruenstein
89325078db unhide postUrl 2009-08-07 16:31:12 -07:00
Android (Google) Code Review
f23784176f Merge change 20454
* changes:
  Added lightweight exception logging to AsyncQueryHandler.
2009-08-07 13:47:00 -07:00
Jeff Sharkey
3b7c3c6b55 Added lightweight exception logging to AsyncQueryHandler.
Without this, it's really hard to debug exceptions coming
over from a ContentProvider.  This is lightweight logging
that is only triggered by an exception, and doesn't write a
full stacktrace.
2009-08-07 13:44:09 -07:00
Christian Sonntag
058779c9bb Add constant for storing market backup state in shared preferences. 2009-08-07 10:54:46 -07:00
Android (Google) Code Review
fcfd7bea4a Merge change 20357
* changes:
  Remove Voice Search constants, factored them out into the Voice Search app.
2009-08-07 09:54:02 -07:00
Android (Google) Code Review
5d1e4c4db0 Merge change 20381
* changes:
  Clean-up of API for filtering contacts by phone or email. The api is now symmetrical.
2009-08-07 09:47:35 -07:00
Android (Google) Code Review
38028f2e28 Merge change 20383
* changes:
  As createCacheFile is called from WebCore instead of http thread now, remove the endCacheTransaction/startTransaction pairs.
2009-08-07 09:46:28 -07:00
Jeff Sharkey
bce3ab90c7 am b8560b66: Fix AppWidget layout inflation to resolve references.
Merge commit 'b8560b66fd2bdf465a8c7fad983f2236778e8106'

* commit 'b8560b66fd2bdf465a8c7fad983f2236778e8106':
  Fix AppWidget layout inflation to resolve references.
2009-08-06 21:56:53 -07:00
Jeff Sharkey
b8560b66fd Fix AppWidget layout inflation to resolve references.
When RemoteViews inflates a layout and set of actions, it
uses a cloned remote Context so it can fully access the
resources needed to complete the inflate.  However, in one
specific case when inflating the root view, LayoutInflater
calls back to the soon-to-be parent view to request the
correct set of LayoutParams through generateLayoutParams().

The default implementation of generateLayoutParams() uses
the Context of the /local/ View instead of the remote
Context being used for the inflation, which means that any
LayoutParam references in the root view are unresolved.

To fix this, we internally create our own copy of the target
remote Context.  This way, when the remote LayoutInflater
calls generateLayoutParams(), we inflate it using the remote
Context to correctly resolve any references.

This change is required as part of http://b/2038594
2009-08-06 21:53:56 -07:00
Dmitri Plotnikov
d4e0b5713a Clean-up of API for filtering contacts by phone or email. The api is now symmetrical.
Also, giving Presence.RAW_CONTACT_ID and Presence.DATA_ID unique ids to allow easy joining.  The main rationale for this is that SQLite does not allow cross-database joins in VIEWs, so we cannot hide this join inside a VIEW.
2009-08-06 20:19:29 -07:00
Grace Kloba
bf951c5afd As createCacheFile is called from WebCore instead of http thread now, remove
the endCacheTransaction/startTransaction pairs.
2009-08-06 18:44:02 -07:00
Dmitri Plotnikov
8dcd14021c Introducing default email and phone number to replace the primary ones on the Contact. 2009-08-06 18:02:30 -07:00
Alex Gruenstein
50dac8c673 Remove Voice Search constants, factored them out into the Voice Search app. 2009-08-06 16:51:51 -07:00
Karl Rosaen
332aaaf92f am a7a3b6ef: Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
Merge commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077'

* commit 'a7a3b6ef0fdaf6b17993642b76baf90a03ae0077':
  Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
2009-08-06 16:40:13 -07:00
Karl Rosaen
a7a3b6ef0f Dismiss both the soft keyboard and the search dialog on back if there is no text entered and no shortcuts are being obscured by the soft keyboard.
Fixes bug 2039508.  This makes backing out of the search dialog easier when dismissing the soft keyboard doesn't really
add any value.
2009-08-06 16:23:19 -07:00
Fred Quintana
8851e163fc - add several common kinds and beef up some others
- change the ContentProviderOperation selection backref store the backref as a long instead of as a string
2009-08-06 15:59:28 -07:00
Mike LeBeau
597543c5e7 am e303d2cf: Send a special respond to the cursor in SuggestionsAdapter to tell it to close itself directly because it may not happen correctly for some cursors currently. This fixes http://b/2036290, which is being caused by http://b/2015069 which we are not fixing f
Merge commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295'

* commit 'e303d2cf94da6bb7f0569fbddd6dfd5b85ed8295':
  Send a special respond to the cursor in SuggestionsAdapter to tell it to
2009-08-06 14:55:29 -07:00
Mike LeBeau
e303d2cf94 Send a special respond to the cursor in SuggestionsAdapter to tell it to
close itself directly because it may not happen correctly for some cursors
currently. This fixes http://b/2036290, which is being caused by
http://b/2015069 which we are not fixing for Donut, so this is a hack around
that for the time being.
2009-08-06 14:52:15 -07:00
Android (Google) Code Review
b2cf27a178 Merge change 20326
* changes:
  Fix build.
2009-08-06 14:08:37 -07:00
Dianne Hackborn
73cf55d963 Fix build. 2009-08-06 14:07:39 -07:00
Android (Google) Code Review
d44364fe57 Merge change 20306
* changes:
  Fix crash when MotionEvent is initialized with more than 2 fingers, and bump its initial size to allow for up to 5 fingers.
2009-08-06 13:50:41 -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
Grace Kloba
e397a88e4f Couple of tuning for the Browser zoom.
1. Added a setting to control whether a page is loaded with overview mode;
2. If there is no viewport metag tag, a page will be loaded in the viewport
   at least 800px wide.
3. When we adjust zoom scale in the overview mode, don't use animation.
4. When zoom out to close to min zoom scale, switch to overview mode. So double
   tap will always have visual feedback unless it is mobile site.
2009-08-06 13:06:10 -07:00
Android (Google) Code Review
b65aca2463 Merge change 20284
* changes:
  Use multi-pointer support to improve 2-thumb typing. No more missed keys!
2009-08-06 12:59:41 -07:00
Dianne Hackborn
1e8dfc73fb Fix crash when MotionEvent is initialized with more than 2 fingers, and bump
its initial size to allow for up to 5 fingers.
2009-08-06 12:43:01 -07:00
Amith Yamasani
e877ec632c Use multi-pointer support to improve 2-thumb typing. No more missed keys!
Also reduce garbage when switching between keyboards.
2009-08-06 11:32:06 -07:00
Derek Sollenberger
1bd20523ef adding ability to fix the size of a surface view when created. 2009-08-06 11:41:36 -04:00
Andrei Popescu
bf70afa212 Do not merge
Fix for 1900694: create the full path to the Gears permission database file so SQLite can actually create the database on the device
2009-08-06 14:46:59 +01:00
Android (Google) Code Review
9488437b4f Merge change 20240
* changes:
  First bit of wallpaper work.
2009-08-05 21:39:14 -07:00
Dianne Hackborn
8cc6a5026a First bit of wallpaper work.
This is mostly refactoring, adding a new WallpaperManager class that takes care
of the old wallpaper APIs on Context, so we don't need to pollute Context with
various new wallpaper APIs as they are needed.  Also adds the first little
definition of a wallpaper service, which is not yet used or useful.
2009-08-05 21:29:42 -07:00
Dianne Hackborn
d41ba666d1 Fix documentation. 2009-08-05 15:30:56 -07:00
Android (Google) Code Review
d657b72aeb Merge change 20126
* changes:
  Removing SyncColumns from Contact - they were put there by accident.
2009-08-05 14:22:41 -07:00