Commit Graph

7830 Commits

Author SHA1 Message Date
Betty Chang
53fa3cc3ef Merge "To add restriction check for Wi-Fi Tethering" 2021-12-23 07:58:47 +00:00
Arc Wang
7b82095160 Merge "Fix Arabic floating point number display problem" 2021-12-23 00:03:32 +00:00
changbetty
53184b7523 To add restriction check for Wi-Fi Tethering
Bug: 203168953
Test: make RunSettingsLibRoboTests ROBOTEST_FILTER=WifiEnterpriseRestrictionUtilsTest
Change-Id: I49f3197ce79c2ef60b73b6ff079a8aa7f86356cc
2021-12-22 16:08:37 +00:00
Arc Wang
4a9fc90221 Fix Arabic floating point number display problem
Most languages use dot . as floating point, however,
Arabic uses ٫ as  floating point.

Bug: 210453969
Test: manual visual
      Settings -> Storage
Change-Id: I55702d0fc243e59eecaa2283c45ee70260ef8cf2
2021-12-22 17:55:31 +08:00
Shaowei Shen
a8cac39122 Merge "[Output Switcher] Update media transfer name for current device" 2021-12-22 09:36:25 +00:00
shaoweishen
9e8ecaf2f0 [Output Switcher] Update media transfer name for current device
Test: verify on device
Bug: 203072949
Change-Id: I4b89e12b1396db3910717c8b99a880e4b49e3ede
2021-12-22 09:36:01 +00:00
TreeHugger Robot
3f1e934c86 Merge "Allow customize icon of BannerMessagePreference before Android S" 2021-12-21 10:16:41 +00:00
Yinglei Wang
ebbe319446 Merge "Add new setInputMethodEnabled API" 2021-12-15 19:23:34 +00:00
Treehugger Robot
4fb303c5ea Merge "Add CachedBluetoothDeviceManager test case for csip set member device logic" am: 7e32693bc7 am: 252d8842e6 am: bbb8fa8e83 am: 5be2e5c249
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922038

Change-Id: I2e2b41800da58a057e76c087a0ef5b7e5ff062c1
2021-12-15 06:33:09 +00:00
Treehugger Robot
64b2ef4b38 Merge "Fix the set member size check error" am: 0c02dc46e1 am: 519f76e740 am: 3c0fbb9e09 am: 6784700a9d
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1921618

Change-Id: I1e9f8c653bcbef81f7a92d7c76f8347d6496b4d7
2021-12-15 06:32:17 +00:00
Treehugger Robot
5be2e5c249 Merge "Add CachedBluetoothDeviceManager test case for csip set member device logic" am: 7e32693bc7 am: 252d8842e6 am: bbb8fa8e83
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922038

Change-Id: Iddaf052956d62ada185adbb55d493fafacd5172f
2021-12-15 06:22:11 +00:00
Treehugger Robot
6784700a9d Merge "Fix the set member size check error" am: 0c02dc46e1 am: 519f76e740 am: 3c0fbb9e09
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1921618

Change-Id: I8868f28f3d8556b6fca7fd85e09b66e79aa1ba46
2021-12-15 06:21:32 +00:00
Treehugger Robot
bbb8fa8e83 Merge "Add CachedBluetoothDeviceManager test case for csip set member device logic" am: 7e32693bc7 am: 252d8842e6
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1922038

Change-Id: Id4034efca5999f82997649cb483c3aa5e13bf554
2021-12-15 06:06:24 +00:00
Treehugger Robot
3c0fbb9e09 Merge "Fix the set member size check error" am: 0c02dc46e1 am: 519f76e740
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1921618

Change-Id: Ib0e16b856a30f48e612991049a785b663c61f1b3
2021-12-15 06:05:57 +00:00
Treehugger Robot
7e32693bc7 Merge "Add CachedBluetoothDeviceManager test case for csip set member device logic" 2021-12-15 05:52:24 +00:00
Treehugger Robot
0c02dc46e1 Merge "Fix the set member size check error" 2021-12-15 05:35:24 +00:00
Alice Kuo
e19be3ce15 Add CachedBluetoothDeviceManager test case for csip set member device logic
The patch contains two topic.
1. Add test case for csip set member device add/remove logic
2. Fix clearNonBondedDevices issue. Remove object from set as iterating, it would cause ConcurrentModificationException, make a copy as iterating to achieve the safe remove.

Bug: 205507889
Bug: 150670922
Bug: 178981521
Test: make -j50 RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest
Change-Id: I3fa3fd9a9e13e011ce2ce01a8142511c86ccbf1c
2021-12-15 08:55:58 +08:00
Alice Kuo
4312cc9206 Fix the set member size check error
The default member device set object are not null. We should check it by
its size instead.

Bug: 205507889
Bug: 150670922
Bug: 178981521
Test: make -j50 RunSettingsLibRoboTests ROBOTEST_FILTER=CachedBluetoothDeviceManagerTest
Change-Id: Iae4b2f70723c1b083ad71df1374a608a12ff6c0e
2021-12-15 05:20:16 +08:00
yingleiw
b5f3d34def Add new setInputMethodEnabled API
Make accessibility services able to enable/disable a specified
IME in the same package for the current user.

Bug: 195476910
Fix: 191386474

Test: atest AccessibilitySoftKeyboardTest. Also tested with
modified talkback (use the swith input method API for enable
ime), and self created empty a11y service with an empty ime.
Mananged device and profile which set limit on user 0 are also
tested.

Change-Id: I4187468076705ac597d680f2f5dc32d7b166da1f
2021-12-10 15:20:44 -08:00
Songchun Fan
5e303008b4 Merge "[pm] new APIs for ApplictaionInfo/PackageInfo/ComponentInfo/ResolveInfo flags" 2021-12-10 16:08:09 +00:00
TreeHugger Robot
cbb0cf5ce4 Merge "Tweak the way to get the enabled component" into sc-v2-dev am: 21ac89fa4c am: 1c87a2e720
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16426616

Change-Id: I5772e33a555b2bfb299d719c150095c69a27697e
2021-12-09 22:22:49 +00:00
TreeHugger Robot
1c87a2e720 Merge "Tweak the way to get the enabled component" into sc-v2-dev am: 21ac89fa4c
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16426616

Change-Id: Id4a9e15a146dfa7dd2fa8c9362b6a6270478fc68
2021-12-09 22:10:31 +00:00
TreeHugger Robot
21ac89fa4c Merge "Tweak the way to get the enabled component" into sc-v2-dev 2021-12-09 22:06:24 +00:00
TreeHugger Robot
17fbd93613 Merge "Make SysUI dialogs more consistent" into sc-v2-dev am: ef54ed965f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16371738

Change-Id: I881d9f72b4cc79b90e8265655d9e40596995e718
2021-12-09 13:59:40 +00:00
Tsung-Mao Fang
58fb1caa4a Tweak the way to get the enabled component
Prior to this cl, we only can get the default value set in the AndroidManifest.xml.
It won't return the real enabled state after we modified the component state.

Test: Install apk and see if the search highlight works.
Bug: 204405245
Change-Id: I9bf0b178c591f2fbbbfc733bb2140a5725a07166
2021-12-09 18:23:59 +08:00
TreeHugger Robot
fd8e9dec35 Merge "Make SysUI dialogs more consistent" 2021-12-08 19:00:22 +00:00
Edgar Wang
37c9982cb2 Fix the initial background color of MainSwitchBar
we should check Switch.isChecked() status first.

Bug: 207431726
Test: manual & robotest
Change-Id: Ie748a88f7b05fc1047590b9a08e89115bfa2d535
2021-12-08 11:51:46 +00:00
Jordan Demeulenaere
1536e49a7f Make SysUI dialogs more consistent
This CL makes SysUI dialogs more consistent by ensuring they are using
the same button styles and paddings. I decided to be strongly
opinionated: the primary buttons are all filled and on the right, the
secondary button are hairline and on the left.

See b/203666386#comment13 for a video.

Bug: 203666386
Test: Manual
Change-Id: I587d9537309357555229db411edfb154151a92e7
Merged-In: I587d9537309357555229db411edfb154151a92e7
2021-12-08 10:24:53 +01:00
Jordan Demeulenaere
95e3bd1d1e Make SysUI dialogs more consistent
This CL makes SysUI dialogs more consistent by ensuring they are using
the same button styles and paddings. I decided to be strongly
opinionated: the primary buttons are all filled and on the right, the
secondary button are hairline and on the left.

See b/203666386#comment13 for a video.

Bug: 203666386
Test: Manual
Change-Id: I587d9537309357555229db411edfb154151a92e7
2021-12-08 10:24:41 +01:00
TreeHugger Robot
7e6befc6dd Merge "Update test case for RECEIVER_EXPORTED" 2021-12-08 02:34:11 +00:00
Meng Wang
37faa1f811 Merge "Use getPhoneNumber API to get phone number on T" 2021-12-07 17:04:12 +00:00
Hugh Chen
a318699c83 Update test case for RECEIVER_EXPORTED
Bug: 208875751
Test: make -j64 RunSettingsLibRoboTests
Change-Id: Ie79354ca68338acc40f16812076f70909f546c6a
2021-12-07 09:13:22 +00:00
Stanley Wang
154e4da68d Merge "Update the padding of MainSwitch layout and the MainSwitch's TextView margin to meet the spec." into sc-v2-dev am: 20e71a637f am: c8617ccd65
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387797

Change-Id: Id0d3c67aa47c3cc83ce44ccf553f88a8e2d029e1
2021-12-07 08:49:36 +00:00
Stanley Wang
c8617ccd65 Merge "Update the padding of MainSwitch layout and the MainSwitch's TextView margin to meet the spec." into sc-v2-dev am: 20e71a637f
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16387797

Change-Id: Ifc51df9c136e526dd076895f355b5636ea7e08f3
2021-12-07 08:33:53 +00:00
Stanley Wang
20e71a637f Merge "Update the padding of MainSwitch layout and the MainSwitch's TextView margin to meet the spec." into sc-v2-dev 2021-12-07 08:13:54 +00:00
Edgar Wang
41a3197e74 Allow customize icon of BannerMessagePreference before Android S
Synced with UX, we decided to allow user to customize the icon of
BannerMessage which could provide more ability to make UX consistency.

Bug: 205244609
Test: robotest
Change-Id: Iea29c48730c943c5436e42a1effd11fe3601356a
2021-12-07 16:11:05 +08:00
TreeHugger Robot
e30a7ed567 Merge "Keep the merged WiFi indicators when WiFi toggle changes." into sc-v2-dev am: c4392736ae am: 8d974c624e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16389553

Change-Id: I3d54fc0a31dadfa4e9b052021d09867a927970fa
2021-12-06 21:23:39 +00:00
TreeHugger Robot
8d974c624e Merge "Keep the merged WiFi indicators when WiFi toggle changes." into sc-v2-dev am: c4392736ae
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/16389553

Change-Id: I188c4dc31e310ea187609513fad95f1321b6b89b
2021-12-06 21:06:41 +00:00
TreeHugger Robot
c4392736ae Merge "Keep the merged WiFi indicators when WiFi toggle changes." into sc-v2-dev 2021-12-06 20:50:44 +00:00
Etienne Ruffieux
61527e371f Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835 am: 60ee51b45b am: 6140b27f92 am: ff722e5477
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460

Change-Id: I3f9eea60be66e06893ddf963e5e8dcf6310ba0e9
2021-12-06 16:34:05 +00:00
Etienne Ruffieux
ff722e5477 Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835 am: 60ee51b45b am: 6140b27f92
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460

Change-Id: Ia9a487ca2aaed32193a86c0d0fc22f53356ceea1
2021-12-06 16:18:10 +00:00
Etienne Ruffieux
6140b27f92 Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835 am: 60ee51b45b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460

Change-Id: I97b8a4b9bbc4d9a4a5409ee7c427438abc024d43
2021-12-06 16:03:51 +00:00
Etienne Ruffieux
60ee51b45b Merge "Make BluetoothCodecConfig and BluetoothCodecStatus public." am: 720d74c835
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849460

Change-Id: I3ac378fa125304253ffc8235642c292084af19d1
2021-12-06 15:40:20 +00:00
Stanley Wang
a6432c0072 Update the padding of MainSwitch layout and the MainSwitch's
TextView margin to meet the spec.

Fix: 208153566
Test: manual test and see the UI
Change-Id: I5c1a1e1bc51f21734d9cf6f4b318a7b2fad5e10d
2021-12-06 14:53:34 +08:00
Shaowei Shen
53f3641068 Merge "[Output Switcher] Cancel setting color filter for device icon" 2021-12-05 15:01:41 +00:00
Etienne Ruffieux
7121cd7fa5 Make BluetoothCodecConfig and BluetoothCodecStatus public.
Made BluetoothCodecConfig and BluetoothCodecStatus public,
added Builder to BluetoothCodecConfig, added accessor for
SOURCE_CODEC_TYPE_MAX and changed Arrays returns to List.

Tag: #feature
Bug: 200202780
Bug: 170678351
Test: BluetoothCodecConfigTest & BluetoothCodecStatusTest
NoNonSdkCheck: Only user actually requested the changes
Change-Id: Ic61b7087f53f45781f7e0eecca8b6d983093a22d
2021-12-03 23:08:50 +00:00
Benedict Wong
f65d224626 Keep the merged WiFi indicators when WiFi toggle changes.
The merged WiFi indicators are feteched from the WiFiInfo, so when WiFi
toggle changes we should not clear the indicators.

Bug: 208868291
Test: Unit test NetworkControllerWifiTest, manual test
Change-Id: I7d2724bdc92b92b52350d132bb673489818f261c
2021-12-03 12:14:13 -08:00
Meng Wang
35b45a774d Use getPhoneNumber API to get phone number on T
.. which is supposed to have a lower chance of returning empty
than getLine1Number.

Bug: 159459637
Test: make
Change-Id: I10476fb1a95baf294666dafc9fe77d5732bf0349
2021-12-03 11:49:26 -08:00
Wilson Wu
040d933827 Merge "Make InputMethodPreference support work profile" 2021-12-03 04:05:18 +00:00
Sunny Goyal
2389bc5b74 Merge "Updating icon badging logic" 2021-12-03 02:14:42 +00:00