Commit Graph

3477 Commits

Author SHA1 Message Date
Shuo Qian
8fa0feaa48 Merge "Restore the OEM hook implementation and usage" into pi-dev 2018-04-27 01:24:18 +00:00
Gil O'Neil
3e6ceafbaa Merge "Added test API to refresh the UICC Profile" into pi-dev 2018-04-26 23:20:41 +00:00
Nathan Harold
c9bad6ef7a Use Empty List for Default PhysicalChannelConfig
If a caller registers to listen() for a physical
channel config message, the beavior is to immediately
trigger an unsol. In the case that a list hasn't been
sent from the modem, we should send a default empty
list rather than a null. This is the preferred
approach for Android APIs because it reduces the
reliance on null checks by callers.

Bug: 78536847
Test: ¯\_(ツ)_/¯
Change-Id: I9e59195f5d64264ab473b2fd7e4f7eb6446c4829
2018-04-25 18:58:32 -07:00
goneil
f6c6e8efa7 Added test API to refresh the UICC Profile
Bug: 74016670
Test: GTS tests - vendor/xts/gts-tests/hostsidetests/simappdialog
Change-Id: I8f8ffdad8666d523172b035d24b96278d4d1a1ee
2018-04-25 18:19:42 -07:00
Shuo Qian
066e865298 Restore the OEM hook implementation and usage
The current plan is to keep the OEM hook implementation in the 
framework, this is for legacy device and old device upgrading 
(per b/78098059).

For P launching device, the OEM hook service is removed in hal, 
so the OEM hook api in framework should return something dummy, and 
prevent infinite loop to get service, but these parts should be done
in seperate CLs after this restore CL is merged.

This reverts commit cbfa614f60.

Bug: 34344851
Test: pass Treehugger tests; pass cuttlefish test RilE2eTests
Change-Id: I1f2117331a7f846b192c5f956f3841d58cb8154b
2018-04-25 23:34:50 +00:00
Shuo Qian
c4c7c19b67 Merge "Revert "Revert "Remove the OEM hook implementation and usage""" into pi-dev 2018-04-24 23:54:10 +00:00
Robert Greenwalt
cbfa614f60 Revert "Revert "Remove the OEM hook implementation and usage""
This reverts commit 7cfc5cda2f.

Reason for revert: Causes a critical error on Cuttlefish.

Bug: 78299964

Change-Id: Icb06aea5eb42fd156a967c4d4e39aefc51d91cf4
2018-04-24 23:48:26 +00: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
8f6568f908 Merge "Fixed CTS CtsUsageStatsTestCases test cases" into pi-dev 2018-04-21 17:18:52 +00: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
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
TreeHugger Robot
27cd1f7e20 Merge "Fix a tiny bug in NetworkScanRequest" into pi-dev 2018-04-18 16:52:34 +00: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
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
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
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
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
TreeHugger Robot
ade0186795 Merge "Further Clarify Scope of KEY_CARRIER_NAME_OVERRIDE" into pi-dev 2018-04-12 22:34:16 +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
fb10508cfa Merge "Clean up APIs before declaring API 28." into pi-dev 2018-04-12 12:19:56 +00:00
Chen Xu
1be0392273 Merge "Change getGroupIdLevel1() to use subId from TelephonyManager Instance" into pi-dev 2018-04-12 01:02:21 +00: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
d41e669fca Merge "Make setServiceId a TestApi" into pi-dev 2018-04-11 20:21:48 +00:00
Jeff Sharkey
3990ee1c9f Clean up APIs before declaring API 28.
As part of finalizing an SDK, we need to ensure that no new APIs are
marked @Deprecated, since they're typically cleanup that someone
forgot to finish.

Someone forgot to replace Slice.getTimestamp() with Slice.getLong().

Bug: 77588754
Test: builds, boots
Exempt-From-Owner-Approval: SDK finalization
Change-Id: Ic0ec91a43d161a69c1e840c42046ad500b7aeca0
2018-04-11 13:49:21 -06:00
TreeHugger Robot
10fb6582eb Merge "DO NOT MERGE - Hide IWLAN system API" into pi-dev 2018-04-11 18:36:31 +00:00
Jack Yu
a7025bae0a DO NOT MERGE - Hide IWLAN system API
Hide IWLAN system API for P. Will expose those APIs when IWLAN
full mode support is in place.

Test: Telephony sanity tests
Bug: 64132030
Change-Id: Ic56a04538fc532a7326c8a9234182899d52f15c1
2018-04-10 17:15:31 -07:00
Hall Liu
07f1843e28 Make setServiceId a TestApi
Bug: 77152869
Test: CTS
Change-Id: I26f60b48865953971de02c50db48e0ff66f4e2a0
2018-04-10 21:11:27 +00:00
Holly Jiuyu Sun
7b649288b1 Fix typos.
switchSlots() accepts an array which should be the size of the number of
physical slot.
Also fix a typo in EuiccCardManager.

Bug: 77858827
Test: test on phone
Change-Id: If95bc5120df68ce23dc88e60df83542ac817c6e5
2018-04-10 11:25:31 -07:00
Jordan Liu
dd20bc3448 Update getIccAuthentication documentation
Explain what it means if the function returns null. This is based on the
spec at TS 31.102 section 7.3.1.

Bug: 74392381
Test: manual
Change-Id: Ic84d94589431109079a866027953ab9dbef103b8
2018-04-10 09:27:47 -07:00
Jeff Sharkey
5e0d360411 Merge "API council requested tweaks to SubscriptionPlan." into pi-dev 2018-04-09 23:20:43 +00:00
Brad Ebinger
cb7b92697a Merge "Add GTS test APIs for testing ImsService" into pi-dev 2018-04-09 22:40:13 +00:00
Xiangyu/Malcolm Chen
50c069f7c1 Merge "Marking some hidden API as TestApi." into pi-dev 2018-04-06 18:32:12 +00:00
Nathan Harold
178020a2f8 Further Clarify Scope of KEY_CARRIER_NAME_OVERRIDE
There is still confusion about the scope of the
KEY_CARRIER_NAME_OVERRIDE. This CL further clarifies
that the carrier, for purposes of this string, is the
service provider. Thus, the CARRIER_NAME_OVERRIDE will
still be subject to SPN display rules.

Note: to use this override in scenarios such as roaming
where the display rules may not choose the name of the
home operator (and thus not choose this override), a
service provider may choose to use other flags such as
KEY_FORCE_HOME_NETWORK_BOOL and
KEY_SPN_DISPLAY_RULE_USE_ROAMING_FROM_SERVICE_STATE_BOOL
to achieve the desired display behavior.

Bug: 77461054
Test: none (docstring-only change)
Change-Id: Id866df7ef9ce593de1f9d31d2556af4bfc766a8e
2018-04-06 11:27:40 -07:00
TreeHugger Robot
a6c06bdf5a Merge "Persistence of LPP profile" into pi-dev 2018-04-06 03:48:14 +00:00
TreeHugger Robot
271ba383b6 Merge "Unhide constructors of DataService and NetworkService." into pi-dev 2018-04-06 00:52:32 +00:00
Malcolm Chen
83f59c61dd Unhide constructors of DataService and NetworkService.
DataService and NetworkService are System level classes. We shouldn't
hide their constructors otherwise their System level sub-class
can't be instantiated properly.

Test: gts
Bug: 77531655
Change-Id: I1a58b4857dbcf939ac124e20eb0a801ad5a9b597
2018-04-05 15:02:17 -07:00
Siddharth Ray
9943c7b149 Persistence of LPP profile
LPP profile will persist by default when SIM is removed.
Persistence will be lost once a different carrier's SIM is inserted.

BUG:64897529
Change-Id: I970599bed27d9278fb2732db65a1ce393afe93fe
2018-04-04 17:07:35 -07:00
Jeff Sharkey
0fc6d03b62 API council requested tweaks to SubscriptionPlan.
Return new shiny Range<> object instead of Pair<>.  Tell developers
what permission to check on refresh broadcast.  Describe what
exceptions might be thrown, and that an empty list is okay.

Allow creation of plans with richer Period object, instead of forcing
them into rigid week or day options.

Protect SubscriptionPlan broadcast.

Test: atest android.util.RecurrenceRuleTest
Test: atest com.android.server.NetworkPolicyManagerServiceTest
Bug: 74945820
Change-Id: I7e555798e0cfaa214ca93d9df627c6443fc5d986
2018-04-04 16:06:27 -06:00
Pankaj Kanwar
d40c477b2e Merge "Revert "Change KEY_CARRIER_VOLTE_TTY_SUPPORTED_BOOL to false"" into pi-dev 2018-04-04 01:21:17 +00:00
Malcolm Chen
a1d5e9fb97 Marking some hidden API as TestApi.
Bug: 77488839
Test: cts
Change-Id: Id4adaa7d844ef2b0d54e54a450d326bbebc1e12d
2018-04-03 17:44:41 -07:00