Commit Graph

1212 Commits

Author SHA1 Message Date
Julia Reynolds
1be83b6466 Merge "Some minor additions (icons, sorting) to modes" into main 2024-05-20 12:34:12 +00:00
Edgar Wang
542cd44266 Apply round corner group background for large screen
Bug: 340510477
Test: manual

Change-Id: I53ea81cee3b6bf543a71237030a61df6aef0e967
2024-05-20 06:49:24 +00:00
Julia Reynolds
b42553dccc Some minor additions (icons, sorting) to modes
Test: manually viewing pages
Flag: android.app.modes_ui
Fixes: 331429435
Fixes: 308819461
Bug: 322373473
Change-Id: I17e6df82e17a4cfadc2948258829746cdb5473db
2024-05-17 14:21:54 +00:00
Yiyi Shen
e5bd60a0cf [Audiosharing] Migrate feature from overlay to Settings
Bug: 340379827
Test: atest
Change-Id: I3a88ac1d2f575f3be1f26f617479bbfd25cf6a8e
2024-05-16 05:05:41 +00:00
David Anderson
cfc8c70ab4 Merge "Add Device Diagnostics to Settings." into main 2024-05-15 20:58:32 +00:00
Roy Chou
535494eca9 Merge "feat(brightness suw): add brightness preferences in suw" into main 2024-05-15 07:25:06 +00:00
Roy Chou
042c8c7328 feat(brightness suw): add brightness preferences in suw
Add brightness level and auto brightness preference in
accessibility_settings_for_setup_wizard.xml. Since the flagging has not
be supported yet for non-Manifest resources, for now we add the
preferences by default, and update the preferece availablity status in
each preference controllers based on the flag.

Bug: 311093618
Flag: ACONFIG com.android.settings.accessibility.add_brightness_settings_in_suw DEVELOPMENT
Test: manually
      atest AccessibilitySettingsForSetupWizardTest
      atest AutoBrightnessPreferenceFragmentForSetupWizardTest
      atest AutoBrightnessPreferenceControllerTest
      atest BrightnessLevelPreferenceControllerTest
Change-Id: I350d99138bdd14bf28828a39e42f707b5b1066c1
2024-05-15 03:19:40 +00:00
David Anderson
29f9abcd8b Add Device Diagnostics to Settings.
The new option will only appear if (1) the flag is enabled and (2)
DeviceDiagnostics.apk is landed on the device (which it is by default on
AOSP).

Bug: 309886423
Test: Build AOSP Pixel and launch Settings
Change-Id: If01d231664a301ff289d4da61445bf65a7506fdb
2024-05-14 04:46:02 +00:00
Marcus Ge
fd0dd5dfdd Merge "[Contrast] Migrate contrast settings into Display" into main 2024-05-10 15:23:47 +00:00
Edgar Wang
f437bec1bc Merge "Homepage UX revamp" into main 2024-05-10 00:57:01 +00:00
Edgar Wang
47400df7ae Homepage UX revamp
- unified Search and Suggestion behavior between regular phone and two
  pane
- don't adjust padding
- update new icon drawable
- support group homepage preference with round corner on phone
- Remove avator from homepage
- Adjust homepage preference order

Bug: 333989622
Bug: 334130370
Test: visual
Change-Id: I9880b52553f164745766c8b9d5c996585285e52a
2024-05-09 08:21:08 +00:00
marcusge
24289fa084 [Contrast] Migrate contrast settings into Display
Test: local raven device
Bug: 333905689

Change-Id: Ie94633c23ebe024b8fb48d7ffebdd7b1dfa588da
2024-05-09 06:32:29 +00:00
mxyyiyi
03fdbbe504 Use material color res from settingslib for battery tips card
Settings Anomaly Card
[Before-Dark] 	https://screenshot.googleplex.com/5PZC6mbWjqunvuv
[Before-Light] 	https://screenshot.googleplex.com/7eoF6yLX6t3JeHz
[After-Dark]  	https://screenshot.googleplex.com/5j4mQFDXjkVcxHs
[After-Light] 	https://screenshot.googleplex.com/5ySzfzft9293GXb

App Anomaly Card
[Before-Dark] 	https://screenshot.googleplex.com/JKkcqCiAKxkPZds
[Before-Light] 	https://screenshot.googleplex.com/ASB4CnDhPjsQohH
[After-Dark]  	https://screenshot.googleplex.com/5y3LVvng54vndi9
[After-Light] 	https://screenshot.googleplex.com/NCJeuViCtDcNhiV

Bug: 339130556
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batteryusage
Change-Id: I29d68713c14068fd9961082a148dd02ad38289a6
2024-05-07 13:51:32 +08:00
Edgar Wang
6bf662a0b9 Make icons of Homepage settings autoMirrored
Bug: 330371843
Change-Id: I68d15b24bafd036246bee6b46ef6c6e60c773e89
Test: visual
2024-04-24 10:20:18 +00:00
Treehugger Robot
e18a63faab Merge "Update satellite icon to match with system UI's" into 24D1-dev am: bccfb85bc2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/27000770

Change-Id: If4416d054f0c066948ee4cdd14108a6a5c00626c
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-23 13:39:24 +00:00
Hakjun Choi
632b2f09df Update satellite icon to match with system UI's
Reflected updated satellite icon.

Bug: 335580537
Test: manually verify the icon is matched with the icon on notification area
Change-Id: I6a4eb05ceb0d8ad208b1fb8ac1c43cfc389d1dec
2024-04-18 09:29:59 +00:00
Chaohui Wang
823d18708a Merge "Move nfc_detection_point.png to res/drawable" into 24D1-dev am: e499724357
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/26901180

Change-Id: Ic934242c6c07f0ff62525e0ab089e2d3009d6526
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
2024-04-12 03:26:29 +00:00
Chaohui Wang
b67133310a Move nfc_detection_point.png to res/drawable
From res/drawable-nodpi, for easier overlay.

Bug: 333631061
Test: visual - on NFC
Change-Id: I5b83a399d6ba10644843c816fa369efef869a006
2024-04-10 17:59:19 +08:00
Joseph Vincent
db315e642b Merge changes I6387c999,I470e5c6e into main
* changes:
  Update illustrations in Private Space setup & settings
  Replace autoadvance screens with waiting screen in PS setup
2024-04-10 09:51:35 +00:00
josephpv
f145d0e9a0 Update illustrations in Private Space setup & settings
This inlcudes the changes to use latest private space icon and update
the illustrations in private space setup and settings.
Change made to update illustrations dynamically between light and dark
theme.

Recordings link:
b/332867167#comment3

Bug: 332867167
Test: Manual
Change-Id: I6387c9991ec9bb419f446431926f99843f92c859
2024-04-09 22:35:04 +00:00
alukin
67835caf33 Split Documents&Other
Splitting Documents&Other category in
Settings > Storage into "Documents"
and "Other".

"Documents" category is calculated by
querying MediaStore for all files with
MediaType = "Document".

"Other" category is calculated by
querying MediaStore for all files with
MEDIA_TYPE != "Image" AND MEDIA_TYPE != "Video"
AND MEDIA_TYPE != "Audio" AND MEDIA_TYPE != "Document".

Bug: 328505030
Test: atest StorageItemPreferenceControllerTest
Test: atest StorageCacheHelperTest
Change-Id: I413c502c7b3fd66df9a3b5e0d91f8bd024f4b6e0
2024-04-05 19:54:21 +00:00
Aleksandr Lukin
80d12dbc25 Merge "Split System category" into main 2024-04-04 15:25:15 +00:00
alukin
f4329ada00 Split System category
Splitting System category in
Settings > Storage into "Android 14"
and "Temporary system files".

Android 14 is calculated as
StorageStatsManager#getTotalBytes - (size of /data partition).
Basically it's the size of all partitions
except for the userdata. It also includes
the storage rounding which we do to display
a nice round storage size (128GB, 256GB, etc).

Temporary System Files serves as "Everything else"
category that represents all the used storage
that didn't fall under any other category.
It's the same as how currently "System" category works.

Bug: 309801699
Test: atest StorageItemPreferenceControllerTest
Test: atest StorageCacheHelperTest
Change-Id: Ifae5819bf1d7a1a675df1fa67bd6dcdfa074b584
2024-04-04 13:26:07 +00:00
Chun-Ku Lin
c5f58eee27 Remove unneeded background and update the background color to reflect light/night theme
Updating the background color is a temporary workaround until we get all
the images for phone/tablet, light/night theme with correct size

Bug: 324312956
Test: manual (check the image in dark theme)
Flag: EXEMPT no flaggable resource change
Change-Id: I888e28825bdf9fd5ceffdf47386500ad6288b271
2024-03-30 01:47:28 +00:00
josephpv
4cc915ad64 Change icon for Private Space unlocked and setup success toast
Change is made to show customised icon in Toast message shown by using
Toast.makeCustomToastWithIcon()

Screenshots :
go/ss/AcaRQUJQfh79wDw.png
go/ss/5j4oD8xydwX7HTX.png

Bug: 329391204
Bug: 309575523
Test: Manual
Change-Id: I336d7d0419b1de60024e584e943a725662b446a9
2024-03-25 16:53:46 +00:00
marcusge
bec24a6393 [Accessibility] Address UX comments for the contrast screen
Bug: 241805782, 328475346
Test: atest, local raven device
Screenshot: attach on bug
Flag: aconfig
com.android.settings.accessibility.enable_color_contrast_control

Change-Id: I5177bad1d02769767b548b9405a9d723c1b3efeb
2024-03-14 15:52:53 +00:00
Chun-Ku Lin
9cf7f6e861 Merge "Show QS shortcut option if the a11y feature provides a tile." into main 2024-03-08 17:20:15 +00:00
Mykola Podolian
82ca9a1c3d Merge "Updated bubble setting design according to b/284170911." into main 2024-03-08 15:10:04 +00:00
Chun-Ku Lin
8b67c17a7b Show QS shortcut option if the a11y feature provides a tile.
Bug: 314852953
Test: atest com.android.settings.accessibility
Test: atest com.android.settings.accessibility.shortcuts
Test: manual
Flag: ACONFIG android.view.accessibility.a11y_qs_shortcut STAGING
Change-Id: Id7a6b3adfd4c4f3cb2b9f7fe15269b57a3d00543
2024-03-06 20:26:28 +00:00
mpodolian
c43f10f32a Updated bubble setting design according to b/284170911.
Updated bubbles settings screen design.

Test: manual
Bug: 284170911
Change-Id: Ie28ffca28820fe45b11fecfa735ce39aeddcba02
2024-03-06 12:11:42 +00:00
Harry Cutts
01bd498503 Merge changes I0c0a76c7,Iccfbe842 into main
* changes:
  Touchpad: remove icons
  Touchpad: add tap dragging setting
2024-03-05 11:39:22 +00:00
Chelsea Hao
7eb6df8ee7 Merge "[Audiosharing] Remove audio streams from settings." into main 2024-03-04 02:33:18 +00:00
Shaowei Shen
624e1beca8 Merge "[A11y Setting] Add keyboard keys preferences under A11y page" into main 2024-03-01 13:37:03 +00:00
shaoweishen
a5f5ff4add [A11y Setting] Add keyboard keys preferences under A11y page
Bug: 325851068
Test: make RunSettingsRoboTests
Change-Id: Ic7eb1ec9e260a95d040bee784cbff479a4f087d0
2024-03-01 12:05:30 +00:00
Marcus Ge
747d0afa21 Merge changes I69049a13,I7fcc01b8 into main
* changes:
  [Accessibility] Migrate high text contrast under feature flag
  [Accessibility] Add contrast control screen UI and setup entry point
2024-02-28 19:38:27 +00:00
Harry Cutts
659b379f21 Touchpad: remove icons
We don't have an icon for the tap dragging setting, and settings screens
should either have icons for everything or nothing, so we decided to
remove all the icons. For all except ic_trackpad_touch_gestures_inverse,
they're only used in this one location, so the drawables can be removed
as well.

Screenshot: go/b-324058706-icon-removal-screenshot

Bug: 324058706
Test: with a touchpad connected, check that the System > Touchpad screen
      has no icons on it.
Change-Id: I0c0a76c757f568cd20799c53a96cfb895ed00238
2024-02-28 14:40:46 +00:00
Joseph Vincent
3454f304a2 Merge changes Ic53c42ec,I91e3591c into main
* changes:
  Update illustrations in private space setup and settings
  Change to add temp GAIA education screen and swap account and lock flow
2024-02-28 09:29:00 +00:00
chelseahao
e44cf95424 [Audiosharing] Remove audio streams from settings.
Bug: 324023639
Test: manual
Change-Id: Id1e69422200fdc4b02ac8789ab9370d3ea0448c1
2024-02-28 16:50:45 +08:00
josephpv
0809d4dee7 Update illustrations in private space setup and settings
Recording link : b/326391912#comment3
https://drive.google.com/file/d/1Rykqy8iugvVNiE8uW2tgAlFhAypGxhdN/view?usp=drive_link

Bug: 326391912
Test: Manual
Change-Id: Ic53c42ec87fde4f1b8c38634e1e2927b235ff2a3
2024-02-28 06:47:49 +00:00
josephpv
c1fd5ad1ec Change to add temp GAIA education screen and swap account and lock flow
The change does below things:
- Interchange account and lock setup in PS setup
- After profile creation checks if network is present and starts new
  GAIA education screen
  If network is not present on device skips account login and shows lock setup screen.
- Adds a temp GAIA education screen before starting of account login which can skip to
  lock setup or start account login

Recording link : b/326389818#comment5
Screenshot : go/ss/7qWLUF4WDHFBQzi.png
go/ss/A8EvoCFJwihaTQP.png

Bug: 326389818
Test: Manual
Change-Id: I91e3591c60aae22fc10058fb94dcb624573d2e37
2024-02-28 06:46:49 +00:00
marcusge
cddd7b3660 [Accessibility] Add contrast control screen UI and setup entry point
Bug: 241805782
Test: atest, local raven device
Screenshot: attached on bug
Flag: aconfig
com.android.settings.accessibility.enable_color_contrast_control

Change-Id: I7fcc01b822b460c6585c41a5831575ba0ffbcc93
2024-02-27 23:36:52 +00:00
Yiyi Shen
dd7626f55b [Audiosharing] Clean up audio sharing from Settings
Bug: 324023639
Test: atest
Change-Id: Ie73790442f39af60b125bbd48182a700bb0b290a
2024-02-26 17:24:53 +08:00
pajacechen
1abc13fe29 [Shadow] Update the string and the dismiss button
- Disable the dismiss button for incompatible charging
- Update the button string for battery defender tips
- Update settings banner icon for defender

Test: Manual Test
Bug: 315748218
Change-Id: I0cfe03e7984be02eff4fb6dce68cc22fe7edf8e2
2024-02-19 08:06:44 +00:00
josephpv
e9f3a0925b Add illustration to final screen in PS setup and update existing illustrations.
Screenshots:
- go/ss/9KhqUSezFKHnyys.png

Recording link:
- b/321694009#comment2

Bug: 323156268
Bug: 321694009
Test: Verified manually
Change-Id: Ib8abc080f31cad0a9be3b73a1694be744c108a06
2024-02-13 18:27:17 +00:00
josephpv
7ff2ab0df1 Update with latest icon in private space setup flow screens
Screenshots:
go/ss/9gaHk7iCpTVxi9S.png
go/ss/4s6vqq3RTvExK6b.png
go/ss/7uhBhrtU69E4SKv.png
go/ss/A3B98AiPBWPXtNA.png

Bug: 325043422
Test: Manual
Change-Id: I37b0707617287745239517a3113ef248f721c3f8
2024-02-13 15:02:20 +00:00
Hakjun Choi
4b80409474 Merge "Add Satellite Messaging activity" into main 2024-01-24 01:31:30 +00:00
Hakjun Choi
2f57f53831 Add Satellite Messaging activity
Add satellite messaging activity into Settings for carrier satellite
service

Bug: 319035517
Test: manual
1. Set CarrierConfig Key KEY_SATELLITE_ATTACH_SUPPORTED_BOOL as false then verify satellite messaging menu is not shwon from
   Settings > Network & internet > SIMs > test sim
2. Set CarrierConfig key KEY_SATELLITE_ATTACH_SUPPORTED_BOOL as true
3. Insert test SIM
3. Get into to Settings > Network & internet > SIMs > test sim > verify Satellite messaging is shown
4. Verify whether descriptions are as directed. icons are as directed.
5. Add satellite messaging does not work when click
6. Invoke web browser with test website when click 'More about satellite messaging'
7. Replace SIM of which MCC/MNC is not test sim
8. verify no action happen when click 'More about satellite messaging'

Change-Id: Iee8fad58b41cbca34f373d2a9df1d074c447cfb1
2024-01-23 07:49:00 +00:00
pajacechen
846be63c9c Update string for incompatible charging
Update string and icon for incompatibe charger settings banner tip

Dark theme: https://screenshot.googleplex.com/6fpK5z6PQ6yGnNU.png
Light theme: https://screenshot.googleplex.com/ASWf6CzF2f9Qfg8.png
Figma design: https://screenshot.googleplex.com/7yBoAW7jHxhHsEg.png

Bug: 315748218
Test: atest SettingsRoboTests:com.android.settings.fuelgauge.batterytip.tips.IncompatibleChargerTipTest
Change-Id: I10498aaf820ab1c2123d80051f09b2f11560f33a
2024-01-23 01:40:47 +00:00
Yiyi Shen
4af5178f57 [Audiosharing] Support play test sound
Test: manual
Bug: 305620450
Change-Id: Id3f3b99f94a8a91d76fb9442310789b87c39bca0
2024-01-12 16:54:18 +08:00
Roy Chou
81723cc70f fix(magnification): fix color contrast of the arrow in Settings magnification shortcut dialog
Change the arrow drawable tint color to attr/colorAccent to ensure the color contrast.

Bug: 318611481
Flag: NA
Test: manually
Change-Id: Idd719a6714c46b91a7876b22c14dccec214b3b94
2024-01-04 16:18:06 +00:00