Commit Graph

3348 Commits

Author SHA1 Message Date
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
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
Treehugger Robot
7ac5deaf38 Merge "Do not throw RuntimeException from stopScan()." 2018-03-08 19:41:20 +00: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
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
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
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
Chen Xu
f01600d5f9 Merge "API review: rename CarrierIdentification to Carrier id" 2018-03-05 22:59:21 +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
Holly Jiuyu Sun
5f01f42723 Merge "Add result code for eUICC card not found." am: 45277c7aca
am: 32c5a97aec

Change-Id: I43b81392646b3f2463a3df37eecbf4ffa7a653d0
2018-03-02 23:51:17 +00:00
Tomita, Ryounosuke X
f99e1c8e76 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
Change-Id: Ib9e1c29fbe3553d1cc6695953be1c33daf260627
2018-03-02 15:35:08 -08:00
fionaxu
4281d0ff57 API review: rename CarrierIdentification to Carrier id
Bug: 73953797
Test: unit test
Change-Id: Id89c9100e8963a3cb890ebec347e4aabcd5fd4b8
2018-03-02 15:24:49 -08:00
Cassie Han
d622eacb9e Merge "Expand use of 'Str' suffix in CellIdentity to 'String'" 2018-03-02 22:15:56 +00:00
Holly Jiuyu Sun
45277c7aca Merge "Add result code for eUICC card not found." 2018-03-02 19:01:41 +00:00
Nathan Harold
8366bcb8b8 Expose Carrier Name Override CarrierConfig Values
These CarrierConfig values are needed for a
CC app to override the SPN dynamically. Since
Carrier names are very complicated, it's extra
important that these values be exposed so that we
can properly enforce correct behavior through CTS.

Bug: 73734601
Test: compilation (no functional change)
Change-Id: I26dab1bd32d1d5273f707a37026cffca7fd639a3
2018-03-01 19:10:28 -08:00
Hall Liu
5395a3cec7 Merge "Remove cell info from legacy apps without location on" am: 6b0e7370e2 am: 1c1b58432b
am: 85f47b72b8

Change-Id: I4bb4fcb6549772ced86030d0ed8cdc3d0ef0eacc
2018-03-02 02:43:46 +00:00
Hall Liu
85f47b72b8 Merge "Remove cell info from legacy apps without location on" am: 6b0e7370e2
am: 1c1b58432b

Change-Id: I0b6e2889788123f7b73de697098f44e324587477
2018-03-02 02:29:06 +00:00
Hall Liu
6b0e7370e2 Merge "Remove cell info from legacy apps without location on" 2018-03-02 00:49:33 +00:00
Jack Yu
1b7ce444f2 Merge "Added indication update mode support" am: 03664c94ae
am: 3ab2a5bced

Change-Id: I82fc7c5e7b439dd202c48dddbb1e788612aa613c
2018-03-01 21:34:24 +00:00
Holly Jiuyu Sun
e902719b93 Add result code for eUICC card not found.
Bug: 38206971
Test: test on phone
Merged-In: Ia783fe68389d950b664ad312d98c7e3aa200b471
Change-Id: Ia783fe68389d950b664ad312d98c7e3aa200b471
2018-03-01 13:00:30 -08:00
Masaho Nishikawa
4c7511caaf Add config to show an alert dialog for video charges
Add config to show an alert dialog for video charges when user starts
a video call. The default value is false.

Test: manual - Verified that a warning dialog about charges when a
video call is started if KEY_SHOW_VIDEO_CALL_CHARGES_ALERT_DIALOG_BOOL
is true.

Bug: 67832837
Test: manual
Change-Id: I11ab3ea9a8971a9d76b47714638f1fe0a9c980c2
2018-03-01 12:14:57 -08:00
Jack Yu
03664c94ae Merge "Added indication update mode support" 2018-03-01 20:04:29 +00:00
Jiuyu Sun
595182423f Merge "Add result code for eUICC card not found." 2018-03-01 19:21:32 +00:00
Jack Yu
7ae19636ca Added indication update mode support
Adde the indication update mode support so that a system
component can control the behavior of indication update. This
will be used by the bluetooth stack when some BT devices such like
carkit is connected, modem will continue update the signal strength
even when the screen is off.

Test: Manual
Bug: 65112388
Merged-In: I4bb4894eaaba401f655e5dc25138275f5e8498e1
Change-Id: I4bb4894eaaba401f655e5dc25138275f5e8498e1
(cherry picked from commit 1a1c35750b)
2018-03-01 10:37:43 -08:00
Eric Schwarzenbach
180842398f Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff am: c870528371
am: 7771e91a99

Change-Id: Ia0a69386981e2984472e9153c161cca7bfccc9dd
2018-03-01 05:57:20 +00:00
Eric Schwarzenbach
7771e91a99 Merge "Plumb PhysicalChannelConfig all the way up." am: 44d13875ff
am: c870528371

Change-Id: I2b57a55e8bb36ba24578c00e2afaebfc21e0e4c3
2018-03-01 05:47:20 +00:00
Treehugger Robot
44d13875ff Merge "Plumb PhysicalChannelConfig all the way up." 2018-03-01 03:48:32 +00:00
Cassie
d062c3221a Expand use of 'Str' suffix in CellIdentity to 'String'
Expand use of 'Str' suffix in CellIdentity to 'String' to match general
usage across Android according to the API Review.

Bug: 73751308
Test: Unit test
Change-Id: Ib25a06056832be610ff1fb9c025467259eb543ed
2018-02-28 11:45:29 -08:00
fionaxu
9af710c587 Merge "Don't throw exception if phone process is dead for carrier ID APIs" am: 8c32954906
am: 0713fcf66d

Change-Id: Iacf464a898da538795152135b0c40cd648bbdf7d
2018-02-28 05:03:13 +00:00