Commit Graph

46327 Commits

Author SHA1 Message Date
Chaohui Wang
35e0ff2fb7 Merge "Add AppNotificationPreference to App Info Settings" 2022-12-21 04:51:04 +00:00
Chaohui Wang
dcd965b816 Add AppNotificationPreference to App Info Settings
This is only for the App Info Settings page, which is planed to be
migrated to SPA in Android U.

Currently protected by flag settings_enable_spa, default false.

This will not impacted the AppNotificationSettings, which has no plan
to be migrated.

Bug: 236346018
Test: Unit test
Test: Manual with Settings App
Change-Id: I4ae669ce36eb6ab73f1adf99585f424e03bf90fb
2022-12-21 04:50:12 +00:00
George Chan
4f894679aa Merge "Added Background install control UI code." 2022-12-21 04:33:25 +00:00
Daniel Huang
e0fa3d3381 Merge "Implement trackpad settings UI" 2022-12-21 03:46:40 +00:00
Kuan Wang
2c7f06e9b3 Use taskRootPackageName instead of packageName to load uid when usage
resource is USAGE_SOURCE_TASK_ROOT_ACTIVITY and taskRootPackageName is
not empty.

This logic is consistent with digital wellbeing: assign the screen-on
time onto task root activity when usage resource is
USAGE_SOURCE_TASK_ROOT_ACTIVITY.

Bug: 260964679
Test: make RunSettingsRoboTests + manual
Change-Id: I4c7ed342d8c00951879f5826bf79575f330ce86e
2022-12-21 02:39:23 +00:00
Kuan Wang
a1a7cba6a6 Move the getBatteryLevelData function from DataProcessor to
DataProcessManager and start the async task in DataProcessManager when
there is no battery level data.

Test: make RunSettingsRoboTests + manually
Bug: 260964903
Change-Id: Ie36ab6d121a5596a3abc16e7f570dd0d9b32e11c
2022-12-21 02:39:11 +00:00
PETER LIANG
0b2a23dedc Merge "Fix the display/Font preview window appears blank while transitioning between sizes." 2022-12-21 02:33:32 +00:00
George Chan
d18b422c51 Added Background install control UI code.
Change-Id: I1b629fdc04d1df1b08998c9aaae3df3446fab3fe
Bug: 238451991
Test: Manually with settings, atest
2022-12-20 22:38:01 +00:00
Anna Bauza
d0c68b3807 Merge "add settings log to remove and switch user" 2022-12-20 22:28:50 +00:00
Daniel Norman
b842f4c5fc Merge "Update OWNERS for A11y Settings to include myself & remove others." am: 5394ffdd9d am: 38b5b5d994 am: c01da5ab7e
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2362352

Change-Id: Ib738b22e84a79fa24e155e03ca4d5d2480936f05
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 20:15:50 +00:00
Daniel Norman
c01da5ab7e Merge "Update OWNERS for A11y Settings to include myself & remove others." am: 5394ffdd9d am: 38b5b5d994
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/2362352

Change-Id: I38b7ae19c2b6f1807f04b4b2a294569a922b16e2
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2022-12-20 19:32:38 +00:00
Anna Bauza
225c81df42 add settings log to remove and switch user
Bug: 260730616
Bug: 260733849

Test: croot && make RunSettingsRoboTests -j40
Change-Id: I870d6f53f377f293adb54c86d16cccf1bacac6a9
2022-12-20 18:36:18 +00:00
danielwbhuang
1dfe99253f Implement trackpad settings UI
1. basic trackpad settings
2. trackpad gestures settgins
3. use feature flag to control gesture settings page.

Bug: 247080509
Test: local test

Change-Id: Ia7184eeb7670e5d807cb553929679972e54d8c92
2022-12-20 23:57:11 +08:00
jasonwshsu
a7d5801d28 [hearing devices page][Audio routing] Add feature flag to control visibility of the hearing device controls and audio output
* Setup basic xml for hearing device controls and audio output in bluetooth detail device page.
* Use same PreferenceCategory with spatial audio and rename to
  `feature_controls_group`

Bug: 237625815
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsHearingDeviceControlsControllerTest
Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothDetailsAudioRoutingControllerTest
Change-Id: Ibe71757b53b9d65c6ab6efa1053d035e78882b68
2022-12-20 11:05:23 +00:00
Jason Hsu
ad41a194a3 Merge "[hearing devices page] Add feature flag to control visibility of the hearing devices page" 2022-12-20 10:23:58 +00:00
Peter Liang
06b1ebbbea Fix the display/Font preview window appears blank while transitioning between sizes.
Action:
Using post messages to update the UI to avoid the timing issue.

Bug: 223665259
Test: make RunSettingsRoboTests ROBOTEST_FILTER=PreviewSizeSeekBarControllerTest
Change-Id: I31ef0d50a417fb76d14c1caf21926f1618ac3c4f
2022-12-20 17:58:16 +08:00
Ankita Vyas
52082f4394 Merge "AppClone: Implement clone backend flow" 2022-12-20 09:12:07 +00:00
Jeremy Nei
bd89bc1edb Merge "Report user selected resolution events to StatsLog" 2022-12-20 08:34:44 +00:00
TreeHugger Robot
b878053b92 Merge "use SettingsEnums instead of MetricsEvent in TapScreenGestureSettings" 2022-12-20 05:53:43 +00:00
TreeHugger Robot
3dca8e60d4 Merge "Add metric for About phone > Device name > confrim dialog" 2022-12-20 05:52:57 +00:00
Zoey Chen
3bc1e1f126 Merge "[Settings] Provision status checking of eSIM in dialog fragment" 2022-12-20 03:47:31 +00:00
Kuan Wang
1e7181cfcc Remove "Other Users" entry in app usage list.
Don't show the aggregated other user entry in the app usage list to keep
consistent with screen-on time data.

Bug: 260964903
Test: make RunSettingsRoboTests
Change-Id: Id611e7222602f5ad2ea0fe27fb3f9f62fed31ff9
2022-12-20 03:00:05 +00:00
Kuan Wang
97924455ff Implement the app usage data loading from database function.
Bug: 260964903
Test: make RunSettingsRoboTests + manual
Change-Id: I459dbdebe53e6b7421642955f36976b3e7c95fcb
2022-12-20 02:31:50 +00:00
Daniel Norman
6b8778a40c Update OWNERS for A11y Settings to include myself & remove others.
Change-Id: Ia63248cfb74218a6d7f95150d379f7024f162dbb
2022-12-19 23:49:59 +00:00
TreeHugger Robot
092d07fa60 Merge "[Settings] Extend CustomDialogPreferenceCompat class" 2022-12-19 18:10:20 +00:00
Zoey Chen
eeaf2a0125 [Settings] Provision status checking of eSIM in dialog fragment
Bug: 262679983
Bug: 257120311
Test: manual
Change-Id: Idc78741e445b5d6448e2288f2a1bc6c79e34bf4b
2022-12-19 18:08:15 +00:00
Dan Shi
c0f061a08d Merge "Revert "Add Credential Manager settings"" 2022-12-19 17:48:02 +00:00
Bonian Chen
47a8010a52 [Settings] Extend CustomDialogPreferenceCompat class
CustomDialogPreferenceCompat is an abstract class, which not allowing
creating a dialog directly.
This is a class to enable constructing it as a generic class.

Bug: 260540995
Test: presubmit build pass

Change-Id: I1353bb92b353d6d27206574fd8f5499742ad3994
2022-12-19 14:44:12 +00:00
Jeremy Nei
c98bff6d74 Report user selected resolution events to StatsLog
Report user selected resolution event.

Bug: 259797244
Test: Tested by tool statsd_testdrive
Change-Id: Ifb67de46562031b51d8d0695c789e1e15eea30bf
2022-12-19 08:40:42 +00:00
Dan Shi
7a231eaba0 Revert "Add Credential Manager settings"
This reverts commit 8c6f627a93.

Reason for revert: possible cause of b/263060941

Change-Id: I8ce36da052ceb1f29372c307ae1c7a85cc932fe4
2022-12-19 06:48:52 +00:00
Ankita Vyas
5784198b56 AppClone: Implement clone backend flow
- Add onClick listeners of add/trash icons on Cloned Apps page
- New layout with ImageView(Add icon) and ProgressBar
- Creation of clone user and install package in clone user
- Uninstallation of cloned app
- Summary when app is being cloned and after clone completion
- Action metrics

Bug: 259022623
Test: make RunSettingsRoboTests -j64
Change-Id: Idc76fb8d88ba8987084beef2a0ce4c57d6c45b9e
2022-12-19 06:15:10 +00:00
TreeHugger Robot
a4f8010043 Merge "Add DataProcessManager to manage the async tasks of battery usage data processing." 2022-12-19 06:13:43 +00:00
Edgar Wang
8ee8602c68 Add metric for About phone > Device name > confrim dialog
Change-Id: Idbc15e8f42a183177a3cfa946c974d1ebd4d4f3c
BUG: 260072149
Test: rebuild
2022-12-19 05:41:24 +00:00
Ankita Vyas
da69b2597b Merge "AppClone: Do not show work tab in Cloned Apps page" 2022-12-19 05:40:53 +00:00
Edgar Wang
37884e90b3 use SettingsEnums instead of MetricsEvent in TapScreenGestureSettings
Change-Id: I6811b954e67001e6cf9089b85c6a9124a5bcb087
Fix: 260076400
Test: rebuild
2022-12-19 04:58:33 +00:00
Kuan Wang
8d2a26caed Add DataProcessManager to manage the async tasks of battery usage data
processing.

Test: make RunSettingsRoboTests + manually
Bug: 260964903
Change-Id: Id3b2772a98ec2ab3b03910c8a5e81adf7ccd5646
2022-12-19 03:40:48 +00:00
Chaohui Wang
16e6c4abb6 Merge "Refactor AppNotificationRepository" 2022-12-19 03:27:03 +00:00
Kuan Wang
cf7e1141df Cancel data loading when hourly job happens in the first 40 minutes
after booting in AOSP.

Test: make RunSettingsRoboTests + manual
Bug: 257384343
Change-Id: I437b68719ff5ece73fa33b74cb144f4262528e8c
2022-12-19 02:36:07 +00:00
TreeHugger Robot
269b14fb45 Merge "Add Credential Manager settings" 2022-12-19 02:23:43 +00:00
TreeHugger Robot
e0f3a47577 Merge "Add RECEIVER_EXPORTED for internal intent based on the PSA" 2022-12-19 00:02:44 +00:00
ykhung
b41b50c3dc Add RECEIVER_EXPORTED for internal intent based on the PSA
Test: presubmit
Change-Id: I699f1e93cf8c44b046f131014d6200346798336e
2022-12-19 00:07:27 +08:00
Chaohui Wang
b760ffdc1a Refactor AppNotificationRepository
Also add unit tests.

Bug: 236346018
Test: Manual with Settings App
Change-Id: Idf3fbcb3dff2cbee9039ff67b5c0f09133f9ff86
2022-12-18 19:47:32 +08:00
Becca Hughes
8c6f627a93 Add Credential Manager settings
Autofill is evolving into CredMan which means we need
to update the settings to have CredMan providers.

This CL adds CredMan equivalent classes to list the
Credential Manager providers and allow the user
to select a number of providers.

Test: Manual & atest SettingsUnitTests & make RunSettingsRoboTests -j
Bug: 253157366

Change-Id: Ice76187cfee91d844d211205b44b661acf2f6a44
2022-12-16 22:16:12 +00:00
Gil Cukierman
cae1834631 Merge "Add toggle to allow or disable null algorithms" 2022-12-16 21:16:17 +00:00
Eric Biggers
4e337fe522 Merge "Remove EncryptionInterstitial for Full Disk Encryption" 2022-12-16 18:55:41 +00:00
Dominik Maier
2f81c06361 Add toggle to allow or disable null algorithms
This adds the allow null algorithms toogle to the Settings UI.

If supported by the smartphone baseband, the toggle allows users to opt
out of null algorithms, unencrypted cellular communication, for all
cellular generations.

This toggle is behind a feature flag that is off by default. It also
requires radio network HAL 2.1 or later to show.

Co-authored-by: Gil Cukierman <cukie@google.com>
Bug: b/237529943
Test: atest NullAlgorithmsPreferenceControllerTest
Test: adb shell device_config put cellular_security
enable_null_cipher_toggle true; // On cuttlefish, you can now see the
toggle in SIM settings.

Change-Id: Ia03cceee5463171ca455fa0624b911e06f222d2d
2022-12-16 16:29:49 +00:00
Zoey Chen
d9f2de7abb Merge "[Settings] 1. Provision status checking of eSIM 2. Show SIM if isOpportunistic is false" 2022-12-16 14:08:43 +00:00
Vania Januar
5a5dc81fd3 Merge "USI Stylus settings Fragment." 2022-12-16 13:32:48 +00:00
Zoey Chen
e40a3ca111 [Settings] 1. Provision status checking of eSIM 2. Show SIM if isOpportunistic is false
Bug: 262679983
Bug: 257120311
Test: manual
Change-Id: I67acd7d6e261d67271438f78ce1a87e90362e0b6
2022-12-16 11:25:04 +00:00
TreeHugger Robot
c3d11c8f6a Merge "Purging battery diff data before calculating perctage and sort." 2022-12-16 10:54:43 +00:00