Commit Graph

138002 Commits

Author SHA1 Message Date
Faye Yan
78f99c6a67 Fix the op mode dependency for the second toggle:
If OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is toggled to deny,
OP_RECEIVE_SANDBOXED_DETECTION_TRAINING_DATA is set to deny and toggled.

If OP_RECEIVE_SANDBOX_TRIGGER_AUDIO is toggled to allow,
OP_RECEIVE_SANDBOXED_DETECTION_TRAINNING_DATA is unchanged.

Bug: 309677007
Test: presubmit
Change-Id: I83bbfdb71ad1aa0e29c55275948ec88fc7f83c6a
2024-01-18 06:44:28 +00:00
Treehugger Robot
17acb392bf Merge "Add SettingsLintDefaults to Settings-core" into main 2024-01-17 19:07:28 +00:00
Haijie Hong
27be66f48b Merge "Add BT extra options in device details page" into main 2024-01-17 12:48:24 +00:00
Joseph Vincent
ca9016a8be Merge "Show private space unlocked toast when PS is unlocked from Settings" into main 2024-01-17 12:42:00 +00:00
Haijie Hong
76d8145f15 Add BT extra options in device details page
Bug: 319562236
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsExtraOptionsControllerTest
Change-Id: Ifab39d2bd19044d60f090f4a0419d1e20b2ad925
2024-01-17 19:02:20 +08:00
Johannes Gallmann
d28730e07a Merge "Change predictive back system animations flag to runtime flag" into main 2024-01-17 10:55:24 +00:00
josephpv
4d6e11ce4b Show private space unlocked toast when PS is unlocked from Settings
This contains the change to show private space unlocked toast message
when PS is unlocked from private space settings entry point.
Also has change in the pending intent passed to requestQuietModeEnabled
API to allow BAL of PS settings page as suggested in go/debug-bal

Recording is uploaded to the issue b/317313482

Bug: 317313482
Test: Manually verified Toast is shown on PS unlock from settings

Change-Id: I2f03b7decdad2bb9e1018012ff5986e48305a4e7
2024-01-17 10:26:33 +00:00
YK Hung
87e9f512d2 Merge "Set Switch Preference disabled when app battery optmization mode is immutabled." into main 2024-01-17 10:17:24 +00:00
Fan Wu
7007c24408 Merge "Ignore two failing tests" into main 2024-01-17 10:12:54 +00:00
Joseph Vincent
bd3e3a174f Merge "In Private space settings when no face support show only fingerprint unlock" into main 2024-01-17 10:02:05 +00:00
Faye Yan
602749494d Merge "Add the second toggle for the egress data permission on voice activation apps toggle page." into main 2024-01-17 10:01:14 +00:00
SongFerng Wang
7e2fc39678 Merge "Remove the phone number at Rename page" into main 2024-01-17 09:08:49 +00:00
Treehugger Robot
6daeeeec92 Merge "Remove unneeded custom shadow of PowerManager" into main 2024-01-17 09:06:11 +00:00
Fan Wu
aaa9ef4086 Merge "Update ShadowNotificationManager to extend from roboletric shadow library" into main 2024-01-17 08:42:19 +00:00
Fan Wu
a079fe8a10 Ignore two failing tests
Bug: 313578776

Test: atest
Change-Id: I808fbb961dccc9e26c3c4fd4acecbe603584850f
2024-01-17 16:32:55 +08:00
Treehugger Robot
a998dc9590 Merge "Update ShadowParcel to extend from org.robolectric library" into main 2024-01-17 08:24:06 +00:00
Fan Wu
65e9804dbb Remove unneeded custom shadow of PowerManager
Bug: 319052511

Test: atest
Change-Id: I6150ce86c909abf3cb33cdbedba102e53db0d4d4
2024-01-17 15:24:52 +08:00
fayey
a0f67e8591 Add the second toggle for the egress data permission on voice activation
apps toggle page.

Bug: 309677007
Test: presubmit
Change-Id: I219f67bd55d3a38b6e026698ce4cbf24c6fbe503
2024-01-17 07:17:47 +00:00
SongFerngWang
4366ceea15 Remove the phone number at Rename page
Bug: 318310357
Bug: 298898436
Bug: 298891941
Test: Build pass
Change-Id: I6e77f2a8858e17e3e56c01769e6eb5b4fd478a04
2024-01-17 15:11:55 +08:00
Jacky Wang
5efa494163 Add SettingsLintDefaults to Settings-core
Bug: 319351140
Change-Id: I024e42126d576c26c7891942a5ddd99fc2e39309
Test: manual compile with lint
2024-01-17 15:02:38 +08:00
Yiyi Shen
ce27ff1efa Merge "[Audiosharing] Add toggle to improve sharing compatibility." into main 2024-01-17 06:47:17 +00:00
mxyyiyi
ac1aa99591 Set Switch Preference disabled when app battery optmization mode is immutabled.
Bug: 320600016
Test: manual
Change-Id: I7ebd604c64a0618f94c0b5e6fcf398a661657125
2024-01-17 14:32:40 +08:00
Fan Wu
a98cc6a5dd Update ShadowNotificationManager to extend from roboletric shadow library
Bug: 319052511

Test: atest
Change-Id: Ic89f7ef69ade4e4497f4b92e292e297e3c1e7bdc
2024-01-17 12:29:45 +08:00
Wu Ahan
a3e5036311 Merge "Add SfpsRestToUnlockFeature to FingerprintFeatureProvider" into main 2024-01-17 02:30:11 +00:00
Joseph Vincent
c225153922 Merge "Add biometric enrollment support for private profile" into main 2024-01-16 23:06:37 +00:00
josephpv
149a06cfdf Add biometric enrollment support for private profile
During a new lock setup for profile whose credential is shareable with
its parent first the user is authenticated with device lock after which
an activity having options of Pin/Pattern/Password with fingerprint and
face combinations is shown.
On choosing any option which has combination to set LSFK and biometric
it is expected that after setting LSKF the Biometric enroll activity is
started but currently this does not work as expected as the
ChooseLockGeneric activity is finished after adding LSKF and it does not
start the biometric enrollment for the profile.
The issue also exists with non-profile users using this workflow through
SET_NEW_PASSWORD intent and if already have LSKF assigned.

This change adds a new boolean which takes care to not finish the
activity till the Biometric enrollment is started.

Below conditions are taken care with this change
- For new lock setup when device lock already exists then after
  authentication of current device lock make sure the activity is not
  finished untill the biometrics enrollment activity is started.
- On choosing continue without fingerprint or face option the biometrics
  enrollment is not started

screen recordings uploaded to buganizer - b/316109077

Bug: 316109077
Test: Manual
Change-Id: Ifcbaa7d89195d87d432fc848092f2301752c3c22
2024-01-16 21:07:38 +00:00
Treehugger Robot
082537ac1f Merge "Update strings for new settings design" into main 2024-01-16 19:39:59 +00:00
Chris Antol
773af8cbe7 [automerger skipped] Merge "Prevent the disabling of specified apps" into main am: d06d6affb4 am: fd72508177 -s ours
am skip reason: Merged-In I0b298af76cec20e4f31ec7411bbf3200a2869035 with SHA-1 03bde3d8c6 is already in history

Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2774892

Change-Id: I18f6340505efded898bad7802438b4f8149af9ea
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-16 19:30:00 +00:00
Johannes Gallmann
161f280616 Change predictive back system animations flag to runtime flag
Bug: 320510464
Flag: ACONFIG com.android.systemui.predictive_back_system_anims DISABLED
Test: presubmit
Change-Id: I591133ce8d4c85c7c056b66f1c21ce8d0c40960e
2024-01-16 19:25:10 +00:00
Becca Hughes
2417c84a77 Update strings for new settings design
This updates the strings for the new settings
design as per the new spec.

Screenshots:
https://hsv.googleplex.com/5257279109595136
https://hsv.googleplex.com/5049022822744064
https://hsv.googleplex.com/6177842804031488

Change-Id: I6ff705d2bfab9de4ca2e8d49763b5405e3d2d2c3
Test: Manual test
Bug: 300979487
2024-01-16 18:13:32 +00:00
Chris Antol
fd72508177 Merge "Prevent the disabling of specified apps" into main am: d06d6affb4
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2774892

Change-Id: I71870eb897d63bd00a7ad4d436bcc1dd91315144
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-01-16 17:56:49 +00:00
Chris Antol
d06d6affb4 Merge "Prevent the disabling of specified apps" into main 2024-01-16 17:27:43 +00:00
YK Hung
a8fa24ccd5 Merge "[Reskin] Update string of incompatible charging on settings" into main 2024-01-16 16:29:10 +00:00
pajacechen
fe96aee940 [Reskin] Update string of incompatible charging on settings
Update the battery status of incompatible charging on settings home page

Bug: 315748218
Test: Manual Test
Flag: NA
Change-Id: I4e729a5c45a0d2f8c8bcd82c40b776d9e9900dca
2024-01-16 23:02:35 +08:00
Angela Wang
3c71a5ff22 Merge changes from topic "ha-new-pairing" into main
* changes:
  New hearing device pairing page (2/2): MFi devices
  New hearing device pairing page (1/2)
2024-01-16 09:41:37 +00:00
Yiyi Shen
3cdd111ed3 [Audiosharing] Add toggle to improve sharing compatibility.
Test: manual
Bug: 305620450
Bug: 292538935
Change-Id: I8df92323c606cc3375a0f985d46c11caa12c6cfe
2024-01-16 17:20:05 +08:00
YK Hung
76a783b50c Merge "Fix lost field foregroundServiceUsageTime in convertUtil" into main 2024-01-16 08:55:38 +00:00
YK Hung
b8e1f96d3e Merge "Fix crash while dumpping database." into main 2024-01-16 08:39:31 +00:00
Fan Wu
bbe421145e Merge "Fix test failure caused by ag/25891007" into main 2024-01-16 08:01:48 +00:00
YK Hung
b5eac9b47b Merge "Clean up the legacy anomaly detection mechanism in the Settings" into main 2024-01-16 07:54:57 +00:00
Yiyi Shen
a05c1e5283 Merge "[Audiosharing] Always show broadcast name when BT is on." into main 2024-01-16 07:51:05 +00:00
mxyyiyi
2c7ca9f2e7 Fix crash while dumpping database.
Bug: 319905857
Test: manual
Change-Id: If531f1d7416b21d481fc19834e7538567dec7c0c
2024-01-16 15:46:34 +08:00
ykhung
9ccd8d8da2 Clean up the legacy anomaly detection mechanism in the Settings
Clean up the legacy anomaly detection mechanism in the Settings, which is implemented in the 2017-2018. The will be replaced by the new anomaly detection mechanism.

Bug: n/a
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: I12ee6c8b3cbdb5073e4d46f18b90f8de228be8a8
2024-01-16 15:05:29 +08:00
mxyyiyi
90da4049f2 Fix lost field foregroundServiceUsageTime in convertUtil
- from batteryDiffEntry to batteryUsageDiff

Bug: 320358970
Test: make RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge.batteryusage.*"
Change-Id: Ibc5ee2f14ede066bef3fb1c832ef54941fc59ebf
2024-01-16 15:02:21 +08:00
Fan Wu
133152906a Fix test failure caused by ag/25891007
Bug: quick fix

Test: atest
Change-Id: I593df098ca8d873d61ea887489d0cf6391a46ca0
2024-01-16 06:56:21 +00:00
Yiyi Shen
162533362a [Audiosharing] Always show broadcast name when BT is on.
Also group the broadcast name to Stream settings category.

Test: manual
Bug: 305620450
Change-Id: I12bba9d5199d6770f86dad1089b47c3767285573
2024-01-16 14:54:10 +08:00
YK Hung
fe684cb602 Merge "Clean up the legacy anomaly detection mechanism in the Settings" into main 2024-01-16 04:11:48 +00:00
ykhung
5bf510bf0d Clean up the legacy anomaly detection mechanism in the Settings
Clean up the legacy anomaly detection mechanism in the Settings, which is implemented in the 2017-2018. The will be replaced by the new anomaly detection mechanism.

Bug: n/a
Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.fuelgauge"
Change-Id: Id5b5f4987c205c45698b6aa25aeb9604479e79c6
2024-01-16 04:06:29 +00:00
Angela Wang
5cb00f6602 New hearing device pairing page (2/2): MFi devices
Some of the hearing aids support both ASHA + MFi, however, they only
advertise MFi service uuid in advertisement packets.

We can filter the devices with MFi uuid while scanning and then connect
gatt to discover the remote services before pairing to make sure if the
devices are compatible with Android or not. Only devices that support
ASHA/HAP will be shown.

Bug: 307890347
Test: atest HearingDevicePairingFragmentTest
Change-Id: Ie1f4eedddd4c43fad0fcbcd35f436dea5ab06925
2024-01-16 03:55:54 +00:00
Angela Wang
3e9f1ff659 New hearing device pairing page (1/2)
Rewrite a new hearing device pairing page with update UI for "See more
devices".

Bug: 307473972
Test: atest HearingDevicePairingFragmentTest
Test: flip the flag com.android.settings.flags.new_hearing_device_pairing_page && atest HearingAidPairingDialogFragmentTest AddDevicePreferenceControllerTest
Change-Id: Ic60601905e3d0d7d7c5b1ef9733652118a211f1d
2024-01-16 03:49:34 +00:00