summaryrefslogtreecommitdiffstats
path: root/core
Commit message (Collapse)AuthorAgeFilesLines
* Merge change 3422 into donutAndroid (Google) Code Review2009-06-071-0/+4
|\ | | | | | | | | * changes: Check AirplaneMode when enabling Bluetooth has finished.
| * Check AirplaneMode when enabling Bluetooth has finished.Daisuke Miyakawa2009-06-081-0/+4
| | | | | | | | | | | | This is part of manual merge from cupcake_dcm to donut. Should be reviewed by mchan and takaoka. Original internal CL: 149471-p9
* | Add IRestoreSession interface for the restore flowChristopher Tate2009-06-075-4/+66
|/ | | | | | | | Restore is a fairly complicated, somewhat stateful process, so we introduce a new interface to encapsulate the various bits and pieces into a nicely separable component. In particular, this will make it much cleaner to open and interrogate an expensive-to-construct transport and then reuse it for the actual restore process itself.
* Add rough-draft restore API set to IBackupTransportChristopher Tate2009-06-073-2/+78
| | | | | | | | | | * getAvailableBackups returns the list of backup sets available for restore * getAppSet() returns the set of apps available from a given backup set * getRestoreData() streams the full backup data for a given application (within a given backup set) into a FD; that data will be handed to the app's backup agent for processing.
* Adjust IBackupTransport interfaceChristopher Tate2009-06-073-12/+16
| | | | | | | Instead of just passing a package name to performBackup, pass the whole PackageInfo struct, explicitly including the list of signatures for the package. No need to make each transport look this up individually when it's a necessary part of the backup payload for each app.
* Merge change 3348 into donutAndroid (Google) Code Review2009-06-051-1/+1
|\ | | | | | | | | * changes: Fix AlphabetIndexer.getSectionForPosition()
| * Fix AlphabetIndexer.getSectionForPosition()Phil Dubach2009-06-051-1/+1
| | | | | | | | | | This did not properly set the cursor position before reading, which resulted in wrong return values or exceptions in the cursor.
* | Add a new attribute to android manifest for defining the GLES version number.Suchi Amalapurapu2009-06-054-3/+59
| | | | | | | | | | This attribute is parsed by the PackageParser into ConfigurationInfo. The major and minor version numbers are defined as the higher and lower order bits.
* | Merge change 3223 into donutAndroid (Google) Code Review2009-06-051-0/+23
|\ \ | | | | | | | | | | | | * 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.
| * | Adding new Settings.Secure properties for the Text-To-Speech functionality.Jean-Michel Trivi2009-06-051-0/+23
| | | | | | | | | | | | Those properties are secure to prevent applications from altering the user's settings without his knowledge.
* | | Merge change 3317 into donutAndroid (Google) Code Review2009-06-052-24/+14
|\ \ \ | |/ / |/| | | | | | | | * changes: Fixes #1899273.
| * | Fixes #1899273.Romain Guy2009-06-052-24/+14
| | | | | | | | | | | | 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.
* | | Merge change 2934 into donutAndroid (Google) Code Review2009-06-051-20/+28
|\ \ \ | | | | | | | | | | | | | | | | * changes: Don't crash on null edit url.
| * | | Don't crash on null edit url.Ken Shirriff2009-06-041-20/+28
| | | | | | | | | | | | | | | | bug=1568060
* | | | Include web search providers in Searchables.Satish Sampath2009-06-055-61/+281
| | | | | | | | | | | | | | | | | | | | | | | | - 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.
* | | | Merge change 3265 into donutAndroid (Google) Code Review2009-06-041-1/+3
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)
| * | | | A workaround to fix rotation issue. I'm remote now and hard to do ↵Mitsuru Oshima2009-06-041-1/+3
| | | | | | | | | | | | | | | | | | | | troubleshooting (i cannot rotate emulator in nx..)
* | | | | Add new SHOW_WEB_SUGGESTIONS system setting, referenced by the search settingsMike LeBeau2009-06-051-0/+8
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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.
* | | | Merge change 3243 into donutAndroid (Google) Code Review2009-06-041-0/+8
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Fix backup agent unbind
| * | | | Fix backup agent unbindChristopher Tate2009-06-041-0/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | | Merge change 3238 into donutAndroid (Google) Code Review2009-06-041-1/+2
|\ \ \ \ \ | |_|_|/ / |/| | | | | | | | | | | | | | * changes: Browser edit fields should report variation WEB_EDIT_TEXT.
| * | | | Browser edit fields should report variation WEB_EDIT_TEXT.Amith Yamasani2009-06-041-1/+2
| | |_|/ | |/| | | | | | | | | | | | | | | | | | 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
* | | | Merge change 3227 into donutAndroid (Google) Code Review2009-06-042-49/+50
|\ \ \ \ | |_|/ / |/| | | | | | | | | | | * 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.
| * | | Fix int to string mapping of exported properties. The value generated by theRomain Guy2009-06-042-49/+50
| | | | | | | | | | | | | | | | | | | | mapping in a @ViewDebug.ExportedProperty annotation was always overriden by the resolveId attribute.
* | | | Merge change 3204 into donutAndroid (Google) Code Review2009-06-041-5/+12
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: Avoid touching all adapter items when building accessibility event.
| * | | | Avoid touching all adapter items when building accessibility event.Amith Yamasani2009-06-041-5/+12
| | |/ / | |/| | | | | | | | | | Only check for enabled items if the list is less than 15 items.
* | | | Merge change 3203 into donutAndroid (Google) Code Review2009-06-042-2/+2
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | * changes: rename a few files to camel-case, add copyright notices
| * | | | rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-042-2/+2
| |/ / /
* | | | Merge change 3192 into donutAndroid (Google) Code Review2009-06-041-1/+2
|\ \ \ \ | |/ / / |/| | | | | | | | | | | * changes: Fixes #1882836.
| * | | Fixes #1882836.Romain Guy2009-06-041-1/+2
| |/ / | | | | | | | | | | | | | | | | | | 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.
* | | Merge change 3074 into donutAndroid (Google) Code Review2009-06-041-2/+5
|\ \ \ | |/ / |/| | | | | | | | * 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().
| * | Modify the decoding logic in the FD case when a purgeable flag is set,Wei-Ta Chen2009-06-031-2/+5
| | | | | | | | | | | | | | | | | | | | | 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.
* | | SearchDialog should only do DialogCursorProtocol stuff when in global search ↵Karl Rosaen2009-06-041-1/+4
| | | | | | | | | | | | mode.
* | | Detect impressions, and cleanup the SearchDialog / SuggestionCursor ↵Karl Rosaen2009-06-043-76/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge change 3149 into donutAndroid (Google) Code Review2009-06-041-1/+1
|\ \ \ | | | | | | | | | | | | | | | | * changes: Turn off verbose logging in SearchableInfo, which seems to have been left on by accident.
| * | | Turn off verbose logging in SearchableInfo, which seems to have beenMike LeBeau2009-06-041-1/+1
| | | | | | | | | | | | | | | | left on by accident.
* | | | Remove support for bitmap icons in search suggestions.Bjorn Bringert2009-06-042-47/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge change 3145 into donutAndroid (Google) Code Review2009-06-041-0/+10
|\ \ \ \ | |/ / / | | | | | | | | | | | | * changes: Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
| * | | Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).Mike LeBeau2009-06-041-0/+10
| |/ /
* | | Merge change 2845 into donutAndroid (Google) Code Review2009-06-041-0/+92
|\ \ \ | | | | | | | | | | | | | | | | * changes: Allow making AssetFileDescriptors from SQLite blobs.
| * | | Allow making AssetFileDescriptors from SQLite blobs.Bjorn Bringert2009-06-031-0/+92
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | More backup workChristopher Tate2009-06-035-4/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | * Moved supports-density tag under manifestMitsuru Oshima2009-06-0313-229/+390
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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.
* | | | Track activity foreground CPU usage for battery stats.Amith Yamasani2009-06-033-14/+75
| |/ / |/| | | | | | | | | | | | | | | | | 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).
* | | Close icon input stream in SuggestionsAdapter.Bjorn Bringert2009-06-031-4/+14
|/ / | | | | | | | | | | 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.
* | Handle EOF correctly in MemoryFile input stream.Bjorn Bringert2009-06-031-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Allow creating AssetFileDescriptors for MemoryFiles.Bjorn Bringert2009-06-033-9/+226
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Adding internal method replacePreferredActivity.Satish Sampath2009-06-033-0/+35
| | | | | | | | | | | | | | | | | | | | 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.
* | Add new listener to GestureOverlayView. This listener fires whenever the ↵Romain Guy2009-06-021-5/+42
|/ | | | 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 change 2962 into donutAndroid (Google) Code Review2009-06-021-3/+3
|\ | | | | | | | | * changes: Fixes #1890914.