Commit Graph

553 Commits

Author SHA1 Message Date
Android (Google) Code Review
0f2200ec68 am be3ac2d: Merge change 1040 into donut
Merge commit 'be3ac2d5ba8ef93c3cbf4d05edaf3434a14df2c9'

* commit 'be3ac2d5ba8ef93c3cbf4d05edaf3434a14df2c9':
  Add a test app for the backup
2009-05-06 01:31:32 -07:00
Dianne Hackborn
7a13559501 merged 231cc608d0 2009-05-06 00:28:37 -07:00
Android (Google) Code Review
be3ac2d5ba Merge change 1040 into donut
* changes:
  Add a test app for the backup
2009-05-05 18:58:05 -07:00
Joe Onorato
f9225f89aa Add a test app for the backup 2009-05-05 18:34:31 -07:00
Dianne Hackborn
231cc608d0 Rewrite SyncStorageEngine to use flat files and in-memory data structures.
The previous implementation used a database for storing all of its state, which could cause
a significant amount of IO activity as its tables were updated through the stages of a sync.
This new implementation replaces that in-memory data structures, with hand-written code
for writing them to persistent storage.

There are now 4 files associated with this class, holding various pieces of its state that
should be consistent.  These are everything from a main XML file of account information that
must always be retained, to a binary file of per-day statistics that can be thrown away at
any time.  Writes of these files as scheduled at various times based on their importance of
the frequency at which they change.

Because the database no longer exists, there needs to be a new explicit interface for
interacting with the sync manager database.  This is provided by new APIs on IContentService,
with a hidden method on ContentResolver to retrieve the IContentService so that various
system entities can use it.  Other changes in other projects are required to update to the
new API.

The goal here is to have as little an impact on the code and functionality outside of
SyncStorageEngine, though due to the necessary change in API it is still somewhat extensive.
2009-05-05 15:40:53 -07:00
Christopher Tate
3cbab32afe am 22b8787: Squashed commit of the following:
Merge commit '22b8787ed4be8d4b7ed5d54802f9913fedb41425'

* commit '22b8787ed4be8d4b7ed5d54802f9913fedb41425':
  Squashed commit of the following:
2009-05-05 10:51:45 -07:00
Christopher Tate
22b8787ed4 Squashed commit of the following:
Author: Christopher Tate <ctate@google.com>
Date:   Mon May 4 16:38:11 2009 -0700

    IBackupService now passes ParcelFileDescriptors rather than int fds

    The outlines of backup state file / data file handling are now in place as well
    in the BackupManagerService.

Author: Christopher Tate <ctate@google.com>
Date:   Thu Apr 30 12:40:19 2009 -0700

    Hide the backup stuff for now

    Also adjust based on comments:
    + changed service intent string to conform to usage guidelines
    + only publish the IBackupService binder when invoked with the right
      intent action
    + docs tweaks
2009-05-04 20:19:21 -07:00
Android (Google) Code Review
2d23cbfc0d am 6362741: Merge change 966 into donut
Merge commit '636274185ed5ee75faf6ef4d84bbb7d5b0371248'

* commit '636274185ed5ee75faf6ef4d84bbb7d5b0371248':
  Fixes 1830181. Tapping disabled items in a ListView would cause the framework to take a code path that wasn't resetting the mMotionCorrection variable if it had been previously set. This would force ListView to apply a scroll to its children even though it was unnecessary. This simple fix prevents the issue by resetting mMotionCorrection appropriately.
2009-05-04 17:57:06 -07:00
Android (Google) Code Review
636274185e Merge change 966 into donut
* changes:
  Fixes 1830181. Tapping disabled items in a ListView would cause the framework to take a code path that wasn't resetting the mMotionCorrection variable if it had been previously set. This would force ListView to apply a scroll to its children even though it was unnecessary. This simple fix prevents the issue by resetting mMotionCorrection appropriately.
2009-05-04 17:54:39 -07:00
Romain Guy
20fb46fa1e Fixes 1830181. Tapping disabled items in a ListView would cause the framework to take a code path that wasn't resetting the mMotionCorrection variable if it had been previously set. This would force ListView to apply a scroll to its children even though it was unnecessary. This simple fix prevents the issue by resetting mMotionCorrection appropriately. 2009-05-04 17:45:59 -07:00
Android (Google) Code Review
4b72c1eb9f am b7ce28c: Merge change 962 into donut
Merge commit 'b7ce28c64cc2f7250b02021f8a4cd3874155bee8'

* commit 'b7ce28c64cc2f7250b02021f8a4cd3874155bee8':
  Fixes #1603191. GridView could provoke NPEs during layout passes initiated from key events.
2009-05-04 17:00:13 -07:00
Android (Google) Code Review
b7ce28c64c Merge change 962 into donut
* changes:
  Fixes #1603191. GridView could provoke NPEs during layout passes initiated from key events.
2009-05-04 16:59:12 -07:00
Romain Guy
51d154b82b Fixes #1603191. GridView could provoke NPEs during layout passes initiated from key events. 2009-05-04 16:24:39 -07:00
Android (Google) Code Review
d52d8dee77 am 2c9eec6: Merge change 952 into donut
Merge commit '2c9eec6b1d072a665b17dd4285260aa4d4fadcf4'

* commit '2c9eec6b1d072a665b17dd4285260aa4d4fadcf4':
  Debug: Minor cleanup
2009-05-04 16:22:33 -07:00
Android (Google) Code Review
2c9eec6b1d Merge change 952 into donut
* changes:
  Debug: Minor cleanup
2009-05-04 16:20:14 -07:00
Dave Bort
e9bfd9b873 Debug: Minor cleanup
Address crazybob's comments.

Avoid referring to a static in one of the helper methods.
2009-05-04 16:16:47 -07:00
Android (Google) Code Review
4cc03076c2 am 724561c: Merge change 949 into donut
Merge commit '724561cc20e259888986cbb0be2fdab4d142d869'

* commit '724561cc20e259888986cbb0be2fdab4d142d869':
  Fixes external #2575 (http://code.google.com/p/android/issues/detail?id=2575). HorizontalScrollView was comparing the measured height of its child to its width.
2009-05-04 15:32:39 -07:00
Android (Google) Code Review
724561cc20 Merge change 949 into donut
* changes:
  Fixes external #2575 (http://code.google.com/p/android/issues/detail?id=2575). HorizontalScrollView was comparing the measured height of its child to its width.
2009-05-04 15:30:35 -07:00
Android (Google) Code Review
0003a522c1 am beb2498: Merge change 956 into donut
Merge commit 'beb2498ead68ca230fd13b7546a8eef7b6818e7b'

* commit 'beb2498ead68ca230fd13b7546a8eef7b6818e7b':
  Fixes #1827988. Prevent marquee text from constantly rescaling itself in Market
2009-05-04 15:12:58 -07:00
Android (Google) Code Review
beb2498ead Merge change 956 into donut
* changes:
  Fixes #1827988. Prevent marquee text from constantly rescaling itself in Market
2009-05-04 15:09:47 -07:00
Romain Guy
3373ed62d1 Fixes #1827988. Prevent marquee text from constantly rescaling itself in Market 2009-05-04 15:05:22 -07:00
Romain Guy
f83f59f4af Fixes external #2575 (http://code.google.com/p/android/issues/detail?id=2575). HorizontalScrollView was comparing the measured height of its child to its width. 2009-05-04 14:15:23 -07:00
Android (Google) Code Review
c34c8c6fa1 am 7ff9436: Merge change 911 into donut
Merge commit '7ff943673e48a912eb7cc5add08e206c2c25d68e'

* commit '7ff943673e48a912eb7cc5add08e206c2c25d68e':
  Debug: Add setPropertiesOn(), and @hide it for now
2009-05-04 14:04:52 -07:00
Android (Google) Code Review
7ff943673e Merge change 911 into donut
* changes:
  Debug: Add setPropertiesOn(), and @hide it for now
2009-05-04 14:03:40 -07:00
Romain Guy
bf61e19b64 am 6a1ae64: Fix another HTML formatting in android.os.AsyncTask
Merge commit '6a1ae64f7735a3817713a223096bf8034f78a620'

* commit '6a1ae64f7735a3817713a223096bf8034f78a620':
  Fix another HTML formatting in android.os.AsyncTask
2009-05-04 13:26:59 -07:00
Android (Google) Code Review
61cf54d3a0 am 8d121ce: Merge change 917 into donut
Merge commit '8d121ce945204e96d90d3338ecafe637b0494ed8'

* commit '8d121ce945204e96d90d3338ecafe637b0494ed8':
  Fix HTML formatting in android.os.AsyncTask
2009-05-04 13:26:54 -07:00
Android (Google) Code Review
a3fcb44a26 Manual cherry-pick of 821427eac7 into master
* changes:
  Merge change 847 into donut
2009-05-04 12:43:45 -07:00
Romain Guy
6a1ae64f77 Fix another HTML formatting in android.os.AsyncTask 2009-05-02 22:52:17 -07:00
Android (Google) Code Review
8d121ce945 Merge change 917 into donut
* changes:
  Fix HTML formatting in android.os.AsyncTask
2009-05-02 22:42:00 -07:00
Romain Guy
b97aec64be Fix HTML formatting in android.os.AsyncTask 2009-05-02 22:41:32 -07:00
Android (Google) Code Review
3ee2f8189f am 854c8c7: Merge change 896 into donut
Merge commit '854c8c78c1bce214f6479772d94147070ec6764f'

* commit '854c8c78c1bce214f6479772d94147070ec6764f':
  make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
2009-05-01 23:25:28 -07:00
Dave Bort
1ce5bd3463 Debug: Add setPropertiesOn(), and @hide it for now
This lets a caller reflectively set the static fields of a class
based on debug build properties.

Signed-off-by: Dave Bort <dbort@android.com>
2009-05-01 18:47:47 -07:00
Android (Google) Code Review
821427eac7 Merge change 847 into donut
* changes:
  Config: Deprecate most fields, and hook into ConfigBuildFlags
2009-05-01 18:32:46 -07:00
Dave Bort
52fa7c2afd Config: Deprecate most fields, and hook into ConfigBuildFlags
Copy 3.xml to 4.xml, and patch 4.xml to deal with the fact that
Config.DEBUG's value is no longer actually fixed.  We don't want
to modify 3.xml directly, because it's the official cupcake API.

Update current.xml to reflect the differences between 3.xml and 4.xml
and to reflect the new deprecation states.

The deprecated fields should be @hidden if possible before the
next API release, but it can't be done yet because there are
SDK-linked platform apps that use some of the deprecated fields.

Signed-off-by: Dave Bort <dbort@android.com>
2009-05-01 17:47:13 -07:00
Android (Google) Code Review
854c8c78c1 Merge change 896 into donut
* changes:
  make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
2009-05-01 16:32:21 -07:00
Karl Rosaen
743ae65992 make AutoCompleteTextView take the alternate anchor view into account when computing the max available space on screen.
before, it always computed the height based on the text view itself being the anchor.  This fixes the clipping bug
in the search dialog.
2009-05-01 14:15:11 -07:00
Romain Guy
a426c9609f am 9a81736: Add the ability to specify the onClick handler with XML.
Merge commit '9a81736176f507489f262344b6e3d55bbe53be7c'

* commit '9a81736176f507489f262344b6e3d55bbe53be7c':
  Add the ability to specify the onClick handler with XML. The new android:onClick attribute defines the name of the method in the Activity to invoke when the button is clicked. The method has to be public and get one View parameter.
2009-05-01 12:00:19 -07:00
Romain Guy
9a81736176 Add the ability to specify the onClick handler with XML. The new android:onClick attribute defines the name of the method in the Activity to invoke when the button is clicked. The method has to be public and get one View parameter. 2009-05-01 10:57:14 -07:00
The Android Open Source Project
4e07116252 am 3500f01: Merge branch \'donut\' of ssh://android-git.corp.google.com:29
Merge commit '3500f016bfc43a42b19cfc51f5472b1be87b8369'

* commit '3500f016bfc43a42b19cfc51f5472b1be87b8369':
  Fixes #1712631. Whenever a View loses focus/selection, reset its pressed state.
2009-04-30 18:12:48 -07:00
Android (Google) Code Review
dc30119c12 Merge change 842 into donut
* changes:
  Fixes #1712631. Whenever a View loses focus/selection, reset its pressed state.
2009-04-30 17:58:28 -07:00
Romain Guy
a2431d0ba2 Fixes #1712631. Whenever a View loses focus/selection, reset its pressed state. 2009-04-30 17:57:47 -07:00
Fred Quintana
718d8a2d7f decouple SyncAdapter from ContentProvider 2009-04-30 17:28:09 -07:00
Android (Google) Code Review
90b6abd839 am 2bc9e13: Merge change 841 into donut
Merge commit '2bc9e139655666e3c6a58d8fa74a12111b06cafd'

* commit '2bc9e139655666e3c6a58d8fa74a12111b06cafd':
  TypedProperties: add getStringInfo() to help deal with null strings
2009-04-30 17:03:26 -07:00
Android (Google) Code Review
8790948583 am 52a3cb5: Merge change 840 into donut
Merge commit '52a3cb53ddcce049d2e804c3042514df576cb5b9'

* commit '52a3cb53ddcce049d2e804c3042514df576cb5b9':
  TypedProperties: change the file format to be a subset of Java
2009-04-30 17:03:26 -07:00
Android (Google) Code Review
4ba120d2ce am 980d12b: Merge change 838 into donut
Merge commit '980d12b13bad50d6fbb50f3fe8f8dbc451a7d87c'

* commit '980d12b13bad50d6fbb50f3fe8f8dbc451a7d87c':
  Fix typo in exception message and add a new exception if the user tries to use the same child as both the handle and content for the SlidingDrawer.
2009-04-30 17:03:25 -07:00
Marco Nelissen
c1ebff063a am d859331: Don\'t crash when /proc/wakelocks can\'t be opened. Might make
Merge commit 'd8593312296fd2193a070c1a074840d83b7f49cb'

* commit 'd8593312296fd2193a070c1a074840d83b7f49cb':
  Don't crash when /proc/wakelocks can't be opened. Might make board bringup easier.
2009-04-30 17:03:25 -07:00
Android (Google) Code Review
2bc9e13965 Merge change 841 into donut
* changes:
  TypedProperties: add getStringInfo() to help deal with null strings
2009-04-30 16:31:00 -07:00
Android (Google) Code Review
52a3cb53dd Merge change 840 into donut
* changes:
  TypedProperties: change the file format to be a subset of Java
2009-04-30 16:30:14 -07:00
Android (Google) Code Review
980d12b13b Merge change 838 into donut
* changes:
  Fix typo in exception message and add a new exception if the user tries to use the same child as both the handle and content for the SlidingDrawer.
2009-04-30 15:35:28 -07:00
Romain Guy
8a342a3cc0 Fix typo in exception message and add a new exception if the user tries to use the same child as both the handle and content for the SlidingDrawer. 2009-04-30 15:31:41 -07:00