Commit Graph

6255 Commits

Author SHA1 Message Date
Jayachandran Chinnakkannu
4e36322240 Merge "Data stall intent definition" into pi-dev
am: 88dcad1aa4

Change-Id: Id1b549f662e574695c06d58dc533eafaa257eb3c
2018-04-23 17:13:38 -07:00
Jayachandran C
acc1ee9115 Data stall intent definition
Define a protected intent to notify the data stall recovery attempts.

Test: Manual
Bug: 77293796
Change-Id: Ic8dfb12662d53e896f9d0b60329e762ce9460ba6
2018-04-23 13:13:01 -07:00
Jack Yu
79f5b2e78b Merge "Set country code even when device is not registered on network" am: fc9bc10d69
am: ba7001c930

Change-Id: Id8b309a081996af590da42cbc73ded3c2c09b153
2018-04-23 11:28:31 -07:00
Jack Yu
d33f8a1e91 Set country code even when device is not registered on network
Extends the functionality of getNetworkCountryIso to support
no SIM/no service case. When no SIM/no service, it returns
the country code of nearby network (unregistered but cell info
is available to the device).

Test: Manual
Bug: 64335394
Merged-In: Ia32cbc9df9b9adf5d7c24c8b90be20063a94a514
Change-Id: Ia32cbc9df9b9adf5d7c24c8b90be20063a94a514
(cherry picked from commit ac36896f1a)
2018-04-22 14:19:59 -07:00
Jack Yu
30a65dfb4a Merge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev
am: 8f6568f908

Change-Id: I1ab715aa93609d653b689ef3570135d03c669cdf
2018-04-21 10:30:58 -07:00
Jack Yu
8f6568f908 Merge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev 2018-04-21 17:18:52 +00:00
Jack Yu
41f3a622e1 Merge "DO NOT MERGE - Set country code even when device is not registered on network" into pi-dev
am: 4755c56965

Change-Id: I0602070b32e29a044ea24e08ad5ced6bc23cb795
2018-04-20 18:37:36 -07:00
Jack Yu
4755c56965 Merge "DO NOT MERGE - Set country code even when device is not registered on network" into pi-dev 2018-04-21 01:22:51 +00:00
Jack Yu
1e9793f926 Fixed CTS CtsUsageStatsTestCases test cases
We used the current RAT to load different carrier configuration to
determine whether the connection of a certain APN type is metered or
not. When the device is switched to IWLAN, the existing default
APN connection on cellular will be marked as unmetered based on
the current logic. This logic will be refactored when IWLAN full mode
is supported in Q.

For the short term workaround for P, we'll just mark default APN as
metered when the device is on IWLAN.

Test: CtsUsageStatsTestCases
Bug: 74540336, 77504652
Change-Id: Ib098e80d2bfd10e74c0b0dacf2cf2f217a66f7e4
2018-04-20 16:55:25 -07:00
Jack Yu
65ee3064df DO NOT MERGE - Set country code even when device is not registered on network
Extends the functionality of getNetworkCountryIso to support
no SIM/no service case. When no SIM/no service, it returns
the country code of nearby network (unregistered but cell info
is available to the device).

Test: Manual
Bug: 64335394
Change-Id: Ic7c9e903cc497b7e43b557cb593407ff3e9305b5
2018-04-20 16:36:43 -07:00
Cassie Han
122a7b33ad Merge "Cherry-pick 'Fix a tiny bug in NetworkScanRequest'" 2018-04-19 19:23:58 +00:00
Cassie
91c5dc9a6a Cherry-pick 'Fix a tiny bug in NetworkScanRequest'
Bug: 77487847
Test: cts-tradefed run cts -m CtsCarrierApiTestCases --test android.carrierapi.cts.NetworkScanApiTest
Change-Id: Ic4b167cf4929a1bb86fa7e6768672a9288b96911
Merged-In: Ic4b167cf4929a1bb86fa7e6768672a9288b96911
2018-04-18 21:02:02 +00:00
Malcolm Chen
213dfef6c2 Merge "Add carrier config for partial sms raw message expiration." into pi-dev
am: 3d0ff90649

Change-Id: I2b9d6d58ab96264bbfac72ccde37fdf841b17373
2018-04-18 13:27:46 -07:00
TreeHugger Robot
3d0ff90649 Merge "Add carrier config for partial sms raw message expiration." into pi-dev 2018-04-18 20:15:16 +00:00
Shuo Qian
e116dcc57c Merge "Revert "Remove the OEM hook implementation and usage"" into pi-dev 2018-04-18 17:50:31 +00:00
Cassie
59cad0052d Merge "Fix a tiny bug in NetworkScanRequest" into pi-dev
am: 27cd1f7e20

Change-Id: I66eebeab2f4a3c3029a437fc1bd717cc745c6051
2018-04-18 10:05:44 -07:00
TreeHugger Robot
27cd1f7e20 Merge "Fix a tiny bug in NetworkScanRequest" into pi-dev 2018-04-18 16:52:34 +00:00
Shuo Qian
5a2d94e93b Merge "Revert "Remove the OEM hook implementation and usage"" am: e7a099149f
am: 1b5c97ced4

Change-Id: I5b86e206dd777c331d2a28c74472c328e2cc55f9
2018-04-18 02:20:21 -07:00
sqian
7cfc5cda2f Revert "Remove the OEM hook implementation and usage"
This reverts commit 2635a89c8c.

Bug: 34344851
Test: Treehugger
Change-Id: I96697165fd75054de42f007c16ca294ed6725708
Merged-In: I96697165fd75054de42f007c16ca294ed6725708
(cherry picked from commit 00b89515a5)
2018-04-17 18:46:46 -07:00
sqian
00b89515a5 Revert "Remove the OEM hook implementation and usage"
This reverts commit 2635a89c8c.

Bug: 34344851
Change-Id: I96697165fd75054de42f007c16ca294ed6725708
2018-04-17 11:55:30 -07:00
Cassie
5f460b6837 Fix a tiny bug in NetworkScanRequest
Bug: 77487847
Test: cts-tradefed run cts -m CtsCarrierApiTestCases --test android.carrierapi.cts.NetworkScanApiTest
Change-Id: Ic4b167cf4929a1bb86fa7e6768672a9288b96911
2018-04-17 09:20:08 -07:00
Malcolm Chen
e8fdd3b279 Merge "Fix UiccSlotInfo equals method." into pi-dev
am: 82c0b73e98

Change-Id: Ide54ab7f3b29b7bde846aa292f121bef0baa13cb
2018-04-16 17:39:13 -07:00
TreeHugger Robot
82c0b73e98 Merge "Fix UiccSlotInfo equals method." into pi-dev 2018-04-16 23:56:06 +00:00
Malcolm Chen
b56234fc9b Add carrier config for partial sms raw message expiration.
Everytime at boot-up, we check Sms raw table, and delete the rows
with any partial message that is too old. By default the expiration
age is 30 days, but we want to make it configurable.

Bug: 77910620
Test: sanity-test
Change-Id: Ibd2374324be5513cbd09c04889e7b96051c26fb4
2018-04-16 15:20:38 -07:00
Jiuyu Sun
99852e4a14 Merge "Fix typos." into pi-dev
am: 2135c52b4d

Change-Id: I2f700355d8f4476a875e4b95df17e7441b0332b4
2018-04-16 14:20:02 -07:00
Jiuyu Sun
2135c52b4d Merge "Fix typos." into pi-dev 2018-04-16 20:48:52 +00:00
Malcolm Chen
5ea8ba5c0c Fix UiccSlotInfo equals method.
In UiccSlotInfo#equals method, it's comparing Strings incorrectly.

Bug: 78033760
Test: GTS test
Change-Id: I4fed0a70ee0ef06bcf7a1af544e6aebced31d9c2
2018-04-16 12:50:13 -07:00
Brad Ebinger
7419a7fb4c Merge "Update Docs to clarify using a Message across IPC" into pi-dev
am: 4558c77d5d

Change-Id: Ie1a0be63d26136f14cd30c354b889ec0311cc7ee
2018-04-14 17:29:07 -07:00
Brad Ebinger
5e5e0760de Merge "Adds a private field to parceled data." into pi-dev
am: 63a6bc6794

Change-Id: Ib87a7af0654cc1ec0db052d8ee72f4c74c0aea04
2018-04-14 17:25:44 -07:00
Brad Ebinger
4558c77d5d Merge "Update Docs to clarify using a Message across IPC" into pi-dev 2018-04-13 21:35:13 +00:00
Brad Ebinger
63a6bc6794 Merge "Adds a private field to parceled data." into pi-dev 2018-04-13 21:34:37 +00:00
Nathan Harold
b954b207d0 Merge "Further Clarify Scope of KEY_CARRIER_NAME_OVERRIDE" into pi-dev
am: ade0186795

Change-Id: I94821c8390473ea96c2c8f9a674e736587807477
2018-04-12 16:36:10 -07:00
Jeff Sharkey
d6e49befda Merge "Remove poorly defined notification APIs." into pi-dev
am: 36efb71088

Change-Id: I45a479a7baeaea642e3ceaef1448b0527b37bb34
2018-04-12 16:01:35 -07:00
TreeHugger Robot
ade0186795 Merge "Further Clarify Scope of KEY_CARRIER_NAME_OVERRIDE" into pi-dev 2018-04-12 22:34:16 +00:00
fionaxu
780b62b3b5 A test api to override carrier information
This API should only be used for testing purpose e.g., CTS/GTS/SL4A
By overriding carrier information, we could force a particular carrier id,
carrier's config, but also any country or carrier overlays to be loaded
when using a test SIM with a call box.

Bug: 72332597
Test: atest CtsTelephonyTestCases:CarrierIdentificationTest

Change-Id: Icd5804375ef9334c9f6c382cc6a774b9c9c15213
(cherry picked from commit 5b509b81a0)
Merged-in: 5b509b81a0
2018-04-12 22:19:15 +00:00
Hall Liu
bd6bf7cbe8 Merge "Make setServiceId a TestApi" 2018-04-12 20:41:44 +00:00
Jeff Sharkey
1df7ee5757 Remove poorly defined notification APIs.
They were rushed in at the last second, and feedback from stakeholders
reveals they're not ready for prime time.

Bug: 77851691
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: I96f6c80610627878a29543b345419924774a60e0
2018-04-12 18:27:08 +00:00
Brad Ebinger
af6a410792 Adds a private field to parceled data.
Bug: 77957465
Test: Manual/GTS
Change-Id: I321b667f9186feaf2579bd4dd27ebf67fc2e0d52
2018-04-12 16:16:30 +00:00
Wale Ogunwale
b129fadef8 Merge "Clean up APIs before declaring API 28." into pi-dev
am: fb10508cfa

Change-Id: Ic20ef429dbae1c9c5702094e1203838517b3ec38
2018-04-12 05:33:09 -07:00
Wale Ogunwale
fb10508cfa Merge "Clean up APIs before declaring API 28." into pi-dev 2018-04-12 12:19:56 +00:00
Chen Xu
5327a38956 Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into pi-dev
am: 1be0392273

Change-Id: I89b46de2f70ca8a33eb57bc3ddf7c4a8c41d1034
2018-04-11 18:30:01 -07:00
Hall Liu
beb880f724 Make setServiceId a TestApi
Bug: 77152869
Test: CTS
Change-Id: I26f60b48865953971de02c50db48e0ff66f4e2a0
Merged-In: I26f60b48865953971de02c50db48e0ff66f4e2a0
2018-04-11 18:23:30 -07:00
fionaxu
4801a078cd Change getGroupIdLevel1() to use subId from TelephonyManager Instance
Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec
(cherry picked from commit 272e8cf87e)
Merged-in: 272e8cf87e
2018-04-11 18:10:12 -07:00
Chen Xu
1be0392273 Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into pi-dev 2018-04-12 01:02:21 +00:00
Jeff Sharkey
568a972669 Merge "APIs to disable data usage notifications." into pi-dev
am: f0b9fbebc0

Change-Id: I7b5bd380f00b6e94da79f43b354ecfc52df3f8e4
2018-04-11 16:14:26 -07:00
TreeHugger Robot
f0b9fbebc0 Merge "APIs to disable data usage notifications." into pi-dev 2018-04-11 23:05:03 +00:00
Jeff Sharkey
0a5570d49d APIs to disable data usage notifications.
Certain carriers have requested the ability to disable the warning,
limit, and rapid data usage notifications shown by the OS, so give
them that ability on a per-subId basis.  (The notifications are still
enabled by default.)

Unhide NOT_CONGESTED to match setSubscriptionOverrideCongested().

Fix bug in getPrimarySubscriptionPlanLocked() to find the first
currently active plan; the first non-recurring plan may be no longer
active.  Fix bug in SubscriptionPlan which allowed invalid negative
or zero-length Period objects.

Bug: 77851691, 77506882, 77662747
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Test: atest android.telephony.cts.SubscriptionManagerTest
Exempt-From-Owner-Approval: SDK deadline, responding to API feedback
Change-Id: Ib6e6dbadd5022937c3f0661ab4b66aa617f0b5af
2018-04-11 22:07:40 +00:00
fionaxu
272e8cf87e Change getGroupIdLevel1() to use subId from TelephonyManager Instance
Bug: 77905912
Test: Build
Change-Id: I720971ce115147b994e27611a0dcf052989180ec
2018-04-11 21:26:48 +00:00
Brad Ebinger
13ac0a15e1 Update Docs to clarify using a Message across IPC
When using Message across IPC, the message must be sent
with a Messenger. Update Docs to reflect this.

Bug: 77870347
Test: Telephony Unit Tests
Change-Id: I27977a13f7ccb6875b5fdb7eb6c6836a84166eeb
2018-04-11 13:46:59 -07:00
Hall Liu
035b4827ca Merge "Make setServiceId a TestApi" into pi-dev
am: d41e669fca

Change-Id: I0ca985c9741b3f710c636595b7eb9b2b326e67fb
2018-04-11 13:30:18 -07:00