Commit Graph

79117 Commits

Author SHA1 Message Date
TreeHugger Robot
6b603fc5e2 Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-26 08:33:54 +00:00
TreeHugger Robot
3b61be8766 Merge "Adjust margin to fix title overlapped with arrow" 2021-01-26 08:17:34 +00:00
Manish Singh
974662936e Add Settings UI for MTP transcoding over USB.
Enabling "Transcode exported media" means that the media transferred
from the device via MTP over USB would be transcoded, if necessary. This
switch also sets / unsets the sys.fuse.transcode_mtp system property.

"Transcode exported media" category would be accessible only when the
"File transfer / Audio Auto" or "PTP" radio button has been selected. We
are including PTP also since PTP supports transfer of videos.

Adding UsbDetailsTranscodeMtpController in a separate preference
category than "Charge connected device" primarily because they seemed to
be different in their own rights.

Here are a few screenshots:
https://screenshot.googleplex.com/8jeMstnSFsTtVCS.png
https://screenshot.googleplex.com/76hNz4iXp5dcX4M.png
https://screenshot.googleplex.com/AkTngE5hDDJCovv.png
https://screenshot.googleplex.com/4uQYGXuuSQLoz3w.png

BUG: 158466651
Test: manual testing.  Also added unit test.
Change-Id: I2603a9bffed3320c193cc08f867bd67d9848da18
2021-01-26 07:18:24 +00:00
Manish Singh
aa8bf5993d Merge "Add header to USB power options preference" 2021-01-26 05:31:33 +00:00
Chris Li
c175f356ec Merge "Allow non-resizable apps in split-screen (3/n)" 2021-01-26 02:53:25 +00:00
Bill Yi
c6ad86ae6a Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I49757ce99764947b3afff8c87152b89da838ef94
2021-01-26 02:24:29 +00:00
Jiashen Wang
a975202b8f Merge "Add a config flag to control slot change receiver in Settings" 2021-01-26 00:17:27 +00:00
TreeHugger Robot
7d0e81bce9 Merge "[Provider Model] Add connected ethernet network to internet panel" 2021-01-25 22:36:19 +00:00
Yanting Yang
deda4bc359 Merge "Correct the screen title for AppNotificationSettings" 2021-01-25 18:52:42 +00:00
Julia Reynolds
33f4f59b04 Merge "Fix some issues with notif blocking in settings" 2021-01-25 17:18:53 +00:00
Beverly Tai
b6ec17e394 Merge "Don't iterate channel list in bgthread" 2021-01-25 16:47:14 +00:00
Weng Su
ca8a3d7e64 [Provider Model] Add connected ethernet network to internet panel
- Show the connected ethernet network to first item of internet panel

- Screenshot:
  https://screenshot.googleplex.com/teritCBuvxxSyr6

Bug: 176796623
Test: manual test
- atest NetworkProviderWorkerTest \
        ProviderModelSliceTest

Change-Id: I423a7951f403bf86c288da52fc342520fd24f466
2021-01-25 14:46:37 +00:00
Weng Su
e9d44254c7 Merge "[Provider Model] Add connected ethernet network preference" 2021-01-25 14:46:05 +00:00
Yanting Yang
a31dcbb8e3 Correct the screen title for AppNotificationSettings
Add the screen title to resolve showing default title "Settings" on the
AppNotificationSettings.

Fixes: 177968781
Test: robotest & visual
Change-Id: I58e5e4cb6c1445b03d70fbb4e431cdcc9d3a09f0
2021-01-25 22:45:10 +08:00
Jason Chiu
524feaf31c Merge "Adjust homepage styles and layouts" 2021-01-25 09:43:22 +00:00
Jeremy Goldman
09f43be1c6 Merge "SubscriptionsPreferenceController shows the unique sim description." 2021-01-25 09:03:40 +00:00
Mill Chen
01a48cdf3e Adjust margin to fix title overlapped with arrow
When both display size and font size are changed to largest option, a
word in the title of subsetting page will probably be wrapped into
multiple lines. Update the margin end of expanded title to prevent from
wrapping a word into multiple lines.

Fixex: 177969094
Test: visual verified
1) Enlarge both display size and font size as largest
2) Settings -> Display -> Lock screen -> Tap to check phone
or
Settings -> Notifications
3) Observe these titles of pages

Change-Id: Icecdf912e4764cb4592ff460cbc12cc1a7dd6b48
2021-01-25 16:56:39 +08:00
Weng Su
c7003e95a3 [Provider Model] Add connected ethernet network preference
- Show the preference if connected to ethernet network

- Hide the preference if not connected to ethernet network

- Screenshot:
  https://screenshot.googleplex.com/5ZkZXnTr9Hcfsyt

Bug: 176796623
Test: manual test
- atest ConnectedEthernetNetworkControllerTest
- make RunSettingsRoboTests ROBOTEST_FILTER=NetworkProviderSettingsTest

Change-Id: I0f062eb2ee4898976f5e7a1c3f2c4061b60a3126
2021-01-25 07:31:52 +00:00
Calvin Pan
e0ee1e1d74 Merge changes Icee8c85e,I98be6f30,I343b705b
* changes:
  [Smart forwarding] Enable/Disable Smart Forwarding flow
  [Smart forwarding] Add UI for Smart Forwarding
  [Smart forwarding] Add string and layout resource
2021-01-25 07:29:45 +00:00
Bill Yi
640010dc63 Merge changes from topic "presubmit-am-0c48db3e6b2d4143bd957df88cfec950"
* changes:
  [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 83632e4b3d
  Import translations. DO NOT MERGE ANYWHERE
2021-01-25 03:49:42 +00:00
Arc Wang
c6ee2244a7 Merge "Fix battery optimization display problems" 2021-01-25 03:12:11 +00:00
calvinpan
71dd99c767 [Smart forwarding] Enable/Disable Smart Forwarding flow
Bug: 170178144
Test: By manual
1. Test turn on/turn off flow
2. Test enter phone number flow

Change-Id: Icee8c85e71f72f467b2dc11b9b55c674f22d8179
2021-01-25 10:08:33 +08:00
calvinpan
6c21dd470d [Smart forwarding] Add UI for Smart Forwarding
Bug: 170178144
Test: By manual
1. Test turn on/turn off flow
2. Test enter phone number flow

Change-Id: I98be6f307f78b61020a15f72a3d4bf04089ead66
2021-01-25 10:08:02 +08:00
calvinpan
e077e39a1b [Smart forwarding] Add string and layout resource
Add string and layout resource

Bug: 170178144
Test: By manual
1. Test turn on/turn off flow
2. Test enter phone number flow

Change-Id: I343b705b0491003d8a3e77ac65630966f02d3546
2021-01-25 10:07:26 +08:00
Bill Yi
143ab6f64c Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-25 00:19:14 +00:00
Bill Yi
9a51bd76bf Merge "Import translations. DO NOT MERGE ANYWHERE" 2021-01-25 00:19:02 +00:00
Bill Yi
cbd3f7ab89 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: d70a7f7442 -s ours am: 195b137800 -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: Iaa5e20ba241bbbb63586be14fa92013c9ec8abac
2021-01-24 17:57:01 +00:00
Bill Yi
195b137800 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: d70a7f7442 -s ours
am skip reason: subject contains skip directive

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

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I0c33d55aab01e1a4bfc168b995dd4f6bd0e452b3
2021-01-24 17:17:21 +00:00
Bill Yi
4fc870219b Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: Id3a0b6565a0a8cf38f65bd9b8f537f4aa1da5d29
2021-01-24 13:39:50 +00:00
Bill Yi
1d403bc951 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I745025a78797cd245725fc33964738d8122f7841
2021-01-24 02:16:48 -08:00
Bill Yi
d70a7f7442 Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I31f2d5d2686777c42e311f92bc352efd150eb164
2021-01-24 00:41:08 -08:00
Bill Yi
234c958886 [automerged blank] Import translations. DO NOT MERGE ANYWHERE 2p: 83632e4b3d
Blank merge reason: commit message contains skip directive

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

Change-Id: I07725b7e6a026b9fcfd722b88c246e50fd0cd5df
2021-01-24 07:53:40 +00:00
Bill Yi
83632e4b3d Import translations. DO NOT MERGE ANYWHERE
Auto-generated-cl: translation import
Change-Id: I28d06993be719bcde62c00d51d1f9b22389eb746
2021-01-23 23:53:18 -08:00
SongFerng Wang
11501a0bc2 Merge "Replace allowedNetworkTypes with allowedNetworkTypesForReason" 2021-01-23 07:41:11 +00:00
Beverly
857dfe131b Don't iterate channel list in bgthread
To avoid a ConcurrentModificationException

Fixes: 173674911
Test: manual
Change-Id: If35c6f66a2cfae7ee4a6f8e83dd70aa5877f8362
2021-01-22 17:43:18 +00:00
Felipe Leme
3158f45161 Merge "Refactored Settings calls to removeUserOrSetEphemeral()." 2021-01-22 16:31:09 +00:00
Jason Chiu
b56ea7e9e3 Adjust homepage styles and layouts
- Fine tune the header text size and position
- Fix the header overlapping problem on the homepage and collapsing
  toolbar pages when configuration changes by adding android:id.
- New AppBarScrollingViewBehavior for the homepage to avoid manually
  offsetting the IA
- Correct the formula of counting search box height

Test: robotest, manual
Fixes: 177967923
Fixes: 177968564
Change-Id: Id3ed44f4296fa2a19d6890b009d3881a5c140bbd
2021-01-22 13:27:22 +00:00
Jeremy Goldman
9d87cd9126 SubscriptionsPreferenceController shows the unique sim description.
Bug: 148303118
Bug: 150370656
Test: atest -c SubscriptionsPreferenceControllerTest
Change-Id: I041536fe0148087a068c6000383b382b0ff4e17c
2021-01-22 07:02:52 +00:00
Stanley Wang
8e2ecd5918 Merge "Fix the ClassCastException of ChannelNotificationSettings" 2021-01-22 06:58:54 +00:00
Weng Su
bfefb8015a Merge "[Provider Model] Update internet preference icon and summary" 2021-01-22 05:34:14 +00:00
Tsung-Mao Fang
4c34eb8537 Merge "Fix truncated issue on search text" 2021-01-22 05:04:03 +00:00
Stanley Wang
b451e8f115 Fix the ClassCastException of ChannelNotificationSettings
Update the LayoutPreference to SettingsMainSwitchPreference.

Fix: 177907827
Test: Run robotest and apply the widget in Settings and see the ui
Change-Id: I7ce320b8e38432faf685914bf91cf1daa62b2687
2021-01-22 03:24:33 +00:00
Etan Cohen
07de359094 Update with new permission to restart Wifi Subsystem
Bug: 175084231
Bug: 178125790
Test: manual - trigger restart operation
Change-Id: I2eaa2bbea9a660a8c7cfb9dfc1ee3e7af99c2b85
2021-01-21 16:52:03 -08:00
Jiashen Wang
e9be9eb08b Add a config flag to control slot change receiver in Settings
Bug: 153811431
Bug: 170508680
Test: Manually tested
Change-Id: I4a06eba0d9e10c1eb9638a570af49df33758dba6
2021-01-21 14:53:27 -08:00
Sarah Chin
5a8b96a2af Merge "Update onSubscriptonOverride listener" 2021-01-21 18:28:19 +00:00
Julia Reynolds
c1ca4b81c1 Fix some issues with notif blocking in settings
- Fix cast cast exception
- Make sure unblocking a notification channel also actually
unblocks it

Test: make -j64 RunSettingsRoboTests ROBOTEST_FILTER="com.android.settings.notification"
Fixes: 177968301
Fixes: 177907827
Change-Id: Ibad56e102e167bcf004fbd0f9873cc29834a30c1
2021-01-21 11:13:57 -05:00
Tsung-Mao Fang
3692c70cc1 Fix truncated issue on search text
Test: See the screen
Fix: 177665666
Change-Id: I4941ff95320141c7ea7c9f1947138c6940bdf501
2021-01-21 10:23:44 +00:00
Weng Su
46837dc4d5 [Provider Model] Update internet preference icon and summary
- Airplane mode icon/summary

- Airplane mode networks icon/summary

- Wi-Fi network connected icon/SSID

- Cellular network connected icon/carrier-name

- Ethernet network connected icon/summary

- Screenshot:
  https://screenshot.googleplex.com/AzhCEX2HjwYUMtJ
  https://screenshot.googleplex.com/9BRfQLMW4UvHqqq
  https://screenshot.googleplex.com/5jdi8oEjMPUURdT

Bug: 176796623
Test: manual test
- atest -c InternetUpdaterTest \
           InternetPreferenceControllerTest

Change-Id: Icc8944dabdac597f12b67cffa72cb0be02d9671d
2021-01-21 17:24:10 +08:00
Arc Wang
02c9b032cd Show "Safety & emergency" in Settings search result
Add android:key to PreferenceScreen of EmergencyDashboardFragment.

Bug: 177426215
Test: manual
Change-Id: I9ad059a1dd051cb1ca0c038fd6c47b739852c54d
2021-01-21 07:24:47 +00:00
Manish Singh
ed0af5f88b Add header to USB power options preference
Since the separators for the preference categories are no longer shown
in Android, it makes sense to add a header for the power options
category just like rest of the categories in USB Preferences.

BUG=158466651
Test: manual.

Change-Id: I18e2e8acfcb66e2601137c6718f8b8335776416c
2021-01-21 03:11:07 +00:00