summaryrefslogtreecommitdiffstats
path: root/tests/AndroidTests/res
Commit message (Collapse)AuthorAgeFilesLines
* More framework tests cleanup.Brett Chabot2010-04-0157-1331/+0
| | | | | | | | | | | | Move all tests for android.* classes from tests/AndroidTests and tests/CoreTests into framework/base/<core|graphics>/tests. Consolidate all tests for java.* classes to tests/CoreTests. Eventually hopefully these will be moved to dalvik/ somewhere. Remove tests/AndroidTests entirely. Change-Id: I86584d086ab7bd045bb38a10b699907805298a95
* Move PackageManagerTests and AsecTests.Brett Chabot2010-03-267-0/+0
| | | | | | | | Remove PackageManagerTests test's from continuous due to flakiness. merged from abandoned master. Change-Id: I0a542df9df572c37bd1aa987cdc9fb2f95001a7c
* Rework permissions to be retained when an app is temporarily uninstalled.Dianne Hackborn2010-03-182-0/+0
| | | | | | | | | | | This allows us to keep the assigned permissions when apps are temporarily removed due to the SD card being unmounted, and also if you use the facility to uninstall an app but keep its data. Also fixes issue #2515189: Potential permission spoofing attack in Android (external bug 7166) Change-Id: I2a120ec938552028c989f9e0e890c32773957738
* Re-arrange android-common so framework no longer links with it.Dianne Hackborn2010-02-256-0/+106
| | | | | | | This is the framework part, moving classes around so the framework no longer needs to link to android-common. Makes some APIs public, others that didn't need to be public are private in the framework, some small things are copied.
* Move package from internal to external and vice versa.Suchi Amalapurapu2010-02-194-0/+0
|
* Add new manifest option for install locationSuchi Amalapurapu2010-02-104-0/+0
| | | | | | | | | | | | Change recommendAppInstallLocation api add code to parse new attribute. Define flags in PackageInfo Add new settings attributes for enabling setting and value for install location Some tests The policy for install location: if explicitly set in manifest as internal only we try to install the app only on internal storage. if set to preferExternal, we try to install it on sdcard if possible. If not we fall back to internal. If the user enables setting SET_INSTALL_LOCATION(which will always be set to false in final release builds) and sets a prefered location, we try to honour it.
* Some tests for install and replace package.Suchi Amalapurapu2010-02-031-0/+0
|
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-2936-2390/+1
| | | | | | | | | sources. Most of these are file moves; a couple notable exceptions are the changes due to the move, and fixing up test code: - database/DatabaseCursorTest.java - database/DatabaseStatementTest.java - net/UriTest.java
* Deprecate fill_parent and introduce match_parent.Romain Guy2010-01-088-28/+28
| | | | Bug: #2361749.
* moved the gdata library to vendor/googleFred Quintana2009-11-245-77/+0
|
* Add unit tests for Japanization and fix several bugs.Daisuke Miyakawa2009-11-131-0/+10
| | | | Internal issue number: 2195990
* Support vCard format emitted by Windows Mobile 6.5, which contains invalid ↵Daisuke Miyakawa2009-11-091-0/+10
| | | | | | | | "VALUE" params and "AGENT" line. Internal Issue number: 2247192
* Make vCard importer handle "PAGER" phone number correctly.Daisuke Miyakawa2009-11-051-0/+5
| | | | | | Add tests for it. Internal issue number: 2239492
* Develop ContentResolver-based unit tests for vCard importer and fix vCard codeDaisuke Miyakawa2009-10-083-0/+27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | along with the tests Make test code not only check the validity of VCardParser but also check the validity of the data insertion part of ContactStruct class, using MockContentResolver/MockContentProvider. With these tests, we are now really sure vCard side appropriately sends vCard data into the resolver. Fix ContactStruct so that it properly handles ORG property and TITLE property, though it still does not see Group information. There's no vCard found which uses Group and ORG and TITLE in convolted orders... e.g. Current implementation misinterprets the following case, but we're not sure whether any exporter emits data in this kind of complicated form... group2.ORG:ComparyA group1.ORG:CompanyB group1.TITLE:TitleForA group2.TITLE:TitleForB Expected: CompanyA + TitleForA, CompanyB + TitleForB Actual: CompanyA + TitleForB, CompanyB + TitleForA Also change the parser part a little, so that some component can be reused via the other part of vCard code. Added several additional files for the tests, which ensures that - ORG/TITLE properties are handled as we expect. - PREF is appropriately handled and passed to the resolver as "IS_PRIMARY" flag. -- We discarded the code which ensures that "IS_PRIMARY" is added to only one field in each type, after the local discussion (the duplication or no primary state should be handled by the resolver). Internal Issue number: 2160039
* Refactor VCard-related code.Daisuke Miyakawa2009-07-173-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move VCard code from android/syncml/pim to android/pim since the code is not related to SyncML at all; Previous code was misplaced, I suppose. Reorganize "Builder" structure: Create VCardBuilderBase.java as a base class for "Builder" classes. Separate VCardDataBuilder to several components. Now, VCardBuilder is able to accept EntryHandlers (interface) which handle each VCard entry. Add EntriCommitter and ProgressShower as ones of EntryHandler implementations. Stop using VNode/PropertyNode in the actual importing path. Instead, VCard importer directly creates ContactStruct object. PropertyNode is still used in test codes, since it does not drop any kind of information while ContactStruct does. All codes are made hidden (with package.html) like the files in syncml directory; These files are only for Contacts app. Issue - due to internal issue 1975498, any performance test cannot be conducted. Next todos - Add tests for ContactStruct. - remove android/syncml directory. - Rename several methods; old names are based on V??? structure, which does not make sense in the current code. - Use ContentProviderOperation instead of relying on beginTransaction()/endTransaction(). - Use ContactsContact in Eclair Related internal issues - 1784580, 1728351
* Run search dialog in the system process.Bjorn Bringert2009-06-152-3/+11
| | | | | | | | | | | | | | 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.
* Squashed commit of the following:Robert Greenwalt2009-04-229-12/+78
| | | | | | | | | | | | | | | | | | commit 012b56fc607cf243cf4b29cb2a5f172bcbe0aecd Author: Robert Greenwalt <robdroid@android.com> Date: Wed Apr 22 14:31:26 2009 -0700 Additional fixes and tests for density. commit 91fdc8e187551ae69e0029a4325fb3ad38fe411b Author: Robert Greenwalt <robdroid@android.com> Date: Tue Apr 14 14:39:00 2009 -0700 Fix runtime resource selection logic. Fix isBetterThan so that o or this may be supperior at any stage. Used to only handle this-better or tie at each stage, biasing against o. Also allows reset of unit test to succeed. Fixes bug 1709202.
* Automated import from //branches/donutburger/...@142509,142509Daisuke Miyakawa2009-03-247-0/+177
|
* auto import from //branches/cupcake_rel/...@140373The Android Open Source Project2009-03-1833-45/+484
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0351-0/+2943
|
* auto import from //depot/cupcake/@135843The Android Open Source Project2009-03-0351-2943/+0
|
* Code drop from //branches/cupcake/...@124589The Android Open Source Project2008-12-1751-0/+2943