Commit Graph

5647 Commits

Author SHA1 Message Date
Automerger Merge Worker
7b469d73d2 Merge "Expose some tethering constants in Settings" am: 07dcca55fc am: 2173a4d07e am: b8a97000e9
Change-Id: I0a6e91e6f33924ef181033faeb755c8cc123b94b
2020-01-09 12:27:08 +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
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
TreeHugger Robot
789539d86f Merge "Update java doc for FLAG_DIR_BLOCKS_TREE" 2020-01-09 04:50:47 +00:00
Peter Wang
eeea33fb80 Merge "[Telephony Mainline] Expose APIs in SubscriptionManager" 2020-01-09 00:07:48 +00:00
Jack Yu
e94a7a4f97 Renamed SUB_ID to SUBSCRIPTION_ID
In order to be consistent with other existing APIs.

Test: Build
Bug: 146563563
Change-Id: Iac8d9abe3b011485ffe8220d94f25f99d022014b
2020-01-07 17:39:21 +00:00
Chandan Nath
0447bc3587 Merge "remove unused BACKUP_MULTI_USER_ENABLED" 2020-01-07 17:36:50 +00:00
Artur Satayev
e11493cb9a Merge "Use new UnsupportedAppUsage annotation." 2020-01-07 14:35:08 +00:00
TreeHugger Robot
b644ae2000 Merge "Adds DeviceConfig flag configuration banning to SettingsProvider." 2020-01-07 13:43:11 +00:00
Artur Satayev
df4395991f 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
2020-01-07 13:29:50 +00:00
Peter Wang
37916d6213 [Telephony Mainline] Expose APIs in SubscriptionManager
Bug: 146362772
Fix: 146362772
Test: Build, TelephonyProviderTest
Change-Id: Icaff3117cab45e6458931a600fa8d63821e0fe13
2020-01-07 02:23:18 -08: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
Chen Xu
03f00fc5c3 Merge "support data migration from OEM legacy app to mainline" 2020-01-06 19:05:49 +00:00
Hall Liu
39839dc63b Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
Merged-In: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-05 14:24:22 -08:00
Hall Liu
efc4962eba Create new APIs for overriding APNs
Create new APIs in TelephonyManager for DevicePolicyManager to add
override APNs, and use them in DevicePolicyManagerService instead of
directly accessing the APN database.

Bug: 146834818
Test: cts-tradefed run cts --module DevicePolicyManager --test
com.android.cts.devicepolicy.DeviceOwnerTest#testOverrideApn
Test: atest TelephonyManagerTest

Change-Id: I6c6214424169c05fd452db71a8c6593f8473b9d4
2020-01-03 17:09:11 -08:00
Chen Xu
ad2f91fc6d support data migration from OEM legacy app to mainline
Defined systemAPI for interaction with legacy cellbroadcast app

Bug: 135956699
Test: Manual & Build
Change-Id: I6e583672a3673fd226e14d33d7a7648f4fd03efb
2020-01-03 11:23:41 -08:00
Bohdan Petrivskyy
66acc13aef Adds DeviceConfig flag configuration banning to SettingsProvider.
When resetToDefault() is called on DeviceConfig before reset
existing flag configuration is going to be banned. Next time
setProperties() is called with some flag configuration a check
will be done to verify if the configuration is not banned only
if passed the write will be allowed to go through.

Test: atest FrameworksCoreTests:DeviceConfigTest

Bug: 136134408
Change-Id: I341f51632b131c1cfef85402906b7a0b6e18075b
2019-12-30 15:39:49 +00:00
nathch
5665ce5644 remove unused BACKUP_MULTI_USER_ENABLED
This was added in backup multi-user development but the usage was
removed as backup is de-activated by default for non-system users
and has to be activated on a per user basis.

Bug: 137528046
Bug: 136738613

Test: atest -v CtsBackupHostTestCases
Test: atest -v CtsBackupTestCases
Change-Id: I9475500ea217cad0548f7740ad3580e478fefa9f
2019-12-30 11:01:00 +00:00
Ryan Lin
a70ad07ce5 Merge "Added key Magnification Mode" 2019-12-30 04:28:26 +00:00
ryanlwlin
7048af6864 Added key Magnification Mode
To support window magnification, we use this key to store magnification
mode.

Bug: 145780606
Test: SettingsBackupTest
Change-Id: Id2e4104b1f9bbf994b83b73a165d87e4fd161413
2019-12-27 14:09:01 +08:00
Hai Shalom
7cd8e71494 [DPP R2] Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent
Update ACTION_PROCESS_WIFI_EASY_CONNECT_URI intent to include
additional information in case of a failure. The intent will
return an extra field with result code for R1 and R2 devices,
and additional details for R2 devices: SSID, channe list,
and band list.

Bug: 139381558
Test: Manual test
Change-Id: Ib25db37279289acbb3841f4b4862d8cbeb4efdd2
2019-12-26 09:18:13 -08:00
Automerger Merge Worker
08074c62b0 Merge "[Tether13] Move TetheringManager into framework" am: 2410d67357 am: 25cc1f47c5
Change-Id: I9ec25eb984e3b534ddcc9313836a319b21526998
2019-12-20 14:00:29 +00:00
Mark Chien
2410d67357 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 13:43:46 +00:00
Mark Chien
ebc76bc2e9 Merge "[Tether13] Move TetheringManager into framework" 2019-12-20 05:04:08 +00:00
markchien
ae8aa646dc [Tether13] Move TetheringManager into framework
Move tethering out of ConnectivityService. All client would
use TetheringManager to talk with TetheringService directly.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
2019-12-20 10:31:31 +08:00
Automerger Merge Worker
780c265406 Merge "Do not setSubId on SmsMessage." am: 0330797929 am: 50080aa1ae am: a9a1cc68f7
Change-Id: I2be56203df91f1611b6276c22b1d7a9c380bf0b9
2019-12-20 02:30:26 +00:00
Jeff Sharkey
1e89d231a9 Merge "Move MediaStore.java inside APEX boundary." 2019-12-20 01:17:45 +00:00
Automerger Merge Worker
a9a1cc68f7 Merge "Do not setSubId on SmsMessage." am: 0330797929 am: 50080aa1ae
Change-Id: I2f08915cb59ae1999922ca4bc874b9d1903fc053
2019-12-20 00:26:55 +00:00
Mikhail Naganov
8dfb438b52 Merge "Add audio stream and usage for virtual assistant" 2019-12-20 00:08:22 +00:00
Jeff Sharkey
40182833f7 Move MediaStore.java inside APEX boundary.
Recent work has paved the way to get MediaStore.java building against
"core_platform", and this change is actually shifting MediaStore.java
inside the MediaProvider APEX boundary.

This involves defining a new "updatable-mediaprovider" library JAR
and ensuring that it's spliced into classpaths where needed to keep
everything building and working.

Note that the MediaProvider APK itself is still bundled, so we're
manually including the MediaStore.java when building that APK so that
we can continue referencing @hide symbols, but there's a STOPSHIP
comment to remove that once we get the APK building against
"system_current".

Bug: 144247087
Test: atest --test-mapping packages/providers/MediaProvider
Change-Id: I27ed3fde40751d9ac136a31710c62004b1b8962f
2019-12-19 22:16:00 +00:00
Meng Wang
b3b63b67ac Do not setSubId on SmsMessage.
subId is not used anywhere.

Bug: 140908357
Test: make
Change-Id: I8d1786a8aa5f47886d0127a8009b1312e6d3010e
2019-12-19 14:13:12 -08:00
Kim Baekgyeong
b64fac77b5 Add audio stream and usage for virtual assistant
New stream type: AUDIO_STREAM_ASSISTANT
This is intended to be used by a virtual assistant like
Google Assistant, Bixby, etc.

The audio stream has own volume alias and the volume
does not change by volume changes of other streams.

Bug: 123745215
Test: make
Change-Id: Iad07d9f0b25ea35c6d565be677af7815bf2f6bd7
2019-12-19 21:35:34 +00:00
Artur Satayev
c20b82a466 Merge "Use new UnsupportedAppUsage annotation." 2019-12-19 16:55:30 +00:00
markchien
6d06f6d51a [Tether13] Move TetheringManager into framework
Move tethering out of ConnectivityService. All client would
use TetheringManager to talk with TetheringService directly.

Bug: 144320246
Test: -build, flash, boot
      -atest TetheringTests

Change-Id: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
Merged-In: Ib051bea724a256f9c4572b566e46ae7b9c4abe6e
2019-12-19 20:53:06 +08:00
Artur Satayev
afdb23ab6f 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
2019-12-18 20:44:45 +00:00
Kevin Chyn
a04597b8c7 Merge "Deprecate ACTION_FINGERPRINT_ENROLL and add ACTION_BIOMETRIC_ENROLL" 2019-12-18 19:37:29 +00:00
Ivan Chiang
ffd012289d Update java doc for FLAG_DIR_BLOCKS_TREE
Test: m -j
Change-Id: I7793a60ff60a609222d931fd011e051578a96bbe
Fix: 144764129
2019-12-18 16:23:16 +08:00
TreeHugger Robot
b4bb59a9f4 Merge "Removed the DEFAULT_USER_ID_TO_BOOT_INTO settings property - it's not used." 2019-12-18 05:21:37 +00:00
Jeff Sharkey
04b4ba1e15 Shuffling to prepare for MediaProvider APEX.
An upcoming change will move MediaStore to be within the recently
created MediaProvider APEX.  This means that MediaStore will need to
be fully built against @SystemApi, and so this CL adjusts APIs to
support a clean transition:

-- Listing of "recent" storage volumes and scan paths for "internal"
storage is now handled by StorageManager directly, so that partners
retain control over what is deemed recent.
-- StorageVolume now returns the MediaStore volume name and the
filesystem directory where its contents are presented to apps.
-- Conversion of legacy thumbnail "kind" values to dimensions now
happens directly inside MediaStore.
-- PendingParams and PendingSession are completely removed.
-- Contributed media APIs are completely removed.
-- Media for demo users is now surfaced as a unique StorageVolume.
-- Migrate most MediaStore APIs to accept ContentResolver, which
supports easy usage of ContentResolver.wrap().

Bug: 144247087, 137890034
Test: atest --test-mapping packages/providers/MediaProvider
Exempt-From-Owner-Approval: in-place refactoring
Change-Id: I445528b2779bb37b9f2558e67a3cfc9f60412092
2019-12-18 01:35:46 +00:00
Felipe Leme
504df9427e Removed the DEFAULT_USER_ID_TO_BOOT_INTO settings property - it's not used.
Bug: 145985988
Test: echo 'in TH we trust!'

Change-Id: I816e35e080d40b1d867293fa1967bc622caf9398
2019-12-17 15:28:02 -08:00
Kevin Chyn
5660e918cf Deprecate ACTION_FINGERPRINT_ENROLL and add ACTION_BIOMETRIC_ENROLL
Fixes: 145601433

Test: adb shell am start -a android.settings.BIOMETRIC_ENROLL --ei "android.provider.extra.BIOMETRIC_MINIMUM_STRENGTH_REQUIRED" 1

Change-Id: Icf57e0a8978cae13cfd1b8dca6e75c30e773cf7d
2019-12-17 15:22:31 -08:00
Mehdi Alizadeh
1c66473972 Merge "Adds settings fields for left and right back gesture inset size" 2019-12-17 21:57:23 +00:00
Jeff Sharkey
e65b0918cf Merge "Methods to streamline bulk media operations." 2019-12-17 20:54:30 +00:00
Chavi Weingarten
1ae91f190f Merge "Added WindowMagnification for Accessibility in System UI" 2019-12-17 15:52:26 +00:00
Automerger Merge Worker
b53b1f67d6 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" am: e74c1f1278 am: fe520a7567
Change-Id: I03f3023ad48b2663c58234ede2deefd0ea80a881
2019-12-17 03:23:37 +00:00
Paul Chang
092a675c52 Merge "Add intent action for allowing user to select bug report handler in Developer Options of Settings" 2019-12-17 03:20:16 +00:00
Betty Chang
e74c1f1278 Merge "[Telephony Mainline] Add SimInfo.CONTENT_URI instead SubscriptionManager.CONTENT_URI for mainline" 2019-12-17 02:53:41 +00:00
Tingting Wang
2837981c61 Merge "Deprecated Lychee related APIs in ContactsContract." 2019-12-16 22:45:47 +00:00