summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Changed logic to handle timeout pages.Guang Zhu2009-06-071-2/+5
|
* Fix broken Searchables unit tests.Satish Sampath2009-06-051-1/+34
| | | | The newly added code was using methods which were not overridden by the unit test, fixed now.
* Include web search providers in Searchables.Satish Sampath2009-06-051-1/+2
| | | | | | - 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.
* rename a few files to camel-case, add copyright noticesMathias Agopian2009-06-041-1/+17
|
* Added bugreport collecting mechanism in case of crashes.Guang Zhu2009-06-041-1/+31
|
* Skip empty lines in test url list.Guang Zhu2009-06-031-0/+3
|
* Adding missing callback onJsConfirm to dismiss any confirmation dialogsGuang Zhu2009-06-031-0/+6
|
* Added new parameter to enable a manual pause between pagesGuang Zhu2009-06-034-18/+43
|
* Handle EOF correctly in MemoryFile input stream.Bjorn Bringert2009-06-032-2/+70
| | | | | | | | | | | | | | | 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-034-3/+349
| | | | | | | | | | | | 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
* Merge change 2967 into donutAndroid (Google) Code Review2009-06-022-8/+3
|\ | | | | | | | | * changes: Fixed issue where code for extracting scripts was eclipsed by runTest method.
| * Fixed issue where code for extracting scripts was eclipsed by runTest method.Guang Zhu2009-06-022-8/+3
| |
* | support more minor cdms sms bearer data subparametersTammo Spalink2009-06-021-17/+95
|/ | | | - also clean up CdmaSmsAddress
* Fixed bug where test status is not marked "DONE" when completedGuang Zhu2009-06-011-0/+1
|
* Rename WRITE_SDCARD to WRITE_EXTERNAL_STORAGE in browser test appGuang Zhu2009-06-011-0/+1
|
* Removing @Override to fix the buildGuang Zhu2009-06-011-1/+0
|
* Update reliability test code. Use a separate activity with simpler calback ↵Guang Zhu2009-06-015-269/+449
| | | | mechanism.
* base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGESan Mehat2009-06-012-2/+2
| | | | Signed-off-by: San Mehat <san@google.com>
* Retool the backup process to use a new 'BackupAgent' classChristopher Tate2009-05-312-9/+4
| | | | | | | | | | | | | | | 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.
* Fix concat SMS for GSM.jsh2009-05-291-1/+1
| | | | | | 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.
* Modify the base gestures API to use streams instead of files. Adds new ↵Romain Guy2009-05-293-28/+31
| | | | wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer.
* Unmap memory in MemoryFile.close().Bjorn Bringert2009-05-291-4/+73
| | | | | | | | | | | | | | | | | | | | | 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.
* Merge change 2302 into donutAndroid (Google) Code Review2009-05-251-0/+37
|\ | | | | | | | | * changes: added SmsMessage ConcatRef parsing validation
| * added SmsMessage ConcatRef parsing validationTammo Spalink2009-05-221-0/+37
| | | | | | | | | | | | | | | | | | addresses bugs: http://b/issue?id=1870607 http://b/issue?id=1688238 and prior perforce commit: http://s9/?change_num=136189
* | Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix ↵Romain Guy2009-05-246-48/+42
| | | | | | | | the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes.
* | Fix the buildRomain Guy2009-05-221-0/+3
| |
* | Add a new API to ListView: setGestures(int). This allows developers to ↵Romain Guy2009-05-225-15/+27
|/ | | | 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.
* Move the Gestures API to the framework in android.gesture.Romain Guy2009-05-2121-2705/+35
|
* Renamed setGestureType in GestureLibraryYang Li2009-05-212-3/+9
|
* Modify how GestureLibrary stores its data. The XML format is now replaced by ↵Romain Guy2009-05-2110-278/+288
| | | | 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.
* Merge change 2219 into donutAndroid (Google) Code Review2009-05-217-47/+109
|\ | | | | | | | | * changes: Updated LetterRecognizer & related gesture recognition code - added personalization for letter recognizer
| * Updated LetterRecognizer & related gesture recognition codeYang Li2009-05-217-47/+109
| | | | | | | | - added personalization for letter recognizer
* | Fixed SD card access permission issue in manifestGuang Zhu2009-05-211-1/+2
| | | | | | | | | | | | | | | | On branch b1869634_sdcard_perm Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: tests/DumpRenderTree/AndroidManifest.xml
* | Tweak the Gestures Overlay demo. This shortens the fade duration to make it ↵Romain Guy2009-05-203-13/+24
|/ | | | 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.
* First pass at cleaning up the gestures code.Romain Guy2009-05-2016-296/+539
|
* Hook up the backup data writer, and add a utility to read the backup data files.Joe Onorato2009-05-201-2/+2
|
* Merge change 1127 into donutAndroid (Google) Code Review2009-05-194-30/+125
|\ | | | | | | | | * changes: SmsHeader rewrite, in preparation for migration to public API.
| * SmsHeader rewrite, in preparation for migration to public API.Tammo Spalink2009-05-204-30/+125
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge change 1936 into donutAndroid (Google) Code Review2009-05-1934-1732/+3016
|\ \ | | | | | | | | | | | | * changes: Recovered the code of the gesture library
| * | Recovered the code of the gesture libraryYang Li2009-05-1834-1732/+3016
| | |
* | | Add tests for the new SQLite _TOKENIZE() 'tag' column.Bjorn Bringert2009-05-191-5/+33
| |/ |/|
* | Merge change 1939 into donutAndroid (Google) Code Review2009-05-181-1/+4
|\ \ | |/ |/| | | | | * changes: Temporarily suppress flaky test LocationManagerProximityTest until test harness support can be rolled out.
| * Temporarily suppress flaky test LocationManagerProximityTest until test ↵Brett Chabot2009-05-181-1/+4
| | | | | | | | harness support can be rolled out.
* | Merge change 1909 into donutAndroid (Google) Code Review2009-05-182-3/+18
|\ \ | | | | | | | | | | | | * changes: Fixed IndexOutofBoundException, improved how memory information is captured (run GC first)
| * | Fixed IndexOutofBoundException, improved how memory information is captured ↵Guang Zhu2009-05-182-3/+18
| |/ | | | | | | (run GC first)
* | Merge change 1575 into donutAndroid (Google) Code Review2009-05-171-5/+74
|\ \ | | | | | | | | | | | | * changes: Change _TOKENIZE tests to test the new token_index column
| * | Change _TOKENIZE tests to test the new token_index columnBjorn Bringert2009-05-151-5/+74
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Revert "Squashed commit of the following:"Yang Li2009-05-1529-3060/+712
| | | | | | | | | | | | This reverts commit f8173411cc612017ecfa115d71fb823b0714d982.
* | | Merge change 1823 into donutAndroid (Google) Code Review2009-05-151-0/+1
|\ \ \ | | | | | | | | | | | | | | | | * changes: Add the backup data file writer C++ class.
| * | | Add the backup data file writer C++ class.Joe Onorato2009-05-151-0/+1
| | | |