Commit Graph

27072 Commits

Author SHA1 Message Date
Amit Mahajan
decc3085a1 Merge "Remove @SystemApi from some constants for R." 2020-03-30 19:48:35 +00:00
Remi NGUYEN VAN
c6ab1a994f Merge "Create a builder for NetworkCapabilities." 2020-03-30 02:58:45 +00: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
Aaron Huang
79c8147678 Merge "API review: access field by method" 2020-03-27 07:03:25 +00:00
Aaron Huang
acacd7190f Merge "Remove Context.NETWORK_POLICY_SERVICE from @SystemApi" 2020-03-26 06:48:51 +00:00
Sarah Chin
b93bf72090 Merge "API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes" 2020-03-26 03:41:29 +00:00
Sarah Chin
a0e42af02c Merge "API review: setNetworkSelectionModeManual" 2020-03-26 02:19:57 +00:00
Sarah Chin
25e0cdc02a Merge "Revert "Expose hidden resources used in telephony/common"" 2020-03-26 02:19:36 +00:00
Sarah Chin
8c346470bd Merge "Unexpose unnecessary SysUI APIs" 2020-03-26 02:18:59 +00:00
Nathan Harold
388069c6c0 Merge "Convert getBands() to int[] from List<Integer>" 2020-03-26 01:32:54 +00:00
Brad Ebinger
e5c083c3ec Merge "Add new capability polling opt-in intent" 2020-03-25 23:13:03 +00:00
Shuo Qian
0d8a3bb0f6 Merge "Hide several System APIs" 2020-03-25 23:11:27 +00:00
Treehugger Robot
f1c0350c88 Merge "Hide startTethering with type function to module-lib only" 2020-03-25 08:53:02 +00:00
markchien
71a9d6f1c3 Hide startTethering with type function to module-lib only
Bug: 151918384
Test: m
Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750
Merged-In: Icef8b363aae97dd020d618bcb397f661aa6c4750
2020-03-25 08:07:01 +00:00
Chalard Jean
9274cc5057 Create a builder for NetworkCapabilities.
Bug: 151322799
Test: FrameworksWifiTests
Change-Id: I69c00c9e3963950e55d7105d8825f7d3a3ec9b2f
Merged-In: I06eb97e50d5583579b3c26d1365d2dbaec8bfc99
(cherry picked from commit 9771f34dae9cdeb857636cac2b3c2d473713914e)
2020-03-25 13:27:04 +09:00
Chalard Jean
b2b692e157 Merge "Expose netId by adding getter API" 2020-03-25 02:23:03 +00:00
sqian
bc1f641138 Hide several System APIs
Test: Treehugger
Bug: 151241308
Change-Id: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
Merged-In: Ie611320f4651b83e0ced6f5c8fede34a8a0a41c1
(cherry picked from commit 1e154a345c)
2020-03-24 18:40:23 -07:00
Brad Ebinger
beb6c846ec Add new capability polling opt-in intent
Adds a new capability discovery opt-in intent,
which an application can use to prompt the user
to enable contact discovery.

Bug: 111305845
Test: atest CtsTelephonyTestCases; telecom test app
Merged-In: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
Change-Id: I42b9d7226a1296bc7e4e86a5ff6448bc8f23d3c0
2020-03-24 15:10:34 -07:00
Treehugger Robot
7820030367 Merge "Allow staging multiple session with non-overlapping packages (apk-only)" 2020-03-24 16:53:39 +00:00
Aaron Huang
8e1ce70353 API review: access field by method
- InvalidPacketException, public field should be a method so
  add getter to get error code.
- KeepalivePacketData, public fields should be methods so
   add getter for fields.

Bug: 151322799
Test: atest FrameworksNetTests
      atest FrameworksWifiTests
      atest FrameworksTelephonyTests: some failure in CarrierAppUtilsTest
Copy from ag/10731108
Change-Id: Id01e6135193716cc21bba11da529bf1507a954f7
Merged-In: Id01e6135193716cc21bba11da529bf1507a954f7
2020-03-24 10:55:18 +00:00
Aaron Huang
52e578700c Remove Context.NETWORK_POLICY_SERVICE from @SystemApi
Hide Context.NETWORK_POLICY_SERVICE as it has no usage.

Bug: 151266974
Test: make checkapi, build
Copy from ag/10796415
Change-Id: I0586a5ef22f76fa1407219b96cb246f162f02947
Merged-In: I0586a5ef22f76fa1407219b96cb246f162f02947
2020-03-24 10:52:42 +00:00
markchien
b6858e5919 Expose netId by adding getter API
Bug: 151156820
Test: m
      atest TetetheringTests

Clean CP from ag/10747732

Change-Id: Ieb1483c146aa2f7d8f251157e6e81d71c44ae899
Merged-In: Ieb1483c146aa2f7d8f251157e6e81d71c44ae899
2020-03-24 09:19:26 +00:00
Brad Ebinger
06d11782d7 Merge "API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull" 2020-03-23 17:18:26 +00:00
Brad Ebinger
2a15872d99 Merge "API fix: getProprietaryCallExtras should not return null" 2020-03-23 17:10:13 +00:00
Brad Ebinger
ee30a546d6 Merge "API fix: Rename and clarify ProvisioningManager constants" 2020-03-23 16:19:36 +00:00
Mohammad Samiul Islam
ef3b56dbc7 Allow staging multiple session with non-overlapping packages (apk-only)
Bug: 141843321
Test: atest StagedInstallTest#testAllowNonOverlappingMultipleStagedInstall_BothSinglePackage_Apk
Test: atest StagedInstallTest#testFailOverlappingMultipleStagedInstall_BothSinglePackage_Apk
Test: atest StagedInstallTest#testFailOverlappingMultipleStagedInstall_BothSinglePackage_Apex
Test: atest StagedInstallTest#testAllowNonOverlappingMultipleStagedInstall_MultiPackageSinglePackage
Test: atest StagedInstallTest#testFailOverlappingMultipleStagedInstall_BothMultiPackage
Test: atest StagedInstallTest#testMultipleStagedInstall_ApkOnly
Test: atest RollbackManagerHostTest#testApkOnlyMultipleStagedRollback
Test: atest RollbackManagerHostTest#testApkOnlyMultipleStagedPartialRollback
Test: atest StagedInstallTest
Change-Id: Iad2e35b50fd22e207e3ad91b48a767827d8e8926
Merged-In: Iad2e35b50fd22e207e3ad91b48a767827d8e8926
2020-03-23 15:51:07 +00:00
junyulai
9e69c26a6d Address API council review comment about TetheringRequest
Test: atest TetheringTests FrameworksNetTests NetworkStackTests
Bug: 152055812
Change-Id: I0158d88e364772f9ac258bd18955edcdad266ad8
Merged-In: I0158d88e364772f9ac258bd18955edcdad266ad8
(this is a clean cherry-pick from ag/10796412)

Change-Id: I64f1527d79085cc5dfd78c01a6c49c4df87c82e7
2020-03-23 14:14:22 +08:00
Remi NGUYEN VAN
d4373f3a54 Merge "Add a test API for testing NetworkStack.getService" 2020-03-23 05:46:38 +00:00
Remi NGUYEN VAN
341fa568b9 Merge changes from topic "netstack_constant_cherrypick"
* changes:
  Remove usage of Context.NETWORK_STACK_SERVICE
  Remove NETWORK_STACK_SERVICE constant
2020-03-23 03:33:58 +00:00
Remi NGUYEN VAN
a24a9f710e Add a test API for testing NetworkStack.getService
NetworkStack.getService was introduced to avoid relying on
Context#getSystemService to obtain the NetworkStack binder token.
To allow it to be mocked in tests, a method is introduced to allow tests
to specify a mock NetworkStack token for their own process.

Test: atest NetworkStackTests, using the change
Bug: 151243982
(clean cherry-pick from internal branch)
Merged-In: I04058a007f2dfe1044cabeb3ac508404873665ad

Change-Id: I0e626d871176112a8575d629a05cb7a935b577a6
2020-03-23 03:25:51 +00:00
Remi NGUYEN VAN
4fb0137726 Remove NETWORK_STACK_SERVICE constant
Instead, have a dedicated method in android.net.NetworkStack allowing to
fetch the stable AIDL token for the service.

This avoids returning IBinder from getSystemService, as getSystemService
should generally return manager classes.

Test: atest FrameworksNetTests NetworkStackTests
Fixes: 151243982
Merged-In: I58a6e1f27aff052050197d1901f43a98d7aa1167
(clean cherry-pick from internal branch)

Change-Id: I75aba269595f3e315dd5e0693c878b2026e8e299
2020-03-23 11:28:56 +09:00
Treehugger Robot
c1cae420a2 Merge "Add BLUETOOTH_PRIVILEGED permission as a requirement for all new Bluetooth SystemApis and for hidden connect/disconnect APIs." 2020-03-22 08:30:56 +00:00
Philip P. Moltmann
2a9c3e49ba Merge "Pipe through attributeTag for one SMS permission check" 2020-03-21 05:18:24 +00:00
Rahul Sabnis
8bc55739e7 Add BLUETOOTH_PRIVILEGED permission as a requirement for all new Bluetooth SystemApis and for hidden connect/disconnect APIs.
Hide some APIs that were previously marked as @UnsupportedAppUsage and re-add annotation as changing the permissions for these SystemApis would break the unsupported app contract that was previously there. Therefore, we're choosing to hide them until we have a good story on how to deal with them next release.

Bug: 148689314
Test: Manual
Merged-In: I33ee2c7ccd3827db3d23d6447cf82d9ffc36836a
Change-Id: I33ee2c7ccd3827db3d23d6447cf82d9ffc36836a
2020-03-21 04:14:29 +00:00
Brad Ebinger
51aa63a61d API Review: Make ImsReasonInfo in ImsMmTelManager @NonNull
1) If the vendor does not specify an ImsReasonInfo, create an
unspecified ImsReasonInfo instead of passing null back.
2) Move onUnregistered to @NonNull

Fixes: 150008589
Test: atest CtsTelephonyTestCases:ImsServiceTest
Merged-In: Idd0f2216bdd55011cb16d268b61cb652ca11bd41
Change-Id: Idd0f2216bdd55011cb16d268b61cb652ca11bd41
2020-03-20 16:49:41 -07:00
Sarah Chin
14f87a28d8 API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes
Default value is TelephonyManager#getAllNetworkTypes instead of null

Test: atest SubscriptionManagerTest, DcTrackerTest
Bug: 148218045
Change-Id: If7a46be43648a337ca11ca9dcb30bc532829ef43
Merged-In: If7a46be43648a337ca11ca9dcb30bc532829ef43
2020-03-20 16:40:03 -07:00
Brad Ebinger
72e3eef33c API fix: getProprietaryCallExtras should not return null
Bug: 149216142
Fixes: 151172594
Test: atest CtsTelephonyTestCases
Merged-In: I7bd0d44f08169d41396a8cb202f3928e14bc5939
Change-Id: I7bd0d44f08169d41396a8cb202f3928e14bc5939
2020-03-20 16:26:51 -07:00
Nathan Harold
c62ebcc6c3 Convert getBands() to int[] from List<Integer>
To conform with API council guidelines, convert the
getBands() function to store and return an array of
int[] rather than a List<Integer> to avoid autoboxing.

Also:
-Add bands to hashCode() and equals() for CellIdentityLte
-Add EARFCN to hashCode() for CellIdentityLte

Bug: 150399894
Test: atest FrameworksTelephonyTests
Merged-In: I7edd5896b48794cd9c291788c28420ce40898f77
Change-Id: I7edd5896b48794cd9c291788c28420ce40898f77
(cherry picked from commit 9d722a0c7f)
2020-03-20 15:23:55 -07:00
Peter Wang
54af9046ac Merge "[API Review] APIs in SubscriptionManager" 2020-03-20 19:54:58 +00:00
Jack Yu
c33377b077 Merge changes from topic "lte_bands"
* changes:
  Added bands from HAL 1.5
  Convert getAdditionalPlmns to return a Set
2020-03-20 19:03:49 +00:00
Sarah Chin
029e64d931 Revert "Expose hidden resources used in telephony/common"
This reverts commit dd06660645.

Reason for revert: Remove mainline API for R

Test: build
Bug: 148174114
Change-Id: I8a8cddfd1d824c908c49f818f2671941b4bb5dca
Merged-In: I712958984254ca6f16a9604d2aab532500dc1ca9
2020-03-20 03:44:48 +00:00
Sarah Chin
7b53d011cb Unexpose unnecessary SysUI APIs
These APIs were exposed for mainline since they were used in SysUI code,
but the logic that was using them was moved to Telephony. Unexposing the
APIs since they no longer need to be exposed.

Test: atest FrameworksTelephonyTests
Bug: 147447171
Bug: 111498835
Bug: 149874525
Change-Id: I1930977c5345c075773d18db4eb05913038d7e7f
Merged-In: I1930977c5345c075773d18db4eb05913038d7e7f
2020-03-19 20:40:30 -07:00
Philip P. Moltmann
b36bcc882a Pipe through attributeTag for one SMS permission check
Bug: 136595429
Test: TH
Change-Id: I99635efd0da5e72c3df9c6383779a059bbe3c1d1
Merged-In: I346ac2d3acad0e0d18b298f89f0b96324fc52333
2020-03-20 00:28:09 +00: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
Jack Yu
0a7c66bcd8 Merge "Hide API" 2020-03-19 19:00:58 +00:00
Cody Kesting
70a08d9f7e Merge "Change NetworkCapabilties administrator UIDs to be stored as int[]." 2020-03-19 18:09:26 +00:00
Jack Yu
63fcb9b978 Hide API
Hide API that is only used by telephony registry.

Test: Telephony sanity tests
Bug: 149850449
Merged-In: Ie4c46de336097fb7231291f15048329aea0b639c
Change-Id: Ie4c46de336097fb7231291f15048329aea0b639c
(cherry picked from commit f0df0ba2ba)
2020-03-19 10:27:36 -07:00
Mark Chien
c686fa828b Merge "TetheringManager API clean up" 2020-03-19 16:09:21 +00:00
Treehugger Robot
e215c5d047 Merge "Move NetworkCallback to last parameter for new exposed requestNetwork" 2020-03-19 15:51:32 +00:00
markchien
32726e00e2 Move NetworkCallback to last parameter for new exposed requestNetwork
Bug: 151243698
Test: atest TetheringTests
Change-Id: I87ef1d451eefa6998b9793c4eacabae978376d24
Merged-In: I87ef1d451eefa6998b9793c4eacabae978376d24
2020-03-19 11:36:07 +00:00