Commit Graph

5499 Commits

Author SHA1 Message Date
Jeff Sharkey
9252b34065 Use data plans for better job scheduling.
Now that we have data plan information from the carrier, we can start
using it to influence when we schedule jobs.  As a first pass
algorithm:

-- If the network is congested, and a job is less than 50% through
its runnable window, then we'll defer it for awhile.
-- If the network has a surplus of data, we'll consider using some
of it to improve the user experience by running prefetching jobs.

Provider APIs for carrier apps to override their connections to be
temporarily marked as either "unmetered" or "congested", along with
automatic timeouts if desired.

Flag for developers to indicate which jobs will have a material
positive impact on end users.  (We don't want to promote jobs that
are simply doing logs upload; for example.)  Glue code to quickly
return targetSdk of a specific package.

More tweaking to the exact algorithms will come in future CLs.

Test: bit FrameworksServicesTests:com.android.server.job.
Bug: 64133169
Change-Id: Iabb9f90a7a65958ad648b091edec378fc3bf785a
2018-01-19 15:50:12 +09:00
TreeHugger Robot
1ebcf6101d Merge "Added new SIM state related broadcasts." 2018-01-19 02:32:46 +00:00
Mohamed Abdalkader
c5cc226f9e Merge "Move Sms API to proper MMTelFeature class" 2018-01-18 22:51:27 +00:00
Amit Mahajan
052e1e2941 Added new SIM state related broadcasts.
Test: Basic telephony sanity and unit tests
Bug: 64131518
Change-Id: Ie3d157e79a7040c161b9038c875a4a4f49d535ff
2018-01-18 14:38:21 -08:00
Robin Lee
eaf4680cb0 Don't bind netpolicy right away from batterystats
batteryservice is a 'core' service
netpolicy is an 'other' service

Trying to bind to it straight away fails and leads to a series of
scary Log.wtf messages during boot.

Bug: 72120141
Test: adb logcat -b all
Change-Id: Iad85eaa4b0ec48eb572c22028aca8bd7847fb678
2018-01-18 14:42:42 +01:00
Holly Jiuyu Sun
5736685560 Merge "Add APIs to EuiccCardManager." am: a5bc474e2c am: f07319a6df
am: beacd5e4fa

Change-Id: I7aa42d89c69911137a86b86ee59463efe46a81c3
2018-01-18 04:28:28 +00:00
Holly Jiuyu Sun
beacd5e4fa Merge "Add APIs to EuiccCardManager." am: a5bc474e2c
am: f07319a6df

Change-Id: I71b5ea764f306a8a852f08a99f6a7247109e3511
2018-01-18 04:14:54 +00:00
Holly Jiuyu Sun
bbc858006f Add APIs to EuiccCardManager.
The CL contains parts of the EuiccCard APIs. getEid() is sync. All the
other APIs are async.
Move ResetOptions from EuiccCard to EuiccCardManager.
The other APIs will be added in a follow-up CL.

Bug: 38206971
Test: test on phone
Change-Id: Iba098ee779b8ea4e244e0e4cf7318139666cc94b
2018-01-17 16:38:42 -08:00
Holly Jiuyu Sun
d53734184a Merge "Add APIs to EuiccCardManager and EuiccCardController." am: 0797f4be58 am: f09db036e5
am: 56a8d9ad4f

Change-Id: I02779540eaaf2ad934f5190c88296547c430df1a
2018-01-17 23:36:27 +00:00
Jack Yu
eb76f67935 Merge "Added data service interface" am: 3965e3bbc6 am: 5f12e2c76d
am: d3a8971bac

Change-Id: I6f8d26c56c1d709aa1c53ef49a133deca7555c7e
2018-01-17 23:31:40 +00:00
Holly Jiuyu Sun
56a8d9ad4f Merge "Add APIs to EuiccCardManager and EuiccCardController." am: 0797f4be58
am: f09db036e5

Change-Id: Ifcd39da6aafb4cd1e0b6e9e1baa38342a590fb91
2018-01-17 23:25:13 +00:00
Jack Yu
d3a8971bac Merge "Added data service interface" am: 3965e3bbc6
am: 5f12e2c76d

Change-Id: Iac4b6e1b86cdfa2e3285a086220b7c7aa921d7ff
2018-01-17 23:18:21 +00:00
yuemingw
9549cc7040 Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants." am: b760295764 am: 10f60a740f
am: 0315d12976

Change-Id: I0510b82c525d3dd6b577ece470ba3e82e6b7568e
2018-01-17 23:14:19 +00:00
Brad Ebinger
7f47f8e957 Merge "Integrate IMS Registration API" am: 1f00565433
am: f4d3a4d110

Change-Id: I19e812368d0afd5bd7934b4e3a2aa575d0c1d3a3
2018-01-17 23:13:46 +00:00
yuemingw
0315d12976 Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants." am: b760295764
am: 10f60a740f

Change-Id: I7e00f153a147c906fe853c1f98e492a0c381850a
2018-01-17 23:05:16 +00:00
Holly Jiuyu Sun
0797f4be58 Merge "Add APIs to EuiccCardManager and EuiccCardController." 2018-01-17 22:26:58 +00:00
Jack Yu
3965e3bbc6 Merge "Added data service interface" 2018-01-17 22:12:29 +00:00
Mohamed Abdalkader
8d7b060b40 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
Change-Id: Iec4bbd07a67502dbbfb2142a7bc95f51be0cb377
2018-01-17 13:52:04 -08:00
Chen Xu
ea5e2ad900 Merge "new carrier id APIs" am: 3d23b90874
am: 7537309843

Change-Id: I8b64968ddb59304543eee89eb1e2dcb4d66517e3
2018-01-17 20:49:04 +00:00
Brad Ebinger
1f00565433 Merge "Integrate IMS Registration API" 2018-01-17 20:29:54 +00:00
Treehugger Robot
b760295764 Merge "Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants." 2018-01-17 19:50:40 +00:00
Chen Xu
3d23b90874 Merge "new carrier id APIs" 2018-01-17 19:09:34 +00:00
Holly Jiuyu Sun
fb1c78405e Add APIs to EuiccCardManager and EuiccCardController.
Move CancelReason from EuiccCard to EuiccCardManager.
part 2.

Bug: 38206971
Test: test on phone
Change-Id: Iab61be59b7130a5336dffbc965eefefcfa3eccf6
2018-01-17 10:38:15 -08:00
Jack Yu
ffcda5c10b Added data service interface
The interface for mobile data service. This is the base class
for vendor or first party data service provider to implement
the data service for cellular or IWLAN data support.

Test: Manual
bug: 64132030
Change-Id: I3e5f48b88905f4533cac60975802d4da3746e7f8
2018-01-17 09:51:30 -08:00
fionaxu
f4a7659967 new carrier id APIs
1. New telephony APIs to getCurrentCarrierId
and getCurrentCarrierName
2. New broadcast intent to notify carrier id changed

Bug: 64131637
Test: Build
Change-Id: I9a240ba7df313ad701f98bb3982f29c3d5317da8
(cherry picked from commit fff6f59a63)
Merged-in: I9a240ba7df313ad701f98bb3982f29c3d5317da8
2018-01-17 17:08:08 +00:00
yuemingw
4c0065f392 Add URL_DPC, URL_FILTERED and URL_ENFORCE_MANAGED as constants.
Test: manual
Bug: 68208245
Change-Id: I9416526f4a6e014dae66a936d6d1eb60309ef8ab
2018-01-17 10:56:59 +00:00
nharold
1616213808 Merge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a am: 03dafac495
am: 48306e0a06

Change-Id: I6c73af383295d0c53e2b3451d61cfccb1ba2a441
2018-01-17 07:07:54 +00:00
nharold
48306e0a06 Merge "Update documentation for KEY_CARRIER_NAME_STRING" am: fa6187510a
am: 03dafac495

Change-Id: I3c0e13153a347e6ef79cfee9f00a6ee6694425d9
2018-01-17 06:59:39 +00:00
nharold
fa6187510a Merge "Update documentation for KEY_CARRIER_NAME_STRING" 2018-01-17 03:39:44 +00:00
Pankaj Kanwar
03863ba526 Merge "Address IMSI privacy issues." 2018-01-16 20:57:07 +00:00
Brad Ebinger
f0bc082a2c Integrate IMS Registration API
Integrates the new IMS Registration API into the framework
and add two APIs for feature parity.

1) Moves ImsRegistrationImplBase to the android.telephony.ims
namespace
2) Expose ImsRegistration AIDL in TelephonyManager as hidden
API.
3) Adds onVoicemailCountUpdate and
onSubscriberAssociatedUriChanged APIs for feature parity.

Bug: 63987047
Test: Telephony unit tests, manual IMS tests
Merged-In: I51a8ae5cf58b81708c21adc1b26a9eb59f6280fd
Change-Id: I51a8ae5cf58b81708c21adc1b26a9eb59f6280fd
2018-01-16 09:43:47 -08:00
Brad Ebinger
cc90cf002b Merge "Integrate IMS Registration API" 2018-01-16 17:30:54 +00:00
Brad Ebinger
1fb6121035 Integrate IMS Registration API
Integrates the new IMS Registration API into the framework
and add two APIs for feature parity.

1) Moves ImsRegistrationImplBase to the android.telephony.ims
namespace
2) Expose ImsRegistration AIDL in TelephonyManager as hidden
API.
3) Adds onVoicemailCountUpdate and
onSubscriberAssociatedUriChanged APIs for feature parity.

Bug: 63987047
Test: Telephony unit tests, manual IMS tests
Change-Id: I51a8ae5cf58b81708c21adc1b26a9eb59f6280fd
2018-01-15 14:44:44 -08:00
pkanwar
af9eafbb8a Address IMSI privacy issues.
Added method resetCarrierKeysForImsiEncryption
to allow for keys to be reset.

Bug: 35606429
Test: manual
Change-Id: Id2e92917b50fa2163b2bab112df6e80b5e9c5795
2018-01-15 11:06:34 -08:00
Nathan Harold
baaa68d141 Update documentation for KEY_CARRIER_NAME_STRING
The documentation for KEY_CARRIER_NAME_STRING was out
of date; documentation updated to support the additional
use case of "fallback" carrier name when SPN is
unavailable.

Bug: 71882065
Test: compilation (docstring-only change)
Change-Id: I8e6a44358f8b18384c3c6e3cc0964e94c2484a11
2018-01-15 10:48:00 -08:00
zxuan
788df35b06 Merge "Add the user mobile data state into PhoneStateListener so that applications can listen to the change of the user mobile data state." am: 895148087b am: 5cea30c4ec
am: 78d54b01df

Change-Id: I798433851c10c7dc252d8773e6bbf1d3608ce66d
2018-01-13 07:06:17 +00:00
zxuan
78d54b01df Merge "Add the user mobile data state into PhoneStateListener so that applications can listen to the change of the user mobile data state." am: 895148087b
am: 5cea30c4ec

Change-Id: Ife2ac4b12d698f6db09bb3194eaea6994357828d
2018-01-13 05:55:22 +00:00
Treehugger Robot
895148087b Merge "Add the user mobile data state into PhoneStateListener so that applications can listen to the change of the user mobile data state." 2018-01-13 04:09:42 +00:00
Jack Yu
25993fc579 Merge "Used LinkAddress insteaad of InterfaceAddress" am: 277c7d248c
am: bd681cab22

Change-Id: Ic683f7fcc854e0e44e145da1fafc58f76f580637
2018-01-13 03:32:58 +00:00
Treehugger Robot
277c7d248c Merge "Used LinkAddress insteaad of InterfaceAddress" 2018-01-13 01:42:52 +00:00
Mohamed Abdalkader
2c941f8460 Merge "Add unique id for sms APIs to be able to trigger correct smstracker" 2018-01-13 00:32:17 +00:00
TreeHugger Robot
480ed142df Merge "Used LinkAddress insteaad of InterfaceAddress" 2018-01-13 00:21:28 +00:00
Hall Liu
4ba6ba6cb2 Merge "Use proper classloader when reading from parcel" am: d3cb6380a4 am: 03a515aed4
am: ff63c83237

Change-Id: If91f694b4f9c396e118dcf47ebaa480ff4cd44d0
2018-01-12 23:11:03 +00:00
Hall Liu
ff63c83237 Merge "Use proper classloader when reading from parcel" am: d3cb6380a4
am: 03a515aed4

Change-Id: I65070de075e8d09512d771c805c82043f04b3275
2018-01-12 23:01:16 +00:00
TreeHugger Robot
de25827747 Merge "Add target package to VisualVoicemailFilterSettings." 2018-01-12 21:32:55 +00:00
Hall Liu
d3cb6380a4 Merge "Use proper classloader when reading from parcel" 2018-01-12 20:56:36 +00:00
Mohamed Abdalkader
ff677ee0b0 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

Change-Id: Id19f854e2c48649db8f2031ee4f49cdac331451c
2018-01-12 12:26:03 -08:00
Holly Jiuyu Sun
eb171a357e Merge "Add dependencies of EuiccCard." am: 90b4e47d94 am: 4f217d740a
am: e03f92daaf

Change-Id: Ibc22bc94851e4faf6066f44baebaf2da8eec586e
2018-01-12 19:52:48 +00:00
Holly Jiuyu Sun
e03f92daaf Merge "Add dependencies of EuiccCard." am: 90b4e47d94
am: 4f217d740a

Change-Id: I874b4244dd0c79c1bee34480c34d6ee6ac9e0855
2018-01-12 19:42:42 +00:00
Jack Yu
8100a8ae26 Used LinkAddress insteaad of InterfaceAddress
Also removed InterfaceAddress which was added
in aosp/561351 since LinkAddress is exactly same
as InterfaceAddress.

Test: Telephony sanity tests
bug: 64132030
Merged-In: Ib7965a44b307c4cff2581abf0b7c12fcb1b9526a
Change-Id: Ib7965a44b307c4cff2581abf0b7c12fcb1b9526a
2018-01-12 11:18:38 -08:00