Commit Graph

1187 Commits

Author SHA1 Message Date
Jack Yu
6754d237bb Merge "Excluded certain APNs (e.g. IMS) from mobile data usage." into nyc-dev
am: 2e062ab

* commit '2e062ab8de3bae82b76a3f3aaeac6994f2555fe5':
  Excluded certain APNs (e.g. IMS) from mobile data usage.

Change-Id: I72b09515578a1843009439b1a8fbccccaaf3ab4c
2016-04-09 03:37:54 +00:00
Jack Yu
66a6be3a4c Excluded certain APNs (e.g. IMS) from mobile data usage.
Added not_metered capability to a mobile network if none
of its associated APN types are metered. Also used not_metered
capability to determine if a network should be accounted for
data usage or not instead of using network type, which is
always MOBILE after refactoring. Will add VT usage support
in next phase.

bug: 20888836
Change-Id: Id692cb856be9a47d0e918371112630128965b1bb
2016-04-07 10:07:31 -07:00
Junda Liu
e8235003c2 Merge "Add public API for sim authentication." into nyc-dev
am: a27cf02

* commit 'a27cf024e5a9fac9c254a533386bcb073817ecb2':
  Add public API for sim authentication.

Change-Id: Iaf27927945b40007110afb2b4e5cb9f231526a0c
2016-04-05 17:10:17 +00:00
Junda Liu
a27cf024e5 Merge "Add public API for sim authentication." into nyc-dev 2016-04-05 17:03:31 +00:00
Junda Liu
19fab78926 Add public API for sim authentication.
Bug: b/27360179
Change-Id: I95bc51797a808fd754202b671113ee0a60a8b99d
2016-04-01 10:37:00 -07:00
Tyler Gunn
bbebbd3501 Merge "Add carrier config option to determine if "wifi-only" is supported." into nyc-dev
am: 6c4af8c

* commit '6c4af8c9150293eb2eb73dae39451f7624f81c19':
  Add carrier config option to determine if "wifi-only" is supported.

Change-Id: I645a771e75d8a853ae2b7e192f88819cec5062cd
2016-04-01 15:56:02 +00:00
Tyler Gunn
5bbeea0883 Add carrier config option to determine if "wifi-only" is supported.
By default we set this to "true", however it is anticipated in the future
that some carrier may desire to not allow the wifi-only option, hence
this carrier config option.

Bug: 27858149
Change-Id: I55b09655a590a661780cd9ed89c1e1b0d87d54dc
2016-03-30 14:50:30 -07:00
fionaxu
2dadfbd438 Merge " fix Memory Leak caused by PhoneStateListener" into nyc-dev
am: 3c11a5b

* commit '3c11a5b3f881c433a9b6885735dfd0d8d3f311a7':
  fix Memory Leak caused by PhoneStateListener
2016-03-23 22:40:06 +00:00
Chen Xu
3c11a5b3f8 Merge " fix Memory Leak caused by PhoneStateListener" into nyc-dev 2016-03-23 22:37:21 +00:00
fionaxu
f5d7c587e8 fix Memory Leak caused by PhoneStateListener
Bug: 22962661

Change-Id: Ibece746afc19dd6b71845a257b7bfb88a0f8e13f
2016-03-23 14:23:20 -07:00
Tyler Gunn
2e9438ad2b Merge "Correct naming issues with video calling carrier config items." into nyc-dev
am: dfc1ee0

* commit 'dfc1ee0162f6ee4b18c573f2d0d59001d0447f1a':
  Correct naming issues with video calling carrier config items.
2016-03-21 18:39:48 +00:00
Tyler Gunn
dfc1ee0162 Merge "Correct naming issues with video calling carrier config items." into nyc-dev 2016-03-21 18:37:09 +00:00
Meng Wang
cca7e458f7 Merge "Add new key in CarrierConfigManager for ICCID display." into nyc-dev
am: 34b90a8

* commit '34b90a8ce3b3721a3bfcee15c780cdf45f712585':
  Add new key in CarrierConfigManager for ICCID display.
2016-03-17 17:35:17 +00:00
Meng Wang
6b2995ae14 Add new key in CarrierConfigManager for ICCID display.
Bug: 27574058
Change-Id: I74445c68f58e64a5baa87cd05fea9e91e59b0201
2016-03-16 15:09:17 -07:00
Tyler Gunn
f08361989d Correct naming issues with video calling carrier config items.
- Removed BOOL_ALLOW_VIDEO_PAUSE as it appears it was already added
as KEY_SUPPORT_PAUSE_IMS_VIDEO_CALLS_BOOL.
- Renamed BOOL_ALLOW_EMERGENCY_VIDEO_CALLS to KEY_ALLOW_EMERGENCY_VIDEO_CALLS_BOOL.

Bug: 27346047
Change-Id: I9f772e68ad9e78ce5a0419387c85a7f9630ecd5f
2016-03-15 20:33:13 -07:00
fionaxu
ad083e2d9a Merge "Add default Carrier cfg for IMS_WFC" into nyc-dev
am: 5a994060a7

* commit '5a994060a74b23862ba1724188e7267ef668fc4d':
  Add default Carrier cfg for IMS_WFC
2016-03-09 17:51:03 +00:00
Chen Xu
5a994060a7 Merge "Add default Carrier cfg for IMS_WFC" into nyc-dev 2016-03-09 17:43:23 +00:00
fionaxu
c71e824c0d Add default Carrier cfg for IMS_WFC
Bug: 26954117
Change-Id: I2a8fda969d73e30425729019a4428a02f551bbb2
2016-03-08 16:49:24 -08:00
Joe Onorato
15e93f3715 Merge changes Ib6e0e6f3,I109f04c2,Idc716000,I44c51d5f,I810b9bd5, ... into nyc-dev
am: 5d4ab988bd

* commit '5d4ab988bd18bb1fc339f39d6f0cf225b6561903':
  Turn down the logging a little bit.
  Turn down the logging a little bit and don't do a log wrapper function.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
  Turn down the logging a little bit.
2016-03-04 21:48:35 +00:00
Joe Onorato
a102dd01e9 Turn down the logging a little bit.
Change-Id: Idc716000ba5d28f52aee3e1cb84832e1c6eaf440
2016-03-04 12:21:30 -08:00
Omkar Kolangade
d608fb83a4 Merge "IMS-VT: Disable multi tasking by default" into mm-wireless-dev am: cf2f48e26b
am: d4f9ca844e

* commit 'd4f9ca844eaba99e6a2ba4e264b8b9b8aad9307a':
  IMS-VT: Disable multi tasking by default
2016-03-04 03:12:00 +00:00
Omkar Kolangade
d4f9ca844e Merge "IMS-VT: Disable multi tasking by default" into mm-wireless-dev
am: cf2f48e26b

* commit 'cf2f48e26bf50a6549d8c0c562cce0734565d978':
  IMS-VT: Disable multi tasking by default
2016-03-04 03:08:17 +00:00
Omkar Kolangade
2e8f8fe201 IMS-VT: Disable multi tasking by default
Disable multi tasking support by default for all operators.
Enable based on MCC/MNC for required oeprators.

Bug: 27484483
Change-Id: Ib321747885435c110360370eb243eee35762dfe3
2016-03-04 02:57:42 +00:00
Shishir Agrawal
674f4d7cee Merge "Multi-SIM - Fixing inconsistent naming in CarrierConfigManager." into nyc-dev
am: 70d5c8d246

* commit '70d5c8d246e63f279f8893954ac650b6a0b7f0ca':
  Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.
2016-02-25 18:56:39 +00:00
Shishir Agrawal
3bf26b5605 Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.
All MSIM specific calls should not use a suffix/prefix.

Bug: 26772894
Change-Id: I49488dfc41bb7996a1a44447968ec11132e4dac7
2016-02-25 10:15:54 -08:00
Amith Yamasani
056454791e Merge "Optimize calls to TelephonyManager to check for privileged apps" into nyc-dev
am: 66f0c6f3b8

* commit '66f0c6f3b8bde3ba224a1333a4acbf1b86c959ec':
  Optimize calls to TelephonyManager to check for privileged apps
2016-02-24 19:52:56 +00:00
Amith Yamasani
66f0c6f3b8 Merge "Optimize calls to TelephonyManager to check for privileged apps" into nyc-dev 2016-02-24 19:42:12 +00:00
Amith Yamasani
4ec6368f13 Optimize calls to TelephonyManager to check for privileged apps
Calling into TelephonyManager each of hundreds of apps to check
if the app is carrier privileged was very expensive, especially
when there aren't even any carrier access rules specified. This
change fetches all the carrier privileged apps in one call,
reducing the number of IPC calls to the radio process and checks
the package names locally.

If the carrier rules change or packages are modified, the list
will be computed and fetched again.

Other optimizations in Telephony help speed up the individual calls
to check if a package is privileged, as well.

Bug: 27271861
Change-Id: I5a77b6da4f2cdc603d2a73bd8569c5c38f06b42d
2016-02-24 11:30:00 -08:00
Shishir Agrawal
cc9231d32f Merge "Add subscription specific TelephonyManager calls." into nyc-dev
am: 7aa999143f

* commit '7aa999143f2a87d908cd1348dcee6c9ab06334c9':
  Add subscription specific TelephonyManager calls.
2016-02-24 17:37:55 +00:00
Shishir Agrawal
5210393891 Add subscription specific TelephonyManager calls.
SubId specific version of the following functions are being added.
  - hasCarrierPrivileges
  - iccCloseLogicalChannel
  - iccExchangeSimIO
  - iccOpenLogicalChannel
  - iccTransmitApduBasicChannel
  - iccTransmitApduLogicalChannel
  - sendEnvelopeWithStatus
  - setOperatorBrandOverride
  - setPreferredNetworkTypeToGlobal

Bug: 26772894

Change-Id: I8c9e6d9bfe73f530e6f91c86211103fdfb1520bf
2016-02-23 17:06:09 -08:00
Shishir Agrawal
658d3c8b3a DO NOT MERGE: Multi-SIM - Fixing inconsistent naming in CarrierConfigManager.
All MSIM specific calls should not use a suffix/prefix.

Bug: 26772894
Change-Id: I49488dfc41bb7996a1a44447968ec11132e4dac7
2016-02-23 15:18:23 -08:00
Shishir Agrawal
6eef1df380 DO NOT MERGE: Add subscription specific TelephonyManager calls.
SubId specific version of the following functions are being added.
  - hasCarrierPrivileges
  - iccCloseLogicalChannel
  - iccExchangeSimIO
  - iccOpenLogicalChannel
  - iccTransmitApduBasicChannel
  - iccTransmitApduLogicalChannel
  - sendEnvelopeWithStatus
  - setOperatorBrandOverride
  - setPreferredNetworkTypeToGlobal

Bug: 26772894

Change-Id: I8c9e6d9bfe73f530e6f91c86211103fdfb1520bf
2016-02-17 14:44:09 -08:00
Paul Duffin
f1adce018d Merge "Replace usages of ShortNumberUtil with ShortNumberInfo"
am: 8405e5cd3b

* commit '8405e5cd3b3b2491b5f487cbe26d9e1550e55370':
  Replace usages of ShortNumberUtil with ShortNumberInfo
2016-02-09 16:56:50 +00:00
Paul Duffin
c2884fe259 Replace usages of ShortNumberUtil with ShortNumberInfo
The ShortNumberInfo class appears to support the exact same
methods as the ShortNumberUtil class (at least in terms of the
methods used by this project) but is a singleton and so
instances cannot be created directly but instead must be
retrieved using the static getInstance() method.

The ShortNumberUtil class was deprecated in version 5.8 and
removed in 7.2.3 of libphonenumber. This change is required in
order to allow libphonenumber to be upgraded to 7.2.4.

Bug: 26975810
Change-Id: Ide40c65d12cb44453f84600fc4b5ad1ee1088470
2016-02-09 16:40:53 +00:00
Abhijith Shastry
d48935879a Carrier config to support overriding block suppress duration after emergency contact.
BUG: 26989170
Change-Id: I6d8f13dd4f2b69730826cc8440a22c7154255ac8
2016-02-05 15:06:56 -08:00
Brian Jones
37e80e3167 Merge "Allow Full ICCID Print in dumpsys on Debuggable Builds" 2016-02-04 19:11:59 +00:00
Nathan Harold
b09fdff0ff Allow Full ICCID Print in dumpsys on Debuggable Builds
Bug: 26981705
Change-Id: I83b1cb7e4e382123daf506b1621e8e100b874611
2016-02-04 11:10:20 -08:00
Tyler Gunn
5f651eef1e Merge "Add new telephony disconnect cause for video calls when tty enabled." into mm-wireless-dev
am: 8562fb281c

* commit '8562fb281c37656d9198e6890f5c10e3541f6167':
  Add new telephony disconnect cause for video calls when tty enabled.
2016-02-02 17:46:46 +00:00
Tyler Gunn
8562fb281c Merge "Add new telephony disconnect cause for video calls when tty enabled." into mm-wireless-dev 2016-02-02 17:42:39 +00:00
Tyler Gunn
0384c53c4e Add new telephony disconnect cause for video calls when tty enabled.
Due to the way the radio works, it isn't possible to make a video call
when tty is enabled.  Adding a new telephony disconnect cause to handle
this case.
Note: This was previously handled directly in Telecom which is not
correct.

Bug: 20090652
Change-Id: I90b7d6486fe00c84efe7bb1c0f30edf33a1502bc
2016-01-29 08:52:29 -08:00
Amit Mahajan
dbb7d13ad5 Merge "Add a null check before accessing int[] parameter in ModemActivityInfo" into mm-wireless-dev
am: ff62707130

* commit 'ff62707130e08785bbef1f13819d875d179df787':
  Add a null check before accessing int[] parameter in ModemActivityInfo
2016-01-28 23:59:49 +00:00
Amit Mahajan
938dcc88fd Add a null check before accessing int[] parameter in ModemActivityInfo
Bug: 26842468
Change-Id: I3a5f7c8e454e7b9ace20f8082ee3fd1d0a24eb64
2016-01-28 15:30:39 -08:00
Jack Yu
b98fac6f1f Merge "Reduced more radio log spam" into mm-wireless-dev
am: 24c5e7c4ce

* commit '24c5e7c4ceb31c85868fe2c03e8a507e2cb0520f':
  Reduced more radio log spam
2016-01-28 00:05:14 +00:00
Adam Lesinski
72c3927f86 Merge "Record ModemActivityInfo and distribute power blame to apps" 2016-01-28 00:03:56 +00:00
Jack Yu
24c5e7c4ce Merge "Reduced more radio log spam" into mm-wireless-dev 2016-01-28 00:00:04 +00:00
Adam Lesinski
21f76aa770 Record ModemActivityInfo and distribute power blame to apps
Telephony expsoses a getModemActivity() method, which BatteryStats
will poll when a change in network activity occurs (on the modem).

The time spent in various states (tx, idle, rx) are distributed amongst
the apps that did rx/tx traffic during that window.

Bug:23147562
Change-Id: I480a85df95786f87c382b96816fe2ed4bb2d5a42
2016-01-27 15:45:30 -08:00
Ta-wei Yen
6c8cc662a6 Merge "Add KEY_VVM_PREFETCH_BOOLEAN to CarrierConfigManager" 2016-01-27 22:00:27 +00:00
Sanket Padawe
0491c46227 [DO NOT MERGE] Cellinfo: Update to version 12
Add support for:
GSM: arfcn, bsic, ta
WCDMA: uarfcn
LTE: earfcn
Updated public APIs for getting above fields.

Bug: 23528586
Change-Id: I1e741ec73f2f683a796d430898b62921fe6e75e9
2016-01-27 09:59:59 -08:00
Sanket Padawe
0c86efdbd9 Cellinfo: Update to version 12
Add support for:
GSM: arfcn, bsic, ta
WCDMA: uarfcn
LTE: earfcn
Updated public APIs for getting above fields.

Bug: 23528586
Change-Id: I97e18856bb41c5592f89641eac7d4a3dbef43d5d
2016-01-26 18:42:47 -08:00
Shishir Agrawal
05a7dfc48d Merge "Unhiding MSIM APIs." 2016-01-27 00:32:26 +00:00