Commit Graph

5938 Commits

Author SHA1 Message Date
Jordan Liu
758cb8c22b Merge "Merge "Fix mLteSignalStrength range check" am: fbf9d61bb2 am: 9b11677ae8" into pi-dev-plus-aosp
am: f667ce8562

Change-Id: Ie4284357d4154692fb914486cace63b1cb56928f
2018-03-10 06:50:22 +00:00
Eric Schwarzenbach
71708d060e Merge "Add Duplex mode to ServiceState." am: 908bf936a5 am: 3bb160af29
am: 2fcbbd11e3

Change-Id: I5e707966905d9000811099cdd818d7d179aee576
2018-03-10 02:56:03 +00:00
Jordan Liu
d865bde7f2 Merge "Fix mLteSignalStrength range check" am: fbf9d61bb2
am: 9b11677ae8

Change-Id: Ia64b3c13a22bf66557db26ae42f162c989abb5af
2018-03-10 02:38:10 +00:00
Treehugger Robot
fbf9d61bb2 Merge "Fix mLteSignalStrength range check" 2018-03-10 00:40:19 +00:00
Eric Schwarzenbach
2fcbbd11e3 Merge "Add Duplex mode to ServiceState." am: 908bf936a5
am: 3bb160af29

Change-Id: I3b61a8c452989e7f80fc59f2c126b8b4abf2ad22
2018-03-10 00:17:06 +00:00
Jordan Liu
32e6d464f1 Fix mLteSignalStrength range check
The previous check is wrong based on the spec, and does not match the
HAL definition either.

Change-Id: Idb1c209f11a76421d477f8a1d270e23d86d621b1
Fixes: 74026897
Test: manual
2018-03-09 14:35:08 -08:00
Eric Schwarzenbach
908bf936a5 Merge "Add Duplex mode to ServiceState." 2018-03-09 21:19:10 +00:00
Android Build Merger (Role)
424bd06d47 Merge "Merge "Remove RuntimeException throws from TelephonyManager" into pi-dev am: 85c0e8787d am: 6ccb19234e" 2018-03-09 20:02:05 +00:00
Chen Xu
6ccb19234e Merge "Remove RuntimeException throws from TelephonyManager" into pi-dev
am: 85c0e8787d

Change-Id: I1be18e332e93e84b9502aa26e4057662070d562d
2018-03-09 18:26:46 +00:00
Jeff Davidson
bc10ce1efe Allow carrier privileged apps to access Telephony/Subscription APIs.
-All public APIs in TelephonyManager which require READ_PHONE_STATE
will now also be documented to accept carrier privileged callers as
well. (One exception is the change callbacks in each, which will be
addressed in a separate CL).

-For SubscriptionManager, callers without READ_PHONE_STATE will now be
able to access the subscription list; however, the resulting list will
be filtered to only include subscriptions for which the caller has
carrier privileges.

-All @see references to hasCarrierPrivileges have been removed in
favor of an inline {@link}. The @see section is set apart from the
rest of the Javadoc and thus appears out of context of where it's
actually relevant; moreover, it is often placed in the middle of a
line which makes it invalid. Using {@link} inlines the reference where
it's actually relevant.

-@SuppressAutodoc is added to any public method which has a
@RequiresPermission declaration that isn't a sufficient description of
the allowed callers, i.e. for APIs which accept carrier-privileged
callers, or the default dialer app or other exceptional cases. This
ensures redundant (but incorrect) requires permission declarations
aren't autogenerated.

Bug: 70041899
Test: TreeHugger, unit tests in topic
Change-Id: Ia5cc145c19d99fe2b87e3425bb95281980edef6f
2018-03-09 09:48:58 -08:00
Chen Xu
85c0e8787d Merge "Remove RuntimeException throws from TelephonyManager" into pi-dev 2018-03-09 17:02:41 +00:00
Tyler Gunn
d66b8cf06c Merge "Support enhanced call blocking function" am: fdcdaee2d1
am: b70f2a1886

Change-Id: I70820d0d46a6c54de10b03e129a4b4df97e84a1e
2018-03-09 01:27:39 +00:00
yinxu
9921cf9fe1 Merge "Do not throw RuntimeException from stopScan()." am: 7ac5deaf38
am: 9846b53926

Change-Id: I09c905f0a7f54e3b24b94793d14f46ad9c56cf3c
2018-03-09 00:54:47 +00:00
Tyler Gunn
fdcdaee2d1 Merge "Support enhanced call blocking function" 2018-03-08 23:21:16 +00:00
fionaxu
f5c0da3dec Remove RuntimeException throws from TelephonyManager
scrub exceptions from remote or due to phone service not ready.
This is in consistent with other APIs in TelephonyManager.

TODO: investigate appropriate way to handle exceptions in synchronous
APIs e.g. checked exception for those internal service failure.
tracked by b/74401420

Bug: 74016743
Test: Build
Change-Id: Ie1a07f57c2e3a70e5ac6c3ffa238c2209b34f2b8
2018-03-08 13:40:19 -08:00
Treehugger Robot
7ac5deaf38 Merge "Do not throw RuntimeException from stopScan()." 2018-03-08 19:41:20 +00:00
Pengquan Meng
14a43f86ed Merge "Telephony(MSIM): Default NW mode property for each slot" am: 27c64aaf3c
am: 8fac62bdd8

Change-Id: I79f38029a789bf9cd916ef21cc31ae3b7903719d
2018-03-08 19:23:42 +00:00
Pengquan Meng
27c64aaf3c Merge "Telephony(MSIM): Default NW mode property for each slot" 2018-03-08 17:56:28 +00:00
Eric Schwarzenbach
a483ce3bfd Add Duplex mode to ServiceState.
Adds getChannelNumber() to CellIdentity.
Creates a static utility class to calculate the duplex mode from an
EARFCN.

Bug: 73728783
Test: runtest frameworks-telephony
Change-Id: I5b5c4efa7e17594ce9397cf65e129147affe96bd
2018-03-08 07:39:32 -08:00
Ruijie Bai
99ca124212 Support enhanced call blocking function
- Add new carrier config to determine whether to enable
enhanced call blocking feature.
- Add new I/F to get/set the call blocking enabled status.
- Add new API to support checking whether a number is
block number with specific extras.

Bug: 28189985
Test: Manual
Change-Id: I7e2fdaecf4c93f3513d756e65bab8e2c2c0b7440
2018-03-08 07:29:20 -08:00
Jordan Liu
f66deb6c37 Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu" am: 36886b6f15
am: 0c345309bf

Change-Id: Ieed1d385da08c5e06ea2cafe076d84522af5cf8d
2018-03-08 01:20:27 +00:00
takeshi tanigawa
67bbf70022 Initialize mWcdmaRscpAsu and fix invalid value for asu
Initialize mWcdmaRscpAsu in the constructor.
Update an invalid value of asu from -1 to 255.

Test: auto - Passed SignalStrengthTest
Bug: 71329173
Change-Id: Ic6c03fa3c405377b23159038a1e23a45ba87239c
Merged-In: Ic6c03fa3c405377b23159038a1e23a45ba87239c
2018-03-07 16:21:40 -08:00
Jordan Liu
36886b6f15 Merge "Initialize mWcdmaRscpAsu and fix invalid value for asu" 2018-03-07 23:41:41 +00:00
yinxu
5e366e31ae Do not throw RuntimeException from stopScan().
Bug:73750871
Test: Unit Test
Change-Id: I640093627c103fe1d2fe5707e6854ba748789919
2018-03-07 13:49:51 -08:00
Nathan Harold
1a1dc60ff5 Merge changes from topics "pick-tdscdma", "wcdma-rscp" into pi-dev
* changes:
  Update SignalStrength to use ASU for TD-SDCMA
  Customize the WCDMA signal strength based on RSCP
2018-03-07 19:22:32 +00:00
yinxu
cd56112962 Merge "Address the API review comments." am: 322ff16301
am: 904826d293

Change-Id: I4de5c601e23004c934684d995bb916b654a42247
2018-03-07 19:15:01 +00:00
Treehugger Robot
322ff16301 Merge "Address the API review comments." 2018-03-07 17:40:20 +00:00
takeshi tanigawa
3803a24547 Initialize mWcdmaRscpAsu and fix invalid value for asu
Initialize mWcdmaRscpAsu in the constructor.
Update an invalid value of asu from -1 to 255.

Test: auto - Passed SignalStrengthTest
Bug: 71329173
Change-Id: Ic6c03fa3c405377b23159038a1e23a45ba87239c
2018-03-07 16:54:12 +09:00
nharold
8fa5af6003 Merge "Update SignalStrength to use ASU for TD-SDCMA" am: 4068e8e6ae
am: 132c80dff5

Change-Id: I3a810d4b28461a4dd680c5bfa5966bf7d525654c
2018-03-07 03:21:17 +00:00
Jordan Liu
199f911455 Merge "Customize the WCDMA signal strength based on RSCP" am: c2925aff38
am: e733d196dc

Change-Id: I98bf9c0fb4333abb5ed2f3e354f3d4ed416d240e
2018-03-06 21:04:00 +00:00
Nathan Harold
7fa886db6a Update SignalStrength to use ASU for TD-SDCMA
The HAL for Radio 1.2 uses -TD-SDCMA rather than
ASU RSCP for the signal strength for TD-SCDMA. This
change updates the HAL to use the new ASU-range
input.

Bug: 74202653
Test: runtest frameworks-telephony
Change-Id: Iab37ca19daf12179933cef580f248c3ef8258b98
Merged-In: Iab37ca19daf12179933cef580f248c3ef8258b98
(cherry picked from commit 31135514ec)
2018-03-06 12:11:57 -08:00
Tomita, Ryounosuke X
d41feee9ce Customize the WCDMA signal strength based on RSCP
Determines the the display level of WCDMA signal bar based on RSCP
according to carrier config.

Test: manual - Checked that the WCDMA signal bar thresholds can be
controlled by carrier config.
Test: auto - Passed SignalStrengthTest and ServiceStateTrackerTest
Bug: 71329173
Merged-In: Ib9e1c29fbe3553d1cc6695953be1c33daf260627
Change-Id: Ib9e1c29fbe3553d1cc6695953be1c33daf260627
(cherry picked from commit cbbc3424136bf75ef666d87bef1cea36f83600bf)
2018-03-06 12:11:27 -08:00
Nathan Harold
31135514ec Update SignalStrength to use ASU for TD-SDCMA
The HAL for Radio 1.2 uses -TD-SDCMA rather than
ASU RSCP for the signal strength for TD-SCDMA. This
change updates the HAL to use the new ASU-range
input.

Bug: 74202653
Test: runtest frameworks-telephony
Change-Id: Iab37ca19daf12179933cef580f248c3ef8258b98
2018-03-06 11:08:39 -08:00
Jordan Liu
c2925aff38 Merge "Customize the WCDMA signal strength based on RSCP" 2018-03-06 18:54:56 +00:00
Chen Xu
1f56d18fd1 Merge "API review: rename CarrierIdentification to Carrier id" am: f01600d5f9
am: ce7404744f

Change-Id: Iad12593f9e027052185f9efcb65a1983dda22a16
2018-03-06 01:00:36 +00:00
fionaxu
62bc747275 API review: rename CarrierIdentification to Carrier id
Bug: 73953797
Test: unit test
Change-Id: Id89c9100e8963a3cb890ebec347e4aabcd5fd4b8
(cherry picked from commit 4281d0ff57)
Merged-in: Id89c9100e8963a3cb890ebec347e4aabcd5fd4b8
2018-03-05 15:50:34 -08:00
Chen Xu
f01600d5f9 Merge "API review: rename CarrierIdentification to Carrier id" 2018-03-05 22:59:21 +00:00
Sandeep Gutta
9dc1a9c07a Telephony(MSIM): Default NW mode property for each slot
For dual SIM devices, add provision to configure different default
Network modes for each slot, using the existing system property to
configure this default network modes.

Bug: 28384694
Test: manual - Checked different default NW mode can be set
for each slot.
Change-Id: I72b11522cb51a425e28ddc407014387a20cb2cd7
2018-03-05 13:19:29 +00:00
Masaho Nishikawa
261f469a4f Merge "Add config to show an alert dialog for video charges" am: 1451124f86 am: 2c773d3f96
am: 513044b23a

Change-Id: I94af04cf0fca1dbcb6bb66cddcd473df22790f5f
2018-03-03 07:28:54 +00:00
Masaho Nishikawa
513044b23a Merge "Add config to show an alert dialog for video charges" am: 1451124f86
am: 2c773d3f96

Change-Id: If13158f209eda968f0fd50787679c957a3e5ea96
2018-03-03 06:51:01 +00:00
nharold
db999ba5f8 Merge changes from topics "cdma-null-island", "cdma-signal-strength" am: d5ba391425 am: 78f2c228d1
am: 062e101ffa

Change-Id: I4b31899f32b80062440b8d695fb668191924aee7
2018-03-03 05:29:00 +00:00
nharold
062e101ffa Merge changes from topics "cdma-null-island", "cdma-signal-strength" am: d5ba391425
am: 78f2c228d1

Change-Id: I4b821915c69aedd594747520186b2fb123d34b78
2018-03-03 05:13:16 +00:00
Treehugger Robot
1451124f86 Merge "Add config to show an alert dialog for video charges" 2018-03-03 03:30:19 +00:00
nharold
d5ba391425 Merge changes from topics "cdma-null-island", "cdma-signal-strength"
* changes:
  Set CDMA Location to Invalid if on Null Island
  Fix Range-Checking in CellSignalStrengthCdma
  Fix CDMA Range Checks for SignalStrength
2018-03-03 03:14:22 +00:00
nharold
082cfca292 Merge "Expose Carrier Name Override CarrierConfig Values" am: a60e42cc2d am: f0b3b84a13
am: 5bc9756f8b

Change-Id: I747e769a5d278e90fa880d9d26011c6d010fd95d
2018-03-03 02:57:41 +00:00
nharold
5bc9756f8b Merge "Expose Carrier Name Override CarrierConfig Values" am: a60e42cc2d
am: f0b3b84a13

Change-Id: I074b386070118f8cac6efe3100ae88c378fd1a5e
2018-03-03 02:49:41 +00:00
yinxu
1abe9b187c Address the API review comments.
Bug:73750871
Test: Unit Test
Change-Id: I8ebb617c819c7604957b3c086098ef5074d70f78
2018-03-02 17:21:36 -08:00
Cassie Han
b87a7a749c Merge "Expand use of 'Str' suffix in CellIdentity to 'String'" am: d622eacb9e am: 3bcb6da703
am: d210655d48

Change-Id: Ibc0862fb7ae1063cbee10415c4c21d7d4a835c51
2018-03-03 00:31:34 +00:00
Cassie Han
d210655d48 Merge "Expand use of 'Str' suffix in CellIdentity to 'String'" am: d622eacb9e
am: 3bcb6da703

Change-Id: If07c5a8d84933e8a353a77b39a1aa76f4a51a5bf
2018-03-03 00:15:26 +00:00
nharold
a60e42cc2d Merge "Expose Carrier Name Override CarrierConfig Values" 2018-03-03 00:11:29 +00:00