Commit Graph

508 Commits

Author SHA1 Message Date
tmfang
6e16b69887 Sync style of filter component in data usage
Settings have new filter component with settings style.
This CL replaced Spinner to SettingsSpinner in data usage page.

Change-Id: I212b6b6ed203f8bffd094c0180873060b93c39cb
Fixes: 117568930
Test: robotests, visual
2018-10-17 05:14:46 +08:00
felkachang
a6cec47326 Change reset page to be SUW style
The factory reset page and the reset confirmation page is too old to
follow the style of Setup Wizard design. To change the layout and apply
the style for textviews and header.

Bug: 73738836
Test: make -j SettingsRoboTests RunSettingsRoboTests
Change-Id: I1ee3d09e1ef9cac8e25c60a566363d4f7d537eeb
2018-10-03 11:45:49 -07:00
Fan Zhang
6acbc9337e Move search resources to settingslib-search
Bug: 113128828
Test: manual
Change-Id: I2c513dd22e84d5f86bd282e10d0b0df19f9ce407
2018-09-28 16:38:23 -07:00
Fan Zhang
dbc988085c Fix add icon
Change-Id: I3ffe5a71081aa03885fa8fada9ae6dff70db6171
Fixes: 116542229
Test: visual
2018-09-25 10:04:15 -07:00
TreeHugger Robot
468b00f043 Merge "Settings icon pack refresh" 2018-09-25 00:29:23 +00:00
Fan Zhang
1f0879955c Settings icon pack refresh
* ic_add_24dp
* ic_airplane
* ic_arrow_down_24dp
* ic_cellular_off
* ic_data_saver
* ic_device_others
* ic_info_outline_24dp
* ic_search
* ic_night_display
* ic_lock_open
* ic_wifi
* ic_sync
* ic_wallpaper
* ic_phone

Bug: 116360411
Test: visual
Change-Id: I626cbb88043c36d32ab34b90fc83170bca0be12a
2018-09-24 15:40:14 -07:00
jackqdyulei
00ec66cdfc Copy NetworkSelectSettings to settings app
This is a clean copy except:
1. Fix issues in strings.xml to make it pass pre-upload check
   a) add "CHAR_LIMIT"
   b) Update special character

Future CL will remove compile error and make it compatible with
settings.

Bug: 114749736
Test: Build
Change-Id: I8fe28ff1358f94334ff9663a4404628ae0eff9af
2018-09-20 11:25:35 -07:00
Raff Tsai
43a7b18f21 Modify Settings homepage layout
- Add BottomNavigationView which has two tabs
- Remove BottomSheet in layout files

Change-Id: I493290fa9dee0566c73c5c9d7fbba10b71b4e2b4
Fixes: 113266753
Test: visual
2018-09-05 11:55:16 +08:00
Mill Chen
1005e76690 Remove SettingsAppWidgetProvider and related resources
Bug: 111514449
Test: manual, RunSettingsRoboTests
Change-Id: I91e5662148a00a2aed12341304007f3b155e181c
2018-08-13 22:38:10 +08:00
Dieter Hsu
0c995a254e Adding icon to color correction mode
Adding icon image with red and green so users can see the
effects of changing the color correction.

Bug: 38103344
Test: Visually saw the icon appear in Settings->Accessibility->Color
Correction

Change-Id: I922b6ef2ee0f3a8e8d6ac80a14e46cd66da15195
2018-07-27 15:49:56 +08:00
Fan Zhang
661049f4d9 Clean up saved network screen
Bug: 64806699
Test: rebuild
Change-Id: I4392809f08034c7c13575db2f5c41468fcea0987
2018-07-18 15:13:21 -07:00
Fan Zhang
fe93bd9c1e Remove ListView from preference_list_fragment.
As part of it, Use RecyclerView in PrintServiceSettingsFragment, which
still depends on the old preference_list_frag layout.

Also remove some unused pngs

Test: manual

Change-Id: I3189bd0dee5b6a74209eb1e707eb40427c96e312
2018-07-17 15:47:33 -07:00
Fan Zhang
612fc1ea40 Clean up theme part 1: move attrs to attrs.xml
And remove unused theme and layouts.

Bug: 111454230
Test: rebuild
Change-Id: Iaf418a9a3dc014fc0eac096e60b0e4581c6ededb
2018-07-16 14:00:20 -07:00
Fan Zhang
5c3816ba03 Remove NewDeviceIntroSuggestion
The functionality is entirely replaced by other apps.

Change-Id: Id3d425cf92a07bae070cd22c0d726aba0472dd5d
Fixes: 111195449
Test: robotest
2018-07-12 11:23:38 -07:00
Kevin Chyn
0be7e64ffd Merge changes from topic "face-settings"
* changes:
  3/n: Remove all faces when Pin/Pattern/Pass is removed
  2/n: Add face to ChooseLock*
  1/n Start adding Face settings (base, intro)
2018-07-03 00:51:49 +00:00
Raff Tsai
082f8ee93c Revert "Revert "First commit of dynamic home page feature""
This reverts commit 457f6ef140.

Reason for revert: fix the color check in repohook

Test: make RunSettingsRoboTests

Change-Id: I1b466c412138dfb0f2bffc4270a8932fe3b81c94
2018-07-02 16:02:26 +08:00
Kevin Chyn
4882e875ae 1/n Start adding Face settings (base, intro)
This change refactors common biometric settings code as well to minimize
duplicated code in areas such as:
    Preference Controller
    EnrollBase
    EnrollIntro

This change also updates ChooseLock to have Face + Pin/Pattern/Pass

Bug: 110589286

Test: Fingerprint settings/enrollment still works
Test: make -j56 RunSettingsRoboTests
Change-Id: Ie35406a01b85617423beece42683ac086e9bc4a7
2018-06-29 18:19:34 -07:00
Lei Yu
457f6ef140 Revert "First commit of dynamic home page feature"
This reverts commit 3515bc7259.

Reason for revert: CLs in this topic break color check in repohook.

Bug: 110960820
Change-Id: I5934b6baf65515ebbc4e4660ed99747dd581f526
2018-06-29 00:21:14 +00:00
Raff Tsai
3515bc7259 First commit of dynamic home page feature
- Add SettingsHomepageActivity
- Add feature flag
- Use com.google.android.material_material library

Change-Id: I325be249f739d3b03dc2f0d722319f5771e2313b
2018-06-28 11:46:37 +08:00
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