1331 Commits

Author SHA1 Message Date
Mathias Agopian
8ed6beb515 rename string_array.h to StringArray.h and move the implementation from the header file to a new cpp file.
StringArray is used in two places in framework/base and in the Sim. Ideally we should get rid of it and use Vector<String8> instead of creating new code.
2009-06-05 01:26:23 -07:00
Android (Google) Code Review
49f372210b am 12bba912: Merge change 3238 into donut
Merge commit '12bba912238f305d385b30c278a4bdbb027b7a03'

* commit '12bba912238f305d385b30c278a4bdbb027b7a03':
  Browser edit fields should report variation WEB_EDIT_TEXT.
2009-06-04 23:48:45 -07:00
Android (Google) Code Review
fa77935446 am ad8a510f: Merge change 3227 into donut
Merge commit 'ad8a510fcc3b853bd0dadcffb4433c465f2993b4'

* commit 'ad8a510fcc3b853bd0dadcffb4433c465f2993b4':
  Fix int to string mapping of exported properties. The value generated by the
2009-06-04 23:48:22 -07:00
Android (Google) Code Review
029a8c0372 am b640da8f: Merge change 3204 into donut
Merge commit 'b640da8fcbc63821dfca1ab92f038771a2bf0ab9'

* commit 'b640da8fcbc63821dfca1ab92f038771a2bf0ab9':
  Avoid touching all adapter items when building accessibility event.
2009-06-04 23:45:36 -07:00
Android (Google) Code Review
1b6aee1515 am 2a318867: Merge change 3203 into donut
Merge commit '2a3188672ab2b65c0ce7c9c598a463e382c47696'

* commit '2a3188672ab2b65c0ce7c9c598a463e382c47696':
  rename a few files to camel-case, add copyright notices
2009-06-04 22:44:18 -07:00
Android (Google) Code Review
f435729787 am 7835b0b7: Merge change 3192 into donut
Merge commit '7835b0b742a36641a4005663134dc0b5d0678eab'

* commit '7835b0b742a36641a4005663134dc0b5d0678eab':
  Fixes #1882836.
2009-06-04 22:43:59 -07:00
Android (Google) Code Review
7d53a6bf4d am a4196206: Merge change 3074 into donut
Merge commit 'a41962065a93b63e7161cffd662b564e01a9e189'

* commit 'a41962065a93b63e7161cffd662b564e01a9e189':
  Modify the decoding logic in the FD case when a purgeable flag is set,
2009-06-04 22:42:01 -07:00
Karl Rosaen
d0c3a61b07 am 320b2eee: SearchDialog should only do DialogCursorProtocol stuff when in global search mode.
Merge commit '320b2eeeea426dc06f7bb7f37c3d795babeb6adb'

* commit '320b2eeeea426dc06f7bb7f37c3d795babeb6adb':
  SearchDialog should only do DialogCursorProtocol stuff when in global search mode.
2009-06-04 22:41:22 -07:00
Fred Quintana
435e427d69 fix a incorrect merge 2009-06-04 17:30:28 -07:00
Android (Google) Code Review
12bba91223 Merge change 3238 into donut
* changes:
  Browser edit fields should report variation WEB_EDIT_TEXT.
2009-06-04 15:50:05 -07:00
Android (Google) Code Review
ad8a510fcc Merge change 3227 into donut
* changes:
  Fix int to string mapping of exported properties. The value generated by the mapping in a @ViewDebug.ExportedProperty annotation was always overriden by the resolveId attribute.
2009-06-04 15:12:06 -07:00
Romain Guy
a1f3e4aef1 Fix int to string mapping of exported properties. The value generated by the
mapping in a @ViewDebug.ExportedProperty annotation was always overriden by
the resolveId attribute.
2009-06-04 15:10:46 -07:00
Amith Yamasani
88db3448cf Browser edit fields should report variation WEB_EDIT_TEXT.
This will enable the IME to enable/disable prediction features
for browser fields where the exact type is not very well defined.
Part of the fix for #1743620
2009-06-04 15:07:29 -07:00
Android (Google) Code Review
b640da8fcb Merge change 3204 into donut
* changes:
  Avoid touching all adapter items when building accessibility event.
2009-06-04 14:12:02 -07:00
Android (Google) Code Review
2a3188672a Merge change 3203 into donut
* changes:
  rename a few files to camel-case, add copyright notices
2009-06-04 14:08:29 -07:00
Amith Yamasani
d296fafab5 Avoid touching all adapter items when building accessibility event.
Only check for enabled items if the list is less than 15 items.
2009-06-04 14:00:20 -07:00
Mathias Agopian
8ae2335a3c rename a few files to camel-case, add copyright notices 2009-06-04 13:53:57 -07:00
Android (Google) Code Review
7835b0b742 Merge change 3192 into donut
* changes:
  Fixes #1882836.
2009-06-04 13:28:20 -07:00
Romain Guy
f993ad5b89 Fixes #1882836.
Prevents the gestures window from leaking. This change does exactly what was
done for the filter popup window: the popup is dismissed in onSaveInstanceState()
as it is the only place that is executed early enough to avoid the dreaded
window leak error.
2009-06-04 13:26:52 -07:00
Fred Quintana
d8dfeb5ee8 - make it easier to add content values to the ContentProviderOperation
- add the group membership common kind as well as some IM utilities to the ContactsContract
2009-06-04 12:23:54 -07:00
Android (Google) Code Review
a41962065a Merge change 3074 into donut
* changes:
  Modify the decoding logic in the FD case when a purgeable flag is set, and lower the threshold of bitmap size for using ashmem().
2009-06-04 10:40:17 -07:00
Dmitri Plotnikov
a41d3856fa Changed aggregate_exception to aggregate_exceptions
Changed singular to plural to follow the apparent convention.
2009-06-04 10:25:49 -07:00
Karl Rosaen
320b2eeeea SearchDialog should only do DialogCursorProtocol stuff when in global search mode. 2009-06-04 17:59:44 +01:00
Karl Rosaen
ebb03a78ce Detect impressions, and cleanup the SearchDialog / SuggestionCursor communication.
(framework portion)

There are now 4 times the search dialog will check with the cursor:
- after data set changed
- when an item is clicked
- when the cursor is about to be closed
- when an item at a particular position is detected as showing

these are now the points where we can add data in either direction, which we use to accomplish:
- finding out whether there are any pending results
- find out if there is a position at which to notify when it is displayed (the "more results" triggering)
- toggling the "more results" button
- sending the max position that was displayed when the cursor is done

the new behavior (in addition to the refactoring) is improved detection of "more results" to trigger the additional sources
(it is now precise), and detection of which items were displayed to the user.
2009-06-04 09:57:18 -07:00
Mike LeBeau
88bd450e48 Turn off verbose logging in SearchableInfo, which seems to have been
left on by accident.
2009-06-04 09:57:18 -07:00
Bjorn Bringert
c2c0bc6a90 Remove support for bitmap icons in search suggestions.
This is no longer needed, since content providers can now return
AssetFileDescriptors for in-memory data.
Bitmaps in the suggestion cursor was resopnsible for lots of
unnecessary copying, since all rows are copied out of the database
regardless of how many are displayed in the UI.
2009-06-04 09:57:18 -07:00
Mike LeBeau
20cd73ea54 Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)). 2009-06-04 09:57:18 -07:00
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
Karl Rosaen
1c54cf0903 Detect impressions, and cleanup the SearchDialog / SuggestionCursor communication.
(framework portion)

There are now 4 times the search dialog will check with the cursor:
- after data set changed
- when an item is clicked
- when the cursor is about to be closed
- when an item at a particular position is detected as showing

these are now the points where we can add data in either direction, which we use to accomplish:
- finding out whether there are any pending results
- find out if there is a position at which to notify when it is displayed (the "more results" triggering)
- toggling the "more results" button
- sending the max position that was displayed when the cursor is done

the new behavior (in addition to the refactoring) is improved detection of "more results" to trigger the additional sources
(it is now precise), and detection of which items were displayed to the user.
2009-06-04 16:11:47 +01:00
Android (Google) Code Review
241b4c74aa Merge change 3149 into donut
* changes:
  Turn off verbose logging in SearchableInfo, which seems to have been left on by accident.
2009-06-04 07:08:45 -07:00
Mike LeBeau
0f7e914e87 Turn off verbose logging in SearchableInfo, which seems to have been
left on by accident.
2009-06-04 15:07:44 +01:00
Bjorn Bringert
3250fa7371 Remove support for bitmap icons in search suggestions.
This is no longer needed, since content providers can now return
AssetFileDescriptors for in-memory data.
Bitmaps in the suggestion cursor was resopnsible for lots of
unnecessary copying, since all rows are copied out of the database
regardless of how many are displayed in the UI.
2009-06-04 15:04:38 +01:00
Android (Google) Code Review
f762589d1f Merge change 3145 into donut
* changes:
  Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
2009-06-04 06:10:37 -07:00
Mike LeBeau
3a27803b29 Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)). 2009-06-04 14:09:42 +01:00
Android (Google) Code Review
c08fc64ff6 Merge change 2845 into donut
* changes:
  Allow making AssetFileDescriptors from SQLite blobs.
2009-06-04 03:09:43 -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
Christopher Tate
043dadc751 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-03 20:42:15 -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
Wei-Ta Chen
2a2c5cd741 Modify the decoding logic in the FD case when a purgeable flag is set,
and lower the threshold of bitmap size for using ashmem().

For the decoding logic, we now go through the "non-purgeable" path if isShareable is false,
irrespective of the value of the purgeable flag.
2009-06-03 14:27:52 -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