summaryrefslogtreecommitdiffstats
path: root/core/tests/coretests/res
Commit message (Collapse)AuthorAgeFilesLines
* Apply MMAC changes from master.Stephen Smalley2013-07-1839-39/+846
| | | | Change-Id: I01f2a9084dfe7886087b1497070b0d7f2ad8477e
* Add seinfo parsing to PackageManagerService.rpcraig2013-07-184-0/+73
| | | | | | | | | | | | | | | | | This patch set allows the PMS to parse the mac_permissions.xml file which contains the seinfo values. Each package that is installed on the device will be assigned an seinfo value based on policy. This seinfo value will help label the app process and data directory. Modifications also include, adjustments to ApplicationInfo.java to store the seinfo tag per package, adjustments to installd to communicate the seinfo tag to libselinux, and finally a set of unit tests. Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil> Change-Id: I61ad1ea12fb6a9a6d0b108ec163bc4bf4c954b58
* Handle multi-user mountObb() requests.Jeff Sharkey2012-09-253-0/+0
| | | | | | | | | | | | | | | | | | | | | Since emulated external storage paths differ based on execution context, carefully fix up paths for various use-cases: 1. When sending paths to DefaultContainerService, always scope OBB paths as belonging to USER_OWNER. 2. When sending paths to vold, always build emulated storage paths visible to root. 3. Always use the original untouched path when talking with apps. Mount OBB containers using shared app GID, so that an app can read the mount point across users. Handle legacy paths like "/sdcard" by resolving the canonical path before sending to MountService. Move tests to servicestests, and add tests for new path generation logic. Bug: 7212801 Change-Id: I078c52879cd08d9c8a52cc8c83ac7ced1e8035e7
* Begin collecting xtables iface counters.Jeff Sharkey2012-05-012-8/+4
| | | | | | | | | | | | Add method to parse new iface_stat_fmt proc stats, or return null when kernel support is unavailable. Add test and remove older, unused parsing code. Create new "xt" recorder to persist the new xtables counters when available. Add SSID support to NetworkIdentity to fix policy tests. Bug: 6422414 Change-Id: I77f70e9acb79a559ab626f3af5c4f3599801ed43
* Don't allow children of a SizeAdaptiveLayout to measure outside their ↵Chris Wren2012-04-241-0/+40
| | | | | | | declared range of valid sizes. Bug: 6377749 Change-Id: Ie706006eee9c0ed8dda468212a652941b8e20be0
* fix press feedback on notification rowsChris Wren2012-04-202-0/+62
| | | | | Change-Id: I50de2f4d6142c2553428abc853c820f4354d0640 Bug: 6362246
* A layout that switches between its children based on the requested layout ↵Chris Wren2012-04-1715-0/+562
| | | | | | height. Change-Id: I5a4e5892fbed7cab2470e458a38accbbcb05ae51
* Build "install" resource for PMS testsKenny Root2012-04-151-0/+0
| | | | | | | | | | All the APKs in the FrameworkCoreTests's res/raw directory should be built by source. This change makes one more built from source that was causing test failures with mismatched certificates. Change-Id: I1baed15477ee39c45d3d77f9b02b81f771a16ca2
* Fix bug #4972463 Update CTS tests for TextView textDirectionFabrice Di Meglio2012-03-051-27/+0
| | | | | | - move unit tests from Frameworks to CTS Change-Id: I4598d8e99850f49e660c5bb3fb6025e71c635635
* Build all test apks as raw resource in FrameworksCoreTests.Ying Wang2012-01-107-0/+0
| | | | | Bug: 5848975 Change-Id: I395013ded1c29e0914f72e03d0abd60bb4a7973a
* Move the frameworks/base hostname verifier into libcore. Part 2/2Jesse Wilson2011-12-276-106/+0
| | | | | Bug: http://b/5619726 Change-Id: I165eb3befcef104ff56ffb466c87c60b632f3194
* Correct proc file reader, optimizations.Jeff Sharkey2011-11-023-48/+71
| | | | | | | | | | | | | | Moved away from BufferedReader, which only reads the first 8KB of some proc files because it aggresively fills its buffer. Optimized proc parsing, now double the speed. Tests to cover. Log when NetworkStats counters roll backwards when subtracting, and optimizations around findIndex(). When system removes UID, also remove from last stats snapshot to avoid xt counters from rolling backwards. Bug: 5472949, 5458380 Change-Id: I07c08fe5233156fac2b84450f6291868bf9bfaf2
* Move battery stats to xt_qtaguid for data stats.Jeff Sharkey2011-10-095-0/+62
| | | | | | | | | | | | | Replace TrafficStats calls by reading values from xt_qtaguid kernel module. To keep BatteryStatsImpl changes lightweight, cache recently parsed stats. Tracks mobile ifaces from ConnectivityService. Refactor xt_qtaguid parsing into factory outside of NMS. Add stats grouping based on UID, and total based on limiting filters like iface prefix and UID. Bug: 4902271 Change-Id: I533f116c434b77f93355bf95b839e7478528505b
* Update the public APIs for finding views by text to optionally use content ↵Svetoslav Ganov2011-09-141-0/+1
| | | | | | | | | | | | | | | description. 1. Added flags to the search method to specify whether to match text or content description or both. 2. Added test case for the seach by content description. 3. Updated the code in AccessibilityManager service to reflect the latest changes there so test automation service works - this is the fake service used for UI automation. Change-Id: I14a6779a920ff0430e78947ea5aaf876c2e66076
* Intra-process view hierarchy interrogation does not work.Svetoslav Ganov2011-08-241-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The content retrieval APIs are synchronous from a client's perspective but internally they are asynchronous. The client thread calls into the system requesting an action and providing a callback to receive the result after which it waits up to a timeout for that result. The system enforces security and then delegates the request to a given view hierarchy where a message is posted (from a binder thread) describing what to be performed by the main UI thread the result of which it delivered via the mentioned callback. However, the blocked client thread and the main UI thread of the target view hierarchy can be the same one, for example an accessibility service and an activity run in the same process, thus they are executed on the same main thread. In such a case the retrieval will fail since the UI thread that has to process the message describing the work to be done is blocked waiting for a result is has to compute! To avoid this scenario when making a call the client also passes its process and thread ids so the accessed view hierarchy can detect if the client making the request is running in its main UI thread. In such a case the view hierarchy, specifically the binder thread performing the IPC to it, does not post a message to be run on the UI thread but passes it to the singleton interaction client through which all interactions occur and the latter is responsible to execute the message before starting to wait for the asynchronous result delivered via the callback. In this case the expected result is already received so no waiting is performed. bug:5138933 Change-Id: I382e2d8689f5189110226613c2387f553df98bd3
* Add operation counts to network statistics.Jeff Sharkey2011-07-291-0/+0
| | | | | | | | | | | | | | | | Provide API to increment "operation counts" for a UID and tag, used to eventually derive bytes/operation stats. Internally is stored at network layer, but should belong at data layer. Switch profiling to use data layer stats, which are emulated by summarizing network layer details. Read packet counts from new /proc/ columns and collect them into NetworkStatsHistory. Prevent double-counting by ignoring values from first snapshot. Watch for duplicate /proc/ entries. Update tests to verify packet and operation counters. Bug: 5052136, 5097392 Change-Id: I1832f65a2b8a9188f8088f253474a667c21a2f09
* Merge "Fix Animator cancel() behavior"Chet Haase2011-07-121-0/+11
|\
| * Fix Animator cancel() behaviorChet Haase2011-07-121-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously, calling cancel() on an Animator would cause onAnimationCancel events to be sent to all listeners. This was confusing for listeners that were keying off this event for performing other actions, when the original animator wasn't truly canceled (because it wasn't even running, or had already been canceled earlier). This change hinges listener notification on the animator actually running; no events are sent otherwise. Also added the first set of Animator tests to verify that this behavior is correct. Change-Id: I81ab56559b5c0343c8dc7880e1c8235f3020975b
* | Fix View reset of layoutDirection and textDirectionFabrice Di Meglio2011-07-112-0/+29
|/ | | | | | | | - do it in onDetachedFromWindow() - make naming consistent too - update unit tests Change-Id: I320fcdbf75166bae793c4409e7344608b696667f
* Interrogation of the view hierarchy from an AccessibilityService.Svetoslav Ganov2011-06-062-0/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Views are represented as AccessibilityNodeInfos to AccessibilityServices. 2. An accessibility service receives AccessibilityEvents and can ask for its source and gets an AccessibilityNodeInfo which can be used to get its parent and children infos and so on. 3. AccessibilityNodeInfo contains some attributes and actions that can be performed on the source. 4. AccessibilityService can request the system to preform an action on the source of an AccessibilityNodeInfo. 5. ViewAncestor provides an interaction connection to the AccessibiltyManagerService and an accessibility service uses its connection to the latter to interact with screen content. 6. AccessibilityService can interact ONLY with the focused window and all calls are routed through the AccessibilityManagerService which imposes security. 7. Hidden APIs on AccessibilityService can find AccessibilityNodeInfos based on some criteria. These API go through the AccessibilityManagerServcie for security check. 8. Some actions are hidden and are exposes only to eng builds for UI testing. Change-Id: Ie34fa4219f350eb3f4f6f9f45b24f709bd98783c
* Merge commit '5e3562a5' into mConley Owens2011-04-271-0/+12
|\ | | | | | | | | | | | | Conflicts: core/java/android/view/ViewRoot.java Change-Id: Idd1eb8309e169eae2de3838f7969606df8097b87
| * onDetachedFromWindow is called before onAttachedToWindowMartin Wallgren2011-04-131-0/+12
| | | | | | | | | | | | | | | | | | | | | | Multiple threads are adding messages about the current state of the views to the main looper. This can cause onDetachedFromWindow to be posted on the looper before onAttachedToWindow. This change will make sure to only dispatch onDetachedFromWindow if we have previously dispatched onAttachToWindow. Change-Id: Ibc7cbcafb098bc000d2ef5480d2110d3fff4d55a
| * Do not check features in PackageManagerService DO NOT MERGEKenny Root2011-01-311-0/+0
| | | | | | | | | | | | | | | | | | | | | | PackageManagerService shouldn't check features that a package declares that it uses because this will cause problems in the future when we add more features that older phones didn't explicitly declare. We must rely on markets to know about phones and filter them for us to avoid this situation. Bug: 3409434 Change-Id: I0d51b2de33d8110edc6824af4b5b8c901f96077f
* | Added tests for WebView accessibility no JSSvetoslav Ganov2011-02-091-0/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | bug:3421690 This change is related to change:Idfec7e6a 1. Added tests for cases in which the previous implementation was not behaving as expected. 2. Refatered the tests to be intrumentation tests since the code under tests uses the DOM element dimensions to determine visibility and if the the WebView has no size i.e. not attached to ViewRoot the size of all DOM elements is zero forcing all tests to fail. Change-Id: Ib4c01af8feb09f2b2a6b9d906e08bfaaa9e9bc74
* | Do not check features in PackageManagerServiceKenny Root2011-01-311-0/+0
| | | | | | | | | | | | | | | | | | | | | | PackageManagerService shouldn't check features that a package declares that it uses because this will cause problems in the future when we add more features that older phones didn't explicitly declare. We must rely on markets to know about phones and filter them for us to avoid this situation. Bug: 3409434 Change-Id: I419a5b936be3572b83a485081a6c81b2f1c8741c
* | Fix check for required featuresKenny Root2011-01-071-0/+0
| | | | | | | | | | | | | | | | | | The required features check was in an null check for usesLibraries, so it wasn't checking for required features when an application did not use a library. Bug: 3331713 Change-Id: I96d366ba00d4962b84f3796be97e2b622eb331a5
* | am 424963ef: am 5dda76a7: Adding some StorageManager integration test ↵Neal Nguyen2010-11-017-0/+0
|\ \ | |/ | | | | | | | | | | infrastructure and some basic tests. * commit '424963ef8d46c34d67ea24d25735944c0d87409c': Adding some StorageManager integration test infrastructure and some basic tests.
| * Adding some StorageManager integration test infrastructure and some basic tests.Neal Nguyen2010-11-017-0/+0
| | | | | | | | | | | | More interesting tests to come in the form of host-based tests. Change-Id: Ifdedf7ef26ed9889871c902af20164df0498cf07
* | am 8fda1636: am bdf8034c: Merge "OBB: use PBKDF2 for key generation." into ↵Kenny Root2010-10-152-0/+0
|\ \ | |/ | | | | | | | | | | | | | | gingerbread Merge commit '8fda1636e3e35f060b9046294efd3c062a1fdb84' * commit '8fda1636e3e35f060b9046294efd3c062a1fdb84': OBB: use PBKDF2 for key generation.
| * OBB: use PBKDF2 for key generation.Kenny Root2010-10-132-0/+0
| | | | | | | | | | | | | | | | | | Switch to using PBKDF2 for the key generation for OBBs. Any previously generated OBBs will stop being read correctly. A small pbkdf2gen program is available to allow generation of appropriate keys with the salts. Bug: 3059950 Change-Id: If4305c989fd692fd1150eb270dbf751e09c37295
* | am 36455d03: am a3ee5c03: Merge "Add MountService tests and fix a bug it ↵Kenny Root2010-10-083-0/+0
|\ \ | |/ | | | | | | | | | | | | | | found" into gingerbread Merge commit '36455d03256024981b1bf21557722a010b5e092a' * commit '36455d03256024981b1bf21557722a010b5e092a': Add MountService tests and fix a bug it found
| * Add MountService tests and fix a bug it foundKenny Root2010-10-063-0/+0
| | | | | | | | | | | | | | | | | | | | | | Add some MountService tests that are based partially on some stuff done in PackageManagerTests. This allows us to test the OBB changes in an easy way. Also, it found some bugs in the DefaultContainerService connection state machine, so fix those while we're at it. Change-Id: I18f38593be754eb32fb6e842f88eec47e2beefce
| * Fix build breakage.Daisuke Miyakawa2010-09-025-2/+25
| | | | | | | | Change-Id: If519f1730266f10a7852af209127aa4754a7ef9d
| * Make vCard importer/exporter aware of multi-byte parameters.Daisuke Miyakawa2010-08-171-0/+5
| | | | | | | | | | Bug: 2922186 Change-Id: Ic877940242d87ef918bf8d4dac601d37b296259b
* | Make vCard code a separated static library.Daisuke Miyakawa2010-05-2015-235/+0
|/ | | | | | | | | | | | | | - Move the library to a separate directory in framewokr/base, and rename its package from android.pim.vcard to com.android.vcard. - Move all tests for the library under the directory. - Confirm all tests for vCard are successful. It would be better for us to have this directory somewhere else (like external/). But I'll submit this here now and move it to the right place as soon as possible. From the view of build mechanism, we can do that immediately. BUG: 2689523 Change-Id: I435e10571b7160bfcc029bed7c37aaac1c6fd69a
* Fix 2578016.Suchi Amalapurapu2010-04-0728-0/+0
| | | | | | | | Add some checks before moving package. Checkin test code. Regenerate test apks Change-Id: I769ece128fefd3429ce93208a77d887c7759d2e1
* More framework tests cleanup.Brett Chabot2010-04-016-0/+106
| | | | | | | | | | | | 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
* Change certificate policy.Suchi Amalapurapu2010-03-3121-0/+0
| | | | | | | | | | | | | | | | | The certificates of the package and its shared user certificates are initialized only when installing the package. When scanning the packages, the certificates are collected from the apk if the time stamp changes. If not the one's from PackageSetting(read from packages.xml) are reused. Removed mergeSignatures and updateSignatures since we don't support this any more. Also fix some bugs related to reinstalling failed upgrades. Some unit tests. Change-Id: Ibdeff170bd386d723f774136b18e0ad59d9cdabb
* 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
* Phase 2 of test cleanup: moving test files from AndroidTests closer to their ↵Neal Nguyen2010-01-2929-0/+535
| | | | | | | | | 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
* Phase 2 of test file cleanup: relocating test files from FrameworkTest ↵Neal Nguyen2010-01-2790-0/+3489
closer to their sources in core. In addition to the file moves, the package names of the tests have been updated and adjusted to match their new locations.