1294 Commits

Author SHA1 Message Date
Christopher Tate
ce74edc7ea More backup work
* Put in some permission enforcement around agent connection notification
  and full-backup scheduling.
* Full backup now applies to any package, not just backup participants who
  have declared their own android:backupAgent
* The process of running the backup operation on the set of apps who have
  been queued for it is now done in a separate thread, with a notification
  mechanism from the main Backup Manager service to pass along new-agent
  binding knowledge.  There's no longer one do-backup message on the primary
  Handler per target application.
* The new backup thread sets up the desired transport now and passes
  along the newly backed-up data to it for each backup target.  Two
  transports have been defined so far, GoogleTransport and AdbTransport;
  both are stubs at present.

Note that at present the backup data output file seems to be properly
created, but after doBackup() is called on the test app's agent it's
still zero size.
2009-06-04 09:57:18 -07:00
Bjorn Bringert
7fb952ac23 Allow making AssetFileDescriptors from SQLite blobs.
This change adds a new class SQLiteContentHelper, which contains
a static method for creating an AssetFileDescriptor from
an SQLite query that returns a blob.

Internally, this uses a file descriptor for a MemoryFile.

The implementation is temporary. Ideally, the data should be copied
directly from SQLite to the MemoryFile ashmem region, using
sqlite3_blob_read().

This is part of the implementation of http://b/issue?id=1871731
2009-06-04 09:57:18 -07:00
Android (Google) Code Review
f6b72523e2 Merge change 3068
* changes:
  Remove handling of ENTER key from WebView.
2009-06-04 09:34:34 -07:00
Android (Google) Code Review
261dbd7706 Merge change 2978
* changes:
  Adds "is_primary" and "is_super_primary" columns to DataColumns.
2009-06-03 21:23:11 -07:00
Mitsuru Oshima
342d59d319 am 9189cabb: * Moved supports-density tag under manifest * Refactored Compatibility code * Added CompatibilityInfo class * Removed getApplicationScale from Context * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context * Expandable support * Added expandable tag under manifest * Old application w/o expandable is given the default screen size ([320, 480] x density). * The non-expandable window is centered.
Merge commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a'

* commit '9189cabb0b6c6c28232fe6f412b7ba7a37352a6a':
  * Moved supports-density tag under manifest
2009-06-03 16:34:47 -07:00
Mitsuru Oshima
9189cabb0b * Moved supports-density tag under manifest
* Refactored Compatibility code
  * Added CompatibilityInfo class
  * Removed getApplicationScale from Context
  * Added Resources#getCompatibilityInfo so that RootView can get the compatibility info w/o going through Context
* Expandable support
  * Added expandable tag under manifest
  * Old application w/o expandable is given the default screen size  ([320, 480] x density).
  * The non-expandable window is centered.
2009-06-03 16:28:10 -07:00
Amith Yamasani
138197f961 am eaeb663b: Track activity foreground CPU usage for battery stats.
Merge commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7'

* commit 'eaeb663bcd7a82b654954b42663232cbd7bef7e7':
  Track activity foreground CPU usage for battery stats.
2009-06-03 16:21:13 -07:00
Wei Huang
e87b2f0276 add Gservices settings for adaptive heartbeat parameters and wifi heartbeat interval. 2009-06-03 16:09:59 -07:00
Amith Yamasani
eaeb663bcd Track activity foreground CPU usage for battery stats.
Track the foreground CPU time of an activity so that we can tell if apps are
spending more time in the background compared to foreground.
Update power profile values for screen backlight and GPS.
Fix some javadoc bugs (milliseconds vs. microseconds).
2009-06-03 15:38:24 -07:00
Evan Millar
ab5742dd63 Adds "is_primary" and "is_super_primary" columns to DataColumns.
Replaces the "primary" values stored in generic data fields with
standard "is_primary" and "is_super_primary" fields in the DataColumns
class. This makes it much easier to watch for changes to these fields
and enforce the uniqueness of primary fields.
2009-06-03 15:16:58 -07:00
Leon Scroggins
e3225673f7 Remove handling of ENTER key from WebView.
WebView was (incorrectly) handling the ENTER key as if it could start
a long press like CENTER key does.  Separate the two behaviors.  Now,
the ENTER key does not do anything unless it is part of a textfield or
the DOM otherwise handles it.

As a result, I was able to remove some orphaned code.  Before this
change, pressing ENTER would play a click noise, and animate the
focus ring as if its link were being followed, but do nothing. In
WebViewCore, do not pass the ENTER key back to the Activity.
2009-06-03 16:39:31 -04:00
Dmitri Plotnikov
ceaafa5f1f Adding a new type: aggregation_exception. 2009-06-03 10:47:35 -07:00
Android (Google) Code Review
23306f6098 Merge change 3041
* changes:
  Remove obsolete flags from WebViewCore and WebView
2009-06-03 10:29:43 -07:00
Android (Google) Code Review
3ddc43945c Merge change 2969
* changes:
  Implement and expose SCO socket support in BluetoothSocket.java.
2009-06-03 10:11:29 -07:00
Leon Scroggins
82aa2f5eec Remove obsolete flags from WebViewCore and WebView
Remove NO_FOCUS_CHANGE_BLOCK and BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP, which were
part of SET_FINAL_FOCUS (which is no longer used) from WebViewCore.  In WebView,
do not pass BLOCK_FOCUS_CHANGE_UNTIL_KEY_UP with SET_MOVE_MOUSE, since the
receiver does not care about it.
2009-06-03 13:01:32 -04:00
Cary Clark
2f1d60cd55 remove unused text parameters from WebView
The additional parameters are no longer used.
2009-06-03 12:25:34 -04:00
Derek Sollenberger
2e5c150e74 Centralized debug flags and enabled more granular control of debug settings. 2009-06-03 12:02:59 -04:00
Android (Google) Code Review
93e50888fe Merge change 2941
* changes:
  make FEATURE_OPENGL public (but hidden for now) so we can test with it
2009-06-03 06:55:19 -07:00
Bjorn Bringert
868443a947 am 33a22dc9: Close icon input stream in SuggestionsAdapter.
Merge commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284'

* commit '33a22dc9c84ef12006b0c12f6d169d2a74c15284':
  Close icon input stream in SuggestionsAdapter.
2009-06-03 05:04:09 -07:00
Bjorn Bringert
33a22dc9c8 Close icon input stream in SuggestionsAdapter.
Before, SuggestionsAdapter would not close input streams after
reading icons from them. This leaks file descriptors and,
in the case of MemoryFiles, virtual address space.
2009-06-03 13:01:24 +01:00
Bjorn Bringert
b15a5348e6 am c1823701: Handle EOF correctly in MemoryFile input stream.
Merge commit 'c1823701cc76790494fb622fe58f0942236cd7d0'

* commit 'c1823701cc76790494fb622fe58f0942236cd7d0':
  Handle EOF correctly in MemoryFile input stream.
2009-06-03 04:56:52 -07:00
Bjorn Bringert
c0cbfda0fe am 963cd006: Allow creating AssetFileDescriptors for MemoryFiles.
Merge commit '963cd006c45716b034f656bf7e7179e6476f7e4d'

* commit '963cd006c45716b034f656bf7e7179e6476f7e4d':
  Allow creating AssetFileDescriptors for MemoryFiles.
2009-06-03 04:56:49 -07:00
Bjorn Bringert
c1823701cc Handle EOF correctly in MemoryFile input stream.
Before, the variants of MemoryFile.MemoryInputStream.read() would throw
IOException or  IndexOutOfBoundsException if EOF was encountered
before the requested number of bytes was read. This violates
the contract of InputStream.read().

This patch makes read() return the number of bytes available, if any.
If already at EOF, -1 is returned. The patch also adds new tests,
which checks cases where MemoryFile.MemoryInputStream.read()
should throw IndexOutOfBoundsException or return -1. several of these
tests failed with the old code and pass now.

This fixes http://b/issue?id=1881894
2009-06-03 12:53:42 +01:00
Bjorn Bringert
963cd006c4 Allow creating AssetFileDescriptors for MemoryFiles.
This allows content providers to use in-memory data to implement
ContentProvider.openAssetFile(), instead of just normal files
and sockets as before.

To test cross-process use of AssetFileDescriptors for MemoryFiles,
a test content provider and a client for it are added to
AndroidTests.

Fixes http://b/issue?id=1871731
2009-06-03 12:53:42 +01:00
Satish Sampath
ae8c5b868f am 8dbe612d: Adding internal method replacePreferredActivity.
Merge commit '8dbe612dc60526d635e57257b58627b33a099678'

* commit '8dbe612dc60526d635e57257b58627b33a099678':
  Adding internal method replacePreferredActivity.
2009-06-03 00:05:36 -07:00
Satish Sampath
8dbe612dc6 Adding internal method replacePreferredActivity.
This was required because we need a way to set the preferred activity for a
particular intent filter based on user selection (in our case the
ACTION_WEB_SEARCH intent filter for selecting the preferred search engine from
the list of available search engines providers). The current
addPreferredActivity call was not sufficient since it leaves the existing
preferred activities in the list and does not remove them, which this call
does.
2009-06-03 07:54:42 +01:00
Romain Guy
e52b3659ce am 9af0b4f7: Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation.
Merge commit '9af0b4f7be14f2b3ed0ecc843c57ea47ec288e55'

* commit '9af0b4f7be14f2b3ed0ecc843c57ea47ec288e55':
  Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation.
2009-06-02 22:48:36 -07:00
Romain Guy
9af0b4f7be Add new listener to GestureOverlayView. This listener fires whenever the overlay thinks the user is starting a new gesture. This allows Home to snap the workspace back to its original position during a gesture operation. 2009-06-02 21:59:42 -07:00
Nick Pelly
6a669fac38 Implement and expose SCO socket support in BluetoothSocket.java.
Implement L2CAP socket support, but do not expose it (untested).

NEXT: Switch to Builder style constructor instead of factory method.
2009-06-02 16:05:09 -07:00
Android (Google) Code Review
b716ab3755 am 432900bf: Merge change 2962 into donut
Merge commit '432900bffb816f56f5f8058c90fed7731df46e23'

* commit '432900bffb816f56f5f8058c90fed7731df46e23':
  Fixes #1890914.
2009-06-02 15:18:31 -07:00
Android (Google) Code Review
432900bffb Merge change 2962 into donut
* changes:
  Fixes #1890914.
2009-06-02 15:16:34 -07:00
Romain Guy
ce16d787bd Fixes #1890914.
Bright theme's background color should be #fff9f9f9 instead of pure white (#ffffffff).
2009-06-02 15:15:12 -07:00
Dmitri Plotnikov
c926054072 Consolidating data needed for contact aggregator into the data1 and data2 fields.
The aggregator will then only read data1 and
data2 and do the matching on those (taking mime type into account, of course).
2009-06-02 14:11:01 -07:00
Android (Google) Code Review
7174bc48dc Merge change 2898
* changes:
  Implement bulk read and writes for Bluetooth sockets.
2009-06-02 12:44:35 -07:00
Nick Pelly
47e82dee6b Implement bulk read and writes for Bluetooth sockets.
Before: 0.1 kB/s
After: 100 kB/s
(in my java BT speed test app)
2009-06-02 12:35:48 -07:00
Mike Reed
5b4718ba8a make FEATURE_OPENGL public (but hidden for now) so we can test with it 2009-06-02 15:30:57 -04:00
Android (Google) Code Review
82182122bf Merge change 2912
* changes:
  Rename the TextDialog to WebTextView.
2009-06-02 09:13:14 -07:00
Leon Scroggins
d3465f6021 Rename the TextDialog to WebTextView.
Rename the TextDialog to be a more accurate description of what it is.
Also rename some methods and variables which pertain to it, and preload
the newly created class.
2009-06-02 10:57:54 -04:00
Karl Rosaen
ba90ed49e5 am a058f02b: progress towards impression and click stats on all sources, plus some internal cleanup
Merge commit 'a058f02b591d971a829cb1e28d48a992e46ad85e'

* commit 'a058f02b591d971a829cb1e28d48a992e46ad85e':
  progress towards impression and click stats on all sources, plus some internal cleanup
2009-06-02 07:04:31 -07:00
Karl Rosaen
a058f02b59 progress towards impression and click stats on all sources, plus some internal cleanup
(framework portion)

suggestionCursor has new callbacks for impressions and clicks
- impressions now used to trigger "more" UI, cleanup apis around that

search dialog reports which position was clicked on via cursor#respond
- can now detect when sources under "more results" are clicked
- also used to simplify existing stuff:
  - can detect when "more results" entry is clicked and toggle base on that (no longer need INTENT_ACTION_CURSOR_RESPOND one off)
  - use response from click reporting to instruct which position should be selected
2009-06-02 15:00:37 +01:00
Android (Google) Code Review
5fd3dc2541 Merge change 2713
* changes:
  in the browser, make the trackball more like a mouse
2009-06-02 06:24:16 -07:00
Android (Google) Code Review
8eff842066 am b3c3778e: Merge change 2844 into donut
Merge commit 'b3c3778edbc26affed9dc694f80412a85fe58d7b'

* commit 'b3c3778edbc26affed9dc694f80412a85fe58d7b':
  Added some icon debug logging to SuggestionsAdapter.
2009-06-02 01:32:34 -07:00
Android (Google) Code Review
b3c3778edb Merge change 2844 into donut
* changes:
  Added some icon debug logging to SuggestionsAdapter.
2009-06-02 01:31:21 -07:00
Bjorn Bringert
b791f34474 Added some icon debug logging to SuggestionsAdapter.
Good for checking that lazy contact photos works.
2009-06-02 09:29:34 +01:00
Android (Google) Code Review
385a4894d0 am 4ff42ad6: Merge change 2843 into donut
Merge commit '4ff42ad6d7218b89435424b53951c1bdb8ef6b8b'

* commit '4ff42ad6d7218b89435424b53951c1bdb8ef6b8b':
  Use JNI region calls in MemoryFile read and write.
2009-06-02 01:27:06 -07:00
Android (Google) Code Review
4ff42ad6d7 Merge change 2843 into donut
* changes:
  Use JNI region calls in MemoryFile read and write.
2009-06-02 01:25:24 -07:00
Bjorn Bringert
ad984f1933 Use JNI region calls in MemoryFile read and write.
This will reduce copying or pinning, depending on GC policies, which should
improve performance. See dalvik/docs/jni-tips.html#RegionCalls for more information.

Fixes http://b/issue?id=1887911
2009-06-02 09:22:42 +01:00
Android (Google) Code Review
8d3002e047 am 35feec46: Merge change 2761 into donut
Merge commit '35feec46d90d434a2439765d127a9e8f68a52340'

* commit '35feec46d90d434a2439765d127a9e8f68a52340':
  TODO's from Teleca with modifications from wink.
2009-06-02 00:51:32 -07:00
Android (Google) Code Review
35feec46d9 Merge change 2761 into donut
* changes:
  TODO's from Teleca with modifications from wink.
2009-06-02 00:49:46 -07:00
Android (Google) Code Review
93a7fb0753 am f5df8303: Merge change 2879 into donut
Merge commit 'f5df83035a45173f9ecdeaef03b68abc8a940ace'

* commit 'f5df83035a45173f9ecdeaef03b68abc8a940ace':
  Add backup side of new FullBackupAgent class
2009-06-02 00:36:44 -07:00