Commit Graph

78282 Commits

Author SHA1 Message Date
TreeHugger Robot
d37ef77d01 Merge "Update global bubble settings mp4" into rvc-qpr-dev am: 6905a3a353
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12631062

Change-Id: Ibc8f8f67c95c84cbd9d5828790f663711f7b62f9
2020-09-22 03:21:59 +00:00
TreeHugger Robot
e0e283cb4c Merge "Update state when there is Bluetooth tethering state changed" into rvc-qpr-dev 2020-09-22 03:16:37 +00:00
TreeHugger Robot
095e95719a Merge "Fix usb menu not switch to "File Transfer/Android Auto" right after connected to car unit" am: bea5bfe1ce
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12582611

Change-Id: I0aa351c08643c7bbf2e8278726155eba460c299c
2020-09-22 03:10:33 +00:00
TreeHugger Robot
6905a3a353 Merge "Update global bubble settings mp4" into rvc-qpr-dev 2020-09-22 03:02:44 +00:00
Jason Chiu
f447cbbcb5 Fix the ANR in panel when changing volume continuously
When users open volume panel and keep on changing the volume slider for
a while, the panel starts to defer the slider updating, and finally gets
stuck and causes an ANR.

Root cause:
Volume panel has four volume adjusting slices. Each of them registers
a broadcast receiver to listen to the volume changed and muted events.
However, when the media volume changes, AudioManager will send four
broadcasts (music, assistant, accessibility, tts) to every receiver, and
each of them will reload slice four times. Thus, one media volume
changed event will lead to 16 (4*4) UI updates. Consequently, keeping on
sliding the volume bar will trigger hundreds of broadcasts and UI
updates, which makes the system busy and getting stuck.

Solution:
Introduce a VolumeSliceHelper to integrate the broadcasts of the volume
slices specifically.
1. Only register one broadcast receiver to reduce the broadcast loading
   since the four slices are listening to the same signal.
2. Filter the only one eligible broadcast among the multiple concurrent
   ones, and then relay it to the registered slice.
3. Listen to one more action STREAM_DEVICES_CHANGED_ACTION to update the
   volume panel when audio output device changes.

Test: robotest, visual
Fixes: 144134209
Fixes: 160489394
Change-Id: I780b9eee35802b19a5f0ab0a7d07bd3e081f5556
Merged-In: I780b9eee35802b19a5f0ab0a7d07bd3e081f5556
(cherry picked from commit 2c7b77dad7)
2020-09-22 02:58:01 +00:00
Jason Chiu
7db71ac87a Fix the endless panel loading
Re-launching volume panel continuously will trigger an endless panel
loading, show a transparent unfinished UI, and then block the user's
screen.

Root cause:
When the activity receives a new intent from user's clicking, it will
call PanelFragment#createPanelContent to update the current fragment.
The method triggers an animation and then loads the panel content. If
multiple invocations run concurrently before the animation or the
loading finish, the loader's countdown latch will be increased
abnormally and lead to the endless loading.

Solution:
1. Since the invocations are in UI thread, simply add a flag to avoid
reentrance when the panel is animating or loading.
2. Filter out the same panel's creation request when the panel is still
visible.
3. Do not force a panel's recreation when it's under construction.

Fixes: 143889510
Fixes: 160491854
Test: robotest, manual
Change-Id: I821faedeb62354929f3af9804cbbe44ee5bb8a53
Merged-In: I821faedeb62354929f3af9804cbbe44ee5bb8a53
(cherry picked from commit 6a8d2c5e55)
2020-09-22 02:55:22 +00:00
TreeHugger Robot
bea5bfe1ce Merge "Fix usb menu not switch to "File Transfer/Android Auto" right after connected to car unit" 2020-09-22 02:55:15 +00:00
android-build-team Robot
bf2bcce6dc Snap for 6852881 from ca04ccd911 to rvc-qpr1-release
Change-Id: I913fc331aa054600c9321aabdb71eba2964631dd
2020-09-21 23:05:51 +00:00
Lyn Han
29559b1645 Disable bubbles for low ram devices
Fixes: 167677013
Test: set low ram true => bubble settings hidden
Test: make -j80 RunSettingsRoboTests ROBOTEST_FILTER="Bubble"

Change-Id: I1c40a05404ea7c78cc82102b33e4bc3cb3528075
2020-09-21 15:11:07 -07:00
TreeHugger Robot
cba613555f [automerger skipped] Merge "Fix the device on "Media devices" not updated issue" into rvc-qpr-dev am: ca04ccd911 am: 101308bc39 -s ours am: 7a7af7e23d -s ours
am skip reason: Change-Id I7a0d9f5332153ee80634e191847b84cd7c380b7d with SHA-1 cafeab2813 is in history

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

Change-Id: If05f210d0878fb9dd845749659bf1c2775a6d998
2020-09-21 16:16:41 +00:00
TreeHugger Robot
ae97ec9974 [automerger skipped] Merge "Fix cast volume control bar not work" into rvc-qpr-dev am: 35f15fdbff am: b243b9a871 -s ours am: 1d17f9407e -s ours
am skip reason: Change-Id I2c120f18e24a66aeff5565e952fa4064149ec540 with SHA-1 7f3efd4357 is in history

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

Change-Id: I18b7c58a77acedef00c578bb5256b2880e6c306f
2020-09-21 14:21:05 +00:00
TreeHugger Robot
7a7af7e23d [automerger skipped] Merge "Fix the device on "Media devices" not updated issue" into rvc-qpr-dev am: ca04ccd911 am: 101308bc39 -s ours
am skip reason: Change-Id I7a0d9f5332153ee80634e191847b84cd7c380b7d with SHA-1 cafeab2813 is in history

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

Change-Id: If7f3f14ab9cdcfd74a310dcb7d1776621f4dd2d8
2020-09-21 12:04:36 +00:00
TreeHugger Robot
1d17f9407e [automerger skipped] Merge "Fix cast volume control bar not work" into rvc-qpr-dev am: 35f15fdbff am: b243b9a871 -s ours
am skip reason: Change-Id I2c120f18e24a66aeff5565e952fa4064149ec540 with SHA-1 7f3efd4357 is in history

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

Change-Id: I4e64ef97f2519ef19a18d3c4256ff43e95d0dffa
2020-09-21 11:50:17 +00:00
TreeHugger Robot
101308bc39 Merge "Fix the device on "Media devices" not updated issue" into rvc-qpr-dev am: ca04ccd911
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12634109

Change-Id: I5efb4653490d20f3c3fafd69ac1c3e7373921774
2020-09-21 10:17:24 +00:00
changbetty
dd91eadaaf [Telephony settings] Settings crashes when rotate screen in Preferred network type
When activity is recreated, fragments are automatically reattached.
Need to check the savedInstanceState is null or not when we want to add framgment in MobileNetworkActivity.
(lost to check in ag/9667137)

Bug: 154087690
Test: Manual
      make RunSettingsRoboTests -j ROBOTEST_FILTER=MobileNetworkActivityTest
Change-Id: Id169353f6dc10306dddd823a904f0803b26a6ddc
2020-09-21 18:12:03 +08:00
TreeHugger Robot
ca04ccd911 Merge "Fix the device on "Media devices" not updated issue" into rvc-qpr-dev 2020-09-21 10:01:54 +00:00
Hugh Chen
ec597c220e Fix the device on "Media devices" not updated issue
- This CL uses new CachedBluetoothDevice callback instance
  in construct to avoid unregister wrong callback.
- This CL uses flag to make sure preference will register callback
  on onAttached() when preference remove callback on
  onPrepareForRemoval() or onDetached().
- Update test case

Bug: 168682778
Bug: 157653997
Test: make -j42 RunSettingsRoboTests
Change-Id: I7a0d9f5332153ee80634e191847b84cd7c380b7d
Merged-In: I7a0d9f5332153ee80634e191847b84cd7c380b7d
(cherry picked from commit cafeab2813)
2020-09-21 09:58:33 +00:00
Hugh Chen
db0aa6541a Hide the icon if there is no media session or album art.
- Before this CL, the output switch panel will show a default
  icon if there is no media session or album art.

  This CL will hide the icon if there is no media session
  or album art.
- Add test case

Bug: 161495909
Test: make -j42 RunSettingsRoboTests
Change-Id: I5f80158b12f89c8499fb97d0b203ebeffefbc18b
Merged-In: I5f80158b12f89c8499fb97d0b203ebeffefbc18b
(cherry picked from commit 30805af9de)
2020-09-21 09:48:46 +00:00
Jason Chiu
4753adfb52 [DO NOT MERGE] Fix the blank space on contextual card loading timeout
Root cause:
Sometimes loading contextual cards exceeds 1 second and a timeout
expires. In the past, we used the timeout in order not to update
homepage UI and to avoid screen scrolling. But we've introduced a
mechanism of card space pre-allocation to avoid flickering, so when the
timeout expires, the pre-allocated space will be always blank.

Solution:
Display a card on timeout if the one-card space is pre-allocated.

Fixes: 165886791
Test: robotest
Change-Id: I79b29c5fd6d9c4fe6b53dd4f5eab4cd3a606d76d
2020-09-21 09:47:19 +00:00
Arc Wang
2421aeaa94 Modify Wi-Fi settings owners file
Test: N/A.
Change-Id: I03afd97db30b82661f2acd73e4720ab56dd2a5f2
2020-09-21 17:46:03 +08:00
TreeHugger Robot
b243b9a871 Merge "Fix cast volume control bar not work" into rvc-qpr-dev am: 35f15fdbff
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12613115

Change-Id: Icd301ba334760add2f730e4a7739fc942528680e
2020-09-21 09:43:49 +00:00
TreeHugger Robot
35f15fdbff Merge "Fix cast volume control bar not work" into rvc-qpr-dev 2020-09-21 09:23:22 +00:00
Bill Yi
71ecd41c8a [automerger skipped] Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286 am: e7038aa1a3 -s ours am: 657e0f3008 -s ours am: 379ae6c7b8 -s ours am: 95e4eb59e4 -s ours am: 10c930c4c0 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I5163c4d5c207c7046bc90e2ac2da08f01912cf5d
2020-09-21 08:41:25 +00:00
Bill Yi
04d5af97b8 [automerger skipped] Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f am: 5d7f242557 -s ours am: d50cfa9b63 -s ours am: 5ff5b3187c -s ours am: bd90a0d0ff -s ours am: 762d039b47 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: Id1d5e77b125f74f3aca266b7a226cd129f73796f
2020-09-21 08:41:00 +00:00
Bill Yi
10c930c4c0 [automerger skipped] Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286 am: e7038aa1a3 -s ours am: 657e0f3008 -s ours am: 379ae6c7b8 -s ours am: 95e4eb59e4 -s ours
am skip reason: subject contains skip directive

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

Change-Id: Ice308fc954cd91aee945e410bebfeb673bfc4f9a
2020-09-21 08:27:58 +00:00
Bill Yi
762d039b47 [automerger skipped] Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f am: 5d7f242557 -s ours am: d50cfa9b63 -s ours am: 5ff5b3187c -s ours am: bd90a0d0ff -s ours
am skip reason: subject contains skip directive

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

Change-Id: I7b35900c07fa69407ec5bfa073a105db07e1d0a3
2020-09-21 08:27:03 +00:00
Jeremy Goldman
a346e25409 Merge "[Testing] AndroidJunit Enhanced4gLteSliceHelperTest" am: 37cfec7ac2
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12581444

Change-Id: Idea435d0159dee37411361ee6231107a0a9637a8
2020-09-21 04:07:48 +00:00
Jeremy Goldman
37cfec7ac2 Merge "[Testing] AndroidJunit Enhanced4gLteSliceHelperTest" 2020-09-21 03:46:18 +00:00
TreeHugger Robot
3f69f61dd3 Merge "Update state when there is Bluetooth tethering state changed" am: 660b17c7cb
Original change: https://googleplex-android-review.googlesource.com/c/platform/packages/apps/Settings/+/12554917

Change-Id: I98658bc18648393800e5cb19426650515a3baf81
2020-09-21 03:45:09 +00:00
TreeHugger Robot
660b17c7cb Merge "Update state when there is Bluetooth tethering state changed" 2020-09-21 03:24:38 +00:00
android-build-team Robot
7a5812ecbf Snap for 6849206 from 4ac22e55fe to rvc-qpr1-release
Change-Id: I6f136203913788245f704a36278f40d82e12b14c
2020-09-19 21:04:18 +00:00
TreeHugger Robot
5fb4f63d13 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: c4ae769663 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I83a1e0c34ae97c44a8f2810e8410d5e47c87b27c
2020-09-19 14:33:24 +00:00
TreeHugger Robot
c4ae769663 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-09-19 14:05:30 +00:00
Bill Yi
95e4eb59e4 [automerger skipped] Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286 am: e7038aa1a3 -s ours am: 657e0f3008 -s ours am: 379ae6c7b8 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: Ia188911bc5dffe63a0dc7a576314efecb1b5ba05
2020-09-19 08:01:56 +00:00
Bill Yi
bd90a0d0ff [automerger skipped] Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f am: 5d7f242557 -s ours am: d50cfa9b63 -s ours am: 5ff5b3187c -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I07395bbd3c6d17c709d7506df657025e0306adc3
2020-09-19 08:01:02 +00:00
Bill Yi
379ae6c7b8 [automerger skipped] Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286 am: e7038aa1a3 -s ours am: 657e0f3008 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I9bffdf82e1739f2d962e3f5b5aa5369a45d0533b
2020-09-19 07:01:22 +00:00
Bill Yi
5ff5b3187c [automerger skipped] Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f am: 5d7f242557 -s ours am: d50cfa9b63 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I208048eb3581ea9f380b6e51a8f253106e942ece
2020-09-19 07:00:56 +00:00
TreeHugger Robot
79d7552ab1 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 4ac22e55fe -s ours am: 9e25089aee -s ours am: 93ded459c1 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I55c0278ba514f34895f20c4f2c2ae6903a56c559
2020-09-19 06:58:19 +00:00
TreeHugger Robot
e4b5438df1 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" am: f0548a3de2 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3bfdfa293fb9b68c8fe00e33e1747f6e6d279ee0
2020-09-19 06:58:13 +00:00
TreeHugger Robot
93ded459c1 [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 4ac22e55fe -s ours am: 9e25089aee -s ours
am skip reason: subject contains skip directive

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

Change-Id: I3df4c8e1feddfca02f8d86d037e2b6be775d4e74
2020-09-19 06:43:36 +00:00
TreeHugger Robot
f0548a3de2 Merge "Import translations. DO NOT MERGE ANYWHERE" 2020-09-19 06:38:04 +00:00
TreeHugger Robot
9e25089aee [automerger skipped] Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev am: 4ac22e55fe -s ours
am skip reason: subject contains skip directive

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

Change-Id: I0c569b44137ea6efbd324021d06e876cf145e61b
2020-09-19 06:25:36 +00:00
Bill Yi
657e0f3008 [automerger skipped] Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286 am: e7038aa1a3 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I0201d683bb94a0143cd81fa094993007aa7aad6d
2020-09-19 05:51:28 +00:00
Bill Yi
d50cfa9b63 [automerger skipped] Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f am: 5d7f242557 -s ours
am skip reason: Change-Id Ifa4dc400eb8c87c2514a3629288657520476fbfd with SHA-1 ccc406381a is in history

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

Change-Id: I4463fa09a3cc3cd986293a03a0cd8424cfa20a41
2020-09-19 05:50:34 +00:00
TreeHugger Robot
4ac22e55fe Merge "Import translations. DO NOT MERGE ANYWHERE" into rvc-qpr-dev 2020-09-19 05:30:57 +00:00
Bill Yi
e7038aa1a3 Merge "Merge mainline-release 6664920 to master - DO NOT MERGE" am: 94c8353286
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1430073

Change-Id: I5307234cb034d2f255307cbcff5ebee1a470d79b
2020-09-19 05:23:11 +00:00
Bill Yi
5d7f242557 Merge mainline-release 6664920 to master - DO NOT MERGE am: 48a84d855f
Original change: https://android-review.googlesource.com/c/platform/packages/apps/Settings/+/1430073

Change-Id: I0c107d09b4793a6c16b86a559bebc1a5e92e6e96
2020-09-19 05:22:34 +00:00
Bill Yi
f51db956eb [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1d033b41dc -s ours am: 46678afcad -s ours am: 420fdf0a89 -s ours am: 635ee82942 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I85551272a8b4c4f847adc3a6a0d9903c756c9e51
2020-09-19 03:28:58 +00:00
Bill Yi
0d3ba12712 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1d033b41dc -s ours am: 15c3938b96 -s ours am: 014c717f5c -s ours am: 2050329575 -s ours
am skip reason: subject contains skip directive

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

Change-Id: I107eb03c80248c659b8de622bf99d4e40b6478e0
2020-09-19 03:28:22 +00:00
Bill Yi
635ee82942 [automerger skipped] Import translations. DO NOT MERGE ANYWHERE am: 1d033b41dc -s ours am: 46678afcad -s ours am: 420fdf0a89 -s ours
am skip reason: subject contains skip directive

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

Change-Id: If3376a63ff968e634973486749313b2cbc8d5e24
2020-09-19 03:07:35 +00:00