444628 Commits

Author SHA1 Message Date
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
Brad Ebinger
273a74f532 API Review: Clarify deprecated docs and rethrow from system server
1) Clarify why there are new APIs being added as @deprecated
   (backwards compatibility), and
2) onLineIdentificationSupplementaryServiceResponse should throw
an exception instead of silently failing.

Test: atest CtsTelephonyTestCases FrameworksTelephonyTests
Bug: 149997057
Bug: 143987946
Fixes: 151172761
Merged-In: I5c2bacad43917a6ecad49dcf9d3213b3472534cc
Change-Id: I5c2bacad43917a6ecad49dcf9d3213b3472534cc
2020-03-20 16:16:33 -07:00
Brad Ebinger
36f34a1755 API Review: Define the extras as containing CharSequences, not Strings
Test: atest FrameworksTelephonyTests:ImsPhoneTest
Bug: 150331517
Fixes: 151172931
Merged-In: I7c6f4c13e6267a3e643ebae77697ea18ee8cd242
Change-Id: I7c6f4c13e6267a3e643ebae77697ea18ee8cd242
2020-03-20 16:13:28 -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
Treehugger Robot
ab7bf327b7 Merge "Let application set reply MMS delivery report on or off" 2020-03-20 16:41:34 +00:00
Anton Hansson
97b74aa79f Merge "Update tethering module api files" 2020-03-20 13:50:24 +00:00
Anton Hansson
4245fd1152 Update tethering module api files
Bug: 147768409
Test: m checkapi
Merged-In: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
Change-Id: I3da71661048b1f66522696e9333c2c14a224fe9f
2020-03-20 13:49:34 +00:00
Anton Hansson
51ef4aafe2 Merge "Remove SDK dep from module_lib_api" 2020-03-20 12:48:31 +00:00
Anton Hansson
6360640cd8 Merge "Add individual API tracking files for modules" 2020-03-20 12:47:52 +00:00
Anton Hansson
e53bec0567 Remove SDK dep from module_lib_api
This had the consequence of making two large metalava invocations
run in sequence rather than parallell.

For now, add back the dependency on framework-all instead. Building
framework-all should be a lot faster than the sdk stubs.

Also move the module stubs dep from framework_defaults to
framework-minus-apex. framework-all does not need this dep.

Bug: 151092414
Test: m
Test: NINJA_ARGS="-t path out/soong/.intermediates/frameworks/base/module-lib-api-stubs-docs/android_common/module-lib-api-stubs-docs-stubs.srcjar \
                          out/soong/.intermediates/frameworks/base/system-api-stubs-docs/android_common/system-api-stubs-docs-stubs.srcjar" m
Change-Id: Ifdf8823d374254e594330b43ae3a39a76c7b90c5
Merged-In: Ifdf8823d374254e594330b43ae3a39a76c7b90c5
(cherry picked from commit 92d79fddd49b1b502f0b47c574fb1aec7ca85b15)
2020-03-20 11:30:59 +00:00
Neil Fuller
f211324bfc Merge "Misc tidy up before adding geolocation classes" 2020-03-20 09:47:19 +00:00
Paul Hu
7f69e09d79 Merge "[TNU1.1] Update tethering notification strings" 2020-03-20 08:28:52 +00:00
Iris Chang
d2c4103e00 Let application set reply MMS delivery report on or off
Some MMS applications have a settings option to allow user to set
reply MMS delivery to on or off. To support this, application will
set REPORT_ALLOWED into NofiyResp.
PduComposer.makeNofiyResp needs to be added REPORT_ALLOWED to make
application setting work.

Test: Set REPORT_ALLOWED in NotifyResp by application. It should be
contained in MMS PDU.
Bug: 143447617

Change-Id: I0ff4a875596efa2fd45f9e20bab880949651faac
2020-03-20 07:31:41 +00:00
Malcolm Chen
a212555ad2 Fix bug that getBaseBandVersion() may write the value incorrectly.
getBaseBandVersion tries to get value from a legacy API and rewrites it
back. However the read value is the full list but the write is to a
specific phone, causing the list to grow unexpectedly.

Bug: 149342541
Test: manual - using test app, call API and check result.
Change-Id: I78b0443c5e38a30010796fcb69f01a8c7ebaf160
2020-03-19 23:20:39 -07:00
Sarah Chin
3986bb5040 Merge "Update AccessNetworkConstants to uses values from HAL" 2020-03-20 04:04:12 +00:00
Treehugger Robot
b4a43d8786 Merge "Use HdmiProperties class for ro.hdmi.device_type" 2020-03-20 03:56:44 +00:00
Sarah Chin
fa0a47ed74 Merge "Add response and indication for CellInfo" 2020-03-20 03:30:15 +00:00
Sarah Chin
35554486b7 Update AccessNetworkConstants to uses values from HAL
Test: build
Bug: 150479290
Change-Id: I46034fce8f8f13b555a0cfb05cc5a9f076c7251a
Merged-In: I46034fce8f8f13b555a0cfb05cc5a9f076c7251a
2020-03-19 18:47:44 -07:00
Sarah Chin
c0a1448ac8 Add response and indication for CellInfo
cellInfoList_1_5
getCellInfoListResponse_1_5
networkScanResult_1_5

Test: atest RILTest
Bug: 151774189
Change-Id: I1ba01eb97f13f843fd27b65d4a2b1049e97ead71
Merged-In: I1ba01eb97f13f843fd27b65d4a2b1049e97ead71
2020-03-19 18:38:14 -07:00
Nick Chalko
0cbc3786f3 Use HdmiProperties class for ro.hdmi.device_type
Bug: 141581191
Test: m services.core
Change-Id: Iff969f5f698d1308842dc91ef55220eb002b1244
Merged-In: Iff969f5f698d1308842dc91ef55220eb002b1244
2020-03-20 00:53:40 +00: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
Treehugger Robot
dfeb2a2bfc Merge "Shell: Allow usage of wifi usability score APIs" 2020-03-19 23:52:55 +00:00
Roshan Pius
7b0a22dcad Shell: Allow usage of wifi usability score APIs
This permission is needed for wifi CTS tests.

Is the minimally scoped permission that needs to be added?
- Yes, this only allows the app to influnce wifi vs lte network
selection algorithm.

What options did you explore that did not need this permission?
- Without this permission, it would be impossible to test these API's:
WifiManager.setWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.clearWifiConnectedNetworkScorer()
WifiManager.addOnWifiUsabilityStatsListener()

Bug: 150236894
Test: Device boots up.
Change-Id: Ic173e44ab818cdfecebde80715ddaec347019db6
Merged-In: Ic173e44ab818cdfecebde80715ddaec347019db6
2020-03-19 23:14:31 +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
Kumar Anand
6257fbb4c9 [TNU1.1] Update tethering notification strings
Update string for no upstream and cellular roaming notification.

Bug: 145629001
Bug: 147818698
Test: atest TetheringTests
Change-Id: I7302cf351b0a9a42ad5a543f61ab084de189f282
2020-03-19 15:57:33 -07:00
Treehugger Robot
e8640349ed Merge "BluetoothHearingAid#getHiSyncId now consistently uses the term HiSyncId (removed all references to CustomerId) and added link to explain what the HiSyncId represents" 2020-03-19 20:01:07 +00:00
Philip P. Moltmann
9ed7e7f1b1 Merge "Pipe through attributeTag for one self-permission check" 2020-03-19 19:41:17 +00:00
Jack Yu
0a7c66bcd8 Merge "Hide API" 2020-03-19 19:00:58 +00:00
Rahul Sabnis
3c7e8444f5 BluetoothHearingAid#getHiSyncId now consistently uses the term HiSyncId
(removed all references to CustomerId) and added link to explain what
the HiSyncId represents

Bug: 149238489
Test: Manual
Change-Id: I4ff2a8d46f3fc5d06a29829a69a27a0c15e466f8
2020-03-19 11:44:54 -07:00
Brad Ebinger
1dc6188494 Merge "Add back ImsUceManager status definitions" 2020-03-19 18:40:35 +00:00
Cody Kesting
70a08d9f7e Merge "Change NetworkCapabilties administrator UIDs to be stored as int[]." 2020-03-19 18:09:26 +00:00
Anna Trostanetski
b1b88f5c8f Merge "Introduce listUIChanges API for developer UI" 2020-03-19 17:34:45 +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 f0df0ba2ba735b6c484d3e752c20650d3c222bf1)
2020-03-19 10:27:36 -07:00
Jack Yu
94189968e5 Merge "Added the high usage hidden APIs back" 2020-03-19 17:16:27 +00:00
Treehugger Robot
a3161c6627 Merge "Add MODIFY_DEFAULT_AUDIO_EFFECTS permission to shell" 2020-03-19 17:11:10 +00:00
Mark Chien
c686fa828b Merge "TetheringManager API clean up" 2020-03-19 16:09:21 +00:00
atrost
a5363153f3 Introduce listUIChanges API for developer UI
Filter out changes that are: logging only, older then enabled after P,
newer then enabled after Q.
Added missing @Test that broke builds.

Test: atest com.android.server.compat.PlatformCompatTest
Bug: 151299145
Change-Id: Ic4c12ceec3f4018a1f206b8498e8216466ecf960
Merged-In: Ic4c12ceec3f4018a1f206b8498e8216466ecf960
2020-03-19 15:57:46 +00:00
Treehugger Robot
e215c5d047 Merge "Move NetworkCallback to last parameter for new exposed requestNetwork" 2020-03-19 15:51:32 +00:00
Treehugger Robot
8281abfdb6 Merge "Release the interface request when Ethernet tethering is stopped." 2020-03-19 14:59:12 +00:00
Lorenzo Colitti
925c8bab17 Release the interface request when Ethernet tethering is stopped.
When the Ethernet interface becomes unavailable (e.g., because
the cable was unplugged or the interface was removed), or when
setEthernetTethering(false) is called, release the Ethernet
interface request.

This ensures that:
- The Ethernet interface immediately becomes available for use in
  client mode.
- If an interface later becomes available, tethering is not
  automatically started. This is consistent with what happens for
  other downstream types such as wifi and USB. Evey time one of
  those downstreams goes down, tethering is stopped and will not
  be restarted.

Test: manual
Bug: 148824036
Change-Id: Iaf85e800569f2e08c39f7ebb96f8aa34f6e53133
2020-03-19 22:35:28 +09:00
Anton Hansson
784474bbb6 Merge "Don't pass annotation srcs to metalava for modules" 2020-03-19 11:46:45 +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
markchien
743236096e 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: I45cb21d5bc919f6d32c42650326597d5173ea028
Merged-In: Idd041f0fbeca411ea23e49786a50dd7feb77ef45
2020-03-19 19:32:50 +08:00
Neil Fuller
8e3e1247ab Tweak command-line verb names
Tweak command-line verb names in response to cherry-pick feedback.

Bug: 140712361
Test: build only
Change-Id: Id72be2181d090f9c32e58fd9c10d32d0d638d550
2020-03-19 11:19:41 +00:00
Lorenzo Colitti
e30d9267ef Merge "Make Ethernet interfaces more testable." 2020-03-19 11:12:09 +00:00
Paul Hu
2435a6539d Merge "[TNU1.2] Add string for client number notification" 2020-03-19 10:20:27 +00:00
Paul Hu
f5302ac9b5 Merge "Add ConnectivityService owner" 2020-03-19 10:19:51 +00:00
Neil Fuller
325098922c Merge "Raise tz standards for uninitialized devices" 2020-03-19 09:33:35 +00:00
Junyu Lai
b3c511d028 Merge changes I7eaca623,Ic94da540,If330e853,Ie2d229be,Ic6b2f10f
* changes:
  [SM08] Add NetworkTemplate unit test for fetching mobile data usage
  [SM07] Make combine subtype configurable from Settings
  [SM05] Enable record mobile network stats by collapsed rat type
  [SM04] Support fetching data with NetworkTemplate with subType
  [SM02] Support record mobile network stats by collapsed rat type
2020-03-19 09:10:57 +00:00