summaryrefslogtreecommitdiffstats
path: root/core/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* Merge "Fix parcel issues with empty service uuid. Added tests." into lmp-devWei Wang2014-07-222-1/+144
|\
| * Fix parcel issues with empty service uuid. Added tests.Wei Wang2014-07-232-1/+144
| | | | | | | | | | | | b/16490816 Change-Id: If26a4731f22e83df4f5ded2ad76901de6c49a010
* | Delete most network scorer tests from coretests.Jeff Davidson2014-07-233-203/+0
|/ | | | | | | | | | | | Anything which tests public API functionality will be moved to a compatibility test suite. The only remaining test is NetworkScorerAppManagerTest, which contains unit tests for an internal helper class that is not (and should not be) exposed via @SystemApi or otherwise. Bug: 16355542 Change-Id: I478da97d3a4d09407992af37e45466dc484fa8cf
* More API modification of BLE APIs (1/2).Wei Wang2014-07-182-7/+14
| | | | | | | | | | | | | | | Changed include: 1) Add serviceDataUuid to filter so it matches sanRecord and AdvertiseData. 2) Add raw bytes to ScanRecord and make ScanResult take a ScanRecord instead of raw bytes. 3) Change from setServiceUuid(List) to addServiceUuid(ParcelUuid). 4) Added include device name 5) Removed service not registered and added ADVERTISE_DATA_TOO_LARGE. 6) Fixed a few comments. Change-Id: Ibbe07183b1293835c4a84728d1cd2d61e5d627d3
* am f59ce468: am b477fc6c: Merge "add command to enable bt snoop log" into ↵Guang Zhu2014-07-191-0/+10
|\ | | | | | | | | | | | | klp-modular-dev * commit 'f59ce46880ebe2c2466a2c862ec2ed401f635d51': add command to enable bt snoop log
| * am b477fc6c: Merge "add command to enable bt snoop log" into klp-modular-devGuang Zhu2014-07-181-0/+10
| |\ | | | | | | | | | | | | * commit 'b477fc6c2fcd04e6952a7eec856d30b64fd95e0c': add command to enable bt snoop log
| | * add command to enable bt snoop logGuang Zhu2014-07-171-0/+10
| | | | | | | | | | | | Change-Id: I22a6482a90c2bb976a5ce44946e9f0fb8b59e6b2
* | | Initial KeySet API.dcashman2014-07-144-0/+214
| | | | | | | | | | | | | | | | | | | | | Previously submitted but reverted due to doc-compilation bug. Bug: 6967056 Change-Id: I9bd7ef299a4c92c4b327f5b5d7e951f0753b4c8a
* | | Revert "Initial KeySet API."dcashman2014-07-124-214/+0
| | | | | | | | | | | | This reverts commit 9a643fe02bc960e266484547dda5572b094a4c72.
* | | Initial KeySet API.dcashman2014-07-124-0/+214
| | | | | | | | | | | | | | | Bug: 6967056 Change-Id: I47a01bd5dc25591cc70f58f38920ad0a021094ae
* | | Unhide Bluetooth batch APIs. Deprecate BluetoothAdpater scan APIs. (1/2)Wei Wang2014-07-112-7/+7
| | | | | | | | | | | | Change-Id: Ib0c4ea6c8372a15473269660355fb5ccf4284457
* | | Merge "Add a test multiarch app."Narayan Kamath2014-07-103-0/+49
|\ \ \
| * | | Add a test multiarch app.Narayan Kamath2014-07-113-0/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Will be used in an upcoming change for PackageManagerService handling of multiArch APKs. Change-Id: I363a02ce7b91569bb86880cf511ab9fbfcf2665c
* | | | Consolidate test cases for InputMethodSubtypeYohei Yukawa2014-07-111-15/+48
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have accepted any arbitrary text as a locale string when instantiating InputMethodSubtype object. As a consequence, some existing code might assume that InputMethodSubtype never canonicalize/normalize the given locale string. This CL add a test case for such scenario. Change-Id: Ie08d6e149e22a60d6c4d40049a3e6afeee87dc44
* | | Add simple InputMethodSubtypeTestYohei Yukawa2014-07-112-1/+69
| | | | | | | | | | | | Change-Id: I87105c4935adfca249378e667161d2998cf77840
* | | Change key-set/public-key manifest relationship.dcashman2014-07-105-41/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Separate definition of public keys and keysets in the manifest to better represent their relationship. The 'key-set' tags should have nested additional 'public-key' tags that indicate which of the defined 'public-key' tags are associated with them. The first use of a given 'public-key' name should define its value; subsequent uses may refer to it only by name. 'key-set' and 'public-key' names may not intersect. Also, change 'keys' tag to 'key-sets' to avoid issues with previous keysets implementation. Bug: 6967056 Change-Id: I7534e4a42326e97b67b55509187c0d3c21a2bb32
* | | Polish new IME API for L: CursorAnchorInfoYohei Yukawa2014-07-102-88/+216
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL allows application authors and input method authors to communicate with each other more precisely on the visibility of insertion marker and composing characters. Now we can describe the situation where the coordinates of them are available but they are overlapped by other UI elements. This change is based on feedbacks from internal customers of this preview API. Change-Id: I82eba0e844a6f8b99ba11a68fad272399034cc24 BUG: 16118303
* | | Fix inconsistencies in CursorAnchorInfo#equalsYohei Yukawa2014-07-101-6/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This CL addresses some inconsistencies found in CursorAnchorInfo#equals. - #mComposingText is now taken into consideration when compared with other instances. - NaN is now treated as if it was just a number in CursorAnchorInfo#equals if and only if NaN is used in -- #mInsertionMarkerHorizontal -- #mInsertionMarkerTop -- #mInsertionMarkerBaseline -- #mInsertionMarkerBottom. This is useful if we want to use NaN as a marker to indicate that no value is specified. Change-Id: Ibff31bc34b9d488731b294ad38240c567a06b627
* | | Add test apps for shared uid package manager testMaxim Siniavine2014-07-0919-0/+894
| | | | | | | | | | | | Change-Id: I00c0db7a122774260d93d06212f4485210f86532
* | | Merge "Initial work for key rotation."dcashman2014-07-0214-0/+572
|\ \ \
| * | | Initial work for key rotation.dcashman2014-07-0214-0/+572
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Introduces the upgrade-keyset tag to AndroidManifest.xml. This specifies a KeySet by which an apk must be signed in order to update the app. Multiple upgrade KeySets may be specified, in which case one of them must be used to sign the updating apk. If no upgrade-keyset is specified, the current logic involving signatures is used. Current Key Rotation Design Decisions: -Apps using a shared user id may not rotate keys. -All acceptable upgrade keysets must be specified, including the key signing the app. This enables key rotation in one update, but also 'locks' an app if an incorrect upgrade keyset is specified. -Minimal changes to existing KeySet code. Bug: 6967056 Change-Id: Ib9bb693d4e9ea1aec375291ecdc182554890d29c
* | | | Require coordinate transformation matrix if necessaryYohei Yukawa2014-07-021-3/+49
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With this CL, CursorAnchorInfo.Builder#build() raises IllegalArgumentException when an application author attempts to instantiate CursorAnchorInfo without the coordinate transformation matrix but with specifying some positional parameters such as composing character rectangle. Since any other positional members in CursorAnchorInfo are supposed to be specified in local coordinates, the application author must provide the coordinate transformation matrix for such positional data. Change-Id: I2b0fd0f146a2b95fe4fa1324837d8cfee667208c
* | | Allow network scorers to provide an opt-in activity.Jeff Davidson2014-06-301-12/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A candidate scorer may have an activity registered to listen for the ACTION_CUSTOM_ENABLE intent action. If so, when the user attempts to select this scorer as the active one, this custom activity will be launched and will be responsible for requesting that the framework activate the scorer. This is to enable more complex opt-in flows prior to becoming the active scorer. Scorers which do not specify this activity will default to using the framework switcher (currently ActiveNetworkScorerDialog, though this may change). Note that all switches must still go through the framework switcher; the opt-in activity simply allows scorers to first show another screen and perform the framework switch on their own terms. Bug: 15775314 Change-Id: I3847e5d3161a8fcc9622abc03218795697c32778
* | | Manually disable dexopt for multidex test apps.Yohann Roussel2014-06-307-0/+16
| | | | | | | | | | | | | | | | | | | | | Because at the moment, omitting to explicitly disable dexopt produces apks with no classes.dex inside. Change-Id: I44ffc6b013a7b119c7deb332cf60f4fe8a11068c
* | | Fix test failures due to unexpected overload resolutionYohei Yukawa2014-06-271-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Starting with Ie04e8a27050849fee1c93ef14b9944acc70fafe4, CursorAnchorInfo#getComposingText() returns CharSequence rather than String. This causes unexpected overload resolution, which results in test failures. BUG: 15088391 Change-Id: I51e2b23573e92be7e5b1dcca6402e85364408215
* | | Merge "Use/expose the receiver's label as the scorer name."Jeff Davidson2014-06-261-2/+5
|\ \ \