Commit Graph

29974 Commits

Author SHA1 Message Date
Wonsik Kim
de9e6f71d0 Merge "MediaCodec: address API review #2" into rvc-dev 2020-03-19 21:46:28 +00:00
Hall Liu
2227afaacb Merge "Rename NotificationChannel#setBlockableSystem" into rvc-dev 2020-03-19 21:06:53 +00:00
Winson Chiu
5051748f22 Merge "Convert InstantAppRequestInfo to getters and add @MainThread" into rvc-dev 2020-03-19 21:02:36 +00:00
TreeHugger Robot
cff44bd82e Merge "Change createRequestInteractAcrossProfilesIntent to throw Exception" into rvc-dev 2020-03-19 20:51:30 +00:00
Peter Wang
24f63edb41 Merge "[Telephony Mainline] Hide setSystemAppState and related constants for R" into rvc-dev 2020-03-19 20:50:10 +00:00
TreeHugger Robot
0b3db44d5b Merge "RESTRICT AUTOMERGE: Camera: Hide keys for the rotate-and-crop controls" into rvc-dev 2020-03-19 20:37:08 +00:00
Peter Wang
d9773f2ca6 Merge "[Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and guard with permission" into rvc-dev 2020-03-19 20:12:38 +00:00
Peter Wang
77bdf2a0c0 Merge "[API Review] APIs in SubscriptionManager" into rvc-dev 2020-03-19 20:07:38 +00:00
Peter Wang
bcb1f3dbb0 Merge "[Telephony Mainline] Hide notifyUserActivity API in R" into rvc-dev 2020-03-19 19:21:29 +00:00
Peter Wang
f4885bf28f Merge "[Telephony Mainline] Hide all PermissionManager APIs for R" into rvc-dev 2020-03-19 19:21:21 +00:00
Songchun Fan
2f83e15e18 Merge "remove dynamicArgs from public methods" into rvc-dev 2020-03-19 19:07:18 +00:00
Eino-Ville Talvala
9f9bb3b734 RESTRICT AUTOMERGE: Camera: Hide keys for the rotate-and-crop controls
Implementation is not complete yet, so hide the feature for now.

Test: Adjusted camera CTS continues to pass
Bug: 150036107
Change-Id: Ifc49766d3e7ebd5a785424cf9a59e9c0f805aabc
2020-03-19 11:05:56 -07:00
Eric Laurent
5eed7459d3 Merge "AudioEffect: add isEffectSupportedForDevice() API" into rvc-dev 2020-03-19 17:57:50 +00:00
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
Peter Wang
5bc1744d57 [Telephony Mainline] Hide notifyUserActivity API in R
Bug: 151076594
Fix: 151076594
Test: Build
Change-Id: I93fef90456c724d17559f8a2188ba85e26f7835c
2020-03-18 22:18:20 -07:00
Peter Wang
256683e3a8 [Telephony Mainline] Hide all PermissionManager APIs for R
Bug: 142019744
Fix: 142019744
Test: Build
Change-Id: Ic1e08757ccba510fac3636c5bae33e8da23b7e6b
2020-03-18 22:07:22 -07:00
Peter Wang
1b0836a826 [Telephony Mainline] Hide setSystemAppState and related constants for R
Bug: 146904426
Fix: 146904426
Test: Build
Change-Id: Ia331068ac49f6f6bc97643766b521b27bff2e6b6
2020-03-18 21:55:52 -07: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
Peter Wang
ceba2adbbd [Telephony Mainline] Rename getActiveAndHiddenSubscriptionIdList and
guard with permission

Bug: 150878235
Fix: 150878235
Test: Build
Change-Id: I7f3b1f5170e032336d9b39b322c49e2b92573586
2020-03-18 20:35:44 -07: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
Peter Wang
ff7f25ff88 [API Review] APIs in SubscriptionManager
Bug: 146362772
Bug: 148180034
Test: atest SubscriptionControllerTest, TelephonyDatabaseHelperTest, TelephonyProviderTest
Change-Id: I77cad8f828ac38976355b7a5f3e8d757b73694ca
2020-03-18 17:41:05 -07:00
Wonsik Kim
637afb2db4 MediaCodec: address API review #2
- Remove GraphicBlock and use HardwareBuffer instead.
- retrieveChangedKeys -> getChangedKeys
- More messages for Exceptions

Bug: 149487982
Test: atest CtsMediaTestCases -- --module-arg CtsMediaTestCases:size:small
Change-Id: I4d19a8dfa6b9f43005c3d3d8ecc840d16aebd356
2020-03-18 17:29:21 -07: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