| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| |
| |
| | |
* changes:
Check AirplaneMode when enabling Bluetooth has finished.
|
| |
| |
| |
| |
| |
| | |
This is part of manual merge from cupcake_dcm to donut.
Should be reviewed by mchan and takaoka.
Original internal CL: 149471-p9
|
|/
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
| |
* 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.
|
|
|
|
|
|
|
| |
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.
|
|\
| |
| |
| |
| | |
* changes:
Fix AlphabetIndexer.getSectionForPosition()
|
| |
| |
| |
| |
| | |
This did not properly set the cursor position before reading, which
resulted in wrong return values or exceptions in the cursor.
|
| |
| |
| |
| |
| | |
This attribute is parsed by the PackageParser into ConfigurationInfo. The major
and minor version numbers are defined as the higher and lower order bits.
|
|\ \
| | |
| | |
| | |
| | | |
* 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.
|
| | |
| | |
| | |
| | | |
Those properties are secure to prevent applications from altering the user's settings without his knowledge.
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
* changes:
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.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* changes:
Don't crash on null edit url.
|
| | | |
| | | |
| | | |
| | | | |
bug=1568060
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
- 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.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
A workaround to fix rotation issue. I'm remote now and hard to do troubleshooting (i cannot rotate emulator in nx..)
|
| | | | |
| | | | |
| | | | |
| | | | | |
troubleshooting (i cannot rotate emulator in nx..)
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
(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.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
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.
|
|\ \ \ \ \
| |_|_|/ /
|/| | | |
| | | | |
| | | | | |
* changes:
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
|
|\ \ \ \
| |_|/ /
|/| | |
| | | |
| | | | |
* 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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
mapping in a @ViewDebug.ExportedProperty annotation was always overriden by
the resolveId attribute.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
Avoid touching all adapter items when building accessibility event.
|
| | |/ /
| |/| |
| | | |
| | | | |
Only check for enabled items if the list is less than 15 items.
|
|\ \ \ \
| | | | |
| | | | |
| | | | |
| | | | | |
* changes:
rename a few files to camel-case, add copyright notices
|
| |/ / / |
|
|\ \ \ \
| |/ / /
|/| | |
| | | |
| | | | |
* changes:
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.
|
|\ \ \
| |/ /
|/| |
| | |
| | | |
* 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().
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |
| | |
| | |
| | | |
mode.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* changes:
Turn off verbose logging in SearchableInfo, which seems to have been left on by accident.
|
| | | |
| | | |
| | | |
| | | | |
left on by accident.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
|\ \ \ \
| |/ / /
| | | |
| | | |
| | | | |
* changes:
Add INTENT_ACTION_WEB_SEARCH_SETTINGS (thereby fixing the build too :)).
|
| |/ / |
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* changes:
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
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* 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 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).
|
|/ /
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
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.
|
|\
| |
| |
| |
| | |
* changes:
Fixes #1890914.
|