android_packages_apps_Settings/tests/unit
Michael Bestas 1e271bc838 Merge tag 'android-15.0.0_r6' into staging/lineage-22.0_merge-android-15.0.0_r6
Android 15.0.0 Release 6 (AP4A.241205.013)

# -----BEGIN PGP SIGNATURE-----
#
# iF0EABECAB0WIQRDQNE1cO+UXoOBCWTorT+BmrEOeAUCZ1IssgAKCRDorT+BmrEO
# eFDIAKCOeYTtdt0egok4UBTocTSNNkLmeACeLgNUHO1UvOSfTGYN/LnaoG9W0Dc=
# =pH//
# -----END PGP SIGNATURE-----
# gpg: Signature made Fri Dec  6 00:44:02 2024 EET
# gpg:                using DSA key 4340D13570EF945E83810964E8AD3F819AB10E78
# gpg: Good signature from "The Android Open Source Project <initial-contribution@android.com>" [marginal]
# gpg: initial-contribution@android.com: Verified 2469 signatures in the past
#      3 years.  Encrypted 4 messages in the past 2 years.
# gpg: WARNING: This key is not certified with sufficiently trusted signatures!
# gpg:          It is not certain that the signature belongs to the owner.
# Primary key fingerprint: 4340 D135 70EF 945E 8381  0964 E8AD 3F81 9AB1 0E78

# By Bill Yi (94) and others
# Via Automerger Merge Worker (783) and others
* tag 'android-15.0.0_r6': (743 commits)
  [Homepage Revamp] hide the scroll bar of homepage
  Don't show default payment component in search if Wallet role is enabled
  Avoid using MANDATORY_BIOMETRICS bit if flag is not enabled
  Import translations. DO NOT MERGE ANYWHERE
  Import translations. DO NOT MERGE ANYWHERE
  Import translations. DO NOT MERGE ANYWHERE
  Fix Can't Able to Click Sims
  Fix for broken tests in Accessibility Settings
  Change "Open by default" setting page selection to radio buttons
  [Settings] Fix crash
  remove the DSDS dialog
  Migrate "Build number" preference
  Migrate "Kernel version" preference
  Migrate "Baseband version" preference
  Rename AudioSharingRetryDialogFragment
  Rename AudioSharingLoadingStateDialogFragment and layout
  Check canEnterMobileNetworkPage
  Check DISALLOW_CONFIG_MOBILE_NETWORKS when search
  [Audiosharing] Show retry dialog when error occurs in start sharing
  Update color-check-baseline.xml
  ...

 Conflicts:
	Android.bp
	AndroidManifest.xml
	src/com/android/settings/accessibility/AccessibilitySettings.java
	src/com/android/settings/biometrics/fingerprint/FingerprintSettings.java
	src/com/android/settings/fuelgauge/datasaver/DynamicDenylistManager.java
	src/com/android/settings/inputmethod/PhysicalKeyboardFragment.java
	src/com/android/settings/shortcut/CreateShortcutPreferenceController.java
	src/com/android/settings/wifi/WifiConfigController2.java
	tests/robotests/src/com/android/settings/accessibility/AccessibilitySettingsTest.java

Change-Id: Ideece6940ede6a9247a02dff00f802af84202cb7
2024-12-20 00:37:18 +00:00
..
res Make provider icon sizes consistent 2024-01-12 16:19:47 +00:00
src/com/android/settings Merge tag 'android-15.0.0_r6' into staging/lineage-22.0_merge-android-15.0.0_r6 2024-12-20 00:37:18 +00:00
Android.bp Keep FakeFeatureFlagsImpl 2024-06-27 08:46:17 +00:00
AndroidManifest.xml Disable eager initialization of Jetpack libraries 2022-10-04 15:51:45 +08:00
AndroidTest.xml Use AAPT2 For SettingsUnitTests 2022-09-21 17:48:20 +00:00
OWNERS
README Merge "Reland "Don't use framework strings for formatting file sizes"" am: ba69fd0d3f am: d5ab7dc729 2022-05-24 11:20:54 +00:00

The simplest way to run all SettingsUnitTests is with atest
$ atest SettingsUnitTests

A single class can also be tested with the following command
$ atest -c <YourClassName>

// The following instructions show how to run the test suite using make + adb //

To build the tests you can use the following command at the root of your android source tree
$ make -j SettingsUnitTests

The test apk then needs to be installed onto your test device. The apk's location will vary
depending on your device model and architecture. At the end of the make command's output, there
should be a line similar to the following:
"Copy: ${ANDROID_PRODUCT_OUT}/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk"
Install via the following command:
$ adb install -r ${ANDROID_PRODUCT_OUT}/testcases/SettingsUnitTests/arm64/SettingsUnitTests.apk

To run all tests:
$ adb shell am instrument -w com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner

To run all tests in a specific class:
$ adb shell am instrument -w -e class com.android.settings.<class> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner

To run a specific test:
$ adb shell am instrument -w -e class com.android.settings.<class>#<test> com.android.settings.tests.unit/androidx.test.runner.AndroidJUnitRunner

More general information can be found at
http://developer.android.com/reference/android/support/test/runner/AndroidJUnitRunner.html