summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* am 5c9d0de1: am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am ↵Jon Larimer2015-01-301-5/+5
|\ | | | | | | | | | | | | 48c95c43: Fix build breakage in older branches by avoiding <> notation * commit '5c9d0de174caf151937f19aa6898f60bce3fb4f4': Fix build breakage in older branches by avoiding <> notation
| * am 545dd853: am 9a425aa7: am 159aa735: am d4031809: am 48c95c43: Fix build ↵Jon Larimer2015-01-301-5/+5
| |\ | | | | | | | | | | | | | | | | | | breakage in older branches by avoiding <> notation * commit '545dd853bffbf778a0a44816ac6ed381b13f2158': Fix build breakage in older branches by avoiding <> notation
| | * am 159aa735: am d4031809: am 48c95c43: Fix build breakage in older branches ↵Jon Larimer2015-01-301-5/+5
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | by avoiding <> notation * commit '159aa73574804967aded45d06b70df5a8dd64a58': Fix build breakage in older branches by avoiding <> notation
| | | * am d4031809: am 48c95c43: Fix build breakage in older branches by avoiding ↵Jon Larimer2015-01-301-5/+5
| | | |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <> notation * commit 'd403180997898c98f0be15b810c4c9dd9002f92c': Fix build breakage in older branches by avoiding <> notation
| | | | * Fix build breakage in older branches by avoiding <> notationJon Larimer2015-01-291-5/+5
| | | | | | | | | | | | | | | | | | | | Change-Id: I5e3d523dac1f364f52f0d2cab479c1705d667e5a
* | | | | am ea63fd7f: am 88add689: am a5ccca24: am 2982d648: am de9a76ed: am ↵Jon Larimer2015-01-291-0/+263
|\ \ \ \ \ | |/ / / / | | | | | | | | | | | | | | | | | | | | | | | | | fc731e6e: Merge "Fix ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev * commit 'ea63fd7f9b4bb2701c9d12ab8775867dbdeefcf1': Fix ParceledListSlice to enforce the same concrete types among its elements.
| * | | | am 88add689: am a5ccca24: am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ↵Jon Larimer2015-01-291-0/+263
| |\ \ \ \ | | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | ParceledListSlice to enforce the same concrete types among its elements." into jb-mr2-dev * commit '88add68942694fc643518bcf5c26f6c3df7e9aa0': Fix ParceledListSlice to enforce the same concrete types among its elements.
| | * | | am 2982d648: am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to ↵Jon Larimer2015-01-291-0/+263
| | |\ \ \ | | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | enforce the same concrete types among its elements." into jb-mr2-dev * commit '2982d64802ed0d5b59130680c43485e9d7862e50': Fix ParceledListSlice to enforce the same concrete types among its elements.
| | | * | am de9a76ed: am fc731e6e: Merge "Fix ParceledListSlice to enforce the same ↵Jon Larimer2015-01-291-0/+263
| | | |\ \ | | | | |/ | | | | | | | | | | | | | | | | | | | | | | | | | concrete types among its elements." into jb-mr2-dev * commit 'de9a76ed997c300a6c5f2f82c517719503af9045': Fix ParceledListSlice to enforce the same concrete types among its elements.
| | | | * Fix ParceledListSlice to enforce the same concrete types among its elements.Adam Lesinski2015-01-281-0/+263
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:17671747 Change-Id: I896f75738e5b464ccb6c03290f139cc2fa72f966 (cherry picked from commit 3df1c38ee098872352086e03d6f1adb16796ee29)
* | | | | Recover apps with malformed certificates.Jeff Sharkey2014-11-121-0/+57
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | There was a window of time in Lollipop where we persisted certificates after they had passed through a decode/encode cycle. The well-written OpenSSL library was liberal when decoding (allowing slightly malformed certs to be parsed), but then strict when encoding, giving us different bytes for effectively the same certificate. A related libcore change (0c990ab4a90b8a5492a67b2b728ac9a4a1ccfa1b) now returns the original bytes verbatim, fixing both pre-Lollipop installs and installs after that change. This change recovers any apps that had been installed during the window of time described above by doing a one-time check to see if the certs are effectively equal. Bug: 18228011 Change-Id: Ib82bd6db718d0490d7a26c9c1014b7c8457a7f2d
* | | | | Add delay in ping connectivity test retryEric Rowe2014-10-224-33/+18
| | | | | | | | | | | | | | | | | | | | Change-Id: Id6e36f42b2a2d84605185780fb7a3f2144e7a9b9
* | | | | Add CHANGE_NETWORK_STATE permission to bt testsEric Rowe2014-10-151-0/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: Ie0a579de3b7d1163a8fe245eb377f21eeed048a3
* | | | | Fix issue #17752399: Multiple apps broken by GET_TASKS permission changeDianne Hackborn2014-10-031-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Keep around GET_TASKS as a permission available to apps, so apps still think they have it and don't get all uppity because they don't. Add a new REAL_GET_TASKS that is the actual permission now. Plus some temporary compatibility code until everyone can transition fromn GET_TASKS to REAL_GET_TASKS. Change-Id: I12c1102eed24844685dcbd2fa3b612811603958f
* | | | | NetworkStats always needs arrays.Jeff Sharkey2014-09-171-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Internal logic relies on Arrays.copyOf(), so always give ourselves valid arrays, using shared empty objects to save overhead. Bug: 17502649 Change-Id: I5dbb00545bdfe45bbd48144ab505ea08cc92cbcd
* | | | | Merge "Minimize the number of default enabled IMEs part 3" into lmp-devYohei Yukawa2014-09-161-11/+8
|\ \ \ \ \
| * | | | | Minimize the number of default enabled IMEs part 3Yohei Yukawa2014-09-151-11/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this CL, the behavior of getDefaultEnabledImes() changes as follows: - Previously system IMEs are always enabled by default as long as it is a software keyboard that supports En_* subtype. With this CL, getDefaultEnabledImes() relies on the locale returned from getFallbackLocaleForDefaultIme() instead of calling isSystemImeThatHasEnglishKeyboardSubtype() to minimize the number of enabled IMEs. - Previously default enabled system IMEs are chosen in a country-agnostic way. As a result, "en_IN" is enabled even when the system locale is "en_US". With this CL, the system first tries to find IMEs with taking the coutnry into account, and use the country-agnostic way when and only when fallback logic is required. BUG: 17347871 Change-Id: I6571d464a46453934f0a8f5e79018a67a9a3c845
* | | | | | Merge "temporarily enable wifi verbose logging in download manager test" ↵Guang Zhu2014-09-142-4/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | | | | | | | | into lmp-dev
| * | | | | temporarily enable wifi verbose logging in download manager testGuang Zhu2014-09-142-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | also temporarily compile against platfrom, not SDK, since we are using private API Bug: 17446070 Change-Id: I6da18aca2d5eaf305940514186ef2434e52f15b9
* | | | | | Minimize the number of default enabled IMEs part 2Yohei Yukawa2014-09-141-19/+8
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously the system tried to enable at least one auxiliary IME even when the system is not ready. However, this doesn't make much sense because the user should be able to set up their phone without auxiliary IMEs. Also, IMEs enabled before the system becomes ready are kept to be enabled after the system becomes ready. Thus, we should minimize the number of enabled IMEs until the system becomes ready. BUG: 17347871 Change-Id: Ife93d909fb8a24471c425c903e2b7048826e17a3
* | | | | Enrich test cases when enabling default IMEs part 4Yohei Yukawa2014-09-131-229/+203
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another groundwork for subsequent fixes. Notable changes in test cases are: - simplified test cases for voice IMEs. - added more test cases for keyboard IMEs. - introduced assertDefaultEnabledImes() to reduce code duplicate. BUG: 17347871 Change-Id: I8cf61cfa18ac425a2cccc7823474c3f06dc0fa1e
* | | | | Merge "Fix wifi association tests" into lmp-devEric Rowe2014-09-112-94/+69
|\ \ \ \ \
| * | | | | Fix wifi association testsEric Rowe2014-09-112-94/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Before fix, test assumed that it was already connected to wifi so remove these assertions. Also, since association test may be used against access points with no outside connectivity, remove the ping test to 8.8.8.8 at the end. Change-Id: I3d4f3d752b72028f642da9f8e9adda4ad18a6a56
* | | | | | Enrich test cases when enabling default IMEs part 3Yohei Yukawa2014-09-121-10/+133
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another groundwork for subsequent fixes. Notable changes in test cases are: - A dummy Hinglish IME ("en_US" + "hi") is added - Added test cases where system locale is "en_GB", "en_IN", and "hi" as well as "en_US". BUG: 17347871 Change-Id: Iacf0f47c4dbc147f8153df50ba58fc4da4dacd29
* | | | | | Enrich test cases when enabling default IMEs part 2Yohei Yukawa2014-09-111-30/+58
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another groundwork for subsequent fixes. Notable changes in test cases are: - isSystemReady == false is now coverted. - tests can run even when the system locale of test environment is different from "en_US" BUG: 17347871 Change-Id: I9434270735d3b37d8b788d41250b23d7950aaeed
* | | | | | Enrich test cases when enabling default IMEsYohei Yukawa2014-09-111-14/+34
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another groundwork for subsequent fixes. Notable changes in test cases are: - isAsciiCapable is now annotated accordingly. - "dummy.keyboard0" now has several subtypes like "en_GB", "en_IN", "hi", "hi_ZZ" like the AOSP LatinIME. BUG: 17347871 Change-Id: Ide698ed11c2539ba5862e6b37ea63ed19f8ce566
* | | | | | Merge "Use public APIs to instantiate InputMethodSubtype" into lmp-devYohei Yukawa2014-09-101-2/+10
|\ \ \ \ \ \
| * | | | | | Use public APIs to instantiate InputMethodSubtypeYohei Yukawa2014-09-101-2/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a groundwork for subsequent CLs that are supposed to improve default input method selection logics. Historically we have had a @hide constructor of InputMethodSubtype. However, this contructor is a bit obsolete because we can not specify some parameters that were added in recent platform releases. We should use InputMethodSubtypeBuilder instead. BUG: 17347871 Change-Id: I72ad79682a58344e14380eb20e26edf98aee37cd
* | | | | | | Merge "Allow protected wifi in connectivity tests" into lmp-devEric Rowe2014-09-103-28/+47
|\ \ \ \ \ \ \ | |/ / / / / / |/| / / / / / | |/ / / / /
| * | | | | Allow protected wifi in connectivity testsEric Rowe2014-09-093-28/+47
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I31285572f90bfb46cc28fb04e79cb9b407477a7d
* | | | | | add some assert messages to download manager testGuang Zhu2014-09-091-11/+11
| | | | | | | | | | | | | | | | | | | | | | | | Change-Id: If2e1bdd115eddeeb7bdebf0fab29a3756fee4ceb
* | | | | | Follow up API signature changes of CursorAnchorInfo part 2Yohei Yukawa2014-09-091-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is another follow up CL for Ic8c6fab58c01206872a34e7e. Ib2371849d32bb44da9ef59f05e648a476e03699a didn't cover following renamings. This CL fixes them. - #getCharacterRect -> #getCharacterBounds - #getCharacterRectFlags -> #getCharacterBoundsFlags BUG: 17365414 Change-Id: I120795da3f25f1e2fa71f455f92e3cd1c036c1d5
* | | | | | Follow up API signature changes of CursorAnchorInfoYohei Yukawa2014-09-082-91/+79
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a follow up CL for Ia8cbb9f6b41cd9509fc0147fd68763dfde and Ic8c6fab58c01206872a34e7ee604cdda1581364d. BUG: 17365414 BUG: 17200900 Change-Id: Ib2371849d32bb44da9ef59f05e648a476e03699a
* | | | | Increase long timeout to 2 minutesEric Rowe2014-09-051-1/+1
| | | | | | | | | | | | | | | | | | | | Change-Id: I2f9e15c6e551536d61ec52fbaf7f54405fa05bcd
* | | | | Clean up connectivity tests.Eric Rowe2014-09-039-640/+548
| | | | | | | | | | | | | | | | | | | | Change-Id: I407cb78aecb43aa8413835a25b4558241d69fd2e
* | | | | Merge "Installing splits into ASECs!" into lmp-devJeff Sharkey2014-08-242-4/+6
|\ \ \ \ \
| * | | | | Installing splits into ASECs!Jeff Sharkey2014-08-222-4/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sessions can now zero-copy data directly into pre-allocated ASEC containers. Then at commit time, we compute the total size of the final app, including any inherited APKs and unpacked libraries, and resize the container in one step. This supports both brand new ASEC installs and inheriting from existing ASEC installs. To keep things simple, it currently requires copying any inherited ASEC contents, but this could be optimized in the future. Expose new vold resize command, and allow read-write mounting of ASEC containers. Move native library extraction into the installer flow, since it needs to happen before ASEC is sealed. Move multiArch flag into NativeLibraryHelper, instead of making everyone pass it around. Migrate size calculation to shared location. Separate "other" package name in public API, provide a path to a storage device when relevant, and add more docs. Bug: 16514385 Change-Id: I06c6ce588d312ee7e64cce02733895d640b88456
* | | | | | add some missing assert messages for wifi testGuang Zhu2014-08-222-9/+13
|/ / / / / | | | | | | | | | | | | | | | Change-Id: I04f4cbbca1a181ab1404fa3abba874e1f78fed3c
* | | | | follow up minor fixes for connectivity manager testGuang Zhu2014-08-202-3/+3
| | | | | | | | | | | | | | | | | | | | Change-Id: I8f0606890b21d67130efb3bc02c6825823060139
* | | | | fixes for connectivity manager test suiteGuang Zhu2014-08-2011-1173/+604
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * reduced visibility of most util functions in ConnectivityManagerTestBase * reimplemented various waitFor... util function in base class: instead of relying on received broadcast and synchronization mechanism, we just poll for what we want with a fixed interval and a max timeout * minor style fixes * removed state transition checks in all test cases of ConnectivityManagerMobileTest: since exact state transitions are not that interesting, we just care about if we reach a particular state and if all network interfaces are in their corresponding states * clarified in comment what each test cases are testing, since some of the test case names are not very straightforward * any wait for DISCONNECTED checkes with ConnectivityManager are temporarily commented out Change-Id: I99cca95c33c6060909e0df684969b75c2dca23a9
* | | | | Stop using LinkProperties for static configuration.Lorenzo Colitti2014-08-191-10/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | LinkProperties can represent way more complicated configurations than what we can actually apply to interfaces. This makes it error-prone to use it to represent static configuration, both when trying to apply configuration coming from LinkProperties and when trying to save configuration from current LinkProperties. Instead, move static configuration (IPv4 only, since we don't support static IPv6 configuration) into a separate StaticIpConfiguration class. Bug: 16114392 Bug: 16893413 Change-Id: Ib33f35c004e30b6067bb20235ffa43c247d174df
* | | | | Switch RouteInfo to use IpPrefix instead of LinkAddress.Lorenzo Colitti2014-08-131-0/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This addresses a TODO and also makes it possible to create routes to destinations that are not valid LinkAddresses, such as multicast addresses. Bug: 16875580 Change-Id: Id4c77b00dc3064bf27d78cdcbbe035e645748cfe
* | | | | Revert "Revert "Service data and manufacturer data can be repeated fields.""Wei Wang2014-08-012-8/+8
| | | | | | | | | | | | | | | | | | | | This reverts commit 14c797702543bb5ced989565d90abcfa55c7db46.
* | | | | Revert "Service data and manufacturer data can be repeated fields."Sungsoo Lim2014-08-012-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 26dc9b99b17ca9d8ce3632c48e8b6c1450ee53e9. Change-Id: I1846d0a6491c5b2ba5905411bd98f5d17909b705
* | | | | Service data and manufacturer data can be repeated fields.Wei Wang2014-07-312-8/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16635899 Change-Id: I73f1f4effd3f0e38cd427297eb9d22f3ba285d61
* | | | | Make scan filter accepts prefix. Add tests.Wei Wang2014-07-281-21/+45
| | | | | | | | | | | | | | | | | | | | Change-Id: I714dd6d95ad2bc874dce1106b325762b19159119
* | | | | Split manu id and manu data.Wei Wang2014-07-271-5/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | b/16407380 Change-Id: I39f6ce0ab4cccadec809f0a4f518f5d2c77a90b7
* | | | | Merge "Stop assuming language part in locale string is up to 2-letter" into ↵Yohei Yukawa2014-07-241-0/+29
|\ \ \ \ \ | | | | | | | | | | | | | | | | | | lmp-dev
| * | | | | Stop assuming language part in locale string is up to 2-letterYohei Yukawa2014-07-261-0/+29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this CL, InputMethodSubtypeSwitchingController stop assuming that language part in locale string is up to 2-letter. this CL is not so risky because InputMethodSubtypeSwitchingController have used language part for nothing but sorting subtypes to determine the initial rotation order of IME switching. BUG: 16502987 Change-Id: Ib159ece0b7aa04f8fd7abc96c9a6e0832a4b7cd2
* | | | | | Fix bug of ScanSettings. Add unit test.Wei Wang2014-07-251-0/+64
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | b/16318637. Change-Id: I3fbc1212c1712faa0c29132f3dc9cfc1d58af26b