Commit Graph

6825 Commits

Author SHA1 Message Date
Jared Duke
ba5b302072 Avoid intermediate exceptions in Settings queries
Update the implementations of all Settings.*.getInt and
Settings.*.getLong variants to avoid calling parse on null string
values. This avoids an unnecessary intermediate NumberFormatException
and associated overhead for a relatively common case, and matches the
behavior of Settings.*.getFloat. There should be no user-facing
behavioral differences with this change.

Also consolidate the parsing logic into common methods as they're
repeated 3x for every type.

Bug: 204223378
Test: m RunSettingsRoboTests
Change-Id: I5438c37f37d34645e7e9b02a43add505c376b360
2021-11-01 13:08:22 -07:00
Sooraj Sasindran
a50de36cc6 Merge "Added nr advanced calling settings support" 2021-10-25 19:33:28 +00:00
Gary Jian
204ec2ae6f Added nr advanced calling settings support
- Added a telephony provider entry for storing the user's settings.
- Added new vonr_enabled_bool config to determine whether VoNR
  should be enalbed for carrier

Bug: 202150953
Test: manual
Change-Id: Ie56a7de3fdb978353af77bafb55b0e37c22b58a4
2021-10-25 18:12:44 +08:00
TreeHugger Robot
c67f7700fc Merge "Revert "[SettingsProvider] additional logging for debug telephony bug"" 2021-10-21 19:46:14 +00:00
Songchun Fan
2da96da47d Revert "[SettingsProvider] additional logging for debug telephony bug"
This reverts commit 9ee3eebb99.

Reason for revert: We've diagnosed the real root cause and is irrelevant to SettingsProvider (b/191309601#comment57)

Change-Id: Ic30cd5eb869ff72bb4b2fcd965a57f9684cb6169
2021-10-21 16:42:11 +00:00
TreeHugger Robot
80fc3d2424 Merge "Add a separate namespace for Tethering module." 2021-10-21 11:23:46 +00:00
Treehugger Robot
cb0a628afc Merge "Fix queryRawContactEntity api" am: b0914ffd45 am: 722b3172ff am: 67b73c4b5e am: fff671d660 am: f4458283e0
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863059

Change-Id: I39d0d03036bac02f1601f6bc21d138a64e37d202
2021-10-20 21:34:32 +00:00
Treehugger Robot
f4458283e0 Merge "Fix queryRawContactEntity api" am: b0914ffd45 am: 722b3172ff am: 67b73c4b5e am: fff671d660
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863059

Change-Id: I8e58198e3f4f74a427ae2549b88451ec3d54588b
2021-10-20 21:15:02 +00:00
Treehugger Robot
fff671d660 Merge "Fix queryRawContactEntity api" am: b0914ffd45 am: 722b3172ff am: 67b73c4b5e
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1863059

Change-Id: I40c01c8a77842c435b8380fd589a317aaf56abe9
2021-10-20 21:00:26 +00:00
William Escande
5b4de494a0 Fix queryRawContactEntity api
Bug: 203535224
Tag: #refactor
Test: build
Change-Id: Id2e4be7a7985c47e81b6bafee5c35d0df3f33d8f
2021-10-19 21:21:48 +02:00
Ian Hua
d1c3fab8fa Merge "Add nnapi_native flag namespace." am: bae244ddd1 am: a2cc0a2c8a am: 0d6f3a81ff am: 31f99e11a9 am: 9c925277e5
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845056

Change-Id: I6430c3e426a4e9025186392f6478c8d00481ab9a
2021-10-19 17:10:31 +00:00
Ian Hua
9c925277e5 Merge "Add nnapi_native flag namespace." am: bae244ddd1 am: a2cc0a2c8a am: 0d6f3a81ff am: 31f99e11a9
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845056

Change-Id: I18714fe4ab1ee31e6a8658a44c0b8d366055baf9
2021-10-19 16:57:56 +00:00
Ian Hua
31f99e11a9 Merge "Add nnapi_native flag namespace." am: bae244ddd1 am: a2cc0a2c8a am: 0d6f3a81ff
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1845056

Change-Id: I794821f9f4ce6076f88fcd08941f7c936be1582e
2021-10-19 16:41:53 +00:00
Ian Hua
bae244ddd1 Merge "Add nnapi_native flag namespace." 2021-10-19 15:53:21 +00:00
Xiao Ma
e5fea201ca Add a separate namespace for Tethering module.
Bug: 202940451
Test: m -j passed
Change-Id: I393d25f4c1a15927686c984e47c01f2646d0867d
2021-10-19 06:56:14 +00:00
Arc Wang
f63482774b Merge "Improve scalability of Settings deep link API" into sc-v2-dev am: 3fc42998a8 am: 61183ca835
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15979687

Change-Id: Iaccfa6e4d6aa31a6f0a3f9a1efb0508adeca8f4b
2021-10-19 04:28:19 +00:00
Arc Wang
61183ca835 Merge "Improve scalability of Settings deep link API" into sc-v2-dev am: 3fc42998a8
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15979687

Change-Id: I7c4def218a8e4edc147d1f6baa8c16faee58beeb
2021-10-19 04:12:00 +00:00
Treehugger Robot
5b76efc971 Merge "Add a method to get rawContact" am: b20dc98bfa am: 6f0afa50dc am: 6afd547bb4 am: 978624c29f am: 98284edde4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849459

Change-Id: I846a404eb3a2dc24beb2a186d65d31f4b8c39d45
2021-10-18 23:37:22 +00:00
Treehugger Robot
98284edde4 Merge "Add a method to get rawContact" am: b20dc98bfa am: 6f0afa50dc am: 6afd547bb4 am: 978624c29f
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849459

Change-Id: Id8f7d122924d64375bef37966e4acc4999f141f0
2021-10-18 23:20:29 +00:00
Treehugger Robot
978624c29f Merge "Add a method to get rawContact" am: b20dc98bfa am: 6f0afa50dc am: 6afd547bb4
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1849459

Change-Id: Idfd07a3369920ea2955031b7b4d8f7e522b25795
2021-10-18 23:05:12 +00:00
Michal Olech
f483aae674 Merge changes Ifb05b969,I74808d8e
* changes:
  [CEC Configuration] Switch HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED to Shared Preferences
  [CEC Configuration] Switch HDMI_CEC_ENABLED to Shared Preferences
2021-10-18 10:38:44 +00:00
Xiao Ma
d79420b155 Merge "Add a separate namespace for CaptivePortalLogin module." 2021-10-15 14:34:46 +00:00
William Escande
e44b464866 Add a method to get rawContact
This remove the leak of hidden private field and add an api to get
entreprise raw contact
Bug: 194119078
Test: Build
Tag: #refactor

Change-Id: I9285cd54545e1359a4a7f57826ddb1a0e1dcdfbe
2021-10-15 13:33:52 +02:00
Tyler Gunn
6dc43a11fa Merge "Update call log provider docs to clarify how to use LIMIT." am: 5563f3ad03 am: 647ac1a233 am: 40f4b45d61 am: 8a9f751940 am: 9624f6844b
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852925

Change-Id: Idfa2b501339d2cf7354598df7e46d4294a2bb626
2021-10-14 02:22:22 +00:00
Tyler Gunn
9624f6844b Merge "Update call log provider docs to clarify how to use LIMIT." am: 5563f3ad03 am: 647ac1a233 am: 40f4b45d61 am: 8a9f751940
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852925

Change-Id: Icd763b868cddf8b049efed9635548957ba16f944
2021-10-14 02:05:38 +00:00
Tyler Gunn
8a9f751940 Merge "Update call log provider docs to clarify how to use LIMIT." am: 5563f3ad03 am: 647ac1a233 am: 40f4b45d61
Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/1852925

Change-Id: I94cceaa092465b3e273c9d3889cd53d30c0bdde8
2021-10-14 01:52:59 +00:00
Tyler Gunn
5563f3ad03 Merge "Update call log provider docs to clarify how to use LIMIT." 2021-10-14 01:11:27 +00:00
Xiao Ma
29f399a197 Add a separate namespace for CaptivePortalLogin module.
Bug: 202940451
Test: m -j passed
Change-Id: I5657a886b4ecc4f0ff4126588ae1f6e0712269a0
2021-10-13 12:56:30 +00:00
Michal Olech
49ef8f2e0e [CEC Configuration] Switch HDMI_CONTROL_AUTO_DEVICE_OFF_ENABLED to Shared Preferences
Test: manual + unit test
Bug: 175381065
Change-Id: Ifb05b969933e9aa81eea45c7993c19512d965b56
2021-10-13 13:37:00 +02:00
Michal Olech
bae425efff [CEC Configuration] Switch HDMI_CEC_ENABLED to Shared Preferences
Bug: 181203672
Test: manual test
Change-Id: I74808d8e9e1034d4fe5eadccc15ccbc353e09975
2021-10-13 13:36:45 +02:00
Tyler Gunn
86d27b262b Update call log provider docs to clarify how to use LIMIT.
Clarifying that you CANNOT use LIMIT in the where clause and provide
instructions on the right way to limit results.

Test: Docs only change
Bug: 175599057
Change-Id: Ib4e828fc33ae9b75e7a240e9f456907049fcc35e
2021-10-12 12:00:31 -07:00
TreeHugger Robot
75e9eee919 Merge "Add a flag for notification permission." 2021-10-11 15:19:24 +00:00
Michal Olech
2495fda990 Merge changes from topic "SendStandbyOnSleepSharedPrefs"
* changes:
  [CEC Configuration] Switch POWER_CONTROL_MODE to Shared Preferences
  [CEC Configuration] Switch TV_WAKE_ON_ONE_TOUCH_PLAY to SharedPrefs
  [CEC Configuration] Switch HDMI_SYSTEM_AUDIO_CONTROL_ENABLED to SharefPrefs
  [CEC Configuration] Switch VOLUME_CONTROL_MODE to Shared Preferences
  [CEC Configuration] Switch ROUTING_CONTROL setting to SharedPrefs
2021-10-11 12:47:54 +00:00
Julia Reynolds
1c37ce4cfa Add a flag for notification permission.
Test: atest
Bug: 194833441
Change-Id: Iec856754264ff34f0f1c5c116d72834568e55d89
2021-10-10 18:35:04 -04:00
Ian Hua
c951fc6076 Add nnapi_native flag namespace.
Test: mm
Bug: 201399117
Change-Id: I04eff84ac0433b0f829aca7793b1aa261b02a098
2021-10-08 16:00:09 +01:00
Adam Bookatz
7a0b594e3a Merge "UM.getUserHandle -> UM.getProcessUserId" 2021-10-08 02:22:08 +00:00
Tingting Wang
bc9e0c29cc Merge "Add default account call methods APIs." 2021-10-05 20:34:39 +00:00
Adam Bookatz
010d64fa5b UM.getUserHandle -> UM.getProcessUserId
UM is being made @UserHandleAware, so using an explicit method avoids ambiguity.

Bug: 201679968

Test: (No-op) compiles and treehugger
Change-Id: I5b90f1cd644d40e3dfe57795ec2315d330fcaa0e
2021-10-05 13:08:28 -07:00
Arc Wang
d98bcb3363 Improve scalability of Settings deep link API
Avoid using 'two pane' and 'large screen' because
they are implementation details exposure.

Bug: 201662312
Test: build pass
Change-Id: I67e4b07ab957285ac0410f307030c491b3f6e95d
2021-10-05 20:23:33 +08:00
Michal Olech
dcac864c97 [CEC Configuration] Switch POWER_CONTROL_MODE to Shared Preferences
Test: build; flash; inspect
Bug: 171958586
Change-Id: Ic3521f7d2b5764d0ffe599f42822ff7394098afe
2021-10-05 12:14:05 +00:00
Michal Olech
8a5adf2c64 [CEC Configuration] Switch TV_WAKE_ON_ONE_TOUCH_PLAY to SharedPrefs
Test: manual test
Change-Id: Ic3f0eaa07f89ba317581ede56a74e99b5c38cbe1
Bug: 175381065
2021-10-05 12:13:57 +00:00
Michal Olech
28b217b77a [CEC Configuration] Switch HDMI_SYSTEM_AUDIO_CONTROL_ENABLED to SharefPrefs
Test: manual test
Change-Id: Iacca003274238a80720d7abddadcc0d26b34f99f
Bug: 175381065
2021-10-05 12:13:49 +00:00
Michal Olech
06e13bdbd5 [CEC Configuration] Switch VOLUME_CONTROL_MODE to Shared Preferences
Test: manual test
Change-Id: I708caafc54df8f3c6393b485abdc8e5b02f1ca51
Bug: 175381065
2021-10-05 12:13:40 +00:00
Michal Olech
c833d21bb2 [CEC Configuration] Switch ROUTING_CONTROL setting to SharedPrefs
Test: manual test
Change-Id: Id94165b4df3cb83a39334cb8d750bbbc899186ca
Bug: 175381065
2021-10-05 12:01:57 +00:00
Marcus Hagerott
56b28d4ad7 Return null for contacts local account
In T+ the local account is required to be consistent with the what is
used in the AOSP ContactsProvider and so
RawContacts.getLocalAccountName and RawContacts.getLocalAccountType
should always return null.

Test: atest CtsContactsProviderTestCases
Bug: 188347648
Bug: 197121153

Change-Id: I3b7143e3b96e5db53128f4b69b0eb606237f9f50
2021-10-01 10:50:54 -07:00
TreeHugger Robot
cf23a8a9e1 Merge "Expose Phone.ENTERPRISE_CONTENT_URI as systemApi" into stage-aosp-master am: f2753ce65f am: 984f8fcc51 am: 6cc18eef4e am: 010a06ec36
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934185

Change-Id: Id117effbc92da889e388cb3be08053f6c3af6c48
2021-09-28 22:13:55 +00:00
TreeHugger Robot
010a06ec36 Merge "Expose Phone.ENTERPRISE_CONTENT_URI as systemApi" into stage-aosp-master am: f2753ce65f am: 984f8fcc51 am: 6cc18eef4e
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934185

Change-Id: Id9d8bbe2348c12da078f175ec169e18e9e0dcdfe
2021-09-28 21:59:09 +00:00
TreeHugger Robot
6cc18eef4e Merge "Expose Phone.ENTERPRISE_CONTENT_URI as systemApi" into stage-aosp-master am: f2753ce65f am: 984f8fcc51
Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/15934185

Change-Id: I54ac1cd2ebae0d7d32fd16323b4b414fbb9f50eb
2021-09-28 21:44:46 +00:00
Tingting
79e57edb06 Add default account call methods APIs.
Test: use it in CP2 and verified.

Bug: 188347310
Change-Id: Iad4a84d8a39a9fd0f3c2d695499f819b2eb926d0
2021-09-28 20:35:21 +00:00
TreeHugger Robot
ce08cfcac1 Merge "Create and default grant Notification permission" 2021-09-28 20:08:11 +00:00