Commit Graph

5421 Commits

Author SHA1 Message Date
Taesu Lee
7e26fe7ce3 Show subId info for getMessagesFromIntent log if it available only
getMessagesFromIntent with default SMS subId log is shown from
AppSmsManager for MT SMS always since an intent without subId info is
delivered to AppSmsManager first.
It might be confusing when checking MT SMS log for multi-sim devices.

Bug: 161156506
Test: MT SMS and Check log

Signed-off-by: Taesu Lee <taesu82.lee@samsung.com>
Change-Id: I66da0d5d9802c4427572cb1674be452582066450
2020-07-14 12:14:07 +09:00
Sarah Chin
957f0a5285 Add Setting for NR screen off indications
Test: build
Bug: 154241884
Change-Id: Ifa485230f6d27eaa7a665a396e3eac33e00feadb
Merged-In: Ifa485230f6d27eaa7a665a396e3eac33e00feadb
2020-06-22 16:15:03 -07:00
Zach Johnson
61a01fb0ca Add NAMESPACE_BLUETOOTH for bluetooth feature experiments
Exempt-From-Owner-Approval: dianne approved, but from her android.com account instead of google.com account
Test: compile
Bug: 156757711
Merged-In: I330b8cc5aeb14ebcc15fb88c605ac72770497040
Change-Id: I330b8cc5aeb14ebcc15fb88c605ac72770497040
2020-05-27 03:39:06 +00:00
Inseob Kim
4f2a6a2405 Remove sys.vdso property
This is an experimental property on Q and doesn't need anymore.

Exempt-From-Owner-Approval: cherry-pick

Bug: 154885206
Test: N/A
Change-Id: Ibb09e17703fbc95fe41542d335311b68553502a0
Merged-In: Ibb09e17703fbc95fe41542d335311b68553502a0
(cherry picked from commit dfafe03cb4)
2020-05-13 12:06:33 +09:00
Andrew Sapperstein
1f6e22cbd8 Fix broken @see tags in public documentation.
These were previously being suppressed by doclava but with this change,
all failures are fixed and the suppression logic has been removed.

To fix the issues, there were a few possible changes made:
- broken reference to a public API (such as incorrect parameters): fixed
- unnecessary @link inside an @see tag: fixed
- @see referring to an @hide or @SystemApi: reference removed
- broken references to inner class constructors
 - worked around by fully qualifying the constructor

Bug: 6963924
Test: make doc-comment-check-docs
Change-Id: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
Merged-In: Ifbdce2de96cdffa560bd90f549fa7184d1f9af85
2020-05-01 00:42:22 +00:00
Amit Mahajan
e253c746b4 Remove permission requirement for SMS_DB_LOST intent.
So that messaging app can listen to it for debuggability.

Test: basic sanity
Bug: 152559647
Merged-in: Ie1b980a6bfbbc7887948cfc41e4928e9f160da98
Change-Id: Ie1b980a6bfbbc7887948cfc41e4928e9f160da98
(cherry picked from commit 6eb456615f)
2020-04-15 17:15:11 -07:00
Amit Mahajan
1c87deaacf Remove @SystemApi from some constants for R.
These were exposed for telephony mainline. Will be revisited in S.

Test: basic sanity
Bug: 148171847
Bug: 148171388
Merged-in: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
Change-Id: Ibdcac557cf35e723f09a7b7a2e59c7deae1fc94e
(cherry picked from commit c55b01552e)
2020-03-27 17:38:33 -07:00
Peter Wang
0ddf44070b [API Review] APIs in SubscriptionManager
Bug: 146362772
Bug: 148180034
Test: atest SubscriptionControllerTest, TelephonyDatabaseHelperTest, TelephonyProviderTest
Change-Id: I77cad8f828ac38976355b7a5f3e8d757b73694ca
Merged-In: I77cad8f828ac38976355b7a5f3e8d757b73694ca
2020-03-19 16:06:52 -07:00
Junyu Lai
b3c511d028 Merge changes I7eaca623,Ic94da540,If330e853,Ie2d229be,Ic6b2f10f
* changes:
  [SM08] Add NetworkTemplate unit test for fetching mobile data usage
  [SM07] Make combine subtype configurable from Settings
  [SM05] Enable record mobile network stats by collapsed rat type
  [SM04] Support fetching data with NetworkTemplate with subType
  [SM02] Support record mobile network stats by collapsed rat type
2020-03-19 09:10:57 +00:00
Zoey Chen
1859e648d6 Merge "[TelephonyMainline] @hide @SystemApi and revisit them in S. - CarrierColumns" 2020-03-19 06:21:35 +00:00
Jack Yu
930570e656 Added todo work
Added todo work to deprecate the broadcasted flag, which is
essentially replaced by the displayed flag.

Test: None
Bug: 143229383
Merged-In: I3907d0d76166a768e57bfa420855e6a0563968a8
Change-Id: I3907d0d76166a768e57bfa420855e6a0563968a8
(cherry picked from commit c38a70a946)
2020-03-18 21:46:17 -07:00
junyulai
b56b6138bf [SM07] Make combine subtype configurable from Settings
Note that enabling/disabling would not take effect until device
reboot. This will be addressed in follow-up patch.

Test: 1. atest NetworkStatsServieTest SettingsBackupTest
      2. adb shell settings put global netstats_combine_subtype_enabled 1|0
Bug: 146415925

Change-Id: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
Merged-In: Ic94da540afa479ed18f1b6fbda4ae3216c37476b
(cherry picked from commit c4f77ac90b and
 fix merge conflict in SettingsBackupTest)
2020-03-19 10:10:07 +08:00
zoey chen
c73028e9f2 [TelephonyMainline] @hide @SystemApi and revisit them in S. - CarrierColumns
Test: manual
Bug: 144455212
Change-Id: I719ee0a4d23dcb7786954fe2741f3830d3d3a5bc
Merged-In: I719ee0a4d23dcb7786954fe2741f3830d3d3a5bc
2020-03-18 11:55:54 +00:00
Zoey Chen
85fab6aa74 Revert "[Telephony mainline] Add SystemApi and NonNull annotation"
Revert "[Telephony Mainline] 1. Move the functionality about blo..."

Revert "[Telephony mainline] Move all METHOD_* constants from Sy..."

Revert "[Telephony mainline] Move the functionality into the cal..."

Revert submission 1175092-1575532679259-3b86bd03

Reason for revert: <Revisit and redesign in S>
Reverted Changes:
I5c4380f93:[Telephony mainline] Move all METHOD_* constants f...
I84bbfc13c:[Telephony mainline] Move METHOD_* constants from ...
I5a53cb416:[Telephony mainline] Move the functionality into t...
I69d1fd77c:[Telephony Mainline] 1. Move the functionality abo...
I619d6ba04:[Telephony mainline] Add SystemApi and NonNull ann...

Change-Id: I379281a1879dddcaae8862c9f970ef57892ecbea
Merged-In: I0749492a5648dfa2fb83271f349a8370972f7032
2020-03-11 08:23:57 +00:00
Automerger Merge Worker
bdf898ab9f Merge changes from topic "adbwifi-base" am: 458a9a2561
Change-Id: I03540566fe4eb10926f97c56adf3b0b1449ad89a
2020-02-21 05:24:09 +00:00
Joshua Duong
a71c97f440 Add Settings.Global.ADB_WIFI_ENABLED.
ADB_ENABLED historically meant the state for USB debugging. Since
wireless debugging can be enabled separately, define another setting
for it.

BUG: b/111434128

Test: make
Change-Id: If3abca8e77381d6832f55d55a43c52ee1a1267d1
Merged-In: If3abca8e77381d6832f55d55a43c52ee1a1267d1
Exempt-From-Owner-Approval: cherry-pick
2020-02-20 18:42:14 -08:00
Paul Hu
06c0f60a2b Merge "Add ACTION_TETHER_SETTINGS" am: 77e6024c01
Change-Id: Ibde5dfa7be0bd3e2db664b49f3a65eb618da933d
2020-02-14 08:19:04 +00:00
Paul Hu
77e6024c01 Merge "Add ACTION_TETHER_SETTINGS" 2020-02-14 08:05:33 +00:00
paulhu
572c46d354 Add ACTION_TETHER_SETTINGS
Tethering notification needs to launch TetherSettings when user
tapped notification. But OEM can have their own Settings
package. So add ACTION_TETHER_SETTINGS in Settings.java for
launching TetherSettings via intent. Then OEM can launch their
TetherSettings by receiving this intent.

Bug: 149068177
Test: Build, Flash, manual test.
Change-Id: I98f6b50b45f1f8cc1fe6dab7b2592de4611363ce
2020-02-07 09:21:39 +00:00
Automerger Merge Worker
8a6bd20bdb Renamed SUB_ID to SUBSCRIPTION_ID am: 087568092a
Change-Id: I3c5f995f742ea861140e22ab43ff40d89ab462ad
2020-02-05 19:19:27 +00:00
Jack Yu
087568092a Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563

Merged-In: Iac8d9abe3b011485ffe8220d94f25f99d022014b
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
(cherry picked from commit e94a7a4f97)
2020-02-04 16:20:44 -08:00
Automerger Merge Worker
e1f9b607d7 Merge "Added data coding scheme and location check time support" am: ad194f332d
Change-Id: I475683bca98d019295726a21a487253ae09383a7
2020-02-04 21:55:33 +00:00
Jack Yu
eba90e264a Added data coding scheme and location check time support
AT&T requires showing data coding scheme, location check
time, whether shown to the user or not in the test menu.
Expanded database to support this.

Bug: 144152683
Test: Manully sending fake messages and verified database
Merged-In: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
Change-Id: Ib5b78802e7548da9f92492aae4c94ed3488b5e3d
(cherry picked from commit 641db9a36a)
2020-02-04 10:39:52 -08:00
Automerger Merge Worker
1cf5d1f1f7 Merge "Added support for Calls.FEATURES_VOLTE in call log." am: 966020f8dd
Change-Id: I6b6dd980971a72388b05fdace1858c0404d7da70
2020-01-31 15:59:45 +00:00
Tyler Gunn
966020f8dd Merge "Added support for Calls.FEATURES_VOLTE in call log." 2020-01-29 20:24:09 +00:00
Grace Jia
9af1c6297f Added support for Calls.FEATURES_VOLTE in call log.
Test: CTS test
Bug: 141264508
Change-Id: Ia554be9e7150ea99c45ec011c166c1bcd87ddc9a
Merged-In: Ia554be9e7150ea99c45ec011c166c1bcd87ddc9a
2020-01-29 10:38:06 -08:00
Brad Ebinger
47c65ba67b Add IMS_RCS_UCE_ENABLED column to SimInfo database
am: 41c232c7bc

Change-Id: I622957ba0bf60f74094cd6c06ea8d041a265ff26
2020-01-27 11:08:16 -08:00
calvinpan
c64805d392 Merge "Redesign the setPreferredNetworkType"
am: 53b272d680

Change-Id: I9dec551a3aeb71edd52d33d1e92bb385bca7cf19
2020-01-24 16:12:48 -08:00
Brad Ebinger
41c232c7bc Add IMS_RCS_UCE_ENABLED column to SimInfo database
Add the ability for the user to turn on/off UCE in settings.

Bug: 148167203
Test: atest CtsTelephonyTestCases:RcsUceAdapterTest
Merged-In: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
Change-Id: Ic53a9ef32343bfa4d96c2cf7fc0f0791265d2bd1
2020-01-24 13:39:22 -08:00
calvinpan
d77e0bde77 Redesign the setPreferredNetworkType
Some APPs(like OMA DM) might enable or disable 5G settings, so redesign
the setPreferredNetworkType behavior.

1. Create allowed_network_type in telephonyprovider
2. Create get/set allowed network type API
3. When APPs call setPreferredNetworkType() that will AND with allowed
network type.

Bug: 136730709
Test: By Manual
1. setAllowedNetwork to disable 5G
2. setPreferredNetworkTypeBitmask to set NR_LTE_GSM_WCDMA
3. framework set LTE_GSM_WCDMA to modem
Merged-In: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
Change-Id: Ia257e6ddaa33c32bc09340a59c9daf71ce1fa8cf
2020-01-24 13:23:27 -08:00
Peter Wang
caabef3f2c Merge "[Telephony Mainline] Expose APIs in SubscriptionManager"
am: c0e02ab436

Change-Id: I8599664e033e579f18acf30203fa3ff9207122a2
2020-01-24 10:37:27 -08:00
Treehugger Robot
c0e02ab436 Merge "[Telephony Mainline] Expose APIs in SubscriptionManager" 2020-01-24 18:31:32 +00:00
Automerger Merge Worker
5a4ec31b04 Merge "Expose CARRIER_APPS_HANDLED as system API" am: eb7dddb9ab
Change-Id: I26b62ee0613191cff39e975f145bda8e7b54fe87
2020-01-23 23:05:38 +00:00
Peter Wang
78af57db36 [Telephony Mainline] Expose APIs in SubscriptionManager
Bug: 146362772
Fix: 146362772
Test: Build, TelephonyProviderTest
Merged-In: Icaff3117cab45e6458931a600fa8d63821e0fe13
Change-Id: Icaff3117cab45e6458931a600fa8d63821e0fe13
2020-01-23 13:03:37 -08:00
Meng Wang
f03b011ee6 Expose CARRIER_APPS_HANDLED as system API
Bug: 148171388
Test: make
Change-Id: Ia6ea92f1cc29dd3706fbf2f8820551240c847dce
2020-01-22 14:59:27 -08:00
Xin Li
e13851556b DO NOT MERGE - Merge qt-qpr1-dev-plus-aosp-without-vendor (6129114) into stage-aosp-master
Bug: 146167222
Change-Id: Ifeb003ec9b3bf824f04d31a117aea65d517241fb
2020-01-15 16:15:41 -08:00
Jack Yu
c3133cbc57 Do not migrate use full volume shared preference
Use full volume has been renamed to override DnD and
the toggle is now only available for certain countries. We
intended not to provide the ability to migrate this shared
preference as it might cause issue for users who already
changed the preference. After mainline migration, override
DnD should be always reset to default value of that country.

Test: Manual
Bug: 147426188

Merged-In: I5746fe32674131b474e784bd5dd62ecff76386d5
Change-Id: I5746fe32674131b474e784bd5dd62ecff76386d5
(cherry picked from commit bcbe46816c)
2020-01-14 22:59:05 +00:00
Chen Xu
32f525c975 support data migration from OEM legacy app to mainline
Defined systemAPI for interaction with legacy cellbroadcast app

Bug: 135956699
Test: Tested with cell broadcast receiver test app and confirmed data can be migrated.
Merged-In: I6e583672a3673fd226e14d33d7a7648f4fd03efb
Change-Id: I6e583672a3673fd226e14d33d7a7648f4fd03efb
(cherry picked from commit ad2f91fc6d)
2020-01-14 22:54:58 +00:00
Treehugger Robot
89ac95017f Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:35:38 +00:00
Treehugger Robot
9938c70fb5 Merge "Use new UnsupportedAppUsage annotation." 2020-01-13 13:05:17 +00:00
Artur Satayev
bc3d8b9071 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I534e3fd1305e2f4af076986770033478448a665c
Merged-In: I534e3fd1305e2f4af076986770033478448a665c
2020-01-13 12:39:59 +00:00
Automerger Merge Worker
692d0700c9 Merge "Expose check write setting operation as system API" am: 6978df2cb6 am: ff1e9a9b93
Change-Id: Ifb553e901b849e53b196881b190e4d05c5855a9c
2020-01-10 11:23:52 +00:00
Mark Chien
6978df2cb6 Merge "Expose check write setting operation as system API" 2020-01-10 11:06:38 +00:00
Artur Satayev
2d330f6fa8 Use new UnsupportedAppUsage annotation.
Existing annotations in libcore/ and frameworks/ will deleted after the migration. This also means that any java library that compiles @UnsupportedAppUsage requires a direct dependency on "unsupportedappusage" java_library.

Bug: 145132366
Test: m && diff unsupportedappusage_index.csv
Change-Id: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
Merged-In: I288969b0c22fa3a63bc2e71bb5009fe4a927e154
2020-01-09 15:08:18 +00:00
Automerger Merge Worker
b8a97000e9 Merge "Expose some tethering constants in Settings" am: 07dcca55fc am: 2173a4d07e
Change-Id: I1231b6fdfb8373dd03ac34649769d90163063bf1
2020-01-09 12:13:35 +00:00
markchien
e64a799169 Expose check write setting operation as system API
If tethering provisioning check is required, caller must have tethering
privilege permission to change tethering. If provisioning is not needed,
caller who has write settings permisssion also can change tethering.
Expose checkAndNoteWriteSettingsOperation for tethering check whether
caller has write settings permission.

Bug: 144814607
Test: -build, flash, boot
      -atest SettingsTest#testCheckWriteSettingsOperation
Change-Id: Ib3931bbe39361c2c4324935f16473cc675848032
2020-01-09 09:54:53 +00:00
markchien
9845e908d0 Expose some tethering constants in Settings
Make some tethering constants @systemApi because tethering
cannot use hide Api.

Bug: 144814607
Test: build, flash, boot
Change-Id: I8b46e2483eec575cddaad392d055551b75ca71ef
2020-01-09 08:48:55 +00:00
Automerger Merge Worker
646bdf8e89 Merge "Convert some users of Time.format() to an alt." am: 267b83e7d6 am: 1b0c2fcd3b
Change-Id: I1cb9722000898c9d1a7d479e9b0d88f717c57414
2020-01-07 03:25:07 +00:00
Allen Su
267b83e7d6 Merge "Convert some users of Time.format() to an alt." 2020-01-07 02:28:15 +00:00
Automerger Merge Worker
3db9e958ab Merge "Create new APIs for overriding APNs" am: 13beb87783 am: 4d1771a3fb
Change-Id: I202aa723edabdca84eddb679233ac0dcf6cfacd2
2020-01-07 00:10:24 +00:00