summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* am 96f660f4: am e63d67ef: Merge "Add extra 2 minute for wifi to shutdown" ↵Xia Wang2011-12-051-6/+8
|\ | | | | | | | | | | | | into ics-mr1 * commit '96f660f4a8b99ff387e17474f2574e4e284ceeb8': Add extra 2 minute for wifi to shutdown
| * Merge "Add extra 2 minute for wifi to shutdown" into ics-mr1Xia Wang2011-12-051-6/+8
| |\
| | * Add extra 2 minute for wifi to shutdownXia Wang2011-12-051-6/+8
| | | | | | | | | | | | Change-Id: I3cf2fbf5de8b96b75d5e460e4ad822a1947ff6e7
* | | Fixing the buildSvetoslav Ganov2011-11-301-0/+1
| | | | | | | | | | | | Change-Id: I125956773dd364b14f8d328e625df3c852001dbf
* | | resolved conflicts for merge of 26f7a81f to masterSvetoslav Ganov2011-11-301-114/+81
|\ \ \ | |/ / | | | | | | Change-Id: I6bf5fd7c0de7945cef84602dbe3a7bbed587700f
| * | Fixing memory leaks in the accessiiblity layer.Svetoslav Ganov2011-11-291-115/+83
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. AccessibilityInteractionConnections were removed from the AccessiiblityManagerService but their DeathRecipents were not unregistered, thus every removed interaction connection was essentially leaking. Such connection is registered in the system for every ViewRootImpl when accessiiblity is enabled and inregistered when disabled. 2. Every AccessibilityEvent and AccessiilbityEventInfo obtained from a widnow content querying accessibility service had a handle to a binder proxy over which to make queries. Hoewever, holding a proxy to a remote binder prevents the latter from being garbage collected. Therefore, now the events and infos have a connection id insteand and the hindden singleton AccessiiblityInteaction client via which queries are made has a registry with the connections. This class looks up the connection given its id before making an IPC. Now the connection is stored in one place and when an accessibility service is disconnected the system sets the connection to null so the binder object in the system process can be GCed. Note that before this change a bad implemented accessibility service could cache events or infos causing a leak in the system process. This should never happen. 3. SparseArray was not clearing the reference to the last moved element while garbage collecting thus causing a leak. bug:5664337 Change-Id: Id397f614b026d43bd7b57bb7f8186bca5cdfcff9
* | am 4f5434f3: am e5715521: am 2d9f4620: Fix buildXia Wang2011-11-281-1/+1
|\ \ | |/ | | | | | | * commit '4f5434f3a3ce51d7d6caf463e5571bb686e2bdd1': Fix build
| * am 2d9f4620: Fix buildXia Wang2011-11-281-1/+1
| |\ | | | | | | | | | | | | * commit '2d9f4620625405b916aa27177a6b5f82f8e5b15d': Fix build
| | * Fix buildXia Wang2011-11-281-1/+1
| | | | | | | | | | | | Change-Id: I465d85e4783763f311ed6ec0a09c1edde9712405
* | | am 6c509ef0: am da822367: am 25261f59: Merge "Increase time between wifi ↵Xia Wang2011-11-286-79/+89
|\ \ \ | |/ / | | | | | | | | | | | | | | | stop and wifi start: set to 2 minutes http://b/issue?id=5629901" into ics-mr0 * commit '6c509ef0bad761feecfd94b66d532ae05b450317': Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901
| * | am 25261f59: Merge "Increase time between wifi stop and wifi start: set to 2 ↵Xia Wang2011-11-286-79/+89
| |\ \ | | |/ | | | | | | | | | | | | | | | minutes http://b/issue?id=5629901" into ics-mr0 * commit '25261f59af0d902f239e541b735f7dc31e714b07': Increase time between wifi stop and wifi start: set to 2 minutes http://b/issue?id=5629901
| | * Increase time between wifi stop and wifi start: set to 2 minutesXia Wang2011-11-216-79/+89
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | http://b/issue?id=5629901 Change on state validation: - When network state is broadcast in other network information, the test activity will record the state change which cause false alarm in the test. Change-Id: I8bd1e8c04ab97116f3a02ccc5543f34a7e651cda
| | * fix for build breakage.Tsu Chiang Chuang2011-11-141-2/+2
| | | | | | | | | | | | Change-Id: Ie324e46a79923813edd2e5e0c34ede79e6ee3eea
* | | am 70a1ee38: am 500afb87: Merge "Fix SCO start stop tests." into ics-mr1Eric Rowe2011-11-283-1/+14
|\ \ \ | |/ / | | | | | | | | | * commit '70a1ee38b24a7c8dfc789db024bdf54f277ddba3': Fix SCO start stop tests.
| * | Fix SCO start stop tests.Eric Rowe2011-11-223-1/+14
| | | | | | | | | | | | | | | Change-Id: Idf292bc244a494e2ffb11359e83c0d072907ea3b Bug-id: http://b/5644683
* | | am 06e4a400: am b3f2890a: am 047c4de2: Merge "Adding mobile microbenchmark ↵Tsu Chiang Chuang2011-11-151-1/+1
|\ \ \ | |/ / | | | | | | | | | | | | | | | tests." into ics-mr0 * commit '06e4a40017f1af75ec58d9d942ef0c4ddad20fd2': Adding mobile microbenchmark tests.
| * | am 047c4de2: Merge "Adding mobile microbenchmark tests." into ics-mr0Tsu Chiang Chuang2011-11-151-1/+1
| |\ \ | | |/ | | | | | | | | | * commit '047c4de2c548960fff428a92099003593cede5f8': Adding mobile microbenchmark tests.
| | * Adding mobile microbenchmark tests.Tsu Chiang Chuang2011-11-102-19/+117
| | | | | | | | | | | | Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
* | | am bc03c74c: am d968670d: Merge "Conservatively trim data usage stats." into ↵Jeff Sharkey2011-11-151-0/+4
|\ \ \ | |/ / | | | | | | | | | | | | | | | ics-mr1 * commit 'bc03c74c485669695805944a655795a6f9890956': Conservatively trim data usage stats.
| * | Merge "Conservatively trim data usage stats." into ics-mr1Jeff Sharkey2011-11-141-0/+4
| |\ \
| | * | Conservatively trim data usage stats.Jeff Sharkey2011-11-141-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of trusting NTP time alone, use the most-conservative of system clock and NTP. Bug: 5584564 Change-Id: I5dd87fc009959b1cf0a7d660e385a0b1a8be238b
| * | | Adding mobile microbenchmark tests.Tsu Chiang Chuang2011-11-102-17/+115
| |/ / | | | | | | | | | Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
* | | Merge "Adding mobile microbenchmark tests."Tsu Chiang Chuang2011-11-102-17/+115
|\ \ \
| * | | Adding mobile microbenchmark tests.Tsu Chiang Chuang2011-11-072-17/+115
| | | | | | | | | | | | | | | | Change-Id: Ifcd67b0265045778965aeff8e213c3929da02c3d
* | | | am 489b4312: am 4c48d2ff: Merge "Make operation counts monotonically ↵Jeff Sharkey2011-11-091-0/+16
|\ \ \ \ | |/ / / |/| / / | |/ / | | | | | | | | | increase." into ics-mr1 * commit '489b431273500db81d35ed43440915187c238f92': Make operation counts monotonically increase.
| * | Make operation counts monotonically increase.Jeff Sharkey2011-11-081-0/+16
| | | | | | | | | | | | | | | Bug: 5585704 Change-Id: I5247a68acdb209a4ef0f5aac18944595c295e6ca
* | | am 808ee95d: Merge "Correct proc file reader, optimizations." into ics-mr1Jeff Sharkey2011-11-037-70/+284
|\ \ \ | |/ / | | | | | | | | | * commit '808ee95dd4244da6ae767d3ddd003ed7b48937d0': Correct proc file reader, optimizations.
| * | Correct proc file reader, optimizations.Jeff Sharkey2011-11-027-70/+284
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Interpret '+' as a space char in the URL query params.Jesse Wilson2011-10-281-5/+9
| | | | | | | | | | | | | | | | | | | | | | | | This changes Uri.decode() to use libcore's implementation of the same behavior. Bug: http://code.google.com/p/android/issues/detail?id=21064 Change-Id: If81005492b12d3aaecc745471e0a28679544a391
* | | Adding APIs to enable reporting virtual view hierarchies to accessibility ↵Svetoslav Ganov2011-10-211-2/+2
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | serivces. Added an interface that is the contract for a client to expose a virtual view hierarchy to accessibility services. Clients impement this interface and set it in the View that is the root of the virtual sub-tree. Adding this finctionality via compostion as opposed to inheritance enables apps to maintain backwards compatibility by setting the accessibility virtual hierarchy provider on the View only if the API version is high enough. bug:5382859 Change-Id: I7e3927b71a5517943c6cb071be2e87fba23132bf
* | Fix use of WebView.loadData() to avoid passing invalid encodingSteve Block2011-10-172-3/+2
| | | | | | | | | | | | | | No change in behavior, as invalid encodings have always been ignored. Bug: 5125738 Change-Id: I23f21ca65a6b14501c74dc2189a55643f1e33c33
* | Use MatrixCursor instead of ArrayListCursor.Jeff Brown2011-10-132-101/+16
|/ | | | | | | | | ArrayListCursor is deprecated, and a duplicate private copy of it is doubly so. Delete some tests that are duplicated in the CTS package. Change-Id: Ib5837b12e39dadba57595906ad621b1feb0d2c0d
* Move battery stats to xt_qtaguid for data stats.Jeff Sharkey2011-10-097-0/+313
| | | | | | | | | | | | | 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
* Merge changes Idbfeb3cc,I03e8e2e7,Iff9eed78Jeff Brown2011-10-071-103/+0
|\ | | | | | | | | | | | | * changes: Fix regression in CursorWindow.getString() Bug: 5332296 Clean up CursorWindow lifetime. Bug: 5332296 Fix regression in CursorWindow.copyStingToBuffer. Bug: 5332296
| * Clean up CursorWindow lifetime.Jeff Brown2011-10-071-103/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 5332296 Removed dead code in SQLiteCursor related to the use of a background query thread. This code could result in CursorWindows being modified concurrently or used after free. This code is broken, unused and is just in the way. Added comments to explain how CursorWindow ownership is supposed to work for AbstractWindowedCursors. (There are still cases where cursor windows get dropped on the floor without being closed. Those will be taken care of in a subsequent patch.) Cleaned up SQLiteQuery.fillWindow to eliminate duplicate code and remove bits that were only needed for background loading, like returning -1. Change-Id: I03e8e2e73ff0c11df76d63f57df4c5ada06ae1cb
* | Accessibility test automation API not working.Svetoslav Ganov2011-10-061-150/+77
|/ | | | | | | | | | | | | 1. Due to a previous change that disabled accessibility if not enabled and installed serivces are present the automation APIs stopped working since they use fake automation service that is not installed. 2. Added clean up of death recipients when binders die. bug:5374662 bug:5239044 Change-Id: I1f3c8cd1d1c79753a4a64e2b8b2963025abb2939
* Track xtables summary, move tether stats, time.Jeff Sharkey2011-10-031-1/+58
| | | | | | | | | | | Begin tracking xtables summary of data usage to compare with values reported from /proc/net/dev. Roll tethering directly into UID stats to trigger UID stats persisting when crossing threshold. Include xtables summary and authoritative time in samples. Bug: 5373561, 5397882, 5381980 Change-Id: Ib7945522caadfbe0864fdf391582dc820f4f371e
* Test to demonstrate NPE in DefaultRequestDirectorJesse Wilson2011-09-271-0/+17
| | | | | | | | | When the HTTP client encountered a server failure while talking through a proxy, it fails with an NullPointerException and not an IOException. Change-Id: I4b287105bf78b832d034557e37e74ce576c7894d Bug: http://b/5372438
* Allow non-required package verifiersKenny Root2011-09-236-0/+79
| | | | | | | | | | * Verifiers can be specified in the AndroidManifest.xml * Those verifiers can respond to the new Intent action * PackageManager API for those verifiers: verifyPendingInstall Change-Id: I4892bce2e6984871e6e93c60a1ca0dae145f5df5
* point upload to the correct url.Tsu Chiang Chuang2011-09-191-3/+10
| | | | Change-Id: Ie60c3fb781b1d8cd01b6f09d1666f788e7db6b3a
* Merge "add upload capabilities to data test."Tsu Chiang Chuang2011-09-163-2/+75
|\
| * add upload capabilities to data test.Tsu Chiang Chuang2011-09-153-2/+75
| | | | | | | | Change-Id: I8465e4b97ff7f48de1150193bcd2b520da1adf00
* | Merge "Be more forgiving in parsing verifier IDs"Kenny Root2011-09-151-4/+33
|\ \
| * | Be more forgiving in parsing verifier IDsKenny Root2011-09-141-4/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | RFC 4648's Base32 is made to be forgiving for users doing manual entry of the digits. For this reason we want to be able to parse lowercase letters as uppercase and number 0 (zero) as letter O along with number 1 (one) as letter I. Change-Id: Ide760aff84f97c3e06af8bf8d006f36c74033a41
* | | Update the public APIs for finding views by text to optionally use content ↵Svetoslav Ganov2011-09-142-0/+24
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "Add verifier device identity"Kenny Root2011-09-134-0/+243
|\ \ | |/ |/|
| * Add verifier device identityKenny Root2011-09-134-0/+243
| | | | | | | | | | | | | | | | This adds a special device identifier that is usable only for device validation. The user will be presented with this number encoded in easily-transcribable Base32 in the Developer options of Settings. Change-Id: I4843f55ee90d689a51d0269b22454ca04c1be7ec
* | Merge "Data usage structure optimizations."Jeff Sharkey2011-09-121-0/+48
|\ \ | |/ |/|
| * Data usage structure optimizations.Jeff Sharkey2011-09-121-0/+48
| | | | | | | | | | | | Driven by traceview hotspots found in Settings UI. Change-Id: I614a049523c526b7fcd12fffdf53a3e4723623e4
* | Merge "Revert encryption mapping for device wipes."Ben Komalo2011-09-112-3/+3
|\ \