Commit Graph

489 Commits

Author SHA1 Message Date
Steven Wu
97915b15d9 Add a flashlight slice in settings.
- It retrieves the flashlight status from Settings.Secure.
- It uses the broadcast relay to update flashlight status
without action on the slice.

Test: robotests
Change-Id: Ib4d636541f5166b8634326cce76aed5665989b76
Fixes: 74913192
2018-06-06 02:59:37 +00:00
Naina Nalluri
6b1869351a Add Wifi calling Preference slice and other cleanup
WifiCallingPreference Slice Provider:
  1. If Wifi calling is not enabled - display message to user
     to enable Wifi calling
  2. Else if Wifi preference is not editable - return a null
     Slice
  3. Else provide a slice with rows - first row giving current pref
     information, followed by preference items (in each row).
     wifi_only is displayed only when it is allowed to display it.
     Each row with preference item has specific intent action.
WifiCallingPreference Slice BroadcastReceiver:
   1. If only Wifi calling is enabled & Wifi preference is editable &
      there is a change in current value modify wifi pref setting
   2. And Ask to re-query the slice in one second to display
      updated settings if 1 is valid or display appropriate message.
Clean-up:
   1. Return null instead of non-actionable slices.
   2. Use getText to get string resources.
   3. Remove unnecessary extra variables.

Bug: 79548264
Test: Use support-slices-demos-debug.apk to test on device
Change-Id: I186f19be2007c2331eaf6195e70b4a9c635adf9e
2018-06-01 11:02:59 -07:00
Antony Sargent
97e418f45c Merge "Update sound settings icons" into pi-dev am: 2e0709b3b8
am: 75ffd61ee3

Change-Id: I60c903d44a89e09eadd469d67d6351efcb2b9721
2018-05-24 23:50:12 -07:00
Antony Sargent
493847ea8e Merge "Refresh several icons" into pi-dev am: 642e63c2e0
am: ef75735861

Change-Id: I73ccb073d5c239b454d142ecc800007bce23d626
2018-05-24 23:49:40 -07:00
Antony Sargent
0cb786e81c Merge "Refresh system update icon" into pi-dev am: efc2cb0492
am: 30c39c273c

Change-Id: I355f80233f669939ac7a1b70aaf2fc3d5b562fcf
2018-05-24 23:49:07 -07:00
Lei Yu
3a9bad927e Merge "Update icon for battery saver conditon." into pi-dev am: 89e0287711
am: 4c39b05ad7

Change-Id: Id969c2685ca51086f412f46eaa3f89834710c1ad
2018-05-24 23:48:36 -07:00
Antony Sargent
3e85b13253 Merge "Refresh battery status icons" into pi-dev am: 64379a08f7
am: bc375150de

Change-Id: Id2036d35540a5d2498f7484e3d7ac30804f9d2e3
2018-05-24 23:47:23 -07:00
Antony Sargent
ef5a3eeade Merge "Updated misc. settings icon" into pi-dev am: c3d2e78d82
am: 7e62c0bffa

Change-Id: If8a0a46062e8426cd90178b2e39aa8c9c0c24454
2018-05-24 23:46:36 -07:00
Antony Sargent
2e0709b3b8 Merge "Update sound settings icons" into pi-dev 2018-05-24 06:12:50 +00:00
Antony Sargent
642e63c2e0 Merge "Refresh several icons" into pi-dev 2018-05-24 06:11:57 +00:00
Antony Sargent
efc2cb0492 Merge "Refresh system update icon" into pi-dev 2018-05-24 06:09:22 +00:00
Lei Yu
89e0287711 Merge "Update icon for battery saver conditon." into pi-dev 2018-05-24 05:12:28 +00:00
TreeHugger Robot
64379a08f7 Merge "Refresh battery status icons" into pi-dev 2018-05-24 01:04:53 +00:00
TreeHugger Robot
c3d2e78d82 Merge "Updated misc. settings icon" into pi-dev 2018-05-24 01:03:50 +00:00
Antony Sargent
3015cc9e36 Refresh system update icon
Bug: 77982107
Test: manual
Change-Id: Ifad137b464fce62cbba0f456da4a773f556a1004
2018-05-23 16:23:23 -07:00
Antony Sargent
daccaef797 Refresh several icons
This CL includes the following:
-account
-backup
-display
-folder
-location
-multiuser
-security

Bug: 77982107
Test: manual
Change-Id: I921e20d100bf4b3cb4af7326a5aac2b4e5629196
2018-05-23 16:22:20 -07:00
Antony Sargent
cbbcac2ac3 Merge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev am: e0e49140d2
am: 107242f7b1

Change-Id: I386a9b1902a36f7cc16ec0bd8e773de6678d8516
2018-05-23 16:01:21 -07:00
Antony Sargent
507fe6d909 Merge "Update storage, videogame, and vpn icons" into pi-dev am: 28dc3917a9
am: e3ce1df654

Change-Id: Ic5906d22df49ca2236727c7edcd6192426795fcb
2018-05-23 16:00:31 -07:00
Antony Sargent
75ae43b5cc Update sound settings icons
In several places we were referencing private icons from
frameworks/base/core instead of versions we already had in
settings. Also add in a "media stream off" icon to match the one we
already had for "media stream on".

Bug: 77982107
Test: manual (Settings->Sound, then use hardware controls to modify
media and ring volumes)

Change-Id: I3a1d808b3028bb4f2feae4536194dc58c3177a66
2018-05-23 15:44:53 -07:00
Lei Yu
cbc21a3088 Update icon for battery saver conditon.
To make it consistent with quick settings and battery settings.

Change-Id: I990692b53ee87805d92b93cc874f371e0512154e
Fixes: 80157879
Test: Screenshot
2018-05-23 14:56:08 -07:00
Antony Sargent
e888cbb88f Refresh battery status icons
Change-Id: I4835c10135a469c61f641879bb09d366160ff612
Fixes: 80152468
Test: manual
2018-05-23 12:47:00 -07:00
Fan Zhang
18fb991a8e Update phone vibrate icon in condition card.
Bug: 80157879
Test: visual
Change-Id: I836582056f2da7c7aa379ac84302bf84b398924a
2018-05-23 12:23:45 -07:00
TreeHugger Robot
e0e49140d2 Merge "Update photo, accessibility, memory, sim, and warning icons" into pi-dev 2018-05-23 05:17:28 +00:00
Antony Sargent
77af7afd04 Updated misc. settings icon
This isn't the main app icon, but rather a 24dp version used in a few
miscellaneous places in the app. This also removes the outdated inverse
version of the previous icon since the new version now works in either
context.

Bug: 77982107
Test: manual
Change-Id: Ibd5928895ac1aba52b64a853c4ccd806a2f1de70
2018-05-22 21:28:52 -07:00
Antony Sargent
49e1397451 Update storage, videogame, and vpn icons
Also remove duplicate ic_settings_storage.xml, rename
ic_settings_storage_white.xml to ic_storage_white.xml, and fix up
references.

Bug: 77982107
Test: manual
Change-Id: Icd78c2a2a8d200cb8819d58887455883acdbc668
2018-05-22 17:35:52 -07:00
Antony Sargent
3802b63246 Update photo, accessibility, memory, sim, and warning icons
Bug: 77982107
Test: manual
Change-Id: I8076d1f6115b335693413c9177be79c7af9317a5
2018-05-22 16:50:52 -07:00
Antony Sargent
b8a1df8048 Merge "Update music, notifications, device information, and movies icons" into pi-dev am: 7ecbfd23f2
am: 0e0698ef27

Change-Id: I7b28e82b415f2f3c9c0e872ca2efa72c0f5831f4
2018-05-21 20:55:58 -07:00
TreeHugger Robot
7ecbfd23f2 Merge "Update music, notifications, device information, and movies icons" into pi-dev 2018-05-22 03:45:32 +00:00
TreeHugger Robot
c9d258a11e Merge "Misc GAR fixes" into pi-dev 2018-05-22 03:08:15 +00:00
Antony Sargent
32acddc83e Update music, notifications, device information, and movies icons
Also delete duplicated ic_settings_notifications.xml and point existing
usages to ic_notifications.xml

Bug: 77982107
Test: manual
Change-Id: Ia7896598c6334aa97faf392b17e6bc3c17d58599
2018-05-21 16:58:38 -07:00
Fan Zhang
3ab53bbd7b Misc GAR fixes
- Use colorPrimary for EntityHeader background.
- Update data usage header text to be 87% black.

Change-Id: Ic361155d7cd36a2f1cca96e918af0e3855fb8ced
Merged-In: Ic361155d7cd36a2f1cca96e918af0e3855fb8ced
Fixes: 79773433
Test: robotests
Test: visual
2018-05-21 22:38:24 +00:00
Fan Zhang
71c402b152 Misc GAR fixes
- Use colorPrimary for EntityHeader background.
- Update data usage header text to be 87% black.

Change-Id: Ic361155d7cd36a2f1cca96e918af0e3855fb8ced
Fixes: 79773433
Test: robotests
Test: visual
2018-05-21 15:37:43 -07:00
Antony Sargent
6c196e3227 Merge "Update headset, help, and info icons" into pi-dev am: 88d4356a1f
am: d789f43ea9

Change-Id: I26ad75ad4d88395a25445308318a80cd4e1414b8
2018-05-18 18:30:26 -07:00
TreeHugger Robot
88d4356a1f Merge "Update headset, help, and info icons" into pi-dev 2018-05-19 01:22:23 +00:00
Antony Sargent
6ef7737b71 Update headset, help, and info icons
Bug: 77982107
Test: manual
Change-Id: Ib5fe8e4df4a524b9c50ad395cd0189bef5fcafa5
2018-05-18 15:45:01 -07:00
Antony Sargent
bdba093a59 Merge "Update cancel and cast icons" into pi-dev am: cf2dc360bd
am: a219ed30df

Change-Id: I9857a7e87943426b1a7759526448690351239d89
2018-05-18 14:53:17 -07:00
Antony Sargent
28f04c984d Merge "Updated delete icon" into pi-dev am: 55642ef91b
am: d55b214dbd

Change-Id: Ifca325273ca5e99461a93487b127b5d0adcf6a39
2018-05-18 14:52:44 -07:00
TreeHugger Robot
cf2dc360bd Merge "Update cancel and cast icons" into pi-dev 2018-05-18 21:39:33 +00:00
Antony Sargent
8cbfbbd44d Update cancel and cast icons
Bug: 77982107
Test: manual
Change-Id: I7f1af280daf8944dbab48929b7fe7d82f680a448
2018-05-17 11:59:16 -07:00
Antony Sargent
0d9afde271 Updated delete icon
Also remove the duplicate ic_menu_delete.xml and fix up places where it
was used.

Bug: 77982107
Test: manual
Change-Id: I23ede37b7cdf9bea59b44cd0f817bf0ad0cd1d69
2018-05-17 11:55:40 -07:00
Fan Zhang
5de68ea81a Update sound setting icons am: 37a6a91444
am: c3669d8971

Change-Id: Id6d6393f8fb754dd98f756601ddf97d1a5fabf23
2018-05-15 19:05:04 -07:00
Fan Zhang
37a6a91444 Update sound setting icons
- icon for sound setting in Settings homepage
- icon on phone muted condition card
- icon on DND condition card and DND suggestion

Bug: 77982107
Test: visual
Change-Id: I22b5223029d67de0bcb2466a45075835453a2b5f
2018-05-15 15:35:37 -07:00
Beverly
8f52258962 Add DND Settings suggestion
Cherry-picked from pi-dev ag/4019736

Test: SettingsSuggestionsTest, ZenOnboardingActivityTest
Change-Id: Ie78c9cf8287ee56bc4596efe20d27f8eb432ab6c
Bug: 78445134
2018-05-14 18:15:29 +00:00
Ryan Lin
18aa25ea47 Merge "Add call volume in sound settings" into pi-dev am: b46389a588
am: 71b333f162

Change-Id: If69203fa5c4158f609484e6c3bbc0ca5bd6e0f58
2018-05-11 15:44:53 -07:00
Beverly Tai
49499bcb06 Merge "DO NOT MERGE Add DND Settings suggestion" into pi-dev 2018-05-11 20:59:49 +00:00
Beverly
d4e7eedfc9 DO NOT MERGE Add DND Settings suggestion
Test: SettingsSuggestionsTest, ZenOnboardingActivityTest
Change-Id: Ie78c9cf8287ee56bc4596efe20d27f8eb432ab6c
Bug: 78445134
2018-05-11 20:59:38 +00:00
ryanywlin
156fd91fbd Add call volume in sound settings
* Add call volume slider
* move "Take call" controller from "Ring volume" to "Call volume"

Bug: 77254162
Test: make -j50 RunSettingsRoboTests

Change-Id: I3443021c1557f42293e9b7772fe9072e5a966cf8
2018-05-11 17:56:16 +08:00
Doris Ling
8ab5eab71b Merge "Update arrow icon for see all apps." into pi-dev am: 6bc31d343e
am: 2f2d676897

Change-Id: Ibd0dd41ba169c057cc0af2357018d55e06d03bc9
2018-05-08 17:48:31 -07:00
Doris Ling
6bc31d343e Merge "Update arrow icon for see all apps." into pi-dev 2018-05-09 00:30:59 +00:00
Doris Ling
fc5c190795 Update arrow icon for see all apps.
- update the path value for the right arrow icon.

Bug: 79161670
Test: visual
Change-Id: I529315d096c0a4c78d1bd44fd52129f04bb40b72
2018-05-03 14:34:35 -07:00