summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* am 134b9146: am d66cbc0b: am 598a7aed: Merge "Fix BandwidthTest to report ↵Maxim Siniavine2013-11-071-34/+22
|\ | | | | | | | | | | | | correct stats." into klp-dev * commit '134b91469c2894477dda786c1572b80b596c62ac': Fix BandwidthTest to report correct stats.
| * Fix BandwidthTest to report correct stats.Maxim Siniavine2013-11-061-34/+22
| | | | | | | | | | | | | | The test used to report report stats for a random uid. Fixed it to report stats for the Instrumentation uid or download manager uid, depending on the test. Change-Id: I089162c19e25cbf0dfb05645a9a1018dd7567423
* | Merge "Get rid of coretests/android.text.HtmlTest"Narayan Kamath2013-10-231-247/+0
|\ \
| * | Get rid of coretests/android.text.HtmlTestNarayan Kamath2013-10-231-247/+0
| | | | | | | | | | | | | | | | | | | | | This is a strict subset of android.text.cts.HtmlTest and is currently completely broken (due to ltr changes). Change-Id: If8d5c8a03f96ef3712cd398f297c8872d91403bb
* | | am 759bc4f4: am 7539a5af: am 2f566900: Merge "Ensure the simple CAB appears ↵John Spurlock2013-10-234-0/+81
|\ \ \ | |/ / |/| / | |/ | | | | | | | | below the status bar." into klp-dev * commit '759bc4f421e01460cff92522bf70d52c53b79e85': Ensure the simple CAB appears below the status bar. Add 'no system permission' test app.
| * Add 'no system permission' test app.Brett Chabot2013-10-224-0/+81
| | | | | | | | | | | | | | | | Used in PackageManagerOTATests to verify upgraded system apps are granetd new permissions. Bug 11271490 Change-Id: Idbc07bc043d06ea15dc41285ecbfb8186a7ecc95
* | add a test for BackupData helpers.Chris Wren2013-09-256-0/+299
| | | | | | | | | | Bug: 10821481 Change-Id: I3e28123d36927ae4a22d26378b8bf1cd4e87cfd2
* | am bac2fcac: am 326f4505: Merge "Update the Connectivity Manager test suit ↵Xia Wang2013-09-1611-430/+277
|\ \ | |/ | | | | | | | | | | to use InstrumentationTestCase." into klp-dev * commit 'bac2fcacbef1366327aa3450d6be942688fb6a68': Update the Connectivity Manager test suit to use InstrumentationTestCase.
| * Merge "Update the Connectivity Manager test suit to use ↵Xia Wang2013-09-1611-430/+277
| |\ | | | | | | | | | InstrumentationTestCase." into klp-dev
| | * Update the Connectivity Manager test suit to use InstrumentationTestCase.Xia Wang2013-09-1611-430/+277
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Remove ConnectivityManagerTestActivity as the test activity could be destroyed after a system config change, which cause test failure in the wifi stress test. - Update all tests to use InstrumentationTestCase, which instruments the test package. Bug : 10426067 Change-Id: Ibf6f1f7cffd7a7eabc4cc63c7e033b59274b724e
* | | am 14297141: am 5cf86aa7: Merge "media: Update ImageReader to remove ↵Igor Murashkin2013-09-161-4/+0
|\ \ \ | |/ / | | | | | | | | | | | | | | | MaxImagesAcquiredException" into klp-dev * commit '142971418c8e9ca539dae40f3c2532956f258e6b': media: Update ImageReader to remove MaxImagesAcquiredException
| * | media: Update ImageReader to remove MaxImagesAcquiredExceptionIgor Murashkin2013-09-131-4/+0
| | | | | | | | | | | | | | | | | | | | | | | | * acquiring images now throws IllegalStateException instead of MaxImagesAcquiredException Bug: 10691447 Change-Id: I7ce68f990fb96703705b9181012a28633fea0b7a
* | | am 720b1fce: am 26cb5fd5: Merge "media: Update ImageReader APIs" into klp-devIgor Murashkin2013-09-161-14/+10
|\ \ \ | |/ / | | | | | | | | | * commit '720b1fcecd6c21bf4fbe6d3822e52c8a092b93c4': media: Update ImageReader APIs
| * | media: Update ImageReader APIsIgor Murashkin2013-09-121-14/+10
| |/ | | | | | | | | Bug: 10461757 Change-Id: Ic04e4c41965e3d417b29004f3f08e0cd56b8f4cb
* | am 6c2ad7ac: am b32a8042: Merge "Use setAirplaneMode() API for Connectivity ↵Xia Wang2013-09-113-22/+11
|\ \ | |/ | | | | | | | | | | Manager tests" into klp-dev * commit '6c2ad7ac97ecc23525ff5ad499edaa9316c230e9': Use setAirplaneMode() API for Connectivity Manager tests
| * Use setAirplaneMode() API for Connectivity Manager testsXia Wang2013-09-113-22/+11
| | | | | | | | Change-Id: I2e35c58e4101b6b5fe9efdb5adad922402d38b6f
* | Allow SSL caches to be installed directly on SSLContexts.Narayan Kamath2013-09-111-0/+108
|/ | | | | | | This allows clients to enable ssl session caching without having to use SSLCertificateSocketFactory. Change-Id: Id63b8b31f51c96e73beefe9ecc5fd0cf0a1852c6
* Merge changes I7b3f4c68,I9f022a08 into klp-devJeff Sharkey2013-09-101-8/+8
|\ | | | | | | | | | | * changes: Rename offer() to add(), remove/hide some APIs. Sort order is sticky for session, back leaves.
| * Rename offer() to add(), remove/hide some APIs.Jeff Sharkey2013-09-091-8/+8
| | | | | | | | | | | | | | | | | | Change MatrixCursor offer() to add() based on review feedback. Remove some now-unused XML metadata. Hide document creation, since it's not supported in initial version. Bug: 10577809, 10461706, 10678563 Change-Id: I7b3f4c6899c28f633471ef816bee22bf032aa0d2
* | Remove system user id for cm testsXia Wang2013-09-101-2/+1
|/ | | | Change-Id: I51f500c8e7b4e2963093e20c6f20bcfe020995c9 (cherry picked from commit 575495c29007503566e28004bf60018a824b1f1b)
* Fix the build.Robert Greenwalt2013-09-061-2/+2
| | | | Change-Id: Ia5d29de9db7ea8fd467b3bde551a8cfb95877b41
* Setting MTU size for specific network.sy.yun2013-09-061-0/+24
| | | | | | | | | | | | Able to config network specific MTU size. Normally, the default size of MTU is 1500. US - ATT 1410, TMUS 1440, SPRINT 1422 KR - SKT 1440, KT 1450, LGU+ 1428 JP - KDDI 1420, SoftBank 1340 CA - RGS 1430, FIDO 1430, MTS 1430, BELL 1358, SaskTel 1358 AU - TEL 1400 Bug: 10195070 Change-Id: Ie18650b37a3d44af944f2dae4aa97c04fb12cd5e
* Add a function to replace all the link addresses.Lorenzo Colitti2013-09-051-0/+15
| | | | | Bug: 10232006 Change-Id: I689ce4735999dac2ab5e1fae09d80b1f734292a1
* Merge "Use core-tests-support instead of core-tests" into klp-devKenny Root2013-08-301-1/+1
|\
| * Use core-tests-support instead of core-testsKenny Root2013-08-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | The core-tests-support library is newly created. It doesn't have any tests itself but some support for tests that need to use mocked classes for testing. In this case, some tests are using TestKeyStore for SSL testing in frameworks tests. (cherry picked from commit c2d6728350f3ec80f9b4c8967794558e42516987) Bug: 10092469 Change-Id: Ib38364c607de5a98eb242050eaaf52b22ab8ca57
* | Remove WebViewClassic specific test codeJonathan Dixon2013-08-255-2122/+0
|/ | | | | | | | | Bug: 10427705 These tested internals of WebViewClassic and will no longer build when that is removed Change-Id: I42af538dcb0343e9eff0b3fa85d7ff39f19c7c61
* Modify LinkProperties address update methods.Lorenzo Colitti2013-08-201-0/+56
| | | | | | | | | | | | | | 1. Make addLinkAddress a no-op if the address already exists. 2. Make addLinkAddress, addStackedLink and removeStackedLink return a boolean indicating whether something changed. 3. Add a removeLinkAddress method (currently there is no way of removing an address). 3. Move hasIPv6Address from ConnectivityService to LinkProperties, where it belongs. Bug: 9625448 Bug: 10232006 Change-Id: If641d0198432a7a505e358c059171f25bc9f13d5
* Resized thumbnails; async; extend MatrixCursor.Jeff Sharkey2013-08-171-0/+50
| | | | | | | | | | | | | | | | | When requesting thumbnails, check if their dimensions are larger than requested, and downscale to avoid memory pressure. Load them async and with LruCache. Extend MatrixCursor so that RowBuilder can offer() columns without requiring they know the projection map. This makes it easier to respond to query() calls, where the remote side controls the projection map. Use it to handle custom projections in external storage backend. Update date/time formatting to match spec. Bug: 10333418, 10331689 Change-Id: I7e947a8e8068af8a39b55e6766b3241de4f3fc16
* pause/resume for AnimatorsChet Haase2013-08-122-5/+159
| | | | | | | | | | | | It is now possible to pause Animator-based animations. Pausing an animator causes it to hold the current time/value indefinitely, or until end/cancel/resume is called. When resume() is called, it continues from where it left off. There is a new listener interface on Animator, AnimatorPauseListener, which can be used to listen to pause/resume events. Change-Id: I77d1535e792fb7bf349f549a0ac0a0d85958cb47
* Merge "Simplify LinkPropertiesTest."Lorenzo Colitti2013-08-081-84/+65
|\
| * Simplify LinkPropertiesTest.Lorenzo Colitti2013-08-081-84/+65
| | | | | | | | | | | | | | Instead of converting IP addresses to strings throughout the test, do so once at the beginning. Change-Id: I7f0dae5d2e9e2cdc6ec808e2cf71197ba6ade0a4
* | Add more virtual display tests.Jeff Brown2013-08-072-1/+513
|/ | | | | | | | We can't test everything in CTS because some features require system permissions. So this is another copy of the CTS test with more stuff that we can build with the system cert. Change-Id: Ied5a456a0810d38d307b6dfbad0f770cb480b4ee
* Add accessors for all addresses and clarify compare* methodsLorenzo Colitti2013-08-011-4/+23
| | | | | | | | | | | | | | 1. Add a method to return all addresses and all LinkAddresses on all links (both base links and stacked links). We already had one for routes, but did not yet have any for addresses. 2. Rename compareRoutes to compareAllRoutes, because unlike the other compare* methods, it looks at all interfaces. Update what appears to be its only caller. 3. Update the documentation of the compare* methods to match reality (they don't return lists) and clarify whether they look at all links or only the base link. Change-Id: Ie22e6c7f163d5de8e407248b45171dc28382d2d3
* am b8292830: resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aospElliott Hughes2013-06-281-2/+2
|\ | | | | | | | | * commit 'b8292830f79fc76ffb9a1be5cd316212ac494d03': Switch frameworks/base over from @hidden Charsets to public StandardCharsets.
| * resolved conflicts for merge of a920f25f to jb-mr2-dev-plus-aospElliott Hughes2013-06-281-2/+2
| |\ | | | | | | | | | Change-Id: I3349f8d2e6715171e2677c1385122ceb2810c1f6
| | * resolved conflicts for merge of fca0f92e to stage-aosp-masterElliott Hughes2013-06-281-2/+2
| | |\ | | | | | | | | | | | | Change-Id: I4791f0ffa324a313b8390fbde6d8f82f716ecf74
| | | * Switch frameworks/base over from @hidden Charsets to public StandardCharsets.Elliott Hughes2013-06-281-2/+2
| | | | | | | | | | | | | | | | | | | | Bug: 3484927 Change-Id: I5d136d2ee629588538602766a182ae14ce5fc63c
* | | | am 67f7d8fb: am 6c042b6d: am a5a2de55: Merge "Add ALPN support to SSL socket ↵Kenny Root2013-06-271-8/+8
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | factory" * commit '67f7d8fbd5ad84681fbdfea184ce538c6834896a': Add ALPN support to SSL socket factory
| * | | am 6c042b6d: am a5a2de55: Merge "Add ALPN support to SSL socket factory"Kenny Root2013-06-271-8/+8
| |\ \ \ | | |/ / | | | | | | | | | | | | * commit '6c042b6d678edea0f936da994f85ba62f9a1950e': Add ALPN support to SSL socket factory
| | * | am a5a2de55: Merge "Add ALPN support to SSL socket factory"Kenny Root2013-06-271-8/+8
| | |\ \ | | | |/ | | | | | | | | | | | | * commit 'a5a2de55082b1f2a9ec0b99962a88063ac6d1bbf': Add ALPN support to SSL socket factory
| | | * Add ALPN support to SSL socket factoryKenny Root2013-06-261-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the ability to use Application-Layer Protocol Negotiation (ALPN) through the SSLCertificateSocketFactory. ALPN is essentially like Next Protocol Negotiation (NPN) but negotiation is done in the clear. This allows the use of other protocols on the same port (e.g., SPDY instead of HTTP on port 80). Change-Id: Ie62926b455e252c4c98670bbbecc1eb5c6f13990
* | | | am 7ea4e277: am 8fcb169f: am edc3bb66: Disable a flaky test caseXia Wang2013-06-171-0/+5
|\ \ \ \ | |/ / / | | | | | | | | | | | | * commit '7ea4e277fd7bdb7e2aa230509f57c1af39f5bf4b': Disable a flaky test case
| * | | am 8fcb169f: am edc3bb66: Disable a flaky test caseXia Wang2013-06-171-0/+5
| |\ \ \ | | | | | | | | | | | | | | | | | | | | * commit '8fcb169f7989123f993adfac5894d1ad5f35ed0b': Disable a flaky test case
| | * | | Disable a flaky test caseXia Wang2013-06-171-0/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I4ef780ed0c5394b67aa002baefc00e835018c4a0
* | | | | Cache AndroidBlockGuardPolicy to avoid allocation.Jeff Sharkey2013-06-141-0/+34
|/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Every incoming Binder call ends up triggering a BlockGuardPolicy update, which would thrash between new AndroidBlockGuardPolicy instances and BlockGuard.LAX_POLICY, causing GC churn. This change avoids the extra allocations by recycling a single AndroidBlockGuardPolicy in a ThreadLocal. Worst-case thrashing case is now 10% faster; from 7.46us to 6.65us. Bug: 9424568 Change-Id: I9c3b1c097a2aecc9b1f109a824cf3ea319fb3393
* | | | am ac561b8b: Merge "Add option to set frequency band" into jb-mr2-devXia Wang2013-06-033-12/+117
|\ \ \ \ | |/ / / | | / / | |/ / |/| | * commit 'ac561b8bdd52a6ac5e4f9b92f1033cd385f149d8': Add option to set frequency band
| * | Add option to set frequency bandXia Wang2013-05-313-12/+117
| | | | | | | | | | | | | | | | | | | | | | | | | | | - The reason to add the test runner is to set frequency band when the runner is created which happens before the test activity is actually launch. As the test activity will disable/enable wifi when it is created, this cycle will ensure the frequency is set successfully. Change-Id: Ie9de3d8bab3dda7d4bb9ba604ddd5cb33164e397
* | | am 4550dba5: Merge "Add wifi association test" into jb-mr2-devXia Wang2013-05-082-0/+209
|\ \ \ | |/ / | | | | | | | | | * commit '4550dba53d49a689de6000e5e5864c28f91dd945': Add wifi association test
| * | Add wifi association testXia Wang2013-05-082-0/+209
| | | | | | | | | | | | Change-Id: I1f3f49a1857835522c9c5e02ed4f530b83df1d02
* | | resolved conflicts for merge of 1f6e789b to jb-mr2-dev-plus-aospKenny Root2013-04-292-2/+2
|\ \ \ | |/ / |/| / | |/ Change-Id: I06c05d637613215b6d83df3e29cd495f6a5a0176