diff options
author | Robert Greenwalt <rgreenwalt@google.com> | 2015-07-09 03:34:47 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2015-07-09 03:34:47 +0000 |
commit | 031b9477663e0974fbc765795ccd7694a0430b5a (patch) | |
tree | 5a470e777f6569097eb23ab0a5d662b5212a55cf /telephony/java/com/android | |
parent | af468addb672ef002dee64376bc06f2bf8c6c0f9 (diff) | |
parent | 348988c5704a5a6eb6aec093e295c2d9f00ee33c (diff) | |
download | frameworks_base-031b9477663e0974fbc765795ccd7694a0430b5a.zip frameworks_base-031b9477663e0974fbc765795ccd7694a0430b5a.tar.gz frameworks_base-031b9477663e0974fbc765795ccd7694a0430b5a.tar.bz2 |
am 348988c5: Merge "Fix permissions on TelephonyManager" into mnc-dev
* commit '348988c5704a5a6eb6aec093e295c2d9f00ee33c':
Fix permissions on TelephonyManager
Diffstat (limited to 'telephony/java/com/android')
-rw-r--r-- | telephony/java/com/android/internal/telephony/ITelephony.aidl | 79 |
1 files changed, 49 insertions, 30 deletions
diff --git a/telephony/java/com/android/internal/telephony/ITelephony.aidl b/telephony/java/com/android/internal/telephony/ITelephony.aidl index 6e50e9b..53011e6 100644 --- a/telephony/java/com/android/internal/telephony/ITelephony.aidl +++ b/telephony/java/com/android/internal/telephony/ITelephony.aidl @@ -116,59 +116,67 @@ interface ITelephony { /** * Check if we are in either an active or holding call + * @param callingPackage the name of the package making the call. * @return true if the phone state is OFFHOOK. */ - boolean isOffhook(); + boolean isOffhook(String callingPackage); /** * Check if a particular subId has an active or holding call * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is OFFHOOK. */ - boolean isOffhookForSubscriber(int subId); + boolean isOffhookForSubscriber(int subId, String callingPackage); /** * Check if an incoming phone call is ringing or call waiting * on a particular subId. * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is RINGING. */ - boolean isRingingForSubscriber(int subId); + boolean isRingingForSubscriber(int subId, String callingPackage); /** * Check if an incoming phone call is ringing or call waiting. + * @param callingPackage the name of the package making the call. * @return true if the phone state is RINGING. */ - boolean isRinging(); + boolean isRinging(String callingPackage); /** * Check if the phone is idle. + * @param callingPackage the name of the package making the call. * @return true if the phone state is IDLE. */ - boolean isIdle(); + boolean isIdle(String callingPackage); /** * Check if the phone is idle on a particular subId. * * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return true if the phone state is IDLE. */ - boolean isIdleForSubscriber(int subId); + boolean isIdleForSubscriber(int subId, String callingPackage); /** * Check to see if the radio is on or not. + * @param callingPackage the name of the package making the call. * @return returns true if the radio is on. */ - boolean isRadioOn(); + boolean isRadioOn(String callingPackage); /** * Check to see if the radio is on or not on particular subId. * @param subId user preferred subId. + * @param callingPackage the name of the package making the call. * @return returns true if the radio is on. */ - boolean isRadioOnForSubscriber(int subId); + boolean isRadioOnForSubscriber(int subId, String callingPackage); /** * Check if the SIM pin lock is enabled. @@ -380,40 +388,46 @@ interface ITelephony { /** * Returns the CDMA ERI icon index to display + * @param callingPackage package making the call. */ - int getCdmaEriIconIndex(); + int getCdmaEriIconIndex(String callingPackage); /** * Returns the CDMA ERI icon index to display on particular subId. * @param subId user preferred subId. + * @param callingPackage package making the call. */ - int getCdmaEriIconIndexForSubscriber(int subId); + int getCdmaEriIconIndexForSubscriber(int subId, String callingPackage); /** * Returns the CDMA ERI icon mode, * 0 - ON * 1 - FLASHING + * @param callingPackage package making the call. */ - int getCdmaEriIconMode(); + int getCdmaEriIconMode(String callingPackage); /** * Returns the CDMA ERI icon mode on particular subId, * 0 - ON * 1 - FLASHING * @param subId user preferred subId. + * @param callingPackage package making the call. */ - int getCdmaEriIconModeForSubscriber(int subId); + int getCdmaEriIconModeForSubscriber(int subId, String callingPackage); /** * Returns the CDMA ERI text, + * @param callingPackage package making the call. */ - String getCdmaEriText(); + String getCdmaEriText(String callingPackage); /** * Returns the CDMA ERI text for particular subId, * @param subId user preferred subId. + * @param callingPackage package making the call. */ - String getCdmaEriTextForSubscriber(int subId); + String getCdmaEriTextForSubscriber(int subId, String callingPackage); /** * Returns true if OTA service provisioning needs to run. @@ -440,28 +454,30 @@ interface ITelephony { int getVoiceMessageCountForSubscriber(int subId); /** - * Returns the network type for data transmission - */ - int getNetworkType(); + * Returns the network type for data transmission + * @param callingPackage package making the call. + */ + int getNetworkType(String callingPackage); /** * Returns the network type of a subId. * @param subId user preferred subId. - * Returns the network type + * @param callingPackage package making the call. */ - int getNetworkTypeForSubscriber(int subId); + int getNetworkTypeForSubscriber(int subId, String callingPackage); /** - * Returns the network type for data transmission - */ - int getDataNetworkType(); + * Returns the network type for data transmission + * @param callingPackage package making the call. + */ + int getDataNetworkType(String callingPackage); /** - * Returns the data network type of a subId - * @param subId user preferred subId. - * Returns the network type - */ - int getDataNetworkTypeForSubscriber(int subId); + * Returns the data network type of a subId + * @param subId user preferred subId. + * @param callingPackage package making the call. + */ + int getDataNetworkTypeForSubscriber(int subId, String callingPackage); /** * Returns the network type for voice @@ -492,20 +508,22 @@ interface ITelephony { * is a tri-state return value as for a period of time * the mode may be unknown. * + * @param callingPackage the name of the calling package * @return {@link Phone#LTE_ON_CDMA_UNKNOWN}, {@link Phone#LTE_ON_CDMA_FALSE} * or {@link PHone#LTE_ON_CDMA_TRUE} */ - int getLteOnCdmaMode(); + int getLteOnCdmaMode(String callingPackage); /** * Return if the current radio is LTE on CDMA. This * is a tri-state return value as for a period of time * the mode may be unknown. * + * @param callingPackage the name of the calling package * @return {@link Phone#LTE_ON_CDMA_UNKNOWN}, {@link Phone#LTE_ON_CDMA_FALSE} * or {@link PHone#LTE_ON_CDMA_TRUE} */ - int getLteOnCdmaModeForSubscriber(int subId); + int getLteOnCdmaModeForSubscriber(int subId, String callingPackage); /** * Returns the all observed cell information of the device. @@ -890,9 +908,10 @@ interface ITelephony { * Get phone radio type and access technology. * * @param phoneId which phone you want to get + * @param callingPackage the name of the package making the call * @return phone radio type and access technology */ - int getRadioAccessFamily(in int phoneId); + int getRadioAccessFamily(in int phoneId, String callingPackage); /** * Enables or disables video calling. |