| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| |
| |
| |
| | |
This change amends the doRestore() / onRestore() interface to backup agents to
provide the integer android:versionCode of the app that stored the backup set.
This should help agents figure out how to handle whatever historical data set
they're handed at restore time.
|
| |
| |
| |
| |
| | |
because they'll always go in the same order, and this lets
us not have to write headers to keep them paired.
|
| |
| |
| |
| |
| | |
This restriction was removed in https://android-git.corp.google.com/g/4908
see http://b/issue?id=1926254
|
|/
|
|
|
|
|
| |
They were only static because of a now removed restriction that
only activity contexts could instantiate SearchManager.
This only changes hidden APIs, but all users of the changed methods
must be updated to use them non-statically before this is submitted.
|
|\
| |
| |
| |
| | |
* changes:
Fix a bug where wrong variable was used for comparison.
|
| | |
|
|/ |
|
| |
|
| |
|
|
|
|
|
|
| |
- BackupTestAgent calls the DispatchHelper
- Make BackupAgent.onRestore take a BackupDataInput, not just a
generic ParcelFileDescriptor.
|
|\
| |
| |
| |
| | |
* changes:
FileRestoreHelper and RestoreHelperDispatcher work.
|
| | |
|
|\ \
| |/
|/|
| |
| | |
* changes:
Add SmsManager permission test.
|
| | |
|
|/ |
|
|\
| |
| |
| |
| | |
* changes:
Implement permission test for activity, window, service manager.
|
| |
| |
| |
| |
| |
| | |
This also includes some changes to the window manager permission checks. Almost all of these
are to make it most testable (through an exception on a permission failure), though there is
one permission check that needed to be added: updateOrientationFromAppTokens().
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Add test for GServices write permission, and remove dummy placeholder framework permission test.
|
| | |
| | |
| | |
| | | |
framework permission test.
|
|/ / |
|
|/ |
|
|\
| |
| |
| |
| | |
* changes:
Add permission test structure for private framework permissions.
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Add more data to reliability test report, includes min, max, std, run data.
|
| | | |
|
|\ \ \
| |/ /
| | |
| | |
| | | |
* changes:
Adjust order of file/section list in output diff
|
| | | |
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Fixes http://b/issue?id=1905863
This is needed to address two security issues with global search:
http://b/issue?id=1871088 (Apps can read content providers through GlobalSearch)
http://b/issue?id=1819627 (Apps can use GlobalSearch to launch arbirtrary intents)
This also fixes http://b/issue?id=1693153 (SearchManager.OnDismissListener
never gets called)
To fix the security issues, GlobalSearch also needs to require
a non-app permission to access its content provider and launch intents.
|
|/
|
|
| |
methods on BackupDataOutput.
|
|\
| |
| |
| |
| |
| | |
* changes:
Make the file backup helper not crash if a file you requested can't be stated. This means you don't need to know if the files you are backing up exist or not -- we'll figure it out for you.
Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
|
| |
| |
| |
| |
| | |
can't be stated. This means you don't need to know if the files
you are backing up exist or not -- we'll figure it out for you.
|
| |
| |
| |
| | |
This took quite a bit of refactoring.
|
|/ |
|
|\
| |
| |
| |
| | |
* changes:
Added support to record page load time for each url.
|
| | |
|
|/
|
|
| |
The earlier used googlesearch package may not be available in some devices so switching to globalsearch which has searchable info relevant for this unit test.
|
| |
|
| |
|
|
|
|
| |
The newly added code was using methods which were not overridden by the unit test, fixed now.
|
|
|
|
|
|
| |
- 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.
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|\
| |
| |
| |
| | |
* changes:
Fixed issue where code for extracting scripts was eclipsed by runTest method.
|
| | |
|
|/
|
|
| |
- also clean up CdmaSmsAddress
|