summaryrefslogtreecommitdiffstats
path: root/tests/AndroidTests
Commit message (Collapse)AuthorAgeFilesLines
* Remove flaky MonitorTest#testInterrupt from continuous, and attempt to makeBrett Chabot2009-08-051-1/+1
| | | | | | AutoCompletePopup tests more reliable. Bugs 2036517 and 1636810.
* Add tests for android.net.vpn.Hung-ying Tyan2009-07-291-2/+114
|
* Remove visibility checks from SearchManager testsBjorn Bringert2009-07-261-55/+4
| | | | | | | | | | Since the search UI is handled by the system process, and the service calls to show and hide it are asynchronous, the tests that checked the visibility of the search UI were very flaky. This change sclaes the tests back to just check that nothing crashes when showing and hiding the search UI. Fixes http://b/issue?id=1993675
* Merge change 7959 into donutAndroid (Google) Code Review2009-07-201-0/+1
|\ | | | | | | | | * changes: Adding WRITE_EXTRENAL_STORAGE permission in AndroidManifest.xml file.
| * Adding WRITE_EXTRENAL_STORAGE permission in AndroidManifest.xml file.Swarna Kumar2009-07-201-0/+1
| |
* | Fix the buildYu Shan Emily Lau2009-07-201-0/+1
| |
* | Added the vpn unit test template.Yu Shan Emily Lau2009-07-201-0/+45
|/
* Add "nodpi" density, and expose a bunch of density-related APIs.Dianne Hackborn2009-07-171-1/+1
| | | | | Also update the DpiTest app to use nodpi images, and try to have a mode where it turns off compatibility though it's not quite working.
* Merge change 7556 into donutAndroid (Google) Code Review2009-07-161-6/+10
|\ | | | | | | | | * changes: Temporarily suppress ServiceTest.
| * Temporarily suppress ServiceTest.Brett Chabot2009-07-161-6/+10
| | | | | | | | | | ServiceTest appears to be causing the whole android unit_tests suite to fail in the continuous system. Suppressing to stop the lab failure spam while continuing to investigate.
* | Merge change 7441 into donutAndroid (Google) Code Review2009-07-161-4/+58
|\ \ | |/ |/| | | | | * changes: Allow system colors in <font> tags
| * Allow system colors in <font> tagsBjorn Bringert2009-07-151-4/+58
| | | | | | | | Fixes http://b/issue?id=1970693
* | Update Searchables test with new GlobalSearch nameBjorn Bringert2009-07-151-2/+2
|/ | | | Fixes http://b/issue?id=1981558
* Fixed NPE bugs in Uri. Fixes internal issue #1724719.Bob Lee2009-07-101-0/+33
| | | | Modified getQueryParameter() to use the encoded query string. Fixes internal issue #1749094.
* Uri.EMPTY.toString() was returning null due to an initialization order bug. ↵Bob Lee2009-07-102-1/+5
| | | | Fixes internal issue #1957015.
* Run search UI on its own thread.Bjorn Bringert2009-07-081-20/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Details: - Add a new SearchDialogWrapper class that makes sure all access to the SearchDialog is run one a single thread other than the main ServerThread. - Don't save/restore seach dialog state in Activity. This resulted in lots of calls to the SearchManager throughout the life cycle of all activities, for the questionable benefit of restoring the search dialog in a few cases. - Remove search UI state save/restore, and the isVisible() method from SearchManagerService. They are no longer used, and were tricky to implement since they return values from the search UI thread to the service. - Handle configuration changes in searchDialogWrapper instead of calling through from Activity. Fixes http://b/issue?id=1938101 TODO: - Activity.performPause() calls stopSearch(). This call may not happen until the new activity has been started. If the new activity starts a search immediately, this search could be cancelled by the old activity's call top stopSearch().
* Merge change 6396 into donutAndroid (Google) Code Review2009-07-071-0/+55
|\ | | | | | | | | * changes: Add unit test for NeighboringCellInfo.
| * Add unit test for NeighboringCellInfo.John Wang2009-07-071-0/+55
| | | | | | | | | | | | Add small unit test for NeighboringCellInfo in AndroidTests. The old telephony unit test directory, CoreTest/android, is marked as deprecated in AndroidTestHowto. new file: tests/AndroidTests/src/com/android/unit_tests/NeighboringCellInfoTest.java
* | septet-align UD after any UDH for GSM-7bit codingTammo Spalink2009-07-071-0/+15
| |
* | Merge change 5995 into donutAndroid (Google) Code Review2009-07-021-0/+1
|\ \ | | | | | | | | | | | | * changes: Turn off kerning when testing TextUtils.ellipsize().
| * | Turn off kerning when testing TextUtils.ellipsize().Eric Fischer2009-07-011-0/+1
| |/ | | | | | | | | | | | | | | Otherwise, the different text measurement methods produce slightly different results and cause the text to show different results for Spanned vs. non-Spanned source strings. Bug 1837826
* | Add tests. internal bug id 1868702.Daisuke Miyakawa2009-07-021-59/+73
|/
* cdma sms is91 supportTammo Spalink2009-06-281-0/+13
|
* make BitwiseInputStream.read return intTammo Spalink2009-06-242-8/+31
| | | | | Keep the maximum access 8 bits to avoid dealing with endianness issues.
* Remove test for SearchManager activity context restriction.Bjorn Bringert2009-06-221-20/+0
| | | | | This restriction was removed in https://android-git.corp.google.com/g/4908 see http://b/issue?id=1926254
* Make all static methods in SearchManager non-static.Bjorn Bringert2009-06-221-6/+8
| | | | | | | 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.
* Remove deprecated api. Aptly rename freeStorageWithIntent to freeStorage.Suchi Amalapurapu2009-06-191-1/+1
|
* add feedback test with gsm7bit special case charactersTammo Spalink2009-06-171-0/+3
|
* Run search dialog in the system process.Bjorn Bringert2009-06-156-39/+312
| | | | | | | | | | | | | | 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.
* In SearchablesTest, use the always available globalsearch.Satish Sampath2009-06-101-6/+6
| | | | 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.
* 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.
* 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
* support more minor cdms sms bearer data subparametersTammo Spalink2009-06-021-17/+95
| | | | - also clean up CdmaSmsAddress
* 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.
* 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
* Merge change 1127 into donutAndroid (Google) Code Review2009-05-192-7/+93
|\ | | | | | | | | * changes: SmsHeader rewrite, in preparation for migration to public API.
| * SmsHeader rewrite, in preparation for migration to public API.Tammo Spalink2009-05-202-7/+93
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Add tests for the new SQLite _TOKENIZE() 'tag' column.Bjorn Bringert2009-05-191-5/+33
|/
* 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.
* Refactor SearchableInfo.Bjorn Bringert2009-05-061-10/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Removes the mSearchable field which was only for communication between the constructor and getActivityMetaData(). - Removes the badge and query rewriting fields, since their values can be efficiently computed on the fly. - Makes all the other public fields private and adds getters for them. - Makes all fields final, except mActionKeys. - Removes the DBG_INHIBIT_SUGGESTIONS_CONSTANT. I don't see why we would every want that, and it complicated making the fields final. - Makes all fields in ActionKeyInfo final. - Makes all fields in ActionKeyInfo private and adds getters. - Removes the use of ActioKeyInfo.mKeyCode for failure signalling. Uses IllegalArgumentException instead. - Replaces the ad hoc linked list for looking up action keys by a HashMap. This is needed to make the fields in ActionkeyInfo final, and also avoids O(N) lookup in the (unlikely) case that an activity has lots of action keys. - Don't throw exceptions when reading searchable meta-data, since that could crash SearchManagerService. - Adds debug logging.
* new cdma sms unit tests (from QC on-site test)Tammo Spalink2009-05-061-1/+48
|
* clean up cdma sms creation and parsingTammo Spalink2009-05-011-68/+95
| | | | | | | | | | related to issue http://b/issue?id=1782245 - fixes 7bit ASCII encode and decode (previous completely broken) - also consolidates encoding of user data, and changed to match the conventions of the new data coding -- previously likely broken for several cases
* Add 'includeInGlobalSearch' attribute to searchable meta-data.Bjorn Bringert2009-04-291-4/+6
| | | | | | | The attribute is not yet public. Also adds a SearchManager method for listing all searchables that can be included in global search. This is the framework part of http://b/issue?id=1819651
* Split testSearchablesMocked into two tests.Bjorn Bringert2009-04-291-14/+15
|
* Merge change 640 into donutAndroid (Google) Code Review2009-04-291-53/+84
|\ | | | | | | | | * changes: Add GLOBAL_SEARCH intent for finding global search provider.
| * Add GLOBAL_SEARCH intent for finding global search provider.Bjorn Bringert2009-04-281-53/+84
| |
* | enable additional cdma sms fields and user data encodingsTammo Spalink2009-04-281-4/+146
|/ | | | | | enable ia5 and octet user data encodings properly expose parsed user data support additional bearer data subparameter types
* Merge branch 'readonly-p4-donut' into donutKarl Rosaen2009-04-232-372/+413
|\