439634 Commits

Author SHA1 Message Date
Treehugger Robot
06410db097 Merge "Add setConnectionPolicy to HidDevice and Pan. Clean up documentation for the method in Pbap." 2020-01-10 20:19:36 +00:00
Treehugger Robot
136a4fc875 Merge "Allow zero stride" 2020-01-10 19:40:01 +00:00
Treehugger Robot
3095c56b3a Merge "Make com.android.shell request MANAGE_EXTERNAL_STORAGE" 2020-01-10 19:39:53 +00:00
Jeff Vander Stoep
641dc190b9 Add Lorenzo to OWNERS for privileged permissions whitelist
Test: With great power comes great responsibility.
Change-Id: I885baf50b2d901c4f052f2197c0d58386aae80b2
2020-01-10 20:34:26 +01:00
Sarah Chin
5dd05a4931 Revert "Make MmsManager public"
This reverts commit 2137c9bd3905def08015d83cf15dda1bc3d97679.

Reason for revert: Reverted internally

Change-Id: I6bed6facba681fa4abee739be50e21700b37c84a
Merged-In: I5952168aba996a10554406a9f1675ac3b04fa41f
2020-01-10 19:34:12 +00:00
Treehugger Robot
4e2e5a96b8 Merge "First draft of StatsEvent.java" 2020-01-10 19:32:27 +00:00
Eric Laurent
a25bf98613 AudioEffect: add contructor for device effect
Add a @SystemApi constructor to AudioEffect class
allowing to attach an audio effect to an input or output
device.

Bug: 136294538
Test: make
Change-Id: I0cb5cf5f38f95605a8605f3347aaa7e187db4e8a
Merged-In: I0cb5cf5f38f95605a8605f3347aaa7e187db4e8a
2020-01-10 11:28:00 -08:00
Jean-Michel Trivi
9f7e6eb601 AudioDeviceAddress: new class to store audio device information
Introduce a new class to store information about an audio device,
containing its role (input or output), device type and address.

Bug: 144440677
Test: atest AudioServiceHostTest#testAudioDeviceAddress
Change-Id: I86d32590c54609b8d8a9f7ea60d9b4bf76113935
Merged-In: I86d32590c54609b8d8a9f7ea60d9b4bf76113935
2020-01-10 11:28:00 -08:00
Eric Laurent
6c3209c67a audiofx: add device descriptor to AudioEffect constructor
Add the possibility to specify a target audio device when
creating an audio effect by passing its type and address to
AudioEffect constructor.
When doing so, the session ID must be AUDIO_SESSION_DEVICE.

Bug: 136294538
Test: make
Change-Id: Iba96aca496cd0588e61c9272922270c4049b7c06
Merged-In: Iba96aca496cd0588e61c9272922270c4049b7c06
2020-01-10 11:28:00 -08:00
Makoto Onuki
eba9902300 Add a copy of Rlog for the telephony mainline module
Bug: 144374158
Test: boot
Merged-In: I5be0497a17d00152286fe3351bf58e75b675ceb6
Change-Id: I5be0497a17d00152286fe3351bf58e75b675ceb6
(cherry picked from commit 57e56f2d3cfe9eb9e73198e3ed2b450f9df9d933)
2020-01-10 11:05:43 -08:00
Sarah Chin
c9e48d9403 Update javadocs for API review
Move plan requirements from Builder to SubscriptionPlan
Null and empty network types do not have the same behavior.
Clarify where plan requirements is enforced

Bug: 143550313
Test: none

Change-Id: I80c3b4425f317d5b4e9c685878c866742b706b85
Merged-In: I80c3b4425f317d5b4e9c685878c866742b706b85
2020-01-10 11:01:55 -08:00
Xiangyu/Malcolm Chen
3863c17fd2 Merge changes from topic "146593004"
* changes:
  Remove usage of @hide @Deprecated Telephony API in NPMS
  Use proper Telephony API to supply sim pin and puk.
  Hook supplyPin and supplyPuk to proper impl with subId specified
2020-01-10 18:53:42 +00:00
Treehugger Robot
8670b8b2bc Merge "Fix ModuleInfoProviderTest by passing correct flag" 2020-01-10 18:48:15 +00:00
David Su
84464cae37 Merge changes I401c064c,I16431a4d
* changes:
  NetworkScoreServiceTest: Remove usages of @hide Wifi APIs
  NetworkKeyTest: remove @hide Wifi API usages
2020-01-10 17:54:10 +00:00
Artur Satayev
76c1d9d5e1 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: I6ab53570aca580fbee1fcc927871caa09780f58f
Merged-In: I6ab53570aca580fbee1fcc927871caa09780f58f
2020-01-10 17:02:03 +00:00
Mohammad Samiul Islam
b243197d96 Fix ModuleInfoProviderTest by passing correct flag
Bug: 140941633
Test: atest ModuleInfoProviderTest
Change-Id: Icf93ca7dcf4fc2d7625fe7f9175c59200ae600b6
Merged-In: Icf93ca7dcf4fc2d7625fe7f9175c59200ae600b6
2020-01-10 17:01:55 +00:00
Tom Cherry
5576f58f1b Merge "Add liblog as a dependency where libbase is used" 2020-01-10 16:59:43 +00:00
Treehugger Robot
c9c54798f6 Merge "Make extract_package() work for toplevel classes." 2020-01-10 16:38:42 +00:00
Sarah Chin
0262cb7765 Merge "5G meteredness for telephony framework" 2020-01-10 16:36:48 +00:00
Daulet Zhanguzin
7b511f0dd8 Merge "Deprecate checkNotNull in favor of Objects.requireNonNull()." 2020-01-10 16:36:15 +00:00
Sarah Chin
b93ab62135 Merge "Make MmsManager public" 2020-01-10 16:33:55 +00:00
shafik
ae42afc937 Make com.android.shell request MANAGE_EXTERNAL_STORAGE
This helps in testing using adoptShellPermissionIdentity.
Also, as a nice side-effect, it solves the problem where Settings app
crashes if no packages are requesting the permission.

Bug: 146778323
Fixes: 147434040
Test: device boots
Change-Id: I0982f854ad8260cab247882d04aea9bdcdf5d586
2020-01-10 16:16:29 +00:00
Jiyong Park
90247c8a1c Platform shouldn't directly link to jars in APEXes
The non-updatable part of the platform shouldn't directly link to the
boot jars in APEXes. Ensure this by

1) setting the visibility property for the boot jars so that they are
not visible to non-APEX modules and
2) setting the apex_available property so that the boot jars are only
built for the corresponding APEXes, but not for others.

Bug: b/146167933
Bug: b/146218515
Bug: b/147200698
Test: m
Change-Id: I251fabd773bc31f46d572d143c72dd9162f3f0a6
Merged-In: I251fabd773bc31f46d572d143c72dd9162f3f0a6
2020-01-10 15:15:24 +00:00
Treehugger Robot
bec5dc830e Merge "Using WifiCommand to toggle the Wi-Fi state" 2020-01-10 14:39:40 +00:00
Treehugger Robot
7595e62842 Merge "Add IpClientCallbacks.onNewDhcpResults(DhcpResultsParcelable)" 2020-01-10 14:28:28 +00:00
Tobias Thierer
4effc4b64a Make extract_package() work for toplevel classes.
Before this CL, classes in the unnamed package, such as

L$r8$backportedMethods$utility$Objects$2$checkIndex

(which looks like it is generated by R8 for Objects.checkIndex() calls)
were breaking the build because extract_package was incorrectly assuming
that there would always be a '/' in the identifier string.

Test: Build that previously broke is now working.

Change-Id: Ice78d6b31c4f38a3c9d529bc6156d625d19bcacf
2020-01-10 14:28:21 +00:00
Treehugger Robot
57a0beab18 Merge "Use new UnsupportedAppUsage annotation." 2020-01-10 14:22:15 +00:00
Treehugger Robot
39f329c52a Merge "Use new UnsupportedAppUsage annotation." 2020-01-10 14:21:47 +00:00
Mark Chien
73661b9a3d Merge "Fix hidden usage of networkCapabilitiesForType" 2020-01-10 11:08:14 +00:00
Mark Chien
6978df2cb6 Merge "Expose check write setting operation as system API" 2020-01-10 11:06:38 +00:00
Treehugger Robot
b5d04cb6cd Merge "Give tethering TETHER_PRIVILEGED permission" 2020-01-10 10:23:27 +00:00
Treehugger Robot
fd1985993c Merge "Refine documentation for Process.setThreadPriority" 2020-01-10 09:48:44 +00:00
Treehugger Robot
ded6a9e58e Merge "Add NetworkCapabilities#deduceRestrictedCapability" 2020-01-10 09:27:31 +00:00
Anton Hansson
2c54508955 Merge "Update references to sdkextensions cts" 2020-01-10 08:51:24 +00:00
Treehugger Robot
c8f699d327 Merge "Update system api for applyPayload" 2020-01-10 08:31:59 +00:00
Neil Fuller
641fa6730a Merge "Rename android.util.TimestampedValue to android.os" 2020-01-10 08:11:14 +00:00
Aaron Huang
44780ff920 Merge "Expose DhcpInfo parcelable interface implementation methods" 2020-01-10 08:05:24 +00:00
Rick Yiu
c3648a82f1 Refine documentation for Process.setThreadPriority
Add more description for the tid parameter.

Bug: 139521784
Test: compile
Change-Id: I5ccfef865d49207172df301520cf38e942e03e21
2020-01-10 07:51:31 +00:00
markchien
253b7269b2 Fix hidden usage of networkCapabilitiesForType
After this change, tethering only support below legacy type:
  - TYPE_BLUETOOTH
  - TYPE_ETHERNET
  - TYPE_MOBILE
  - TYPE_MOBILE_DUN
  - TYPE_MOBILE_HIPRI
  - TYPE_WIFI

Bug: 144753389
Test: build
Change-Id: I394c8306d9f88a6648580b3b410069ad219f0074
2020-01-10 14:55:54 +08:00
markchien
36aea56160 Give tethering TETHER_PRIVILEGED permission
This fix the crash when perform "Reset Wi-Fi,mobile & Bluetooth"

Bug: 146900199
Test: -build, flash, boot
      -atest TetheringTests
      -atest CtsTetheringTest
      -manual perform "Reset Wi-Fi,mobile & Bluetooth"

Change-Id: I036409358ed15a797bdb751bb66513425350d066
2020-01-10 14:49:24 +08:00
Aaron Huang
b7d665988d Merge "Add keepalive related methods and fields to system APIs" 2020-01-10 06:16:04 +00:00
SongFerngWang
798d0baa26 mainline:Replace serviceState.getDataRegState and getVoiceRegState
Replace serviceState.getVoiceRegState with getState
Replace serviceState.getDataRegState with getDataRegistrationState

Bug: 146637978
Test: atest NetworkControllerBaseTest (PASS)
atest CarrierTextControllerTest (PASS)

Change-Id: I0cbdfd5d3de3a78326703ede1640f01430bae18a
Merged-In: I0cbdfd5d3de3a78326703ede1640f01430bae18a
2020-01-10 13:09:51 +08:00
Meng Wang
9bda007cb8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2020-01-10 04:25:45 +00:00
Chiachang Wang
570260393a Add IpClientCallbacks.onNewDhcpResults(DhcpResultsParcelable)
Add new callback to replace old one. Target to remove
onNewDhcpResults(Dhcpresults). The previous onNewDhcpResults
callback will be removed after clients are migrated.

Bug: 135998869
Test: build
Test: atest FrameworksNetTests NetworkStackTests
Change-Id: Id6c72228560dc3c387755c27adacaa9aece6309a
2020-01-10 03:46:50 +00:00
Treehugger Robot
3e3f8bc09f Merge "Support PBAP for get/close profile proxy" 2020-01-10 02:21:13 +00:00
James Lin
eb30d6184e Merge "[RCS] Create the new IMS RCS registration apis in AIDL ImsRcsController" 2020-01-10 01:45:56 +00:00
Rahul Sabnis
eccd5bdbb7 Make the BluetoothMap class @SystemApi
Bug: 146462547
Test: Manual
Change-Id: I2bd3fbb058019bbb32472eac4fcaa65677cbf950
2020-01-09 17:00:56 -08:00
Rahul Sabnis
43203a8bf8 Add setConnectionPolicy to HidDevice and Pan. Clean up documentation for
the method in Pbap.

Bug: 147444905
Test: Manual
Change-Id: I308b29d8ce96f9e410a66d59379a731ae12e0478
2020-01-09 16:28:19 -08:00
Yan Yan
614fd1b51b Merge changes from topic "include-uiccapptype"
* changes:
  Make mainline IPsec(IKE) to statically include @UiccAppType
  move UiccAppType to annotation class
2020-01-10 00:23:28 +00:00
Sarah Chin
95a2c736e9 Merge "Update OWNERS file" 2020-01-10 00:12:28 +00:00