Commit Graph

20353 Commits

Author SHA1 Message Date
Brad Ebinger
37d8de2b2a Merge "Expose mRestrictCause as a @SystemApi" 2018-11-06 22:54:10 +00:00
Shuo Qian
1a517ba852 Merge "Revert "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"" 2018-11-06 03:06:20 +00:00
Shuo Qian
5e80484991 Revert "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)"
This reverts commit c3380f767a.

Reason for revert: b/119055885

Change-Id: I47e6dd038d97a9d5a48d36b53f9e75e356a1e409
2018-11-06 00:18:16 +00:00
Brad Ebinger
f5544c3e92 Expose mRestrictCause as a @SystemApi
Bug: 117555643
Test: Telephony unit tests
Change-Id: I60a7028d79f7e5fa676cc12a427c6d2a8cd3961e
2018-11-05 10:33:00 -08:00
Tony Zhu
6dd64df8b3 Merge "[Call Screening]Programmatically changing the default call screening app." 2018-11-05 10:35:27 +00:00
Shuo Qian
f4a1945d87 Merge "Make getRssi() API for LTE Received Signal Strength Indication (RSSI)" 2018-11-02 17:46:43 +00:00
Hall Liu
f583bb525a Merge "Add TestApi to get RTT support status" 2018-11-02 00:43:27 +00:00
Tyler Gunn
cc690e9a48 Merge "Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call." 2018-11-01 22:42:22 +00:00
Chen Xu
e459133141 Merge "refactor resetNv API to resetRadioConfig and rebootRadio" 2018-11-01 21:29:39 +00:00
Shuo Qian
f5852d1500 Merge "Make SignalStrength#INVALID public" 2018-11-01 18:06:25 +00:00
Treehugger Robot
627441218d Merge "Add a more flexible queryRecentDocuments" 2018-11-01 13:11:09 +00:00
chen xu
dbff1bd8e4 refactor resetNv API to resetRadioConfig and rebootRadio
Bug: 116476729
Test: telephony unit test and Manual test
Change-Id: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
Merged-in: I420da20f2290d1fc3962f7c14a9ca4999eafbde8
2018-10-31 22:51:13 -07:00
Hall Liu
a7d0230572 Add TestApi to get RTT support status
Add a TestApi for CTS to be able to tell whether a device supports RTT
on the current carrier.

Bug: 113069001
Test: manual
Change-Id: I135338b7b83f888d454d09dddd30c72197fe0533
2018-10-31 17:05:07 -07:00
Risan
6a4a8f6046 Add a more flexible queryRecentDocuments
The existing queryRecentDocuments have a hard limit 64. However, case
like ARC++ wishes to have a more flexible limit that can be passed as an
extra parameter. This new API will gracefully degrade to the old API to
maintain backward compatibility with old providers.

Bug: 111288304
Test: manual test (patched the MediaDocumentsProvider, and test calling
the new API):
1. Test that passing Bundle with QUERY_ARG_LIMIT=5 is honored and
returned is limited to 5.
2. Test that passing null will release the limit to default 64.
3. Test that removing MediaProvider implementation for new method and
implement the old method will automatically redirect the call to old
method (backward compatible with old providers).

Change-Id: I37b1785b94f3e9cf09128fbf1e8779a4447fe7a9
2018-10-31 23:30:35 +00:00
Tyler Gunn
80a5e1e940 Add PROPERTY_VOIP_AUDIO_MODE to android.telecom.Call.
This property is used to report the voip audio mode requested by the
underlying connection.  This is useful for ringing calls and held calls
where the current system audio mode will not necessarily match what the
Connection would use.

Test: Added and ran new CTS tests.
Bug: 110540796
Change-Id: I8c26db4b35de4d40d7b76b3c1adc93223afa104b
2018-10-31 15:09:17 -07:00
Chen Xu
3ad3478213 Merge "new system API getRadioAccessFamily" 2018-10-31 17:12:23 +00:00
Youming Ye
e3a989f7d3 Merge "Add CarrierConfig to hide "Network default" option in Caller ID setting" 2018-10-31 00:44:04 +00:00
sqian
c3380f767a Make getRssi() API for LTE Received Signal Strength Indication (RSSI)
Bug: 113074174
Test: CTS, Treehugger

Change-Id: If12e8e88831ffcce36b04ffe0617b3283811e4a6
2018-10-30 10:56:18 -07:00
Treehugger Robot
40745e1def Merge "Define CellInfo.UNAVAILABLE for Unreported Fields" 2018-10-30 17:53:24 +00:00
tonyzhu
ff60f5ec27 [Call Screening]Programmatically changing the default call screening app.
Increase three methods in TelecomManager.java, modify
ITelecomService.aidl to make sure framworks can comunicate with service.

Bug: 113302920
Test: atest TelecomServiceImplTest.
Test: simulate third party call screening application to use methods in
TelecomManager.java, and triggle the activity to show the dialog of
setting default call screeening application.

Change-Id: I1e34061acd575813e92403c137731e618abb88d5
2018-10-30 15:50:49 +00:00
vichang
f4ab8b61ec Merge changes from topic "icu63"
* changes:
  API updated for ICU4J 63.1
  Fix FormatterTest#testFormatShortElapsedTime due to CLDR 34 change
2018-10-30 12:04:05 +00:00
chen xu
eb18644660 new system API getRadioAccessFamily
1. new API in telephonyManager to getRadioAccessFamily
2. define bitmask for radioAccessFamily based on NetworkType because
we don't want to expose two sets of definition RIL_RADIO and Network
type together in public API surface
3. convert definition to NetworkType

Bug: 118351153
Test: telehony unit test
Change-Id: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
Merged-in: I4a71c61929d9df8ec13c157e0452c6f30d8e4b9c
2018-10-29 19:00:21 +00:00
sqian
61524e1b61 Make SignalStrength#INVALID public
Bug: 113074174
Bug: 118460482
Test: Treehugger; compile
Change-Id: I088f2f46c0adfbedc0fd53838add57078d6aac56
2018-10-26 00:52:48 +00:00
Nathan Harold
a629ea3928 Define CellInfo.UNAVAILABLE for Unreported Fields
For all CellInfo classes, there is a common value for
fields that are unreported by the modem: Integer.MAX_VALUE.
To better document this value, this CL defines it as a
constant "UNAVAILABLE" to indicate that for whatever reason
the framework is not reporting this value to the caller.

Bug: 28171234
Test: make; make offline-sdk-docs
Change-Id: I0aa692e3f1b5478284d262ef97fd65b90bce8293
2018-10-25 23:00:11 +00:00
Youming Ye
568455ffe7 Add CarrierConfig to hide "Network default" option in Caller ID setting
Add a key to hide "Network default". When value is false,
"Network default" shouldn't be displayed for options in Caller ID
setting.

Test: manual - check options in Caller ID setting
Bug: 111809829
Change-Id: Ic9bab7e819bc5b0164508f9d2709a35950fdc797
2018-10-24 15:00:03 -07:00
Brad Ebinger
a1474266bf Merge "ImsSsData needs a public constructor for vendors to use" 2018-10-24 17:08:39 +00:00
Youming Ye
94fe6430ea Merge "Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting"" 2018-10-24 16:26:21 +00:00
Tony Zhu
ee31b2214d Merge "[Call Screening]Support for carrier call screening app" 2018-10-24 15:51:48 +00:00
Hall Liu
a82f952fe7 Merge "Add test API to override carrier config" 2018-10-24 00:00:22 +00:00
Nathan Harold
ac87c0a884 Merge "Add getMobileNetworkOperator to CellIdentityTdscdma" 2018-10-23 23:34:26 +00:00
Brad Ebinger
4123f9587d ImsSsData needs a public constructor for vendors to use
Expose Builder for IMS Supp Service APIs as well as clean
up some of the ambiguous int[] usage.

Bug: 117555643
Test: Manual
Change-Id: I5cad08e0a032f4e38a62ac033c01111319cf9fd5
2018-10-23 14:57:59 -07:00
Hall Liu
e5b1fda883 Add test API to override carrier config
Add API surface and AIDL to enable override functionality for CTS

Change-Id: I55328a75f16fe91280530dd348d4a034694be6e9
Fixes: 118184943
Test: manually call api through shell cmd
2018-10-23 13:14:36 -07:00
Victor Chang
3e8604ea03 API updated for ICU4J 63.1
- Expose API that are set to @stable in ICU 63
- All methods have test coverage by CTS, according to the coverage
report http://go/libcore-coverage-qt

The new APIs are introduced with the following purpose:
1. New constant in UCharacter to obtain Unicode property of a unicode
   character.
   3 new classes: VerticalOrientation, IndicPositionalCategory, IndicSyllabicCategory
2. Some toString and hashCode are "undeprecated". They are methods in
   Object, and shouldn't be "deprecated".
3. Obtain DecimalFormatSymbols in a particular numbering system
4. ICU currency becomes more friendly with java.util.Currency. Add
   methods to convert between 2 types
5. BreakIterator supports input text in CharSequence
6. More powerful API in Edits and CaseMap

Bug: 109837373
Bug: 113100098
Test: CtsIcuTestCases
Change-Id: I8201f2ef6013b0326a4f37a01dec97dfa39f1c30
2018-10-23 09:41:02 +01:00
Nathan Harold
d285c8eb20 Add getMobileNetworkOperator to CellIdentityTdscdma
For consistency with CellIdentityLte, Wcdma, and Gsm
adding this function. It will aid in future refactors
to possibly create a common interface for these classes.

Bug: 111808089
Test: compilation
Change-Id: Ia6b21bcc368089d8346951ae9476e7eb12a05130
2018-10-22 15:31:08 -07:00
Tyler Gunn
1c285f0ac2 Re-add removed APIs per API council feedback.
Some APIs were removed erroneously in the Q release; these methods were
just deprecated in Q,

Test: Make API, build
Bug: 116801893
Change-Id: I38ddf8bcd9fe39f4ba50bc892ac2f6d20209f7a9
2018-10-22 14:26:19 -07:00
Youming Ye
cbd0cca984 Revert "Add CarrierConfig to hide "Network default" option in Caller ID setting"
This reverts commit 187c9943ff.

Reason for revert: Slipped off master. Revert and try put it back.

Change-Id: I5823566523346c943c14e91848e7d5de9c14d68d
2018-10-19 21:34:27 +00:00
Brad Ebinger
7fff7e5eff Merge "Expose the empty MmTelCapabilities constructor" 2018-10-19 20:20:14 +00:00
Treehugger Robot
2c10a29eaa Merge "correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED" 2018-10-19 19:19:26 +00:00
Chen Xu
7dd38c2115 Merge "new SystemAPI for setCarrierDataEnabled" 2018-10-19 18:47:27 +00:00
chen xu
b591f9d2dd correct the definition of LISTEN_RADIO_POWER_STATE_CHANGED
keep the value same as master

Bug: 117930373
Test: telephony unit test
Change-Id: I0bad21eeed2b4667fbb781253828b99332103b31
Merged-in: Id170063bfdb1e3325f67e8680231ab4deda7d65d
2018-10-19 18:18:39 +00:00
Chen Xu
f2e0f57976 Merge "expose some Telephony.Carriers cols system APIs" 2018-10-19 17:56:14 +00:00
Youming Ye
c4b647458c Merge changes from topic "cherrypick"
* changes:
  Add CarrierConfig to hide "Network default" option in Caller ID setting
  add four new carrier configs for supplementary service precautions.
2018-10-19 16:33:22 +00:00
Junyu Lai
f709e754ab Merge "Add new callback to inform blocking of network on specific uid." 2018-10-19 15:20:48 +00:00
taiki tsutsumi
187c9943ff Add CarrierConfig to hide "Network default" option in Caller ID setting
Add a key to hide "Network default". When value is false,
"Network default" shouldn't be displayed for options in Caller ID
setting.

Test: manual - check options in Caller ID setting
Bug: 111809829
Change-Id: Id07ab2d2281a1ebb07d631045ada705cda53daf2
Merged-In: I5fbe9734dbb092b25fd145344c7559d2dee79df2
2018-10-19 01:12:39 +00:00
chen xu
3d59fdb70d new SystemAPI for setCarrierDataEnabled
Bug: 116138716
Test: Telephony unit test
Change-Id: I6fba04dab8fd067f49b17afa2a640b7d00092a3f
Merged-in: I6fba04dab8fd067f49b17afa2a640b7d00092a3f
2018-10-18 15:32:48 -07:00
Brad Ebinger
4db427a5a8 Expose the empty MmTelCapabilities constructor
1) Allow for empty MmTelFeature.MmTelCapabilities to be
accessible via @SystemApi.
2) Add correct @nonnull/@nullable annotations as per API
review.

Bug: 117555643
Bug: 116117215
Test: Manual
Change-Id: Id445e4702f44528b4b1ab59129cf35803ae70053
2018-10-18 12:29:58 -07:00
sqian
c62bb2d69c Fix current.txt
Bug: 113072551
Test: compile
Change-Id: I3e9d5ec0460eae13da88671e1e7cb873638352ee
Merged-In: I00720bc3f947adf3c1072c75a040e85333d317f5
2018-10-18 19:00:36 +00:00
Brad Ebinger
4133a00a10 Merge "Expose ImsExternalCallState constructor as @SystemApi" 2018-10-18 16:54:38 +00:00
Shuo Qian
a9d551ca7b Merge "Compare Emergency number display priority" 2018-10-17 22:12:02 +00:00
chen xu
851004813a expose some Telephony.Carriers cols system APIs
Bug: 117473154
Test: Telephony unit test

Change-Id: I8e6b873842f42b8cb3244a14b6e6c5d9c1ae5318
2018-10-17 13:30:57 -07:00