145 Commits

Author SHA1 Message Date
Joe Onorato
efd0fab04b FileRestoreHelper and RestoreHelperDispatcher work. 2009-06-17 16:20:55 -07:00
Tammo Spalink
0ff946e7b5 add feedback test with gsm7bit special case characters 2009-06-17 16:13:52 +08:00
Android (Google) Code Review
6edb3487be Merge change 4234 into donut
* changes:
  Implement permission test for activity, window, service manager.
2009-06-15 15:07:50 -07:00
Dianne Hackborn
cfaef699e1 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().
2009-06-15 14:35:07 -07:00
Android (Google) Code Review
acec4d6741 Merge change 4224 into donut
* changes:
  Add test for GServices write permission, and remove dummy placeholder framework permission test.
2009-06-15 14:20:53 -07:00
Brett Chabot
2f0d86cf2e Add test for GServices write permission, and remove dummy placeholder framework permission test. 2009-06-15 14:15:19 -07:00
Suchi Amalapurapu
ea196fc50e More tests to check permissions in PackageManager api's are enforced 2009-06-15 13:19:25 -07:00
Suchi Amalapurapu
9f2f87d92b Add tests to check permissions in PackageManager api's 2009-06-15 12:23:15 -07:00
Android (Google) Code Review
3adf7678cd Merge change 4184 into donut
* changes:
  Add permission test structure for private framework permissions.
2009-06-15 10:48:28 -07:00
Brett Chabot
9faa04fd85 Add permission test structure for private framework permissions. 2009-06-15 10:43:40 -07:00
Android (Google) Code Review
c2922687fa Merge change 4182 into donut
* changes:
  Add more data to reliability test report, includes min, max, std, run data.
2009-06-15 10:17:18 -07:00
Guang Zhu
0528cd03b2 Add more data to reliability test report, includes min, max, std, run data. 2009-06-15 10:13:58 -07:00
Android (Google) Code Review
d83d6606d6 Merge change 4106 into donut
* changes:
  Adjust order of file/section list in output diff
2009-06-15 09:37:01 -07:00
Bjorn Bringert
8d17f3f24b Run search dialog in the system process.
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.
2009-06-15 09:05:26 +01:00
Joe Onorato
1cf587496f Add RestoreFileHelper, BackupDataInput, and add java wrappers for the methods on BackupDataOutput. 2009-06-12 16:21:24 -07:00
Guang Zhu
903f311fdc Adjust order of file/section list in output diff 2009-06-12 15:03:45 -07:00
Android (Google) Code Review
78f0f8cb2e Merge changes 3953,3954 into donut
* 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.
2009-06-11 19:50:05 -07:00
Guang Zhu
261a195323 Update control files (pass/fail/nontext/crash) to results from CRB45 2009-06-11 15:42:23 -07:00
Joe Onorato
ce88cb15b5 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.
2009-06-11 14:51:45 -07:00
Joe Onorato
23ecae3bbb Fix SharedPrefsBackupHelper so it doesn't hard code the paths to the files.
This took quite a bit of refactoring.
2009-06-11 11:29:57 -07:00
Android (Google) Code Review
4a60b887d4 Merge change 3761 into donut
* changes:
  Added support to record page load time for each url.
2009-06-10 15:03:06 -07:00
Guang Zhu
2ab6f1fe0b Added support to record page load time for each url. 2009-06-10 13:37:03 -07:00
Satish Sampath
174ad503ee In SearchablesTest, use the always available globalsearch.
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.
2009-06-10 12:06:46 +01:00
Romain Guy
f642aa2a44 Removes gestures from ListView. 2009-06-08 23:24:18 -07:00
Guang Zhu
7757656a11 Changed logic to handle timeout pages. 2009-06-07 13:12:20 -07:00
Satish Sampath
0e74aa0f7e Fix broken Searchables unit tests.
The newly added code was using methods which were not overridden by the unit test, fixed now.
2009-06-05 15:40:49 +01:00
Satish Sampath
f9acde2748 Include web search providers in Searchables.
- 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.
2009-06-05 10:34:53 +01:00
Mathias Agopian
8ae2335a3c rename a few files to camel-case, add copyright notices 2009-06-04 13:53:57 -07:00
Guang Zhu
17f8fa6b24 Added bugreport collecting mechanism in case of crashes. 2009-06-04 11:03:57 -07:00
Guang Zhu
53003de64e Skip empty lines in test url list. 2009-06-03 16:01:58 -07:00
Guang Zhu
b9a39cd300 Adding missing callback onJsConfirm to dismiss any confirmation dialogs 2009-06-03 14:14:27 -07:00
Guang Zhu
3e8950c0c7 Added new parameter to enable a manual pause between pages 2009-06-03 12:23:09 -07:00
Bjorn Bringert
c1823701cc Handle EOF correctly in MemoryFile input stream.
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
2009-06-03 12:53:42 +01:00
Bjorn Bringert
963cd006c4 Allow creating AssetFileDescriptors for MemoryFiles.
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
2009-06-03 12:53:42 +01:00
Android (Google) Code Review
7322c96cc0 Merge change 2967 into donut
* changes:
  Fixed issue where code for extracting scripts was eclipsed by runTest method.
2009-06-02 16:42:42 -07:00
Guang Zhu
3dfd0e131e Fixed issue where code for extracting scripts was eclipsed by runTest method. 2009-06-02 15:42:48 -07:00
Tammo Spalink
baae313f89 support more minor cdms sms bearer data subparameters
- also clean up CdmaSmsAddress
2009-06-02 11:10:53 +08:00
Guang Zhu
627f9343b5 Fixed bug where test status is not marked "DONE" when completed 2009-06-01 15:26:08 -07:00
Guang Zhu
892771ab81 Rename WRITE_SDCARD to WRITE_EXTERNAL_STORAGE in browser test app 2009-06-01 13:51:21 -07:00
Guang Zhu
40d87ee486 Removing @Override to fix the build 2009-06-01 12:22:51 -07:00
Guang Zhu
65455a1a46 Update reliability test code. Use a separate activity with simpler calback mechanism. 2009-06-01 11:36:03 -07:00
San Mehat
5a3a77dabd base: Rename WRITE_SDCARD -> WRITE_EXTERNAL_STORAGE
Signed-off-by: San Mehat <san@google.com>
2009-06-01 09:25:28 -07:00
Christopher Tate
181fafaf48 Retool the backup process to use a new 'BackupAgent' class
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.
2009-05-31 13:10:03 -07:00
jsh
ef354fdd63 Fix concat SMS for GSM.
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.
2009-05-29 17:11:28 -07:00
Romain Guy
0a63716ed0 Modify the base gestures API to use streams instead of files. Adds new wrappers to easily load/save gestures from files, resources, etc. Do the same for the letters recognizer. 2009-05-29 14:43:54 -07:00
Bjorn Bringert
761e0918d3 Unmap memory in MemoryFile.close().
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.
2009-05-29 13:28:14 +01:00
Android (Google) Code Review
511a0134e1 Merge change 2302 into donut
* changes:
  added SmsMessage ConcatRef parsing validation
2009-05-25 23:23:18 -07:00
Romain Guy
82f3495b14 Cleanup Gestures API and make it easier to use in 3rd party apps. Also fix the events processing in the gestures overlay mechanism. Give better control of the various properties of the overlay through XML attributes. 2009-05-24 23:45:03 -07:00
Romain Guy
380cd96e5d Fix the build 2009-05-22 07:32:41 -07:00
Romain Guy
d6a463a9f2 Add a new API to ListView: setGestures(int). This allows developers to 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. 2009-05-22 01:59:59 -07:00