Commit Graph

2837 Commits

Author SHA1 Message Date
Hall Liu
048b1517b4 Merge "Add missing return statement in setTempFileRootDirectory" am: d281b1a116
am: a376949816

Change-Id: Ib940c4a54821c23aff204e01a0bd097615864415
2018-02-03 01:17:54 +00:00
Pengquan Meng
a8f341c47a Merge "Use IntDef for BCD_EXTENDED_TYPE" am: 97246476a7
am: a2311212a6

Change-Id: I228c3af0f864e97ab28806745466bc2d72e293b3
2018-02-03 00:08:10 +00:00
Treehugger Robot
d281b1a116 Merge "Add missing return statement in setTempFileRootDirectory" 2018-02-02 22:09:34 +00:00
Pengquan Meng
97246476a7 Merge "Use IntDef for BCD_EXTENDED_TYPE" 2018-02-02 21:32:11 +00:00
Hall Liu
c8cb3aad58 Merge "Rename MbmsDownloadSession#getDownloadStatus" am: a07d895f09
am: be305be046

Change-Id: Ic126b1cbee30edbb8f90f3a61d206bbd75aa8d5f
2018-02-02 20:46:51 +00:00
Hall Liu
a07d895f09 Merge "Rename MbmsDownloadSession#getDownloadStatus" 2018-02-02 20:01:12 +00:00
Hall Liu
56e6bd2cd1 Merge "Check for location access on TelephonyRegistry" am: 871202da2f
am: cf59665a75

Change-Id: I8eee8b62f0e41fa7346126d29266dfd555550028
2018-02-02 04:37:13 +00:00
Tyler Gunn
29d94726be Merge "Add call recording tone support." am: 8d5b08c430
am: eb74233ff9

Change-Id: I1111bc80ec7dff95e6e1a5f53da22d5e65042060
2018-02-02 04:32:32 +00:00
Jordan Liu
32d87828e0 Merge "Add carrier config option to show call barring UI in CallSettings" am: 2aa0cdd1d2
am: ba0581bcf1

Change-Id: If09ae852661ab154804ad9f30a2eea0839f291c0
2018-02-02 04:27:27 +00:00
Alex Khlivnuik
114adea744 Merge "Add CarrierConfig to displaying HD audio indicator for GSM/CDMA calls" am: 0be23629a8
am: c9cfb504f7

Change-Id: I1ae7bb4715c9bffb7c6b2d57da17862f7c25ad55
2018-02-02 04:18:38 +00:00
nharold
252aeb18cb Merge "CellSignalStrength cleanup" am: af7435ca1f
am: 67a2db0a66

Change-Id: Ib405d3d8d2bc723dbddfaca4748bb34fcbae877a
2018-02-02 04:14:20 +00:00
Jack Yu
4fcd48db4b Merge "Added support for the new 1.2 data setup/deactivate API" am: a02d09a449
am: 8208b2ef2e

Change-Id: I699cc911c200c3f8d4390f19fc4cfb009c6090e9
2018-02-02 04:10:23 +00:00
Brad Ebinger
a7e7cfdedf Merge changes from topics "ims_sms_sms_ready", "ims_sms_rm_internal_sms", "ims_sms_disp" am: d6d9ff3c2d
am: 2390485616

Change-Id: I65687184fd12088804a905518b3613b2444be7eb
2018-02-02 04:03:45 +00:00
Hall Liu
871202da2f Merge "Check for location access on TelephonyRegistry" 2018-02-01 23:05:22 +00:00
Tyler Gunn
8d5b08c430 Merge "Add call recording tone support." 2018-02-01 22:38:55 +00:00
Jordan Liu
2aa0cdd1d2 Merge "Add carrier config option to show call barring UI in CallSettings" 2018-02-01 22:35:38 +00:00
Hall Liu
e1af92e44d Add missing return statement in setTempFileRootDirectory
Return without setting the local temp file root if the middleware
reports a failure.

Test: cts
Change-Id: I5e8ea1f7941a7157d88536925f681044d26ef540
2018-02-01 13:48:11 -08:00
Pengquan Meng
0879c904d2 Use IntDef for BCD_EXTENDED_TYPE
Bug:72762748
Test: unit test

Change-Id: I33c26b671f6e824ae100d2d5049402cdbade8237
2018-02-01 13:39:49 -08:00
Hall Liu
92964f60ec Rename MbmsDownloadSession#getDownloadStatus
Rename and change signature/behavior to match up with middleware
vendor's expectations

Test: run CTS tests
Change-Id: If18acff5631cfc0473c342e9250973866e960d69
2018-02-01 13:23:17 -08:00
Treehugger Robot
0be23629a8 Merge "Add CarrierConfig to displaying HD audio indicator for GSM/CDMA calls" 2018-02-01 21:18:53 +00:00
nharold
af7435ca1f Merge "CellSignalStrength cleanup" 2018-02-01 21:03:55 +00:00
Treehugger Robot
a02d09a449 Merge "Added support for the new 1.2 data setup/deactivate API" 2018-02-01 20:10:36 +00:00
Jack Yu
677cfaa2a0 Added support for the new 1.2 data setup/deactivate API
Added support for the 1.2 IRadio APIs that support IWLAN handover.

Test: Telephony sanity tests
Bug: 64132030
Merged-In: I8c962bb45bc4d42610faa32f0ee36080e8e6cb65
Change-Id: I8c962bb45bc4d42610faa32f0ee36080e8e6cb65
(cherry picked from commit 08063d6c1b)
2018-02-01 03:26:10 -08:00
Hall Liu
8d584f0a91 Check for location access on TelephonyRegistry
When sending outbound callbacks on CELL_INFO and CELL_LOCATION, check to
make sure that the user has authorized us and the receiving app to get
information on their location.

Bug: 69637693
Test: manual: telephony testapp
Change-Id: Ib4c8c6a9765f504823016e538dd46768d1032792
2018-02-01 01:00:52 +00:00
Mohamed Abdalkader
304f4b5509 Add and trigger onReady API for SMS over IMS.
Test: manual test that normal code path is fine since this code path is
not yet exercisable.
BUG=69846044
Merged-In: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a
Change-Id: Icb15ca4aa6606fba641f6270dca5e0e06fc4466a
2018-01-31 14:55:42 -08:00
Mohamed Abdalkader
904c1eca5f Unhide SMS over IMS APIs
While here add more constants for send sms result.

Test: manual
BUG:69846044
Merged-In: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
Change-Id: I66fdcff51dc5ded9f6199d09bb667c89f38b6d59
2018-01-31 13:18:45 -08:00
Nathan Harold
9d729c5304 CellSignalStrength cleanup
Remove a few duplicated initialization methods
in the CellSignalStrength classes. They were
either not being used or were trivially refactored
in to their respective constructors.

Bug: 72742517
Test: compilation
Change-Id: I7115eace62dc0b6d59ea25deedaf5a0d0f270496
2018-01-31 12:53:03 -08:00
Mohamed Abdalkader
7073c075fb Remove internal version of SMS apis
Test: manual
BUG=69846044
Merged-In: Ie084ea67c460c686bd587e4b36f8c1579517ea7f
Change-Id: Ie084ea67c460c686bd587e4b36f8c1579517ea7f
2018-01-31 11:55:39 -08:00
Mohamed Abdalkader
6e545d5892 Move Sms API to proper MMTelFeature class
- while here remove unnecessary call to ackSms from
  SmsImplBase as this is handled by ImsSmsDispatcher

Test: None, APIs not exercised yet.
BUG=69846044
Merged-In: Iec4bbd07a67502dbbfb2142a7bc95f51be0cb377
Change-Id: Iec4bbd07a67502dbbfb2142a7bc95f51be0cb377
2018-01-31 11:24:31 -08:00
Mohamed Abdalkader
967a952b34 Add unique id for sms APIs to be able to trigger correct smstracker
In old APIs the SmsTracker itself was being passed to the RIL
and onSendComplete the tracker's pending intent was triggered
and then the updated messageRef was used as the id.

Instead of passing the tracker, passing a unique id to be used
for the lifetime of the message.

Doing same thing for receiving flow.

Test: None, APIs not exercised yet.
BUG=69846044
Merged-In: Id19f854e2c48649db8f2031ee4f49cdac331451c
Change-Id: Id19f854e2c48649db8f2031ee4f49cdac331451c
2018-01-31 11:18:11 -08:00
Jack Yu
91737fac7a Merge "Used the better hash method provided by Objects" am: 262f84699e
am: e9642cdb50

Change-Id: I843b74fae7c6c8b937236755793d6739600e7643
2018-01-31 10:35:49 +00:00
Treehugger Robot
262f84699e Merge "Used the better hash method provided by Objects" 2018-01-31 09:04:52 +00:00
nharold
e69ef2e511 Merge "Remove getIsimChallengeResponse" am: b6d5a85a9c
am: c13ddc2fe0

Change-Id: If67d532c0ab0cbd778650cd2a6bd33b91f0459e5
2018-01-31 01:59:39 +00:00
nharold
b6d5a85a9c Merge "Remove getIsimChallengeResponse" 2018-01-31 00:23:50 +00:00
Holly Jiuyu Sun
7c824e97b9 Merge "Only allow LPA to select ISD-R using iccTransmitApduBasicChannel" am: 04e5e63305
am: 8b37eedfc9

Change-Id: I5ed1d2622cac57b527eb13ff752be44f606a1dc1
2018-01-31 00:18:23 +00:00
Nathan Harold
c6ee8d63eb Merge "Update Docstring for SmsMessage.getOriginatingAddress" am: 14513e0ea3
am: 79f3dcb694

Change-Id: I4b3369fb2a75234e9100630cc7a2ebf49855d722
2018-01-31 00:12:08 +00:00
Wenting Xiong
d58536800f Add carrier config option to show call barring UI in CallSettings
Some operators require to add Call Barring setting UI to CallSetting,
so add a new CarrierConfig value to customize this.

Bug: 30845125
Test: Manual
Change-Id: I5d80508afd8216f04f443c5a9e0dd83d5247788f
2018-01-30 15:13:21 -08:00
Holly Jiuyu Sun
04e5e63305 Merge "Only allow LPA to select ISD-R using iccTransmitApduBasicChannel" 2018-01-30 23:05:00 +00:00
nharold
7ec87ba8a6 Merge "Update hashCode in CellSignalStrength classes" am: 59fec059a9
am: f148ec8b72

Change-Id: I2038a5395a0917d13080d204f429c8847006edc5
2018-01-30 21:44:40 +00:00
Treehugger Robot
14513e0ea3 Merge "Update Docstring for SmsMessage.getOriginatingAddress" 2018-01-30 20:09:00 +00:00
Jack Yu
059aa39fab Used the better hash method provided by Objects
Test: Unit tests
Bug: 64132030
Change-Id: Ib0fa616b28df97caf5457fd9069fbd76a80b17cc
2018-01-30 12:02:27 -08:00
nharold
59fec059a9 Merge "Update hashCode in CellSignalStrength classes" 2018-01-30 19:52:36 +00:00
Tyler Gunn
acdb686635 Add call recording tone support.
Adding carrier configuration option to specify whether the carrier requires
the incall recording tone be played.
Added phone account extra used in Telephony to communicate this to
Telecom.
Added permission pregrant for Telecom for MODIFY_AUDIO_ROUTING; this is
needed as Telecom listening to the AudioRecordingConfiguration callback
from the audio framework.  It needs the permission so that it can be
informed of the package names of recording apps.

Test: Manually enabled for local carrier and confirmed that recording
tone plays to remote party when a recording app is started on the device.
Bug: 64138141

Change-Id: I1ab521b79cbeeb4ff4dcbf83de7c17c539637bdc
2018-01-30 11:38:54 -08:00
Nathan Harold
07f21cf510 Update Docstring for SmsMessage.getOriginatingAddress
There was a public request for clarification on the address
format for getOriginatingAddress. I did a little research and
have added the answer to the docstring.

Bug: 64697463
Test: compilation
Merged-In: Icf37af0a5940a6fb7798d7c7cafe7b97683bb689
Change-Id: Icf37af0a5940a6fb7798d7c7cafe7b97683bb689
2018-01-30 03:02:38 +00:00
Nathan Harold
017e7f90ee Update hashCode in CellSignalStrength classes
The CellSignalStrength hashCode function was using a
fairly ineffective method of hashing. An External
reporter requested that we fix it. This CL moves to
using the Objects.hash() implementation.

Bug: 22479413
Test: compilation
Change-Id: Ic017ba54ef757fd3ec3e5000ac61108dd836bd8a
2018-01-29 18:05:39 -08:00
Holly Jiuyu Sun
a8a0683a96 Merge "Remove SystemApi annotation from EuiccManager.getOtaStatus()" am: 67fb5370cd
am: bded9f969f

Change-Id: I704a78ae7330d1eefcfcecb6dfb8073d71cfe5ed
2018-01-30 00:28:21 +00:00
Holly Jiuyu Sun
67fb5370cd Merge "Remove SystemApi annotation from EuiccManager.getOtaStatus()" 2018-01-29 23:47:11 +00:00
Nathan Harold
0c9937cb5c Remove getIsimChallengeResponse
Remove the obsolete getIsimChallengeResponse.
Anybody calling this method should use
getIccSimChallengeResponse instead.

Bug: 27954896
Test: compilation
Change-Id: I636825a448992e06dc11d4cd58dee750c38b2c5e
2018-01-29 13:30:58 -08:00
Jiyong Park
dc77bcee40 Remove SystemApi annotation from EuiccManager.getOtaStatus()
EuiccManager.getOtaStatus() has been annotated as @SystemApi, but its
declaring class EuiccManager has not. Therefore, the method hasn't been
recognized as SystemApi (does not appear in system-current.txt) and no
app is using the method.

This hasn't been harmful, but will soon trigger CTS failures when we do
the exact match for SystemAPIs; a runtime entity annotated as @SystemApi
have to exist in the documented API (e.g. system-current.txt). So
removing this no-op annotation.

Bug: 67891551
Test: m -j checkapi
Change-Id: I570ef5e5c88b6b9162116d3d3a7b17367efa9d7f
2018-01-29 13:09:29 -08:00
Jack Yu
0659e60b98 Merge "Added nullable callback support" am: 35520445be
am: 19f9299af6

Change-Id: I1701893d61b9e459b0f22e0165d03f5efadfd56e
2018-01-27 03:42:06 +00:00