Commit Graph

28 Commits

Author SHA1 Message Date
Zoey Chen
92333907f0 [Settings] Apply the SettingsDataService to the SIM page, MobileDataPreferenceController
Bug: 257950125
Test: atest MobileDataPreferenceControllerTest
Change-Id: Ia64a8baf931e9aa7f54cad2b2f5bb264420be9b0
2022-11-22 08:01:27 +00:00
Milton Wu
4f93ef7790 Fix incorrect choose screen lock during unicorn
ChooseLockGeneneric uses intent extra key to determine correct strings
on "Choose screen lock" screen.

Bug: 219419005
Test: atest BiometricEnrollActivityTest
Test: Manully test SUW as following combinations
      1. W/ unicorn flow or W/O unicorn flow
      2. Fingerprint only devices or Fingerpirnt+Face devices
Change-Id: I2abf9555676f3fb3b92dd6ddcc091ea8158bfe9f
2022-09-08 07:54:53 +00:00
Zoey Chen
6978a90e88 [Settings] Remove MobileNetworkActivity
- remove the component name when launching the intent, using the action intent to replace.

- remove MobileNetworkActivity and rename SubscriptionSettingsActivity as MobileNetworkActivity.

Bug: 210593601
Test: atest
Change-Id: Icb7adaf9f7c7dfe01ff5c133aee8387c1663546c
2021-12-16 13:30:25 +08:00
Syaoran Kuo
5fed474020 Use power manager instead of adb to wake up screen.
Fix this before merger back from sc-v2, to prevent merge conflict.


Bug: 201253586
Test: atest SettingsComponentTests
Change-Id: I08871e744e201a10ddbfdf41e3a40df8c65b9865
2021-09-28 07:35:16 +00:00
Joe Bolinger
087078208c Merge "Fix extra password confirm prompts during managed setup." into sc-dev am: 336d3e5501 am: 76b51c0d57
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/15463178

Change-Id: I347fa7ed007573a1b83ba84d1ecb3ac48c9d2caf
2021-08-07 00:38:53 +00:00
Joe Bolinger
c11e01f39d Fix extra password confirm prompts during managed setup.
Managed accounts may set the pin/pattern before enrollment begins.

Fix: 191608999
Test: atest BiometricEnrollActivityTest
Change-Id: I4065989ecc26ce72ffd0e06e7c6e68029a11908f
2021-08-05 11:08:48 -07:00
Syaoran Kuo
2fbf3efb09 Fix mobile network test cause process crashed.
Bug: 192428680
Test: atest com.android.settings.network.telephony.MobileDataPreferenceControllerComponentTest
Change-Id: If51950381071b6cbafb98d3282c201f5872ebbe0
2021-07-02 18:24:31 +08:00
Syaoran Kuo
1eaddbac90 Merge "Fix dark mode activity in incorrect stage exception" 2021-07-01 03:10:38 +00:00
Syaoran Kuo
28da952fb2 Merge "Add test case for on off airplane mode repeatly" 2021-06-30 13:58:41 +00:00
Syaoran Kuo
b5c5dd5fe8 Merge "Add test to launch all sub items in Settings home." 2021-06-30 13:58:22 +00:00
Syaoran Kuo
4225944fc0 Add test case for on off airplane mode repeatly
Bug: 191831494
Test: atest com.android.settings.network.AirplaneModePreferenceControllerComponentTest
Change-Id: I407f4435bb02fed77fc91458e732b8a6573539cd
2021-06-30 17:59:12 +08:00
Syaoran Kuo
d9f8711188 Add test to launch all sub items in Settings home.
Bug: 189723084
Test: atest com.android.settings.homepage.HomepageComponentTest
Change-Id: I4d49f0b9f7859fcf2de15e28867e995a19990913
2021-06-30 17:14:05 +08:00
Syaoran Kuo
5f9e36181d Fix dark mode activity in incorrect stage exception
Bug: 192342363
Test: atest com.android.settings.display.darkmode.DarkThemeScheduleComponentTest
Change-Id: Iaa368cbd7c7d9d9b111965e38e5a6ec480db2663
2021-06-29 21:18:32 +08:00
Syaoran Kuo
780283b861 Merge "Adds test case: disable mobile network function" 2021-06-29 10:03:00 +00:00
Syaoran Kuo
9c957e4c46 Adds test case: disable mobile network function
Bug: 189722358
Test: atest com.android.settings.network.telephony.MobileDataPreferenceControllerComponentTest
Change-Id: I524d2c26a3c8193e5dc3eb620596baedaae5a635
2021-06-29 12:13:23 +08:00
Syaoran Kuo
5148311d60 Bug fix: null string will cause exception in checkStringInAdbCommandOutput
Bug: 192036015
Test: atest com.android.settings.fuelgauge.batterysaver.BatterySaverButtonPreferenceControllerComponentTest#test_check_battery_saver_button
Change-Id: Ifc73c8c9d6b5fabca6af5ea604f23a789b99d217
https://atp.googleplex.com/test_runs/128222905
2021-06-25 08:10:15 +00:00
Syaoran Kuo
5c93fc758a Add testcase: Add multiple user and delete.
Add user and delete, check on UI.

Bug: 188507135
Test: atest com.android.settings.users.UserSettingsComponentTest

Change-Id: I8aaa10f38a146cd3e869b5b5b35a93b451113e07
2021-06-21 18:54:43 +08:00
Syaoran Kuo
278b1e8cce Add test case for dark theme scheduler.
Bug: 189722519
Test: atest com.android.settings.display.darkmode.DarkThemeScheduleComponentTest
Change-Id: I94cbff123af0eaef7834aa636e3b38c6da3f2235
2021-06-21 17:27:41 +08:00
Syaoran Kuo
956b03d3d8 Fix resource id not match issue.
Bug: 187485845
Test: atest com.android.settings.notification.AppNotificationComponentTest
Change-Id: I4b094dd430127046e08cb1b87706906807c28b32
2021-06-11 17:02:34 +08:00
Syaoran Kuo
47328cc97b Adjuest battery saver component test for new logic
1. Remove 1 case for spec change.
2. Change UI finding for switch on/off button.

Test: atest com.android.settings.fuelgauge.batterysaver.BatterySaverButtonPreferenceControllerComponentTest
Bug: 185750890
Change-Id: I0612d31b351db8622ac705b46eae1a448bfb3273
2021-06-01 10:15:59 +00:00
Syaoran Kuo
25b846d6d5 Merge "Adds new test for ApplicationState sorting function." into sc-dev 2021-05-31 03:53:57 +00:00
Syaoran Kuo
55fc977cb0 Adds new test for ApplicationState sorting function.
Test: atest com.android.settingslib.applications.ApplicationStateComponentTest
Bug: 184814907
Change-Id: Ie6fd2d9d58a8dac64ad1408f1d3122b7d74ae7a3
2021-05-20 07:43:33 +00:00
Syaoran Kuo
87cc2e19e5 Add more log for debugging resource id issue.
Bug: 187485845
Test: atest SettingsComponentTests
Change-Id: I6268809eca172b0b4aa9f1a252e0d519ad758083
2021-05-07 18:49:26 +08:00
Syaoran Kuo
bc1e5321ab Remove wifi related test.
To add these case back, add a success case to avoid empty test error.

Bug: 186372528
Test: atest SettingsComponentTest
Change-Id: I6d973a244338f67e3d35e9657d1d46eba8ba4501
2021-05-07 13:44:08 +08:00
Syaoran Kuo
f4aca12619 Adds new test for notification.
1. Add notification test.
2. Add shareUserId into manifest file.

Test: atest
com.android.settings.notification.AppNotificationComponentTest
Bug: 184814161

Change-Id: I38b7a854e8c8e0777fb7be3a518b7ed9d0f0a7a6
2021-04-14 05:35:38 +00:00
Jeff Sharkey
9e07eab08f Request new Bluetooth runtime permissions.
An upcoming platform change is introducing a new "Nearby devices"
runtime permission which contains the new BLUETOOTH_CONNECT and
BLUETOOTH_SCAN permissions.

We have logic in place to use <split-permission> to translate the
older BLUETOOTH and BLUETOOTH_ADMIN permissions into these new
runtime permissions, but modern apps will need to pivot to
requesting them directly as part of targeting Android S.

This change requests both the old and new permissions to avoid
breakage while the new permission enforcement is being phased in.

Bug: 181813006
Test: atest CtsPermission2TestCases
Test: atest CtsPermission3TestCases
Test: atest CtsStatsdAtomHostTestCases
Change-Id: I0a6ff040520deaa7c7a6fecd83e8608a9bf28c4a
2021-03-23 12:35:36 +00:00
Bob Badour
a73a67240c [LSC] Add LOCAL_LICENSE_KINDS to packages/apps/Settings
Added SPDX-license-identifier-Apache-2.0 to:
  Android.bp
  protos/Android.bp
  tests/anomaly-tester/Android.bp
  tests/componenttests/Android.bp
  tests/legacy_unit/InstrumentedEntitlementApp/Android.bp
  tests/perftests/Android.bp
  tests/robotests/Android.bp
  tests/uitests/Android.bp
  tests/unit/Android.bp

Bug: 68860345
Bug: 151177513
Bug: 151953481

Test: m all

Exempt-From-Owner-Approval: janitorial work
Change-Id: I58a85aced69923fa9a8e5a2b89ecfdd33de5e05c
2021-02-25 15:05:14 -08:00
Jiun-Yang Hsu
7a3635e7f4 Initial commit for Settings component test
Test: Tested on local device
Bug: 178765084
Change-Id: I3b8f36daa31b0a44e788fe4c84f94d48653ee037
2021-01-29 14:00:59 +08:00