823 Commits

Author SHA1 Message Date
Svetoslav
275b5635ad Teach telephony about location app ops
Change-Id: I2bd8f0cb90d161994045d403f5d0c129ea951c3f
2015-04-18 00:03:45 +00: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
Santos Cordon
ed4ca5ca2c 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-02-19 15:19:16 -08:00
Shishir Agrawal
bad6337b08 GpsLocationProvider: Read data enabled status from TelephonyManager. automerge: 64ce5f8 automerge: 6b27472
automerge: b7e04f3

* commit 'b7e04f3294d2ce60450fcc6881249b6b0c6c30b0':
  GpsLocationProvider: Read data enabled status from TelephonyManager.
2015-02-11 03:52:52 +00:00
Shishir Agrawal
b7e04f3294 GpsLocationProvider: Read data enabled status from TelephonyManager. automerge: 64ce5f8
automerge: 6b27472

* commit '6b274720c5a210c07256e5b9fc11a1e9aca59017':
  GpsLocationProvider: Read data enabled status from TelephonyManager.
2015-02-11 03:44:42 +00:00
Shishir Agrawal
64ce5f8fab GpsLocationProvider: Read data enabled status from TelephonyManager.
Bug: 18814559
Change-Id: I0333050d2a5b8d484466e1b1914dcfb9965398c9
2015-02-10 19:20:16 -08:00
Sanket Padawe
b15c00a551 am 0a4c2646: am 04db9797: Merge "Suppress phone number from logcat." into lmp-mr1-dev automerge: 4eed340
* commit '0a4c2646f4b72fdc78299dbb3dd86a7aecefff08':
  Suppress phone number from logcat.
2015-02-05 23:16:46 +00:00
Sanket Padawe
0a4c2646f4 am 04db9797: Merge "Suppress phone number from logcat." into lmp-mr1-dev
automerge: 4eed340

* commit '4eed340437d23a9b4fabf2881557325b863af23c':
  Suppress phone number from logcat.
2015-02-05 23:10:57 +00:00
Brian Attwell
c6dbe3be2c Unhide and rename PhoneNumberUtils tts methods
Renamed ttsSpanAsPhoneNumber #1 -> getPhoneTtsSpannable
Renamed ttsSpanAsPhoneNumber #2 -> addPhoneTtsSpan
Added  				   getPhoneTtsSpan

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-02-05 14:32:03 -08:00
Sanket Padawe
1acdd4b1f4 Suppress phone number from logcat.
Bug: 19251204
Change-Id: I042bc3c0a89967eeae547b059f06cf05de005b25
2015-02-05 11:45:27 -08:00
Robert Greenwalt
af7454bafb am 0cdd4560: am fabf0e0b: Merge "Fixing up the formatting code which is already merged"
automerge: 21475c6

* commit '21475c6a92b893f5d078ba23f06f0be6edaaacbd':
2015-02-02 17:33:09 +00:00
Robert Greenwalt
21475c6a92 am 0cdd4560: am fabf0e0b: Merge "Fixing up the formatting code which is already merged"
* commit '0cdd4560dac5784dda169863eb844d489bdc79d5':
2015-02-02 17:29:21 +00:00
Robert Greenwalt
3c6e38d3b5 Fixing up the formatting code which is already merged
I just apply google coding guide like space.

Uploading the same code about + handling just apply the Google Coding Guide.
The previous code is "https://android-review.googlesource.com/#/c/122770/"

This code is about + plus number converting logic for international NANP.

Change-Id: I23e4709294c603b387b28b3c2a56c932d838c666
2015-02-02 15:04:56 +09:00
Stuart Scott
3165abfd34 am 712d5b3d: am 147b6a35: Merge "[DS] Correct the access method for telephony system property" into lmp-mr1-dev
automerge: 2e233d3

* commit '2e233d30662d26846a42c298967842d2e8537653':
  [DS] Correct the access method for telephony system property
2015-01-30 22:26:27 +00:00
Stuart Scott
2e233d3066 am 712d5b3d: am 147b6a35: Merge "[DS] Correct the access method for telephony system property" into lmp-mr1-dev
* commit '712d5b3d582dfe8f7fb855ba98704c98e9441836':
  [DS] Correct the access method for telephony system property
2015-01-30 22:24:25 +00:00
Legler Wu
85973dcf8c [DS] Correct the access method for telephony system property
Revise the method to access telephony system property.
Add several PROPERTY_XXX_XXX_MSIM for MSIM type system properties. If
caller use the old one, it will be dispatched to new one and get by
default phone id.
Ex. PROPERTY_ICC_OPERATOR_NUMERIC

Bug: 18675498
Change-Id: I008a7390fefbbcd9f6569f059d48eedf1da28de0
2015-01-29 19:02:55 -08:00
Sanket Padawe
81f63a60f3 am 60e4edfb: am 5df10e18: Merge "Suppress logging to avoid showing phone no." into lmp-mr1-dev
automerge: f19485b

* commit 'f19485b644b7ba7bda1f5c7a2279ca56c37923f0':
  Suppress logging to avoid showing phone no.
2015-01-29 21:57:29 +00:00
Sanket Padawe
f19485b644 am 60e4edfb: am 5df10e18: Merge "Suppress logging to avoid showing phone no." into lmp-mr1-dev
* commit '60e4edfb94fd744001b4c7013a89ef4abb311f97':
  Suppress logging to avoid showing phone no.
2015-01-29 21:56:04 +00:00
Sanket Padawe
5df10e1842 Merge "Suppress logging to avoid showing phone no." into lmp-mr1-dev 2015-01-29 21:44:05 +00:00
Sanket Padawe
14d21344d2 Suppress logging to avoid showing phone no.
Bug: 19193581
Change-Id: I6ee17a2eab9d0ed84c931d6395a5aeb148177f95
2015-01-29 11:21:34 -08:00