| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
|
|
|
| |
mechanism.
|
|
|
|
| |
Signed-off-by: San Mehat <san@google.com>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Backups will be handled by launching the application in a special
mode under which no activities or services will be started, only
the BackupAgent subclass named in the app's android:backupAgent
manifest property. This takes the place of the BackupService class
used earlier during development.
In the cases of *full* backup or restore, an application that does
not supply its own BackupAgent will be launched in a restricted
manner; in particular, it will be using the default Application
class rather than any manifest-declared one. This ensures that the
app is not running any code that may try to manipulate its data
while the backup system reads/writes its data set.
|
|
|
|
|
|
| |
Bug 1883998: We only support sending 8-bit references for now.
Bug 1885080: Also fix the GsmAlphabetTest, which started failing when SmsHeader
was re-worked.
|
|
|
|
| |
wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
As reported in http://b/issue?id=1398215 MemoryFile did not
munmap(2) the ashmem region after closing it. This
causes the process to leak virtual address space.
This change fixes the problem by calling munmap(2) in
close(). The unmapping is done by a helper method deactivate().
The change also replaces the use of an int for the
file descriptor with a FileDescriptor object to
make sure that we keep track of when the file descriptor
has been closed. I chose to implement it this way because I
will need decativate() and a FileDescriptor object in an
upcoming change that allows sending MemoryFile file
descriptors between processes.
The change also adds a number of tests for the behavior
of close(). The testCloseRead() and testCloseWrite() fail
with the old MemoryFile implementation, and testCloseLeak()
causes a segfault. They all pass now.
|
|\
| |
| |
| |
| | |
* changes:
added SmsMessage ConcatRef parsing validation
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
addresses bugs:
http://b/issue?id=1870607
http://b/issue?id=1688238
and prior perforce commit:
http://s9/?change_num=136189
|
| |
| |
| |
| | |
the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.
|
| | |
|
|/
|
|
| |
enable gestures to jump inside the list or filter it. This change also introduces a new XML attribute to control this API. It also adds the ability to theme the GestureOverlayView from the gestures library. Finally, this adds a new VERSION header to the binary format used to store the letters for the recognizer.
|
| |
|
| |
|
|
|
|
| |
a more efficient binary format which should speed up saving/loading. The format is very similar to the one used by the letters recognizer. The format is documented in GestureLibrary.java.
|
|\
| |
| |
| |
| | |
* changes:
Updated LetterRecognizer & related gesture recognition code - added personalization for letter recognizer
|
| |
| |
| |
| | |
- added personalization for letter recognizer
|
| |
| |
| |
| |
| |
| |
| |
| | |
On branch b1869634_sdcard_perm
Changes to be committed:
(use "git reset HEAD <file>..." to unstage)
modified: tests/DumpRenderTree/AndroidManifest.xml
|
|/
|
|
| |
more usable and also adds a longer pause before the fade. This change also introduce a new compile-time setting to decide whether or not the overlay should steal the events from the underlying ListView. It is now off by default, per discussion with hackbod. It feel a little bit better but it may vary from user to user so studies will be necessary.
|
| |
|
| |
|
|\
| |
| |
| |
| | |
* changes:
SmsHeader rewrite, in preparation for migration to public API.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
See http://b/issue?id=1751571
Changes the semantics of SmsHeader from containing only opaque data
to exposing occurs-once frequently-used fields together with a list
of opaque fields. Also changes the coding to and from byte array to
be symmetrical, whereas previous encoding had an extra length field.
Cdma SmsMessage -- cleanup of code paths along with adjustments to
match the new header semantics, which should address at least some
of the issues with concatenated messages. See http://b/issue?id=1809759
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Recovered the code of the gesture library
|
| | | |
|
| |/
|/| |
|
|\ \
| |/
|/|
| |
| | |
* changes:
Temporarily suppress flaky test LocationManagerProximityTest until test harness support can be rolled out.
|
| |
| |
| |
| | |
harness support can be rolled out.
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Fixed IndexOutofBoundException, improved how memory information is captured (run GC first)
|
| |/
| |
| |
| | |
(run GC first)
|
|\ \
| | |
| | |
| | |
| | | |
* changes:
Change _TOKENIZE tests to test the new token_index column
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The SQLite _TOKENIZE function has been changed to use a third
column, token_index. This commit adds tests for the
_TOKENIZE token_index column, and for the source column,
which was previously untested.
|
| | |
| | |
| | |
| | | |
This reverts commit f8173411cc612017ecfa115d71fb823b0714d982.
|
|\ \ \
| | | |
| | | |
| | | |
| | | | |
* changes:
Add the backup data file writer C++ class.
|
| | | | |
|