Commit Graph

29950 Commits

Author SHA1 Message Date
Mark Chien
746033739a Merge "Hide startTethering with type function to module-lib only" into rvc-dev 2020-03-19 14:55:09 +00:00
Remi NGUYEN VAN
23b888f92c Merge "Add a test API for testing NetworkStack.getService" into rvc-dev 2020-03-19 14:53:35 +00:00
Lorenzo Colitti
0c36573a57 Merge "Make Ethernet interfaces more testable." into rvc-dev 2020-03-19 14:31:57 +00:00
TreeHugger Robot
0e56c85768 Merge "Renamed DisplayInfo to TelephonyDisplayInfo" into rvc-dev 2020-03-19 14:29:24 +00:00
TreeHugger Robot
22f1801dc7 Merge "Move NetworkCallback to last parameter for new exposed requestNetwork" into rvc-dev 2020-03-19 13:40:51 +00:00
markchien
11ee813537 Hide startTethering with type function to module-lib only
Bug: 151918384
Test: m
Change-Id: Icef8b363aae97dd020d618bcb397f661aa6c4750
2020-03-19 21:04:04 +08:00
Lorenzo Colitti
6fba2a8b7e Make Ethernet interfaces more testable.
This CL adds a setIncludeTestInterfaces method to EthernetManager
that, when called, causes the Ethernet service to recognize and
manage test interfaces created by TestNetworkManager.

Bug: 150644681
Test: Tested by EthernetTetheringTest in same topic
Change-Id: I86eef7a93267f800dbfc8eafd307effa76a344ca
Merged-In: I86eef7a93267f800dbfc8eafd307effa76a344ca
(cherry picked from commit 3410fb0aa9)
2020-03-19 12:30:39 +00:00
Mark Chien
b2842cf476 Merge "TetheringManager API clean up" into rvc-dev 2020-03-19 12:04:05 +00:00
markchien
97c029e87d Move NetworkCallback to last parameter for new exposed requestNetwork
Bug: 151243698
Test: atest TetheringTests
Change-Id: I87ef1d451eefa6998b9793c4eacabae978376d24
2020-03-19 19:10:23 +08:00
Mark Chien
17c6d8f4fb Merge "Support static address configuration" into rvc-dev 2020-03-19 10:03:56 +00:00
markchien
62a625df98 TetheringManager API clean up
Per API review:
- @IntDef defined on the type integer parameter
- have getters on each parameter that is set in the
  TetheringRequest.Builder
- new added API should not be deprecated
Below APIs is moved from system-current to module-lib-current that only
plafrom code(e.g. ConnectivityManager and Settings) can use them.
TetheringRequest.
onTetherableInterfaceRegexpsChanged, TetheringInterfaceRegexps:
Only platform code can use them because interfaces by regular
expressions are a mechanism which is planning to be deprecated.

Also rename some constants for easier to understand.

Bug: 149858697
Bug: 151243337
Test: m doc-comment-check-docs
      atest TetheringTests
Change-Id: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
2020-03-19 16:32:37 +08:00
Automerger Merge Worker
37a22754c8 Support static address configuration
Application can specify static ipv4 server and client address to setup
tethering and this is one shot configuration. Tethering service would
not save the configuration and the configuration would be reset when
tethering stop or start failure.

When startTethering callback fired, it just mean tethering is requested
successful. Therefore, callers may call startTethering again if
startTethering successful but do not receive following tethering active
notification for a while. Tethering service never actually does anything
synchronously when startTethering is called:
  -startProvisioningIfNeeded just posts a message to the handler thread.
  -enableTetheringInternal doesn't do anything synchronously, it just
  asks the downstreams to get their interfaces ready and waits for
  callbacks.
If tethering is already enabled with a different request,
tethering would be disabled and re-enabled.

Bug: 141256482
Test: -build, flash, boot
      -atest TetheringTests
      -atest CtsTetheringTest

Change-Id: I2b2dd965a673e6f1626738d41b5d443f0f9fbd0e
Merged-In: I0399917e7cefa1547d617e688225544c4fc1a231
(cherry picked from commit 5d6723e24e)
2020-03-19 12:39:46 +08:00
Rick Yiu
cb03c9e932 Merge "Revert "[Telephony Mainline] To mark @hide for mainline module r..."" into rvc-dev 2020-03-19 04:23:32 +00:00
Betty Chang
57cbb378a3 Revert "[Telephony Mainline] To mark @hide for mainline module r..."
Revert "[Telephony Mainline] To mark @hide for mainline module r..."

Revert submission 10665971-TML_revertSystemApi

Reason for revert: cause the build break
Reverted Changes:
I12a98578c:[Telephony Mainline] To mark @hide for mainline mo...
Ib12145dc0:[Telephony Mainline] To mark @hide for mainline mo...

Change-Id: I5a320c062058af9573a84fabbd06ace68682f3be
2020-03-19 03:54:39 +00:00
Winson Chung
c2a7be7e3c Merge "Update some policy around multi-window windowing mode" into rvc-dev 2020-03-19 03:40:35 +00:00
Remi NGUYEN VAN
fc9119df29 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
Change-Id: I04058a007f2dfe1044cabeb3ac508404873665ad
2020-03-19 11:25:50 +09:00
Betty Chang
2490ec4d13 Merge "[Telephony Mainline] To mark @hide for mainline module reverting" into rvc-dev 2020-03-19 02:08:19 +00:00
Remi NGUYEN VAN
c02d8ed6ed Merge "Move sensitive field parceling bool to constructor" into rvc-dev 2020-03-19 01:32:48 +00:00
Remi NGUYEN VAN
54a6565668 Merge changes from topic "netstack_api_review" into rvc-dev
* changes:
  Remove usage of Context.NETWORK_STACK_SERVICE
  Remove NETWORK_STACK_SERVICE constant
2020-03-19 01:21:29 +00:00
TreeHugger Robot
76b89b6d72 Merge "Remove the InlineActions API" into rvc-dev 2020-03-19 01:10:39 +00:00
TreeHugger Robot
045181d7f8 Merge "Add executor to onUpdateUserSensitiveFlags" into rvc-dev 2020-03-19 00:11:03 +00:00
Radhika Agrawal
d0b255218b Merge "Revert "API review changes Test: make Bug: b/143307441"" into rvc-dev 2020-03-19 00:01:50 +00:00
TreeHugger Robot
ae73c6c7c3 Merge "Tuner API: modify permission check" into rvc-dev 2020-03-18 23:38:40 +00:00
Radhika Agrawal
aba51fcaf5 Revert "API review changes Test: make Bug: b/143307441"
Revert "API review comments Test: make Bug: b/143307441"

Revert submission 10738364-CallQualityAPI

Reason for revert: rvc build breakage
Reverted Changes:
I51b4d5699:API review comments Test: make Bug: b/143307441
I53ebc76da:API review changes Test: make Bug: b/143307441

Change-Id: I62b7a516a4c5f3a950906c17700ba13b5906ba6a
2020-03-18 23:21:09 +00:00
Sarah Chin
91604c2138 Merge "Remove Mainline APIs for MmsManger and TelephonyManager" into rvc-dev 2020-03-18 23:15:16 +00:00
TreeHugger Robot
894385e62b Merge "API review changes Test: make Bug: b/143307441" into rvc-dev 2020-03-18 22:34:34 +00:00
TreeHugger Robot
c3752e30f0 Merge "Revert "Expose ACTION_USER_SWITCHED as system API"" into rvc-dev 2020-03-18 22:23:22 +00:00
Jack Yu
ac3ca33567 Renamed DisplayInfo to TelephonyDisplayInfo
To reduce ambiguity with android.view.DisplayInfo.

Test: Telephony sanity tests + unit tests
Bug: 151101989
Change-Id: Ic507b6bf082ca5510ff6d1dcde501f5be9ef074f
2020-03-18 15:11:31 -07:00
TreeHugger Robot
753bb1767f Merge "Revert "Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED.""" into rvc-dev 2020-03-18 21:47:09 +00:00
radhika
7ffb57a92d API review changes
Test: make
Bug: b/143307441

Change-Id: I53ebc76da939a5046e3ac2abac65dd391d8b1d1b
2020-03-18 14:46:41 -07:00
Eugene Susla
733a81b9f7 Merge "Rename auto-revoke manifest flags to not contain "Dont"" into rvc-dev 2020-03-18 21:46:40 +00:00
Amit Mahajan
ade3ee5d0d Revert "Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED.""
This reverts commit c935bac0ae.

Reason for revert: Fixing build by make framework-telephony-stubs-srcs-update-current-api (new txt file has been added for telephony)

Test: basic sanity
Bug: 147921202
Change-Id: Iefd805c9c62ab7d3ec1f38f16a45e3daa841c001
2020-03-18 14:43:04 -07:00
Jing Ji
6ef8f5e1ab Merge "Add support to provide app its own ANR stack trace" into rvc-dev 2020-03-18 21:30:44 +00:00
Sarah Chin
8ac7ce5a5d Remove Mainline APIs for MmsManger and TelephonyManager
Test: build
Bug: 144004293
Bug: 147611125
Change-Id: I44682d1f33eee02d1dcf57f4de8ce2df0a9b126d
2020-03-18 14:28:06 -07:00
shubang
76d3623497 Tuner API: modify permission check
1. remove @RequiresPermission of non-static methods since it checks
permission in the constructor.

2. check permission in system process instead of app process, such as:
https://cs.corp.google.com/master-arc-dev/frameworks/base/services/core/java/com/android/server/tv/tunerresourcemanager/TunerResourceManagerService.java?type=cs&q=ACCESS_TV_DESCRAMBLER&g=0&l=684

Bug: 149785806
Test: mmm;
Change-Id: I034b5a75f7c8962dbc6c92a573f999a2853082ed
2020-03-18 20:32:10 +00:00
Anthony Stange
26d4854185 Merge "Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED."" into rvc-dev 2020-03-18 20:29:24 +00:00
Anthony Stange
c935bac0ae Revert "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED."
This reverts commit 13a8d14fcd.

Reason for revert: Build breakage - b/151854914

Change-Id: I8ea4ac36605c8df92df92a286a8712e40a6944db
2020-03-18 20:26:27 +00:00
Amit Mahajan
9e9f7a6e93 Revert "Expose ACTION_USER_SWITCHED as system API"
This reverts commit ffe0cbe5ca.

Reason for revert: Not needed for now; will be redone in S.

Bug: 148180958
Merged-in: I426e00e1eb79af5b520fc8c59439614459720fa6
Change-Id: I426e00e1eb79af5b520fc8c59439614459720fa6
(cherry picked from commit 5a29b0447b)
2020-03-18 13:02:27 -07:00
Eugene Susla
fea313038b Merge "Expose OPSTR_AUTO_REVOKE_MANAGED_BY_INSTALLER as @SystemApi" into rvc-dev 2020-03-18 19:56:09 +00:00
Sarah Chin
210bccd974 Merge "API review: SubscriptionPlan#getNetworkTypes/setNetworkTypes" into rvc-dev 2020-03-18 19:52:26 +00:00
Cody Kesting
93b97bd690 Merge "Change NetworkCapabilities administrator UIDs to be stored as int[]." into rvc-dev 2020-03-18 19:40:39 +00:00
TreeHugger Robot
8562620d8a Merge "Un-expose ACTION_SERVICE_PROVIDERS_UPDATED." into rvc-dev 2020-03-18 19:31:38 +00:00
Amit Mahajan
0ed16d7b4b Merge changes from topic "Remove telephony protection level" into rvc-dev
* changes:
  Remove telephony protection level.
  Revert "Allowed telephony to bind network service"
  Revert "add telephony role to some permissions needed by telephony module"
2020-03-18 19:22:36 +00:00
Winson Chung
8a16890698 Update some policy around multi-window windowing mode
- Allow SysUI to start task in always-on-top mode to ensure
  visibility and to allow SysUI to control the visibility using
  the WCT setHidden call.
- Expose unregisterTaskOrganizer call for SysUI
- Skip dispatching status/nav bar insets for always on top mw
  tasks. Since they are effectively floating, it doesn't make
  sense for us to send bar insets
- Fix issue with preferred windowing mode being referenced too
  early (before computeLaunchParams), and apply the windowing
  mode to the root task when it is brought forward

Bug: 151392361
Test: atest WmTests:ActivityOptionsTest
Test: atest InsetsStateControllerTest
Change-Id: Ia3d8a369c902928e8de51a6b7479b10848ebe44a
2020-03-18 11:44:34 -07:00
Rubin Xu
243c57f079 Merge "Replace COMMON_CRITERIA_MODE setting with getter API" into rvc-dev 2020-03-18 18:42:28 +00:00
Cody Kesting
f7ac996fb5 Change NetworkCapabilities administrator UIDs to be stored as int[].
NetworkCapabilities#mAdministratorUids is used to track the UIDs that
are administrators of the given Network. This value was previously
stored as List<Integer>. However, general Android API Council guidelines
recommend using Arrays for primitive values. In order to be consistent
with the guidelines, updating the field to use an Array.

Bug: 147903575
Test: atest FrameworksNetTests
Change-Id: I2652a5b0f276b8944454af5cb4b1383a3e054cfa
2020-03-18 17:40:24 +00:00
Yu-Han Yang
f7fcee236e Merge "Update inter-signal bias (framework)" into rvc-dev 2020-03-18 17:40:19 +00:00
Jing Ji
56006fd5bc Add support to provide app its own ANR stack trace
...If it was killed due to ANR.

Also add support to set a cookie which could be
included into the app kill reason.

Bug: 148413462
Test: atest ApplicationExitInfoTest
Test: atest CtsAppExitTestCases:ActivityManagerAppExitInfoTest
Change-Id: I79d9955d8f5c5f42074f0e1567119b41fc486d50
2020-03-18 10:30:43 -07:00
Rob Carr
4841efcfcd Merge "SurfacePackage: Add release method" into rvc-dev 2020-03-18 17:13:32 +00:00
Adrian Roos
269b162622 Merge "WindowInsetsAnimationController: Add state callback and getters" into rvc-dev 2020-03-18 16:43:10 +00:00