OSDN Git Service

android-x86/frameworks-base.git
15 years agoMerge change 3374 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 23:07:56 +0000 (16:07 -0700)]
Merge change 3374 into donut

* changes:
  Fix tracking of backup participants across package remove/update

15 years agoMerge change 3356 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 22:55:24 +0000 (15:55 -0700)]
Merge change 3356 into donut

* changes:
  Cleaning up comments in interface for TTS engines.

15 years agoCleaning up comments in interface for TTS engines.
Jean-Michel Trivi [Fri, 5 Jun 2009 22:01:33 +0000 (15:01 -0700)]
Cleaning up comments in interface for TTS engines.

15 years agoMerge change 3348 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 21:53:00 +0000 (14:53 -0700)]
Merge change 3348 into donut

* changes:
  Fix AlphabetIndexer.getSectionForPosition()

15 years agoMerge change 3344 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 21:11:08 +0000 (14:11 -0700)]
Merge change 3344 into donut

* changes:
  Updating TtsEngine.h and SynthProxy.cpp so that buffer memory management is handled on the system side.

15 years agoFix tracking of backup participants across package remove/update
Christopher Tate [Fri, 5 Jun 2009 20:57:54 +0000 (13:57 -0700)]
Fix tracking of backup participants across package remove/update

15 years agoUpdating TtsEngine.h and SynthProxy.cpp so that buffer memory
Charles Chen [Fri, 5 Jun 2009 20:58:33 +0000 (13:58 -0700)]
Updating TtsEngine.h and SynthProxy.cpp so that buffer memory
management is handled on the system side.

15 years agoAdd a new attribute to android manifest for defining the GLES version number.
Suchi Amalapurapu [Fri, 5 Jun 2009 17:26:19 +0000 (10:26 -0700)]
Add a new attribute to android manifest for defining the GLES version number.
This attribute is parsed by the PackageParser into ConfigurationInfo. The major
and minor version numbers are defined as the higher and lower order bits.

15 years agoMerge change 3305 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 20:34:25 +0000 (13:34 -0700)]
Merge change 3305 into donut

* changes:
  Fix parameter mismatch for a couple of RIL commands.

15 years agoMerge change 3223 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 20:29:21 +0000 (13:29 -0700)]
Merge change 3223 into donut

* changes:
  Adding new Settings.Secure properties for the Text-To-Speech functionality. Those properties are secure to prevent applications from altering the user's settings without his knowledge.

15 years agoMerge change 3337 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 20:15:26 +0000 (13:15 -0700)]
Merge change 3337 into donut

* changes:
  Fix external bug 2875: Matrix#mValues[7] assigned twice in place of mValues[8]

15 years agoFix external bug 2875: Matrix#mValues[7] assigned twice in place of mValues[8]
Xavier Ducrohet [Fri, 5 Jun 2009 19:55:14 +0000 (12:55 -0700)]
Fix external bug 2875: Matrix#mValues[7] assigned twice in place of mValues[8]

15 years agoFix AlphabetIndexer.getSectionForPosition()
Phil Dubach [Fri, 5 Jun 2009 19:27:59 +0000 (12:27 -0700)]
Fix AlphabetIndexer.getSectionForPosition()

This did not properly set the cursor position before reading, which
resulted in wrong return values or exceptions in the cursor.

15 years agoAdding new Settings.Secure properties for the Text-To-Speech functionality.
Jean-Michel Trivi [Thu, 4 Jun 2009 21:55:24 +0000 (14:55 -0700)]
Adding new Settings.Secure properties for the Text-To-Speech functionality.
Those properties are secure to prevent applications from altering the user's settings without his knowledge.

15 years agoMerge change 3317 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 18:27:52 +0000 (11:27 -0700)]
Merge change 3317 into donut

* changes:
  Fixes #1899273.

15 years agoFixes #1899273.
Romain Guy [Fri, 5 Jun 2009 18:24:09 +0000 (11:24 -0700)]
Fixes #1899273.

When a "ghost" stroke was showing, events would be intercepted in ListView. This patch modifies the logic used to detect when to still events: either the current stroke is a gesture, or the previous stroke was a gesture.

15 years agoMerge change 2934 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 17:12:34 +0000 (10:12 -0700)]
Merge change 2934 into donut

* changes:
  Don't crash on null edit url.

15 years agoFix parameter mismatch for a couple of RIL commands.
jsh [Fri, 5 Jun 2009 17:03:17 +0000 (10:03 -0700)]
Fix parameter mismatch for a couple of RIL commands.

Both RIL_REQUEST_SET_SMSC_ADDRESS and RIL_REQUEST_CDMA_FLASH take a string
as a parameter.  But RIL.java was sending down an array of strings with a
single element instead.

15 years agoFix broken Searchables unit tests.
Satish Sampath [Fri, 5 Jun 2009 14:04:32 +0000 (15:04 +0100)]
Fix broken Searchables unit tests.

The newly added code was using methods which were not overridden by the unit test, fixed now.

15 years agoInclude web search providers in Searchables.
Satish Sampath [Thu, 4 Jun 2009 10:51:17 +0000 (11:51 +0100)]
Include web search providers in Searchables.

- Along with ACTION_SEARCH we now enumate ACTION_WEB_SEARCH as well so web search providers are covered in the searchables list. This fixes a broken unit test.
- Moved get/setPreferredWebSearchActivity and get-all-web-search-providers implementation to this module when the searchables list gets updated, so that it happens on boot and on package add/remove events and remains up to date. The duplicate code in WebSearchProvider will be removed in a separate change.
- Also made Searchables broadcast an intent when the searchables list got rebuilt, so components such as GlobalSearch/SuggestionSources no longer need to do this on their own.

15 years agoMerge change 3265 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 01:59:10 +0000 (18:59 -0700)]
Merge change 3265 into donut

* changes:
  A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)

15 years agoA workaround to fix rotation issue. I'm remote now and hard to do troubleshooting...
Mitsuru Oshima [Fri, 5 Jun 2009 01:06:27 +0000 (18:06 -0700)]
A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)

15 years agoMerge change 3249 into donut
Android (Google) Code Review [Fri, 5 Jun 2009 00:54:44 +0000 (17:54 -0700)]
Merge change 3249 into donut

* changes:
  Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings (in a follow-on change). This setting, to be respected by global search, and which I will also file a bug to the browser to respect, determines whether live web suggestions will be shown to the user as they type. For privacy reasons, this could be considered undesirable, as partial queries can then be sent to the user's chosen search engine, so a setting was required.

15 years agoAdd new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings
Mike LeBeau [Thu, 4 Jun 2009 23:27:00 +0000 (00:27 +0100)]
Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settings
(in a follow-on change). This setting, to be respected by global search, and which
I will also file a bug to the browser to respect, determines whether live web
suggestions will be shown to the user as they type. For privacy reasons, this
could be considered undesirable, as partial queries can then be sent to the user's
chosen search engine, so a setting was required.

15 years agoFix back_up_files() error detection when opening/CRCing the file
Christopher Tate [Fri, 5 Jun 2009 00:01:06 +0000 (17:01 -0700)]
Fix back_up_files() error detection when opening/CRCing the file

15 years agoMerge change 3243 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 23:01:41 +0000 (16:01 -0700)]
Merge change 3243 into donut

* changes:
  Fix backup agent unbind

15 years agoDon't crash on null edit url.
Ken Shirriff [Fri, 22 May 2009 19:33:15 +0000 (12:33 -0700)]
Don't crash on null edit url.

bug=1568060

15 years agoMerge change 3238 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 22:50:05 +0000 (15:50 -0700)]
Merge change 3238 into donut

* changes:
  Browser edit fields should report variation WEB_EDIT_TEXT.

15 years agoMerge change 3226 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 22:45:22 +0000 (15:45 -0700)]
Merge change 3226 into donut

* changes:
  Update a javadoc comment suggesting the use of a deprecated class.

15 years agoMerge change 3227 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 22:12:06 +0000 (15:12 -0700)]
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.

15 years agoFix int to string mapping of exported properties. The value generated by the
Romain Guy [Thu, 4 Jun 2009 22:10:46 +0000 (15:10 -0700)]
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.

15 years agoBrowser edit fields should report variation WEB_EDIT_TEXT.
Amith Yamasani [Thu, 4 Jun 2009 22:07:29 +0000 (15:07 -0700)]
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

15 years agoMerge change 3184 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 22:05:48 +0000 (15:05 -0700)]
Merge change 3184 into donut

* changes:
  The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.

15 years agoUpdate a javadoc comment suggesting the use of a deprecated class.
Marco Nelissen [Thu, 4 Jun 2009 22:02:49 +0000 (15:02 -0700)]
Update a javadoc comment suggesting the use of a deprecated class.

15 years agoFix backup agent unbind
Christopher Tate [Thu, 4 Jun 2009 22:00:33 +0000 (15:00 -0700)]
Fix backup agent unbind

The handwritten binder transaction passing wasn't propagating the agent-destroy
transaction to the client side.  Oops.

Also, remove obsolete run-one-agent code from the backup manager service.

15 years agoMerge change 3204 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 21:12:02 +0000 (14:12 -0700)]
Merge change 3204 into donut

* changes:
  Avoid touching all adapter items when building accessibility event.

15 years agoMerge change 3207 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 21:10:07 +0000 (14:10 -0700)]
Merge change 3207 into donut

* changes:
  localize: remove dependency on mkdirs/etc in libhost

15 years agoMerge change 3203 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 21:08:29 +0000 (14:08 -0700)]
Merge change 3203 into donut

* changes:
  rename a few files to camel-case, add copyright notices

15 years agolocalize: remove dependency on mkdirs/etc in libhost
Brian Swetland [Thu, 4 Jun 2009 21:04:53 +0000 (14:04 -0700)]
localize: remove dependency on mkdirs/etc in libhost

This will let us break the libhost dependency on libutils.

Signed-off-by: Brian Swetland <swetland@google.com>
15 years agoAvoid touching all adapter items when building accessibility event.
Amith Yamasani [Thu, 4 Jun 2009 19:11:25 +0000 (12:11 -0700)]
Avoid touching all adapter items when building accessibility event.

Only check for enabled items if the list is less than 15 items.

15 years agorename a few files to camel-case, add copyright notices
Mathias Agopian [Thu, 4 Jun 2009 20:53:57 +0000 (13:53 -0700)]
rename a few files to camel-case, add copyright notices

15 years agoMerge change 3192 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 20:28:20 +0000 (13:28 -0700)]
Merge change 3192 into donut

* changes:
  Fixes #1882836.

15 years agoFixes #1882836.
Romain Guy [Thu, 4 Jun 2009 20:26:52 +0000 (13:26 -0700)]
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.

15 years agoMerge change 3181 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 20:21:03 +0000 (13:21 -0700)]
Merge change 3181 into donut

* changes:
  Unhide inInputShareable in BitmapFactory.Options.

15 years agoThe '-D' option for the 'am' command appears to be optional, so reflect that in the...
Marco Nelissen [Thu, 4 Jun 2009 19:04:03 +0000 (12:04 -0700)]
The '-D' option for the 'am' command appears to be optional, so reflect that in the usage.

15 years agoUnhide inInputShareable in BitmapFactory.Options.
Wei-Ta Chen [Thu, 4 Jun 2009 18:42:14 +0000 (11:42 -0700)]
Unhide inInputShareable in BitmapFactory.Options.

The variable works together with inPurgeable, which has been unhidden in
https://android-git.corp.google.com/g/Gerrit#change,2870.

15 years agoMerge change 3174 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 18:05:21 +0000 (11:05 -0700)]
Merge change 3174 into donut

* changes:
  Added bugreport collecting mechanism in case of crashes.

15 years agoAdded bugreport collecting mechanism in case of crashes.
Guang Zhu [Thu, 4 Jun 2009 18:03:57 +0000 (11:03 -0700)]
Added bugreport collecting mechanism in case of crashes.

15 years agoMerge change 3074 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 17:40:17 +0000 (10:40 -0700)]
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().

15 years agoMerge change 3126 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 17:09:59 +0000 (10:09 -0700)]
Merge change 3126 into donut

* changes:
  Fix thread safety in DataConnectionTracker.

15 years agoSearchDialog should only do DialogCursorProtocol stuff when in global search mode.
Karl Rosaen [Thu, 4 Jun 2009 16:59:44 +0000 (17:59 +0100)]
SearchDialog should only do DialogCursorProtocol stuff when in global search mode.

15 years agoDetect impressions, and cleanup the SearchDialog / SuggestionCursor communication.
Karl Rosaen [Thu, 4 Jun 2009 14:58:36 +0000 (15:58 +0100)]
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.

15 years agoMerge change 3149 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 14:08:45 +0000 (07:08 -0700)]
Merge change 3149 into donut

* changes:
  Turn off verbose logging in SearchableInfo, which seems to have been left on by accident.

15 years agoTurn off verbose logging in SearchableInfo, which seems to have been
Mike LeBeau [Thu, 4 Jun 2009 14:07:24 +0000 (15:07 +0100)]
Turn off verbose logging in SearchableInfo, which seems to have been
left on by accident.

15 years agoRemove support for bitmap icons in search suggestions.
Bjorn Bringert [Wed, 3 Jun 2009 09:33:41 +0000 (10:33 +0100)]
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.

15 years agoMerge change 3145 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 13:10:37 +0000 (06:10 -0700)]
Merge change 3145 into donut

* changes:
  Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).

15 years agoAdd INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
Mike LeBeau [Thu, 4 Jun 2009 13:09:42 +0000 (14:09 +0100)]
Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).

15 years agoMerge change 2845 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 10:09:43 +0000 (03:09 -0700)]
Merge change 2845 into donut

* changes:
  Allow making AssetFileDescriptors from SQLite blobs.

15 years agoMerge change 1526 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 06:30:02 +0000 (23:30 -0700)]
Merge change 1526 into donut

* changes:
  cdma getNeighboringCids to fail with an exception

15 years agocdma getNeighboringCids to fail with an exception
Tammo Spalink [Wed, 13 May 2009 06:44:07 +0000 (14:44 +0800)]
cdma getNeighboringCids to fail with an exception

15 years agoMore backup work
Christopher Tate [Tue, 2 Jun 2009 23:11:00 +0000 (16:11 -0700)]
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.

15 years agoFix thread safety in DataConnectionTracker.
Jaikumar Ganesh [Thu, 4 Jun 2009 00:26:35 +0000 (17:26 -0700)]
Fix thread safety in DataConnectionTracker.

All the methods in DataConnectionTracker should be called only through
the handler. Fix this as trySetupData was being called in the broadcast receiver.

Tested: Airplane mode and GPRS retry.

15 years agoMerge change 3095 into donut
Android (Google) Code Review [Thu, 4 Jun 2009 00:01:01 +0000 (17:01 -0700)]
Merge change 3095 into donut

* changes:
  Skip empty lines in test url list.

15 years agoMerge change 3094 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 23:32:18 +0000 (16:32 -0700)]
Merge change 3094 into donut

* changes:
  Grant permissions to older package when deleting an updated system application. When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition) gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails. This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might fall back to older versions of system apps.

15 years ago* Moved supports-density tag under manifest
Mitsuru Oshima [Wed, 3 Jun 2009 18:19:12 +0000 (11:19 -0700)]
* 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.

15 years agoSkip empty lines in test url list.
Guang Zhu [Wed, 3 Jun 2009 23:01:58 +0000 (16:01 -0700)]
Skip empty lines in test url list.

15 years agoGrant permissions to older package when deleting an updated system application.
Suchi Amalapurapu [Wed, 3 Jun 2009 22:47:55 +0000 (15:47 -0700)]
Grant permissions to older package when deleting an updated system application.
When a system app gets updated, the permissions are granted to the new pkg. Similary when this updated pkg(from data partition)
gets removed, the older pkg from system partition is restored. but the permissions are'nt being granted explicitly and so the restore fails.
This fix addresses specific bugs related to uninstall of updated system apps. These code paths will be revisited later but this fix is needed for OTA's that might
fall back to older versions of system apps.

15 years agoTrack activity foreground CPU usage for battery stats.
Amith Yamasani [Wed, 3 Jun 2009 22:16:10 +0000 (15:16 -0700)]
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).

15 years agofix [1610840] Positional light doesn't work correctly on emulator
Mathias Agopian [Wed, 3 Jun 2009 05:05:04 +0000 (22:05 -0700)]
fix [1610840] Positional light doesn't work correctly on emulator

This bug was introduced when lighting computations was changed from eye-space to object-space.
The light position need to be transformed back to object-space each time the modelview matrix changes which requires us to compute the inverse of the modelview matrix. This computation was done with the assumption that normals where transformed (which was the case when the computation was made in eye-space), however, normals only require the inverse of the upper 3x3 matrix while transforming positions requires the inverse of the whole matrix.
This caused the interesting behavior that lights were more-or-less transformed properly, but not translated at all, which caused improper lighting with directional lights in particular.

There was also another smaller bug affecting directional lights: when vertices are read, only the active component are read, the other ones are ignored, later, the transformation operations are set up to ignore the unset values, howver, in the case of lighting, we use the vertex in object space (that is, before it is transformed), and therefore were using uninitalized values; in particular w.

15 years agoMerge change 3013 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 22:07:26 +0000 (15:07 -0700)]
Merge change 3013 into donut

* changes:
  fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.

15 years agoModify the decoding logic in the FD case when a purgeable flag is set,
Wei-Ta Chen [Wed, 3 Jun 2009 21:08:04 +0000 (14:08 -0700)]
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.

15 years agoAdding missing callback onJsConfirm to dismiss any confirmation dialogs
Guang Zhu [Wed, 3 Jun 2009 21:14:27 +0000 (14:14 -0700)]
Adding missing callback onJsConfirm to dismiss any confirmation dialogs

15 years agoAdded new parameter to enable a manual pause between pages
Guang Zhu [Wed, 3 Jun 2009 19:23:09 +0000 (12:23 -0700)]
Added new parameter to enable a manual pause between pages

15 years agoMerge change 3038 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 17:08:46 +0000 (10:08 -0700)]
Merge change 3038 into donut

* changes:
  Cleaning up makefile for libttssynthproxy for the simulator.

15 years agoCleaning up makefile for libttssynthproxy for the simulator.
Jean-Michel Trivi [Wed, 3 Jun 2009 16:43:14 +0000 (09:43 -0700)]
Cleaning up makefile for libttssynthproxy for the simulator.

15 years agoClose icon input stream in SuggestionsAdapter.
Bjorn Bringert [Tue, 2 Jun 2009 15:59:54 +0000 (16:59 +0100)]
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.

15 years agoAllow making AssetFileDescriptors from SQLite blobs.
Bjorn Bringert [Mon, 1 Jun 2009 20:50:09 +0000 (21:50 +0100)]
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

15 years agoHandle EOF correctly in MemoryFile input stream.
Bjorn Bringert [Mon, 1 Jun 2009 09:53:06 +0000 (10:53 +0100)]
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

15 years agoAllow creating AssetFileDescriptors for MemoryFiles.
Bjorn Bringert [Fri, 29 May 2009 13:05:12 +0000 (14:05 +0100)]
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

15 years agoAdding internal method replacePreferredActivity.
Satish Sampath [Tue, 2 Jun 2009 22:35:54 +0000 (23:35 +0100)]
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.

15 years agoMerge change 3011 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 05:54:04 +0000 (22:54 -0700)]
Merge change 3011 into donut

* changes:
  simplify this test

15 years agofix a bug in GL lighting where the specular component could be ommited when vertex...
Mathias Agopian [Wed, 3 Jun 2009 05:51:09 +0000 (22:51 -0700)]
fix a bug in GL lighting where the specular component could be ommited when vertex material was disabled.

the specular enable flag wasn't computed in that case.

15 years agoAdd new listener to GestureOverlayView. This listener fires whenever the overlay...
Romain Guy [Wed, 3 Jun 2009 04:56:27 +0000 (21:56 -0700)]
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.

15 years agosimplify this test
Mathias Agopian [Wed, 3 Jun 2009 01:10:08 +0000 (18:10 -0700)]
simplify this test

15 years agoMerge change 2957 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 01:19:29 +0000 (18:19 -0700)]
Merge change 2957 into donut

* changes:
  Allow response payload on RIL_REQUEST error

15 years agoAllow response payload on RIL_REQUEST error
johnwang [Tue, 2 Jun 2009 21:58:35 +0000 (14:58 -0700)]
Allow response payload on RIL_REQUEST error

Handle response payload while RIL_REQUEST returns error.

modified:   gsm/GsmServiceStateTracker.java

15 years agoMerge change 2971 into donut
Android (Google) Code Review [Wed, 3 Jun 2009 00:22:18 +0000 (17:22 -0700)]
Merge change 2971 into donut

* changes:
  Corrected the name of the native library the SynthProxy class loads (libttssynthproxy instead of libsynthproxy) to match the lib name from frameworks/base/tts/jni/Android.mk.

15 years agoMerge change 2967 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 23:42:42 +0000 (16:42 -0700)]
Merge change 2967 into donut

* changes:
  Fixed issue where code for extracting scripts was eclipsed by runTest method.

15 years agoCorrected the name of the native library the SynthProxy class loads (libttssynthproxy...
Jean-Michel Trivi [Tue, 2 Jun 2009 23:02:31 +0000 (16:02 -0700)]
Corrected the name of the native library the SynthProxy class loads (libttssynthproxy instead of libsynthproxy) to match the lib name from frameworks/base/tts/jni/Android.mk.

15 years agoFixed issue where code for extracting scripts was eclipsed by runTest method.
Guang Zhu [Tue, 2 Jun 2009 22:42:48 +0000 (15:42 -0700)]
Fixed issue where code for extracting scripts was eclipsed by runTest method.

15 years agoMerge change 2961 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 22:35:46 +0000 (15:35 -0700)]
Merge change 2961 into donut

* changes:
  Addressed comments of change 2515 for the TtsService class:  - made the SpeechItem and SoundResource inner classes static,  - prefixed the TtsService member variables by 'm',  - changed indentation from 2 to 4 characters.

15 years agoMerge change 2962 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 22:16:34 +0000 (15:16 -0700)]
Merge change 2962 into donut

* changes:
  Fixes #1890914.

15 years agoFixes #1890914.
Romain Guy [Tue, 2 Jun 2009 22:15:12 +0000 (15:15 -0700)]
Fixes #1890914.

Bright theme's background color should be #fff9f9f9 instead of pure white (#ffffffff).

15 years agoAddressed comments of change 2515 for the TtsService class:
Jean-Michel Trivi [Tue, 2 Jun 2009 22:09:51 +0000 (15:09 -0700)]
Addressed comments of change 2515 for the TtsService class:
 - made the SpeechItem and SoundResource inner classes static,
 - prefixed the TtsService member variables by 'm',
 - changed indentation from 2 to 4 characters.

15 years agoam b33940ab: AI 149494: Minor improvements to wording in design tips for missing...
Doug Kramer [Tue, 2 Jun 2009 20:15:15 +0000 (13:15 -0700)]
am b33940ab: AI 149494: Minor improvements to wording in design tips for missing activity and notifications   See latest document at:   doog:9000/guide/practices/ui_guidelines/activity_task_design.html

Merge commit 'b33940abca9d43891575f58a1107c8ec247afed1' into donut

* commit 'b33940abca9d43891575f58a1107c8ec247afed1':
  AI 149494: Minor improvements to wording in design tips for missing activity and notifications

15 years agoAI 149494: Minor improvements to wording in design tips for missing activity and...
Doug Kramer [Tue, 2 Jun 2009 19:17:49 +0000 (12:17 -0700)]
AI 149494: Minor improvements to wording in design tips for missing activity and notifications
  See latest document at:
  http://doog:9000/guide/practices/ui_guidelines/activity_task_design.html

Automated import of CL 149494

15 years agoTrying to fix sim-eng build: when building the simulator on linux, link (only) with...
Jean-Michel Trivi [Tue, 2 Jun 2009 19:05:18 +0000 (12:05 -0700)]
Trying to fix sim-eng build: when building the simulator on linux, link (only) with libdl, as opposed to also making libdl a build target.

15 years agoUnhide inPurgeable in BitmapFactory.Options.
Wei-Ta Chen [Mon, 1 Jun 2009 22:49:32 +0000 (15:49 -0700)]
Unhide inPurgeable in BitmapFactory.Options.

The correctness and effectiveness of the usage of the parameter are evaluated in:
https://android-git.corp.google.com/g/Gerrit#change,2768

15 years agoTrying to fix the build for simulator: modifying makefile to not link against libdl.
Jean-Michel Trivi [Tue, 2 Jun 2009 17:43:58 +0000 (10:43 -0700)]
Trying to fix the build for simulator: modifying makefile to not link against libdl.

15 years agoMerge change 2515 into donut
Android (Google) Code Review [Tue, 2 Jun 2009 17:11:58 +0000 (10:11 -0700)]
Merge change 2515 into donut

* changes:
  Adding the TtsService class for text-to-speech synthesis.