Commit Graph

106228 Commits

Author SHA1 Message Date
Treehugger Robot
1fe83df53a Merge "Do not throw exception when there is no omapi reader supported" 2020-01-13 07:43:56 +00:00
Lorenzo Colitti
0153955e9a Address comments on ag/10050681.
Test: builds
Bug: 138306002
Change-Id: I7ea39b80eede50288261d05ef6f2e860f30b22d6
2020-01-12 18:08:56 +09:00
Lorenzo Colitti
6654b08619 Stop using NetworkFactory in connectivity code.
Bug: 138306002
Test: builds, boots
Test: atest FrameworksNetTests
Change-Id: I6b9979f343108c0c077abd86ae1c21e5ece0cccc
2020-01-12 17:40:02 +09:00
Lorenzo Colitti
b6b9fa6eff Delete the NetworkFactory running-on-correct-thread assertion.
The change to make NetworkFactory use NetworkProvider included an
assertion that the onNetworkRequested and onRequestWithdrawn
methods were called on the factory's Looper.

This is not really necessary since it cannot happen in the
current code unless there is a bug in Looper. It also makes it
impossible to test this code using TestLooper, which dispatches
messages on the test thread instead of on the looper thread.

So, delete the check.

Bug: 138306002
Test: atest FrameworksWifiTests now passes
Change-Id: I37449efb50287c683312f0b19909bd4c61b38585
Merged-In: I37449efb50287c683312f0b19909bd4c61b38585
2020-01-11 20:06:20 +09:00
Lorenzo Colitti
f486b23982 Stop using factory serial numbers in NetworkFactory.
Don't delete NetworkFactory.SerialNumber or getSerialNumber() yet
because those are still in use in various places.

Test: builds
Bug: 138306002
Change-Id: I102af09cb52b447e472398869d82556b5708cb82
Merged-In: I102af09cb52b447e472398869d82556b5708cb82
2020-01-11 20:02:05 +09:00
Lorenzo Colitti
2df761bdcb Use NetworkProvider in NetworkFactory.
Bug: 138306002
Test: builds, boots, wifi and telephony work
Test: Existing NetworkFactory tests in FrameworksNetTests pass
Change-Id: Ib8cac2fab5092c99b0a496fdeedfcfab6d578936
Merged-In: Ib8cac2fab5092c99b0a496fdeedfcfab6d578936
2020-01-11 20:01:24 +09:00
Treehugger Robot
2ff0a7bd58 Merge changes I978ac321,I5675a80c,I56ef3cc4,I1cdaf002
* changes:
  Add --supportQ flag to java StatsLog codegen
  Support new socket schema in native codegen
  Move statsd metadata from statslog to atoms_info
  Fix StatsEvent memory usage for pulled events
2020-01-11 00:42:14 +00:00
Treehugger Robot
9e52462c48 Merge "Add JNI call for writing StatsEvent to statsd." 2020-01-11 00:41:30 +00:00
Sarah Chin
bbf2a83826 Merge "Update javadocs for API review" 2020-01-10 23:53:25 +00:00
Treehugger Robot
baa778df4d Merge changes I2159bf13,I93146faa
* changes:
  Fix error handling in StatsEvent
  Handle nulls in Java autogeneration
2020-01-10 22:46:51 +00:00
Sarah Chin
393af8c53c Merge "Revert "Make MmsManager public"" 2020-01-10 22:44:46 +00:00
Treehugger Robot
c7483ff8bf Merge changes Ied6a13be,Ia4818f62,I660a4384
* changes:
  StatsEvent unit tests
  Change visibility of members in StatsEvent
  Make StatsEvent.newBuilder() static
2020-01-10 22:24:13 +00:00
Meng Wang
00fe08f5bf Merge "Add a copy of Rlog for the telephony mainline module" 2020-01-10 22:05:03 +00:00
Treehugger Robot
ec3e77e1d0 Merge changes Icaa2d90b,Ief489088
* changes:
  Add KeyValuePairs support to StatsEvent.
  Add StatsEvent.Builder
2020-01-10 21:34:35 +00:00
Treehugger Robot
7de3328d4e Merge "Make the BluetoothMap class @SystemApi" 2020-01-10 20:53:20 +00:00
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
Sarah Chin
5dd05a4931 Revert "Make MmsManager public"
This reverts commit 2137c9bd39.

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
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 57e56f2d3c)
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
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
Treehugger Robot
39f329c52a Merge "Use new UnsupportedAppUsage annotation." 2020-01-10 14:21:47 +00:00
Mark Chien
6978df2cb6 Merge "Expose check write setting operation as system API" 2020-01-10 11:06:38 +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
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
Aaron Huang
b7d665988d Merge "Add keepalive related methods and fields to system APIs" 2020-01-10 06:16:04 +00:00
Meng Wang
9bda007cb8 Merge "Use Parcelable CellIdentity instead of CellLocation in AIDL." 2020-01-10 04:25:45 +00:00
Treehugger Robot
3e3f8bc09f Merge "Support PBAP for get/close profile proxy" 2020-01-10 02:21:13 +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
17d04f08d6 Merge "Allow mainline IPsec(IKE) to statically include @PolicyDirection" 2020-01-09 23:42:59 +00:00
Sarah Chin
2137c9bd39 Make MmsManager public
Test: atest TelephonyFrameworksTests
Bug: 144004293
Change-Id: I6cd3587ecba36c9ff9d45a6c174077e8dd7d8fb0
2020-01-09 12:16:41 -08:00
Sarah Chin
80b73b9e1c 5G meteredness for telephony framework
Added networkTypes to SubscriptionPlan
Send SubscriptionPlans as dispatch via listener
Updated API for R

Bug: 139070884
Test: atest FrameworksTelephonyTests
Test: atest cts/tests/tests/telephony/current/src/android/telephony/cts/SubscriptionManagerTest.java
Change-Id: Idb67fb7676adf9e1158113e7b8b08e655f470920
Merged-In: Idb67fb7676adf9e1158113e7b8b08e655f470920
(cherry-pick from ag/9459941)
2020-01-09 19:45:14 +00:00
Treehugger Robot
70129fc863 Merge "Use new UnsupportedAppUsage annotation." 2020-01-09 15:46:03 +00:00
Neil Fuller
35cc296228 Rename android.util.TimestampedValue to android.os
Rename android.util.TimestampedValue to android.os to avoid dependency
from android.util onto android.os, which is disallowed by lint.

Bug: 147012511
Test: boot
Merged-In: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
Change-Id: I4b84db03c8ad24bbef63e45d6d15fb306a10364e
(cherry picked from commit d159015e54)
2020-01-09 15:34:43 +00:00
Lorenzo Colitti
f6bbab0f6b Merge "Add a NetworkProvider class to the SDK." 2020-01-09 15:09:58 +00:00
Artur Satayev
a900cb533f 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: I5be7335b23a92b8ac80d2fd890198273b66ad644
Merged-In: I5be7335b23a92b8ac80d2fd890198273b66ad644
2020-01-09 14:59:34 +00:00
Junyu Lai
2220f75cdf Merge "[SP02] Add provider interfaces to system API" 2020-01-09 14:19:37 +00:00
Artur Satayev
d9b11b058c 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: I8789f8499d4dca08580672e9e45ed9a7026dd686
Merged-In: I8789f8499d4dca08580672e9e45ed9a7026dd686
2020-01-09 13:56:05 +00:00
Aaron Huang
40a873a6cd Expose DhcpInfo parcelable interface implementation methods
Parcelable class requires a CREATOR field be exposed.

Bug: 139268426
Bug: 135998869
Test: atest FrameworksNetTests
      atest android.net.cts

Change-Id: I41c68406d09014dda99f337add8c0db0298b0582
2020-01-09 21:33:22 +08:00
Daulet Zhanguzin
9dd0f80341 Deprecate checkNotNull in favor of Objects.requireNonNull().
Remove one of unused overloads. The same change passed on master:
ag/10013392

Bug: 126528330

Test: Treehugger
Test: made equivalent change in internal branch to verify that removed method is not in use

Change-Id: I37c5b93e2ffbfa38a5b9feb4cae2062ef24acec5
2020-01-09 11:18:25 +00:00
Lorenzo Colitti
ae5cb71b08 Add a NetworkProvider class to the SDK.
Bug: 138306002
Test: builds, boots, wifi and telephony work
Test: tested by upcoming change that uses this in NetworkFactory
Change-Id: I2f61bf323215b7c6feff8acc92e7434346751773
2020-01-09 19:50:26 +09:00
paulhu
1835432b46 Add NetworkCapabilities#deduceRestrictedCapability
Support telephony mainline module usage.

Bug: 138306002
Test: atest FrameworksNetTests
      atest CtsNetTestCases --instant

Change-Id: Idbd9c547eff7227085c753461b901c7cdbe396fb
2020-01-09 17:59:46 +08: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