Loading telecomm/java/android/telecom/TelecomManager.java +23 −3 Original line number Diff line number Diff line Loading @@ -691,7 +691,7 @@ public class TelecomManager { getTelecomService().clearAccounts(packageName); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#clearAccountsForPackage()", e); Log.e(TAG, "Error calling ITelecomService#clearAccountsForPackage", e); } } Loading Loading @@ -726,7 +726,7 @@ public class TelecomManager { return getTelecomService().isVoiceMailNumber(accountHandle, number); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling isInCall().", e); Log.e(TAG, "RemoteException calling ITelecomService#isVoiceMailNumber.", e); } return false; } Loading @@ -746,11 +746,31 @@ public class TelecomManager { return getTelecomService().hasVoiceMailNumber(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling isInCall().", e); Log.e(TAG, "RemoteException calling ITelecomService#hasVoiceMailNumber.", e); } return false; } /** * Return the line 1 phone number for given phone account. * * @param accountHandle The handle for the account retrieve a number for. * @return A string representation of the line 1 phone number. * * @hide */ @SystemApi public String getLine1Number(PhoneAccountHandle accountHandle) { try { if (isServiceConnected()) { return getTelecomService().getLine1Number(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling ITelecomService#getLine1Number.", e); } return null; } /** * Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding * states). Loading telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,11 @@ interface ITelecomService { */ boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getLine1Number */ String getLine1Number(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getDefaultPhoneApp */ Loading Loading
telecomm/java/android/telecom/TelecomManager.java +23 −3 Original line number Diff line number Diff line Loading @@ -691,7 +691,7 @@ public class TelecomManager { getTelecomService().clearAccounts(packageName); } } catch (RemoteException e) { Log.e(TAG, "Error calling ITelecomService#clearAccountsForPackage()", e); Log.e(TAG, "Error calling ITelecomService#clearAccountsForPackage", e); } } Loading Loading @@ -726,7 +726,7 @@ public class TelecomManager { return getTelecomService().isVoiceMailNumber(accountHandle, number); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling isInCall().", e); Log.e(TAG, "RemoteException calling ITelecomService#isVoiceMailNumber.", e); } return false; } Loading @@ -746,11 +746,31 @@ public class TelecomManager { return getTelecomService().hasVoiceMailNumber(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling isInCall().", e); Log.e(TAG, "RemoteException calling ITelecomService#hasVoiceMailNumber.", e); } return false; } /** * Return the line 1 phone number for given phone account. * * @param accountHandle The handle for the account retrieve a number for. * @return A string representation of the line 1 phone number. * * @hide */ @SystemApi public String getLine1Number(PhoneAccountHandle accountHandle) { try { if (isServiceConnected()) { return getTelecomService().getLine1Number(accountHandle); } } catch (RemoteException e) { Log.e(TAG, "RemoteException calling ITelecomService#getLine1Number.", e); } return null; } /** * Returns whether there is an ongoing phone call (can be in dialing, ringing, active or holding * states). Loading
telecomm/java/com/android/internal/telecom/ITelecomService.aidl +5 −0 Original line number Diff line number Diff line Loading @@ -125,6 +125,11 @@ interface ITelecomService { */ boolean hasVoiceMailNumber(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getLine1Number */ String getLine1Number(in PhoneAccountHandle accountHandle); /** * @see TelecomServiceImpl#getDefaultPhoneApp */ Loading