Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | - | - | ||||
InstrumentedEntitlementApp/ | 23-Mar-2024 | - | 75 | 36 | ||
res/ | 23-Mar-2024 | - | 181 | 75 | ||
src/com/android/settings/ | 23-Mar-2024 | - | 7,708 | 5,251 | ||
Android.bp | D | 23-Mar-2024 | 755 | 34 | 27 | |
AndroidManifest.xml | D | 23-Mar-2024 | 3.8 KiB | 74 | 52 | |
AndroidTest.xml | D | 23-Mar-2024 | 1.5 KiB | 32 | 16 | |
README | D | 23-Mar-2024 | 890 | 18 | 12 |
README
1To build the tests you can use the following command at the root of your android source tree 2$ make SettingsUnitTests 3 4The test apk then needs to be installed onto your test device via for example 5$ adb install -r out/target/product/shamu/data/app/SettingsUnitTests/SettingsUnitTests.apk 6 7To run all tests: 8$ adb shell am instrument -w com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 9 10To run all tests in a specific class: 11$ adb shell am instrument -w -e class com.android.settings.<class> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 12 13To run a specific test: 14$ adb shell am instrument -w -e class com.android.settings.<class>#<test> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner 15 16More general information can be found at 17http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html 18