History log of /packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
105d977687d1d0de7cd9420fc140b01404261df1 25-Nov-2014 Evan Charlton <evanc@google.com> Track (and use) UserHandle to make connections

When binding to services, use the UserHandle which registered the
PhoneAccount in order to ensure that the correct user receives the
Intent.

Also make sure that TelecomManager does not leak PhoneAccounts across
profiles, unless the caller is a system-privileged app. PhoneAccounts
will not leak across users, even for system-privileged apps.

Bug: 17421902
Bug: 17421044
Change-Id: I673904a7ae038c88688bba62642e93174e55c308
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
07bc5ee853bc9a0b4cd46e0c702888b2c7989392 12-Nov-2014 Ihab Awad <ihab@google.com> Telecom API updates (4/6)

Bug: 18292176

Change-Id: I28e6aa4fec20aadd77f9a861b0bb8e1e9828cffb
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
33c05d3d8bf97bc8748d573858f2330c69902922 20-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
668dee01ed4fb495c3711f6fd041a520b60a9a7f 20-Nov-2014 Nancy Chen <nancychen@google.com> Hide "respond via SMS" option for non-default SMS SIM.

If an incoming call is coming in through the non-default SMS SIM, do not
show the "respond via SMS" option. This is to prevent accidentally
sending the SMS through a SIM the user may not want to use for SMS.

Bug: 18275919
Change-Id: I0136f30d6341e72ac6e914de41f9c41bd58f1bbb
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
7e2c7f34dde14afd18c13d39777331ec2ef3a46a 03-Nov-2014 Ihab Awad <ihab@google.com> Update PhoneAccount icon API (5/6)

Bug: 18291787

Change-Id: I0b83c0d36c67e12c27355d0893a0fa78a4f3aaa6
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
6ae4c99172fea38e16055e51484e550e6bba4aa1 06-Nov-2014 Nancy Chen <nancychen@google.com> Add a subId extra to the respond via SMS intent.

In order to support replying to a caller via the same SIM that the
incoming call came through, add an extra to the respond via SMS intent
with the subId.

Bug: 18275919
Change-Id: I48ea3246194cb957045f12fea92a473ac0edaa23
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
10a5831cf61b3ab3b126329044ea05dc3181fa63 06-Nov-2014 mike dooley <mdooley@google.com> Checking that the connection service can be resolved when setting
new connection manager.

This is to fix an edge case where downgrading could cause an invalid
connection manager to be set, resulting in all calls failing.

Also filtering out unresolveable phone accounts (which prevents the UI
from showing invalid choices).

Bug: 18225329
Change-Id: If46dea2937af42b81d3d7062c385f98370015cbe
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
d9f5438b2b4595a784947b92a49406ee99de2589 24-Oct-2014 Ihab Awad <ihab@google.com> PhoneAccounts include literal icon bitmap (3/4)

Change-Id: Ie3f02a5032b01e91d4620134bb7917cddd8b93e6
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
7ce6e78563893ef8da687787bd96d9b7d4af1ace 27-Oct-2014 Wink Saville <wink@google.com> Fix a long subId.

Change-Id: Ie512720965cf92591fb66996e1743b2b80612985
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
3b62312e0596321c7bd256b90ddce46ade57e1c0 27-Oct-2014 Wink Saville <wink@google.com> Merge "Change subId to int from long" into lmp-mr1-dev
5a36b6e9dcf9b5d5d065b6e1e705d67b94a388af 24-Oct-2014 Nancy Chen <nancychen@google.com> Propagate "call with" account to Telephony layer.

When the user checks "always use this for calls", the setting should
also be saved through to SubInfoRecord.

Bug:18078232

Change-Id: I42874f16521155ed79ab72da57ca8a2d967d0179
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
358506069eedd8840ff8a332362682f18e1668e7 24-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Also remove an unused method.

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
34ed74708b2ae8f6bb3b0d90e36fe81fb6c0cd9b 23-Oct-2014 Nancy Chen <nancychen@google.com> am bf35150d: Merge "Revert "Revert "Add color to PhoneAccount objects (2/3)""" into lmp-sprout-dev

* commit 'bf35150db3ad0ce05130db1880485da167d2e373':
Revert "Revert "Add color to PhoneAccount objects (2/3)""
bf35150db3ad0ce05130db1880485da167d2e373 23-Oct-2014 Nancy Chen <nancychen@google.com> Merge "Revert "Revert "Add color to PhoneAccount objects (2/3)""" into lmp-sprout-dev
06ce062a2ceb7ca73560edd6b2f85d0f16a17667 23-Oct-2014 Nancy Chen <nancychen@google.com> Revert "Revert "Add color to PhoneAccount objects (2/3)""

This reverts commit 5f8eaaee9c50567a4b2714bd28b4ed39b7aac2b7.
We're ready to add color to PhoneAccounts

Change-Id: Ie65a13e565c26ea5e93f0835bb2c4684140455c9
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
b1c12f0a8ae1fd7402d3ca9c8268e53204020e27 17-Oct-2014 Nancy Chen <nancychen@google.com> am 140004a1: Use Telecom API for checking if a number is voicemail (2/2)

* commit '140004a104402fde514f8a2182dc2d10a4f6917d':
Use Telecom API for checking if a number is voicemail (2/2)
9c95a953c1c39f21e8fb6f4e2fe58441f43b488e 17-Oct-2014 Nancy Chen <nancychen@google.com> am 5610e1de: Merge "Revert "Add API method to extract subscription ID from phone account (2/3)"" into lmp-sprout-dev

* commit '5610e1de7ee7bfb1543efce4a09b60028aba5ba5':
Revert "Add API method to extract subscription ID from phone account (2/3)"
140004a104402fde514f8a2182dc2d10a4f6917d 16-Oct-2014 Nancy Chen <nancychen@google.com> Use Telecom API for checking if a number is voicemail (2/2)

Since we don't want to communicate directly with Telephony in dialer,
call
PhoneNumberUtils.isVoiceMailNumber (a Telephony method) through the
Telecom API. Add a method in TelecomManager to do this.

Bug: 17925501

Change-Id: Id1e5824f27ef40f64b8a03ee912d82d1cc5324ac
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
178b3c4a023bb77835a1deecd6288854b48a2244 16-Oct-2014 Nancy Chen <nancychen@google.com> Revert "Add API method to extract subscription ID from phone account (2/3)"

This reverts commit e6c7587d9d208dfb4b62749cfa3ac4f6ff9c0c3a.

Change-Id: I4bdee16074cac190ea90101bf8cb7b40a1315499
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
75a9b63c753c8f52e6edb239095170301694de93 15-Oct-2014 Nancy Chen <nancychen@google.com> am f3ccd9d1: Merge "Add API method to extract subscription ID from phone account (2/3)" into lmp-sprout-dev

* commit 'f3ccd9d13f5451b54bb157625d4ede6dcb32d7f2':
Add API method to extract subscription ID from phone account (2/3)
e6c7587d9d208dfb4b62749cfa3ac4f6ff9c0c3a 09-Oct-2014 Nancy Chen <nancychen@google.com> Add API method to extract subscription ID from phone account (2/3)

Since Telephony uses subscription ids and Telecom uses Phone Accounts,
there should be an easy way to interface between the two. Since the
value of the subscription id and "id" of the phone account should be the
same in the case of a SIM phone account, we just need to check that the
phone account in question is a SIM phone account and convert the string
to a long.
This lays in groundwork for the following bugs:

Bug: 17925501
Bug: 17917937
Change-Id: Iee044e3d6b88f598eefd3bafd01d2ca3b5ac0bb8
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
9787e0e80d8960cf8b0ca74c7cdc4c4aac97187a 14-Oct-2014 Tyler Gunn <tgunn@google.com> Adding more Telecom state dumping.

Bug: 17730966
Change-Id: I47c83591417784c9484002213230065514b43f63
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
5f8eaaee9c50567a4b2714bd28b4ed39b7aac2b7 12-Oct-2014 Ihab Awad <ihab@google.com> Revert "Add color to PhoneAccount objects (2/3)"

This reverts commit 09c1fec085e1e2b350b36cc4fcbcc31865945a51.
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
615fcd62c503e9dd3a718a84273aa544b955b84b 09-Oct-2014 Ihab Awad <ihab@google.com> Add color to PhoneAccount objects (2/3)

Change-Id: I2c53dbf3275b4c46933cf23e228a10936145cb9f
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
1c5926fc5f3c828c5b16c25a5154e5a0306ea3e7 17-Sep-2014 Nancy Chen <nancychen@google.com> Replace get*PhoneAccounts* public API methods with new method (2/3)

Hide getCallCapablePhoneAccounts and getPhoneAccountsSupportingScheme
because a third party app should not be able to see all phone accounts
registered. Replace instead with getPhoneAccountsForPackage(Context)
which will only return the phone accounts registered by a particular package.
Also pass available phone accounts for the user to select from through
Telecom to InCallUI so InCallUI will not be calling the Telecom API
directly to get these accounts.

Bug: 17510811

Change-Id: Ia91972bc4cfa938b743f6b3b165a81d4acd58c45
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
91d43cf9c985cc5a83795f256ef5c46ebb8fbdc1 17-Sep-2014 Tyler Gunn <tgunn@google.com> Preparatory work to move Telecom to system service.

- Removed use of TelecomApp.getInstance() as context.
- Refactored singleton logic and initialization to support being
performed from a SystemService.
- Note: You will see some commented out references to
"import com.android.internal.R"; these must uncommented when the code
is moved to a system service.
- You will also notice in PhoneAccountRegistrar.java a comment block with:
"UNCOMMENT_FOR_MOVE_TO_SYSTEM_SERVICE"
The code in that comment block will replace the existing file path
code.
These were added as a convenience so that I can run a simple sed script
to make the required changes to the code in an automated manner once it
is moved to its new location.

Bug: 17364651
Change-Id: I8e80e9cffc481b688c10a2bca0b59f5ccf8e0fb2
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
309198ec4d8b2738cf955316ea7a2f9418929fd1 16-Sep-2014 Nancy Chen <nancychen@google.com> Remove ability to enable/disable phoneaccounts (3/6)

Enabling/disabling of phone accounts was only used for SIP accounts and
is no longer necessary for the purpose it was put in.
- Remove all references to enabling/disabling phone accounts
+ Rename getEnabledPhoneAccounts to getCallCapablePhoneAccounts

Bug: 17510811
Change-Id: I5e8a59fe2aaac2563fe4bf97138975e30b45aa3c
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
e3d8245f09c9d5333ebc7e2d82e684ecfeb6040e 15-Sep-2014 Santos Cordon <santoscordon@google.com> Remove config variable to disable connection service APIs

Bug: 17445268
Change-Id: I152225ffdb81dafb9bd972d7294f05a8e6e0c746
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
7cc70b4f0ad1064a4a0dce6056ad82b205887160 13-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: Ib7b20ba6348948afb391450b4eef8919261f3272
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java