841 Commits

Author SHA1 Message Date
Yorke Lee
f1a349bda3 Add default dialer checks to Telecom/Telephony
Check for the default dialer or the modify phone state permission
for various TelecomManager/TelephonyManager methods.

Make sure to check the user-selected default rather than the
hardcoded package name.

Exercise this code in TestDialerActivity.

Bug: 20304458
Change-Id: Ic04cd8f2ba98e1d54c39549ae89d3e11cd5cdafb
2015-04-29 16:21:00 -07:00
Jonathan Basseri
9892718663 Never return a reference to sDefaults.
Final static fields in Java are still mutable, so CarrierConfigManager
should not give callers the opportunity to mutate them.

Change-Id: I413597fc5f59c249997967bb0aad2d09b54fa613
2015-04-23 23:34:15 -07:00
Jonathan Basseri
48f8fe53ee Merge "Adding carrier variables to control certain network settings." 2015-04-23 22:35:10 +00:00
Jonathan Basseri
ad5baab57e Adding carrier variables to control certain network settings.
Bug: 20270007
Change-Id: I4075c159e4fceb2e8a5bdda1261f8b2470455595
2015-04-23 15:26:15 -07:00
Sooraj Sasindran
4f18c60f48 Make sure to return network type after conversion
After converting raf to type, make sure to return
network type

Change-Id: I7fd338717be98a055cbaed66d1b15417da27a3d8
2015-04-23 12:04:08 -07:00
Abhishek Adappa
c180f9adf7 Radio Access Family related fixes
1. Include EHRPD in the EVDO group
2. Fix mapping of CDMA network type to include EVDO
3. Add utility to get the network type from the Raf

Change-Id: I35023083be4c681809c003c7ed6a31c698ea4647
2015-04-23 11:33:30 -07:00
Todd Kennedy
cf5715eb30 Merge "Unhide SignalStrength#getLevel()" 2015-04-22 17:37:50 +00:00
Todd Kennedy
af86120955 Unhide SignalStrength#getLevel()
Bug: 20410696
Change-Id: I9f7f8c2949a9fdf5f84c4b567898c240034f5e85
2015-04-21 14:25:48 -07:00
Svet Ganov
24aadf18d5 Merge "Add OP_READ_PHONE_STATE app op continued - framework" 2015-04-21 19:52:11 +00:00
Jonathan Basseri
5f24126e2e Merge "Add multi-sim support for getCarrierPackageNamesForIntent." 2015-04-20 19:59:39 +00:00
Stuart Scott
f1fb39763d Move factoryReset to service and protect.
bug:16161518
Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
2015-04-20 10:52:35 -07:00
Junda Liu
f3c7bf432d Add multi-sim support for getCarrierPackageNamesForIntent.
resbmit of change Id100b7c4606287a1daa90092cd3c8a5a6519247d

Bug: 20268073
Change-Id: I852aac4da492e15f1dd7a3c88693fa14ec07b7c4
2015-04-20 10:30:35 -07:00
Svet Ganov
21301f6016 Add OP_READ_PHONE_STATE app op continued - framework
Change-Id: If1c2783ad9ea2aa773e5416e09a3cfd1817ef73f
2015-04-18 22:49:28 -07:00
Jeff Sharkey
7227436671 Merge "Revert "Add multi-sim support for getCarrierPackageNamesForIntent."" 2015-04-19 05:00:29 +00:00
Jeff Sharkey
1b7ed7b1c2 Revert "Add multi-sim support for getCarrierPackageNamesForIntent."
This reverts commit 0ff9fd87d0a0d88bf46945629d0a30f6e7fb3f55.

Change-Id: I099c612ff1715c5c34c0ed9bc1bec460a1a5db01
2015-04-19 04:59:56 +00:00
Junda Liu
f47c6488ea Merge "Add multi-sim support for getCarrierPackageNamesForIntent." 2015-04-19 04:30:15 +00:00
Svet Ganov
774afb9a8e Fix calling package for app ops
Change-Id: Ie867262e74d0b09e16193cb575b1c1cf942c83cb
2015-04-18 12:14:07 -07:00
Svetoslav
275b5635ad Teach telephony about location app ops
Change-Id: I2bd8f0cb90d161994045d403f5d0c129ea951c3f
2015-04-18 00:03:45 +00:00
Junda Liu
0ff9fd87d0 Add multi-sim support for getCarrierPackageNamesForIntent.
Bug: b/20268073
Change-Id: Id100b7c4606287a1daa90092cd3c8a5a6519247d
2015-04-17 15:51:46 -07:00
Svet Ganov
d3c1ddb892 Merge "Add OP_READ_PHONE_STATE app op - framework" 2015-04-17 21:34:04 +00:00
Yorke Lee
2850d7a599 Set default values for VVM constants in CarrierConfigManager
* Also hide the constants, they don't need to be @SystemApi
* Make VVM_PORT_NUMBER an Int

Bug: 20272209
Change-Id: I0d47afd7916d40f77ba5bf8e95306b46b27c15b3
2015-04-17 14:24:20 -07:00
Svet Ganov
16a1689950 Add OP_READ_PHONE_STATE app op - framework
The READ_PHONE_STATE permission protects PII information and
is in the Phone group. This change is adding the corrseponding
app op for gating access to the API guarded by READ_POHNE state
which will be used instead as an access control for legacy apps.

Change-Id: I2ff895a5a0e529f26ec0ad706266a30d829268ba
2015-04-17 20:43:56 +00:00
Nancy Chen
5c86e922dd Add keys for visual voicemail carrier configuration values
Each carrier has its own set of visual voicemail configuration values
to be retrieved from the carrier config manager API.

Bug:19236241
Change-Id: Ic1d59a13d2203c70aba178c315c47ec2661ea56e
2015-04-16 13:55:21 -07:00
Jonathan Basseri
9a1c9b67c4 Adding Carrier Config API.
UICC privileged carrier apps will extend CarrierConfigService to provide
carrier-specific configuration. Apps/services will use
CarrierConfigManager to read the current configuration.

CarrierConfigManager also defines the set of configuration variables and
their default values.

Bug: b/19483786
Change-Id: I027211b43276afd6fe893ae50048c52f2aed5cf5
2015-04-16 11:40:33 -07:00
Vinit Deshpande
dae67ef343 Merge "TelephonyManager Carrier Network Change Notification" 2015-04-16 04:43:21 +00:00
Jay Shrauner
55b97525f0 Make Telecom/InCallUI APIs public
Bug:20260870
Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
2015-04-15 12:03:48 -07:00
Andrew Flynn
1f45264dd6 TelephonyManager Carrier Network Change Notification
Adds a way for a carrier app to notify the system that an intended network
change is starting or ending. This can be used by a system PhoneStateListener
to provide custom UI or perform other actions during this period.

- Adds new public TelephonyManager API: notifyCarrierNetworkChange(boolean)
- Adds new @hide PhoneStateListener method: onCarrierNetworkChange(boolean)
- Functionality merely serves as a pass-through of data from an app to a
  PhoneStateListener (SystemUI for the intended use case)
- Protected by MODIFY_PHONE_STATE permission or hasCarrierPrivileges().

Bug: 11392659

Change-Id: I3199e21ec1ac124198f44b86c1534dd3ff1f6858
2015-04-14 22:16:04 -04:00
Santos Cordon
2aebb3fec3 Add SIM activation constants to TelephonyManager
Change-Id: I43fe5de4a1137bede4e81f4d51f272ad92dc80d5
2015-04-08 11:04:01 -07:00
Andrew Lee
896a1e650c Protect against null ITelephony to fix crash.
Bug: 20066803
Change-Id: I4336e979dab3a4b1b3d53078af572ff3f822377a
2015-04-03 14:09:29 -07:00
Stuart Scott
984dc850b4 Move reset network settings into framework.
bug: 16161518
Change-Id: Ic3b537ebd09d1b9723feff9dcc96e20fda05a94f
2015-03-30 18:02:55 -07:00
Adrian Roos
943eb8654f Add emergency assistance API and setting
Bug: 19841649
Change-Id: I5bc99df6d85eb84b253456e32ce52afd7592a95e
2015-03-27 21:26:46 +00:00
Prerepa Viswanadham
4209a28270 Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master_merge
Change-Id: I49aab437af220f1139cfd2d0a9c362acce31074e
2015-03-24 13:46:08 -07:00
Nick Vaccaro
9504a9d90b am 23c7cef2: am 74a0eb36: Merge "Avoid unhandled page fault cases on Android Wear" into lmp-mr1-modular-dev
* commit '23c7cef2ca28bf3116611507457be953f45ca80b':
  Avoid unhandled page fault cases on Android Wear
2015-03-19 00:01:15 +00:00
Nick Vaccaro
23c7cef2ca am 74a0eb36: Merge "Avoid unhandled page fault cases on Android Wear" into lmp-mr1-modular-dev
* commit '74a0eb360da012c5a13577a8af33f6b28b0fadf7':
  Avoid unhandled page fault cases on Android Wear
2015-03-18 23:44:20 +00:00
Nathan Harold
5fc29ed61a Merge "Adding hidden isWifiCallingEnabled() and isVolteEnabled()" into lmp-mr1-wfc-dev
automerge: 8ee14a2

* commit '8ee14a244851ac80af0193541a5d521462d75e1e':
  Adding hidden isWifiCallingEnabled() and isVolteEnabled()
2015-03-18 19:07:35 +00:00
Andrew Lee
5540908059 Merge "Add methods to indicate accessibility support." 2015-03-17 22:56:06 +00:00
Vinit Deshpande
67b3ef27f0 am "Telephony: Implementation for IWLAN."
merged from goog/mirror-m-wireless-internal-release
bece926 Telephony: Implementation for IWLAN.

Change-Id: I4d55b3452428ebf9fbcfc3ba3a75cefcb2aeb0cf
2015-03-15 13:40:04 -07:00
Nathan Harold
42eadcdf34 Adding hidden isWifiCallingEnabled() and isVolteEnabled()
Change-Id: Ic33f8c50dfb2d81b2bdc149629724e3972aad09e
2015-03-11 18:08:08 -07:00
Andrew Lee
f3c10020e2 Add methods to indicate accessibility support.
Namely, indicates whether Telephony supports TTY mode or hearing
aid compatibility.

Bug: 19372734
Change-Id: I08d8cc64169b170c1dc6fb0c713e888eeba30099
2015-03-11 10:27:34 -07:00
Andrew Lee
2b84e98e69 Merge "Add methods for device telephony configs." 2015-03-06 01:05:08 +00:00
Andrew Lee
67fc92bd44 Add methods for device telephony configs.
+ Expose method for whether DTMF length can be changed.
+ Expose method for whether the device is a world phone.

Bug: 19372734
Change-Id: I542e87cab1924eb600fdce929f5227e36112964b
2015-03-04 15:12:18 -08:00
Santos Cordon
9b09c15c35 Add Sub-ID-from-phone-account converter method.
There are several places in the code that currently attempt to parse the
sub ID directly from the phone account which is undesireable.  Before we
can change from using the subID to using an ICC ID with the phone
accounts, we need to create a conversion method so that no other
components are parsing the sub ID out of the phone account directly.

Change-Id: I74547fe0807da2fe13f3ff4422cd1d0a7a20d04c
2015-03-02 11:17:20 -08:00
Brian Attwell
57f8f0d7f9 Unhide and rename PhoneNumberUtils tts methods
Renamed ttsSpanAsPhoneNumber #1 -> getPhoneTtsSpan
Renamed ttsSpanAsPhoneNumber #2 -> addPhoneTtsSpan

Instead of removing the original hidden methods, I deprecated them.
Since Telephony changes initially get checked into wireless-dev
branch and dialer/contacts changes get checked into master branch,
immediately deleting the ttsSpanAsPhoneNumber methods would break
builds.

In ContactsCommon, I plan on removing
ContactDisplayUtils#getTelephoneTtsSpannable and instead using
these Telephony APIs. Numbers I tested worked in ToT master talkback:
911, (650) 215 3111, 22222222222, 333-3333, 013334612234, +1 905 471 8484,
001 39 02 444 4444. The changes in this diff cause the numbers
to be talked-back at least as well as before.

Some context: go/question-about-telephonys-ttsspan

Bug: 18777272
Change-Id: I3a6ead3ee9c030761bde903cf88f4aa4fc7a3460
2015-03-02 08:43:12 -08:00
John Spurlock
08c7116ab9 Remove unused imports in frameworks/base.
Change-Id: I031443de83f93eb57a98863001826671b18f3b17
2015-02-28 14:47:49 -05:00
Nick Vaccaro
f257469c08 Avoid unhandled page fault cases on Android Wear
Telephony routines were dereferencing the null result of
getITelephony() and getSubscriberInfo(), causing unhandled page
faults at the hardware level.

Bug: 18264818
Change-Id: I7d058aa881c7dac20051d6faea2a6d52be4bd74e
2015-02-27 15:31:09 -08:00
Sanket Padawe
5414d155e5 am 40aa30b3: am 654a473b: am 249f2c3a: am 025f0938: Merge "Changing usage of carrier name field of SubInfoRecord" into lmp-mr1-dev
* commit '40aa30b3747fc62b14832682d2cc3117edd93b80':
  Changing usage of carrier name field of SubInfoRecord
2015-02-26 23:47:36 +00:00
Sanket Padawe
40aa30b374 am 654a473b: am 249f2c3a: am 025f0938: Merge "Changing usage of carrier name field of SubInfoRecord" into lmp-mr1-dev
* commit '654a473bfea9a4197868ae81091812505da8ca87':
  Changing usage of carrier name field of SubInfoRecord
2015-02-26 23:37:55 +00:00
Sanket Padawe
8b76495751 am 025f0938: Merge "Changing usage of carrier name field of SubInfoRecord" into lmp-mr1-dev
* commit '025f0938544bae3262acc24e9c6031b6de88901d':
  Changing usage of carrier name field of SubInfoRecord
2015-02-26 22:09:10 +00:00
Yashdev Singh
bece926b51 Telephony: Implementation for IWLAN.
Introduce new RAT as IWLAN.
- Allow registration polling in airplane mode.
- Allow non-default PDP activation for iwlan RAT.

Implementation of iwlan and wwan coexistence.
- A new callback event for unsol oem hook response to indicate
  if cellular and iwlan RAT co-exists.
- If co-existence is possible then allow default PDP activation
  along with other PDPs.

Change-Id: Icc6f8111ec3c86ec06e8facd5a5b60b4d5e08e78
2015-02-26 06:37:36 +00:00
Sanket Padawe
ea4713d6e5 Changing usage of carrier name field of SubInfoRecord
Bug: 19476304
Change-Id: Ia16465584cf31858bbf1ae36cfdbf21184de10d7
2015-02-24 13:15:15 -08:00