summaryrefslogtreecommitdiffstats
path: root/telephony/java/android
Commit message (Collapse)AuthorAgeFilesLines
* Add support for static RadioCapabilities.Robert Greenwalt2015-05-131-1/+39
| | | | | | | | | | | | | | | | Some RILs don't support RIL_REQUEST_GET_RADIO_CAPABILITY. Add code to RIL.java to notice a REQUEST_NOT_SUPPORTED response and check config.xml (config_radio_access_family) for a static answer. Also catching GENERIC_FAILURE responses because Hammerhead modem returns that. B 21079604 created for this. If neither Modem nor config.xml provide data, uses RAF_UNKNOWN so we don't lie about capabilities and also so we fail fast (setPreferredNetwork won't work). bug:20561357 Change-Id: I49e4527fe94919a7094bc7c1e100d20e8f833865
* Merge "Rename BOOL_SHOW_CDMA to BOOL_SHOW_CDMA_CHOICES, so the name makes ↵Junda Liu2015-05-131-3/+3
|\ | | | | | | more sense." into mnc-dev
| * Rename BOOL_SHOW_CDMA to BOOL_SHOW_CDMA_CHOICES, so the name makes more sense.Junda Liu2015-05-131-3/+3
| | | | | | | | | | Bug: b/21028396 Change-Id: I029671b6bcd03a07956ccf35f4e5fe03d16a2218
* | Add null annotations for getting carrier config.Jonathan Basseri2015-05-131-0/+5
|/ | | | | | | | CarrierConfigManager can return null Bundles for carrier config, but never returns null when getting default values. Add the appropriate annotations. Change-Id: Iffbed3b54ca7cc28cf8b04f133aacdf9e6e4fd20
* Switching to PersistableBundle in carrier config API.Jonathan Basseri2015-05-131-9/+9
| | | | | | | | | | | | | | | Part of this API involves persisting config bundles to avoid binding to apps at critical moments (like boot). Regular bundles should not be written to disk because they support object types that can lose their meaning while the data is at rest. In order to use PersistableBundle, we must either start with one or filter unwanted types out of Bundle objects. Since the carrier config API has no use for unsupported types, we chose to use PersistableBundle everywhere. Bug: 20268926 Change-Id: I17989ce840014c2a0ed3679c1bca5a8498082c7f
* Merge changes from topic 'mwd-merge-050415' into mnc-devPrerepa Viswanadham2015-05-051-0/+14
|\ | | | | | | | | | | | | | | | | | | | | * changes: Merge commit 'b6f59f4' into master_merge Merge commit 'f6db0ce' into master_merge Merge commit '17455a3' into master_merge Merge commit 'b4d5b32' into master_merge Merge commit 'a1a2fa7' into master_merge Merge commit '8dfdb98' into master_merge Merge commit 'eba66c3' into master_merge
| * Merge commit '17455a3' into master_mergePrerepa Viswanadham2015-05-011-0/+14
| |\
| | * Merge "Fail SmsManager requests if SubId is not active." into m-wireless-devCheuksan Wang2015-04-241-0/+14
| | |\
| | | * Fail SmsManager requests if SubId is not active.Shishir Agrawal2015-03-301-0/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If subId is not active, expected subIds can be assigned to the messages being processed due to SmsManager calls. The change will fail any SmsManager calls if SubId is not active. Bug: 18629526 Change-Id: I8da1b1e2c477f32dcbaff417fc4e14ba2a225414
| | * | Add keys for visual voicemail carrier configuration valuesNancy Chen2015-04-151-0/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | Adding Carrier Config API.Jonathan Basseri2015-04-151-0/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
| | * | DO NOT MERGE Make Telecom/InCallUI APIs publicJay Shrauner2015-04-151-2/+0
| | |/ | | | | | | | | | | | | Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
* | | Support for bearer_bitmask.Amit Mahajan2015-05-011-0/+52
|/ / | | | | | | Change-Id: I7cae3d229445607c66b6472124264588f7571097
* | Merge "Add default dialer checks to Telecom/Telephony" into mnc-devYorke Lee2015-04-301-1/+1
|\ \
| * | Add default dialer checks to Telecom/TelephonyYorke Lee2015-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Moving all Telephony overlays to CarrierConfigManager.Jonathan Basseri2015-04-291-22/+158
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds every variable and its default value from packages/services/Telephony/res/values/config.xml to the new CarrierConfigManager API. Variable docstrings are also taken from config.xml, with minimal edits. These variables were not included because either they are not carrier specific, or they are device specific: OtaPlaySuccessFailureTone OtaShowActivateFailTimes OtaShowActivationScreen OtaShowListeningScreen carrier_settings carrier_settings_menu config_allow_hfa_outside_of_setup_wizard config_enabled_lte csp_enabled dialer_default_class dtmf_type_enabled hac_enabled send_mic_mute_to_AudioManager ui_default_package This also adds BOOL_HIDE_CARRIER_NETWORK_SETTINGS which is a replacement for android.provider.Settings.Global.HIDE_CARRIER_NETWORK_SETTINGS. Bug: 20270007 Change-Id: I985a55cf88d3bd1863e28af7790b59eef01d6504
* | Never return a reference to sDefaults.Jonathan Basseri2015-04-231-2/+2
| | | | | | | | | | | | | | Final static fields in Java are still mutable, so CarrierConfigManager should not give callers the opportunity to mutate them. Change-Id: I413597fc5f59c249997967bb0aad2d09b54fa613
* | Merge "Adding carrier variables to control certain network settings."Jonathan Basseri2015-04-231-0/+6
|\ \
| * | Adding carrier variables to control certain network settings.Jonathan Basseri2015-04-231-0/+6
| | | | | | | | | | | | | | | Bug: 20270007 Change-Id: I4075c159e4fceb2e8a5bdda1261f8b2470455595
* | | Make sure to return network type after conversionSooraj Sasindran2015-04-231-1/+1
| | | | | | | | | | | | | | | | | | | | | After converting raf to type, make sure to return network type Change-Id: I7fd338717be98a055cbaed66d1b15417da27a3d8
* | | Radio Access Family related fixesAbhishek Adappa2015-04-231-7/+72
|/ / | | | | | | | | | | | | | | 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
* | Merge "Unhide SignalStrength#getLevel()"Todd Kennedy2015-04-221-2/+0
|\ \
| * | Unhide SignalStrength#getLevel()Todd Kennedy2015-04-211-2/+0
| | | | | | | | | | | | | | | Bug: 20410696 Change-Id: I9f7f8c2949a9fdf5f84c4b567898c240034f5e85
* | | Merge "Add OP_READ_PHONE_STATE app op continued - framework"Svet Ganov2015-04-211-14/+16
|\ \ \
| * | | Add OP_READ_PHONE_STATE app op continued - frameworkSvet Ganov2015-04-181-14/+16
| | | | | | | | | | | | | | | | Change-Id: If1c2783ad9ea2aa773e5416e09a3cfd1817ef73f
* | | | Merge "Add multi-sim support for getCarrierPackageNamesForIntent."Jonathan Basseri2015-04-201-3/+9
|\ \ \ \
| * | | | Add multi-sim support for getCarrierPackageNamesForIntent.Junda Liu2015-04-201-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | resbmit of change Id100b7c4606287a1daa90092cd3c8a5a6519247d Bug: 20268073 Change-Id: I852aac4da492e15f1dd7a3c88693fa14ec07b7c4
* | | | | Move factoryReset to service and protect.Stuart Scott2015-04-201-9/+6
| | | | | | | | | | | | | | | | | | | | | | | | | bug:16161518 Change-Id: I02d1bbae1887c62ee426e6f03e8bc1f18c6666bf
* | | | | Merge "Revert "Add multi-sim support for getCarrierPackageNamesForIntent.""Jeff Sharkey2015-04-191-9/+3
|\ \ \ \ \
| * | | | | Revert "Add multi-sim support for getCarrierPackageNamesForIntent."Jeff Sharkey2015-04-191-9/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 0ff9fd87d0a0d88bf46945629d0a30f6e7fb3f55. Change-Id: I099c612ff1715c5c34c0ed9bc1bec460a1a5db01
* | | | | | Merge "Add multi-sim support for getCarrierPackageNamesForIntent."Junda Liu2015-04-191-3/+9
|\ \ \ \ \ \ | |/ / / / / | | | / / / | |_|/ / / |/| | | |
| * | | | Add multi-sim support for getCarrierPackageNamesForIntent.Junda Liu2015-04-171-3/+9
| |/ / / | | | | | | | | | | | | | | | | Bug: b/20268073 Change-Id: Id100b7c4606287a1daa90092cd3c8a5a6519247d
* | | | Fix calling package for app opsSvet Ganov2015-04-181-2/+3
| | | | | | | | | | | | | | | | Change-Id: Ie867262e74d0b09e16193cb575b1c1cf942c83cb
* | | | Teach telephony about location app opsSvetoslav2015-04-181-2/+2
| | | | | | | | | | | | | | | | Change-Id: I2bd8f0cb90d161994045d403f5d0c129ea951c3f
* | | | Merge "Add OP_READ_PHONE_STATE app op - framework"Svet Ganov2015-04-172-10/+7
|\ \ \ \
| * | | | Add OP_READ_PHONE_STATE app op - frameworkSvet Ganov2015-04-172-10/+7
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | Set default values for VVM constants in CarrierConfigManagerYorke Lee2015-04-171-5/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | * Also hide the constants, they don't need to be @SystemApi * Make VVM_PORT_NUMBER an Int Bug: 20272209 Change-Id: I0d47afd7916d40f77ba5bf8e95306b46b27c15b3
* | | Add keys for visual voicemail carrier configuration valuesNancy Chen2015-04-161-0/+36
|/ / | | | | | | | | | | | | | | 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
* | Adding Carrier Config API.Jonathan Basseri2015-04-161-0/+183
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | Merge "TelephonyManager Carrier Network Change Notification"Vinit Deshpande2015-04-162-0/+61
|\ \
| * | TelephonyManager Carrier Network Change NotificationAndrew Flynn2015-04-142-0/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Make Telecom/InCallUI APIs publicJay Shrauner2015-04-151-2/+0
|/ / | | | | | | | | Bug:20260870 Change-Id: Ie3a2db0685664f2f1ceea8f40b1249d01e9385b8
* | Add SIM activation constants to TelephonyManagerSantos Cordon2015-04-081-0/+31
| | | | | | | | Change-Id: I43fe5de4a1137bede4e81f4d51f272ad92dc80d5
* | Protect against null ITelephony to fix crash.Andrew Lee2015-04-031-4/+16
| | | | | | | | | | Bug: 20066803 Change-Id: I4336e979dab3a4b1b3d53078af572ff3f822377a
* | Move reset network settings into framework.Stuart Scott2015-03-301-5/+46
| | | | | | | | | | bug: 16161518 Change-Id: Ic3b537ebd09d1b9723feff9dcc96e20fda05a94f
* | Add emergency assistance API and settingAdrian Roos2015-03-271-1/+9
| | | | | | | | | | Bug: 19841649 Change-Id: I5bc99df6d85eb84b253456e32ce52afd7592a95e
* | Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into ↵Prerepa Viswanadham2015-03-241-0/+28
|\ \ | |/ | | | | | | | | master_merge Change-Id: I49aab437af220f1139cfd2d0a9c362acce31074e
| * Merge "Adding hidden isWifiCallingEnabled() and isVolteEnabled()" into ↵Nathan Harold2015-03-181-0/+28
| |\ | | | | | | | | | | | | | | | | | | | | | | | | lmp-mr1-wfc-dev automerge: 8ee14a2 * commit '8ee14a244851ac80af0193541a5d521462d75e1e': Adding hidden isWifiCallingEnabled() and isVolteEnabled()
| | * Adding hidden isWifiCallingEnabled() and isVolteEnabled()Nathan Harold2015-03-111-0/+28
| | | | | | | | | | | | Change-Id: Ic33f8c50dfb2d81b2bdc149629724e3972aad09e
| * | Add Sub-ID-from-phone-account converter method.Santos Cordon2015-03-021-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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