summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Convert Android.mk file to Android.bp am: 5b31d0be95 am: 0c9616afecSasha Smundak2019-01-102-18/+13
|\ | | | | | | | | | | am: ec09e63567 Change-Id: I7cad2ab0cd5717ccde8e18191246dfa12b06c81d
| * Convert Android.mk file to Android.bpSasha Smundak2019-01-092-18/+13
| | | | | | | | | | | | | | | | See build/soong/README.md for more information. Change-Id: I7a0cbee106095b595e249caf0b7700d3e94cf875 Fixes: 122332124 Test: treehugger
* | Migrate GPS configs to "gps." namespace.Meng Wang2018-12-041-4/+17
| | | | | | | | | | | | | | | | | | Also change test to account for namespace by accounting for config keys defined in nested classes. Bug: 118770440 Test: make Change-Id: I9744c3609df877835ef1ca047abe92c14908e041
* | test to enforce no mccmnc.xml if there is a matching carrier idchen xu2018-12-041-6/+134
|/ | | | | | | | | | Add unit test to enforce the rule that carrierid.xml is preferred. Otherwise people who used to add mccmnc.xml might keep doing so even there is a carrierid.xml. Bug: 110559381 Test: carrierconfigtest Change-Id: Iec84a729e7df031d897cec5999276a81938ef886
* Revert "test to enforce no mccmnc.xml if there is a matching carrier id"Bryan Henry2018-12-022-136/+7
| | | | | | | | This reverts commit 264ffbb32fb2a93c8429cb1aefebf7548ac0592d. Reason for revert: Causing aosp_blueline device_boot_test failures because added a new privileged permission without updating the privapp_permissions whitelist. Change-Id: If03e0f88cfa4d3505c50a8d16c9fe92cb79b050e
* test to enforce no mccmnc.xml if there is a matching carrier idchen xu2018-11-292-7/+136
| | | | | | | | | | Add unit test to enforce the rule that carrierid.xml is preferred. Otherwise people who used to add mccmnc.xml might keep doing so even there is a carrierid.xml. Bug: 110559381 Test: carrierconfigtest Change-Id: Ie01be8f46ed83716d22680ab213fde966bb74dc8
* carrierconfig data migrate to carrier idchen xu2018-11-261-0/+2
| | | | | | | | | | | | | 1. migrate 490 mccmnc.xml to carrier id. 2. remove the duplicated configurations between a single carrier to a single carrier config file. 3. data migration takes care of mccmnc fallback. 4. TODO 92 mccmnc.xml didn't find match yet Bug: 110559381 Test: telephony unit test Change-Id: Ic98a0b04b6aeade2d218a2c97813b9616f224829 Merged-in: Ic98a0b04b6aeade2d218a2c97813b9616f224829
* Exempt tests from hidden API checks.Nicolas Geoffray2018-04-061-0/+1
| | | | | | | Bug: 64382372 Bug: 74963051 Test: m Change-Id: Ifd8d1124fdbdb1d3b937f4f729ced3a43522ecd6
* packages/apps/CarrierConfig: Set LOCAL_SDK_VERSION where possible. am: ↵Anton Hansson2018-02-231-0/+1
|\ | | | | | | | | | | | | | | cc66de36ee am: 5ca6b5d18e am: 315ce91fda Change-Id: Ia0fda989ca13c09fa96d43f9816fd486c0089184
| * packages/apps/CarrierConfig: Set LOCAL_SDK_VERSION where possible.Anton Hansson2018-02-221-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change sets LOCAL_SDK_VERSION for all packages where this is possible without breaking the build, and LOCAL_PRIVATE_PLATFORM_APIS := true otherwise. Setting one of these two will be made required soon, and this is a change in preparation for that. Not setting LOCAL_SDK_VERSION makes the app implicitly depend on the bootclasspath, which is often not required. This change effectively makes depending on private apis opt-in rather than opt-out. Test: make relevant packages Bug: 73535841 Change-Id: I3b198acd2579e63fb0a5f8341db9e051f0c8d569
* | Stop statically including legacy-android-testPaul Duffin2017-12-081-2/+2
|/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Statically including legacy-android-test leads to duplicate classes which causes build time problems (with Proguard) and runtime problems on older SDK versions. This change: * Stops statically including legacy-android-test. * Adds compile time dependencies on andoid.test.base, android.test.mock and android.test.runner where necessary. * Adds <uses-library android:name="android.test.runner"/> to any affected package to ensure that the classes that were included by legacy-android-test are still available at runtime. That also adds a dependency on android.test.base and android.test.mock. The following change descriptions were generated automatically and so may be a little repetitive. They are provided to give the reviewer enough information to check the comments match what has actually been changed and check the reasoning behind the changes. * tests/Android.mk Added 'android.test.base' to LOCAL_JAVA_LIBRARIES because CarrierConfigTests's source depends on its classes and because of these changes they are no longer present on the compilation path. Removed legacy-android-test from LOCAL_STATIC_JAVA_LIBRARIES because statically including the classes in CarrierConfigTests results in duplicate classes which leads to build time and compile time issues. Bug: 30188076 Test: make checkbuild Change-Id: I0db8114c15b52bb4c1db80137533469d52bb51a4
* Add test config to CarrierConfigTestsDan Shi2017-03-221-0/+27
| | | | | | | | | | Details about test configs changes are tracked in doc https://docs.google.com/document/d/1EWUjJ7fjy8ge_Nk0YQbFdRp8DSHo3z6GU0R8jLgrAcw/edit# Bug: 35882476 Test: local test Change-Id: I73404d3aa752b2f103613fea74225710220ca268
* packages/apps/CarrierConfig: Add APCT tests to the device-tests suite.Simran Basi2017-03-151-0/+1
| | | | | | | | | | | | | | This CL adds the APCT tests within this project to a similar suite as CTS known as device-tests. The current method of running APCT tests in the infrastructure is unaffected. Bug: 35882476 Test: `make dist device-tests -j` and local builds of continuous_instrumentation_tests & continuous_native_tests Change-Id: I1a3af4dc570092b0d268bde59e486d829f5337f2
* Prepare for removal of legacy-test from default targets am: 778f3beafa am: ↵Paul Duffin2017-01-181-0/+1
|\ | | | | | | | | | | | | | | d0e50690e7 am: 547a1be7a5 am: 5a9916bfd3 Change-Id: Ib1f328798a8864f356a97b091cae0c5e963e3536
| * Prepare for removal of legacy-test from default targetsPaul Duffin2017-01-171-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Bug: 30188076 Test: make checkbuild Change-Id: I4054b3aee15ebbb319e57363d5c56fda956afbec
* | Verify that string/int-array has "num" attributeJordan Liu2016-12-141-2/+6
|/ | | | | | | | | In carrier_config xml files, string-array and int-array items require a "num" attribute that specifies the number of elements in the array. Running the unit-test now verifies that the "num" attribute is present. Test: runtest carrierconfig-unit Change-Id: If378d7ee7f4c90d320f6f93f5d6bb0a27f44d6c9
* Fix CarrierConfig unit testJordan Liu2016-11-161-0/+1
| | | | | | | Previously this would fail when encountering a "long" tag Change-Id: I1ec78b8d3c1654eb3cc79a5b5c0bbe68c095e040 Test: runtest --path CarrierConfigTest.java
* Add IMSI and SPN regexp filtering for MVNO supportPeter Ljungdahl2016-11-101-1/+3
| | | | | | | | | | | | | | | | | | The filtering criterias for selecting carrier configurations are extended to cover IMSI. The reason for this to support MVNO configuration for IMSI ranges (i.e. when the only way to identify a MVNO is by the IMSI) The xml arguments for IMSI and SPN can be designed as regular expressions in order to add flexibility. Some operators do not have SPN defined on there SIM card, but the MVNOs in their network might have. This is indicated in the xml by setting the spn argument to "null". Bug: 32398239 Test: Verified on target with MVNO configs. Change-Id: Ib4fd87fe484a50fd808fbe9843061ab894703531
* More thorough XML testing.Jonathan Basseri2015-06-251-3/+83
| | | | | | | | | | | | | | | | | | | Include vendor.xml in unit tests. Note that changing the build target with lunch can switch your vendor.xml. Update DefaultCarrierConfigService#readConfigFromXml to throw errors instead of returning an empty bundle. This makes failed test output much better. Add a test to check that every variable in XML files matches a KEY in CarrierConfigManager. Increase detail of error messages with XmlPullParser#getPositionDescription Bug: 21619172 Change-Id: I500f4b2476a6fe4fdd6ae0232e293a0f1d82b7b0
* Add tests for CarrierConfig app.Junda Liu2015-06-193-0/+146
These tests check that all asset XML files can be parsed into bundles and that they use valid filter attributes. Bug: b/21619172 Change-Id: I4242f77c3c7e8b0e2027bca164f7276b89bbcfb1