summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* Data structures for communication with network scorer apps.Jeff Davidson2014-04-162-0/+162
| | | | | | | | | | NetworkKey represents the necessary information to identify a network to be scored. ScoredNetwork contains the key to identify a network as well as a score to be used when evaluating that network (as a curve based on RSSI). Bug: 13767776 Change-Id: I6bfebd105c9381e615513167b4332b767b43a23a
* Fix ugly black background when expanding/collapsing notifications.Jorim Jaggi2014-04-111-11/+0
| | | | | Bug: 13635952 Change-Id: I7a0f434172db4583f904e6817d94ca12d3b117bc
* Merge "A stress test for concurent multidex extraction."Yohann Roussel2014-04-09106-0/+322572
|\
| * A stress test for concurent multidex extraction.Yohann Roussel2014-04-02106-0/+322572
| | | | | | | | Change-Id: Iab2427a8867a2a7a9a12e2557b2e970430fa6356
* | Merge "Revert "Refactor IpConfiguration from WifiConfiguration""Jaewan Kim2014-04-072-8/+8
|\ \
| * | Revert "Refactor IpConfiguration from WifiConfiguration"Jaewan Kim2014-04-072-8/+8
| | | | | | | | | | | | | | | | | | This reverts commit 1284767ceb1affa6d5af77fd26ccf7322df48a6d. Change-Id: Ibccea84e5dc44c1b8954779660e0721b27f762d4
* | | Merge "Refactor IpConfiguration from WifiConfiguration"Jaewan Kim2014-04-072-8/+8
|\ \ \ | |/ /
| * | Refactor IpConfiguration from WifiConfigurationJaewan Kim2014-04-072-8/+8
| | | | | | | | | | | | | | | Bug: 7606609, Bug: 8687763 Change-Id: I736eb3c73a8ffc8f137a04a5ea66ee564dc2b530
* | | DownloadManager test will wait until certain progress, is madeMaxim Siniavine2014-04-032-19/+25
| |/ |/| | | | | | | | | | | | | during download before moving to next stage of the test. Increase the timeout for waiting for download to complete. Change-Id: I61820a9525256f4f2e16571e1ac075d2f5268cae
* | Expand install observer semanticsChristopher Tate2014-03-271-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | ...and now fail conservatively when two apps both attempt to define the same permission. Apps signed with the same certificate are permitted to redefine permissions. We also finally have a (hidden) interface class for observing package installation so that we can now rev the interface without breaking existing callers. Bug 13551375 Change-Id: Ifa4e59154dcccbb286ee46a35a6f25e4ad0f0f01
* | Merge "Revert "Expand install observer semantics""Glenn Kasten2014-03-261-6/+4
|\ \
| * | Revert "Expand install observer semantics"Glenn Kasten2014-03-261-6/+4
| | | | | | | | | | | | | | | | | | This reverts commit ab8a501f255b272af887acb0e66eb71cdf24c755. Change-Id: I4ab4ae1a96efa2adf9d5a513793d8b84eef38b4e
* | | Merge "Expand install observer semantics"Christopher Tate2014-03-261-4/+6
|\ \ \ | |/ / | | / | |/ |/|
| * Expand install observer semanticsChristopher Tate2014-03-251-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | ...and now fail conservatively when two apps both attempt to define the same permission. We also finally have a (hidden) interface class for observing package installation so that we can now rev the interface without breaking existing callers. Bug 13551375 Change-Id: I3a286d024a30e812ee4b098f345401df3c00e178
* | Add one test application for multidex.Yohann Roussel2014-03-2488-0/+321924
|/ | | | | | | This application is intended to be run by SupportMultidexHostTest. Change-Id: Icace956cd68e03735fd8c73f877d911f01098f54
* am ac0f9ffd: am da07fe64: am eeb36c5c: am d88d8174: Merge "Null pointer ↵Jeff Sharkey2014-03-171-0/+13
|\ | | | | | | | | | | | | exception in FileRotator.java" * commit 'ac0f9ffda2a7e48d2d641654dafd11b8da39830a': Null pointer exception in FileRotator.java
| * Null pointer exception in FileRotator.javaMikael Gullstrand2014-03-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes a null pointer exception is thrown when examining files managed by the file rotator. The logs from the test show that the Wifi state is changed a large number of times. On every state change, a write operation is initiated on the file system. This will eventually result in out of memory and the call to mBasePath.list() in the maybeRotate(...) method in FileRotator.java will return null so the iteration will throw a NullPointerException. Change-Id: I5d5980d9593bc9ec75281169ca27ee591809903f
* | Fixes for download manager test.Maxim Siniavine2014-03-122-226/+200
| | | | | | | | | | | | | | | | | | | | | | When checking that the download is in progress, check the number number of bytes downloaded as reported by download manager, rather than looking at the file size. When waiting for the download to complete rely on the received broadcast. Bug: 13326931 Change-Id: I4c2431dd71e17602e758bc482be185683040ea98
* | Merge "Fix state transition verification."Xia Wang2014-03-081-13/+20
|\ \
| * | Fix state transition verification.Xia Wang2014-03-061-13/+20
| | | | | | | | | | | | | | | | | | | | | | | | When there is connectivity state change, the network states could be broadcasted multiple times. The state transition should consider that. Bug: 13277256 Change-Id: I3d400900a0e2454f9d198629f1c062cbb15bdcd8
* | | Introduce InputMethodSubtypeArray for memory efficient IPCsYohei Yukawa2014-03-062-1/+78
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL introduces InputMethodSubtypeArray which compresses multiple instances of InputMethodSubtype to reduce the risk of TransactionTooLargeException during IPCs. There are some IMEs which rapidly adding new subtypes into their supported language list. One problem here is that each instance of InputMethodInfo internally owns the list of supported subtypes. Basically it requires additional 200 ~ 300 bytes for each subtype when InputMethodInfo is transffered via IPCs. We should keep the size less than 100 KB in typical scenario. With this CL, the list of InputMethodSubtype is marshalled with GZIP compression. Approximately one InputMethodInfo is marshalled within 10 KB even when it has 100 subtypes. No negative performance impact is observed so far. The cost of decompression seems to be compensated by another optimization in this CL. Actually marshalling cost is reduced with this CL by caching the compressed data on demand. BUG: 12954290 Change-Id: Ibb2940fcc02f3b3b51ba6bbe127d646fd7de7c45
* | Merge "Add timer to wait for screen off"Xia Wang2014-03-041-5/+12
|\ \
| * | Add timer to wait for screen offXia Wang2014-03-031-5/+12
| | | | | | | | | | | | | | | | | | bug#: 13278052 Change-Id: Ic4dc847f3f3fe86750343ffabedb13dbeb4f61a7
* | | Make sure InputMethodInfo implements Parcelable transitivelyYohei Yukawa2014-03-031-12/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL adds one more test to make sure InputMethodInfo implements Parcelable correctly. This test makes sure that one can marshall and unmarshall again from an unmarshalled copy of InputMethodInfo. BUG: 12954290 Change-Id: I5aa1552a8089fe0bac54513ba224e5bfc494be97
* | | Add unit test for InputMethodInfoYohei Yukawa2014-02-271-0/+54
|/ / | | | | | | | | | | | | | | This CL adds a unit test to make sure that InputMethodInfo implements Parcelable correctly. BUG: 12954290 Change-Id: I0abe8c266b4b035bf8ef4688d11069b355fabe9f
* | Merge "Add support.multidex tests app for an update bug."Yohann Roussel2014-02-2621-0/+618
|\ \
| * | Add support.multidex tests app for an update bug.Yohann Roussel2014-02-2621-0/+618
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The failing scenario is - install v1 - run - update to v2 - update to v3 - run last run was failing with initial multidex library versions because it's still running on v1 extracted secondary dex files. Change-Id: Id9811371fc70b0a4e9b49de913ee38d18699b21d
* | | Tabs -> spaces in frameworks/base.John Spurlock2014-02-257-59/+59
| | | | | | | | | | | | Change-Id: I5a84e8e93ac99b5ed0212b37bf66efa5e53864be
* | | am 94b7c749: am 37e6af75: am 92a09fbd: am a14d9c31: Merge "Move ↵Narayan Kamath2014-02-172-1375/+0
|\ \ \ | | |/ | |/| | | | | | | | | | | | | Json{Reader,Writer} test to cts." * commit '94b7c749fd0bc5bbd80dbabfd412c2a212584343': Move Json{Reader,Writer} test to cts.
| * | Move Json{Reader,Writer} test to cts.Narayan Kamath2014-02-172-1375/+0
| | | | | | | | | | | | | | | | | | | | | | | | These tests aren't really run automatically (or perhaps even manually) in their present location, and increasing CTS coverage is never a bad thing. Change-Id: I81cce1211021011dca551fde62e725e177ca4df0
* | | am 32acb5e9: am 97de064a: am 133f6826: am 89492190: Merge "Runtime resource ↵Dianne Hackborn2014-02-1229-206/+1298
|\ \ \ | |/ / | | | | | | | | | | | | | | | overlay, iteration 2, test cases" * commit '32acb5e9d130ac858f34d83526e7460c624b41c7': Runtime resource overlay, iteration 2, test cases
| * | Runtime resource overlay, iteration 2, test casesMårten Kongstad2014-02-0329-206/+1298
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add automated test cases for runtime resource overlay, iteration 2. The test cases are a mixture of 'adb shell' commands and regular instrumentation tests. The device is rebooted between tests to setup different overlay scenarios for framework-res.apk. To verify Runtime resoure overlay, iteration 2, run $ frameworks/base/core/tests/overlaytests/testrunner.py For a list of supported options, run $ frameworks/base/core/tests/overlaytests/testrunner.py --help Change-Id: I692aa1a7ad073efd116b24f9ec7f197dfd65dfef
* | | Update DrmOutputStream to use raw FileDescriptor.Jeff Sharkey2014-02-061-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This allows DownloadManager to use FDs, paving the way for downloading directly to content:// Uris. Also return flag indicating if deleteOlderFiles() actually deleted anything. Update tests to verify. Bug: 5287571 Change-Id: I2579e5e2113f31b2860d7b021bd61c91b6310963
* | | Using large file for download manager test.Maxim Siniavine2014-02-041-19/+16
| |/ |/| | | | | | | | | | | This should decrease the chance of the file being downloaded too quickly and confusing the test. Change-Id: I8f4debbb51798162493d6a8005e1aa142738dbd4
* | Detect removable and emulated secondary storage.Jeff Sharkey2014-01-151-2/+19
| | | | | | | | | | | | | | | | Also rename existing secondary storage API to match naming convention in rest of class. Bug: 11536709 Change-Id: I2684c817de4982b414893d2d9927a21e3f171d53
* | am d2098682: am 3f2843a4: am c47b7d37: am 9d4ebdca: am cf1aa551: Merge ↵Narayan Kamath2014-01-071-0/+41
|\ \ | |/ | | | | | | | | | | "XmlUtils#readThisMapXml should handle null keys." * commit 'd2098682ab269d311dd482a38e8557df6717ee17': XmlUtils#readThisMapXml should handle null keys.
| * XmlUtils#readThisMapXml should handle null keys.Narayan Kamath2014-01-061-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Both readThisValueXml & writeThisValueXml have been implemented to handle values with "null" names. Change readThisMapXml to allow such names as well, and map them to the null key in the resulting HashMap. readThisListXml and readThisSetXml already support null names. bug: https://code.google.com/p/android/issues/detail?id=63463 Change-Id: I1c93976656e45e7733113eb67d29b6bad5d25f1f
* | am 263c4788: am 30253d7a: am 2daa0c93: Merge "Add address flags and scope to ↵Lorenzo Colitti2013-12-092-16/+170
|\ \ | |/ | | | | | | | | | | LinkAddress." * commit '263c4788dcf45f104f8668fd6621d1a7c39689b9': Add address flags and scope to LinkAddress.
| * Merge "Add address flags and scope to LinkAddress."Lorenzo Colitti2013-12-072-16/+170
| |\
| | * Add address flags and scope to LinkAddress.Lorenzo Colitti2013-12-062-16/+170
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is necessary so that the framework can know whether an IPv6 address is likely to be usable (i.e., if it's global scope and preferred). Also, it will simplify the address notification methods in INetworkManagementEventObserver, which currently take the address, the flags, and the scope as separate arguments. 1. Add flags and scope to the class and update the unit test. Use the IFA_F_* and RT_SCOPE_* constants defined by libcore. Since most callers don't know about flags and scope, provide constructors that default the flags to zero and determine the scope from the address. Addresses notified by the kernel will have these properly set. Make multicast addresses invalid. Update the class documentation. 2. Provide an isSameAddressAs() method that compares only the address and prefix information between two LinkAddress objects. This is necessary because an interface can't have two addresses with the same address/prefix but different flags. 3. Update LinkProperties's addLinkAddress and removeLinkAddress to identify existing addresses to add/remove using isSameAddressAs instead of implicit equals(). Specifically: - If addLinkAddress is called with an address that is already present, the existing address's flags and scope are updated. This allows, for example, an address on an interface to go from preferred to deprecated when it expires, without it having to be removed and re-added. - If removeLinkAddress is called with an address that is present but with different flags, it deletes that address instead of failing to find a match. 4. Update the INetworkManagementEventObserver address notification methods to take just a LinkAddress instead of LinkAddress, flags, and scope. While I'm at it, change the order of the arguments for consistency with the other functions in the interface. Change-Id: Id8fe0f09a7e8f6bee1ea3b52102178b689a9336e
| * | Merge commit 'bac61807d3bcfff957b358cb9ad77850bd373689' into HEADThe Android Open Source Project2013-12-055-34/+103
| |\ \ | | |/ | |/| | | | Change-Id: I29374270c8e0c2f2859efaf1d55af9f73da0f8d7
* | | am 13d9dfb4: am 86570409: am 453a5233: Merge "Minor changes to LinkAddress."Lorenzo Colitti2013-12-041-0/+213
|\ \ \ | | | | | | | | | | | | | | | | * commit '13d9dfb495db1431623c712b36cac1fe2f3c2fc0': Minor changes to LinkAddress.
| * \ \ am 453a5233: Merge "Minor changes to LinkAddress."Lorenzo Colitti2013-12-031-0/+213
| |\ \ \ | | |/ / | | | / | | |/ | |/| * commit '453a5233086b216f2a95d0879954a2af39279095': Minor changes to LinkAddress.
| | * Minor changes to LinkAddress.Lorenzo Colitti2013-12-031-0/+213
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 1. Simplify the parceling code. Since the InetAddress inside a LinkAddress can never be null, we don't need to special-case the case where it is. 2. Add / update method documentation. 3. Write a unit test. Change-Id: Iba0a8cecc683d55d736419965e72ee33dd66dc22
* | | 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