History log of /packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
96a0be67619944378d95cdedc64b004aadb341e2 01-Dec-2016 Christine Hallstrom <hallstrom@google.com> Handle audio route restrictions set on calls

When a call restricts audio routes, it will move the audio route to a
supported route if available. The supported routes are determined initially
and re-evaluated when the call becomes the foreground call.

This is a cherry-pick of abandoned ag/1520954

Bug: 32958838
Change-Id: Ie30847c995839516507df0c70178a591c39f6cdd
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
0c87b3c31f4ce9e47a07e40012cf669a763a1575 11-Jun-2016 Brad Ebinger <breadley@google.com> Add Group Id tracking in PhoneAccountRegistrar

Adds Group Ids to the DefaultPhoneAccountHandle in Telecom in order to
keep track of the group that the currently registered PhoneAccounts
belong to. If registerPhoneAccount is called with a new PhoneAccount
that has the same group Id as a currently registered PhoneAccount, then
remove the registered PhoneAccount and register the new PhoneAccount
with the old PhoneAccount's defaults and enabled status. This allows us
to transparently change PhoneAccounts and keep the calling account
defaults the same.

Bug: 28173788
Change-Id: Ida44e348903d2ba6b8b8f8cc64a5b13cff68c1c2
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
cf0c8e1169abdd9800996d6f79a79832c850415e 27-Jan-2016 Tony Mak <tonymak@google.com> Merge "Fix phone account is disabled everytime after reboot"
f41779d25e81e11e15d635989db403f92520cb8f 27-Jan-2016 Shishir Agrawal <shishir@google.com> Merge "Unhiding MSIM APIs."
3f7f64d6042f32bfda99b13d053bd49997a08306 08-Jan-2016 Hall Liu <hallliu@google.com> Perform disk operations in background thread

Use a background thread to perform writes in PhoneAccountRegistrar in
order to avoid disk operations in an UI thread.

(cherry picked from commit d0fc618d74descbff09b783a150d9547148e5b47)

Bug: 26069217
Change-Id: I389ddaac3648696d8ce78620cf2734662891edf2
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
ce68874475498dcb69a543559177d69ac6dae215 26-Jan-2016 Shishir Agrawal <shishir@google.com> Unhiding MSIM APIs.

1. Unhide MSIM APIs in TelephonyManager that already have non-MSIM equivalent
APIs public.
2. Make MSIM API naming consistent (overloaded, no suffix).
3. Unhide APIs in SubscriptionManager that are necessary for MSIM.

Bug: 26772894
Change-Id: I7a1826255370e9a8c7c62516eb49725dce377c8c
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
54df728296ba42c46a9445271985ae1b74def5cc 26-Jan-2016 Tony Mak <tonymak@google.com> Fix phone account is disabled everytime after reboot

There is a bug in the code that deserializes phone account from xml,
all phone accounts without extra are disabled after reboot!

The tag next to "extra", which is "enabled", is swallowed in the
readBundle function and hence the value is ignored.

Also update test case to cover this case.

BUG=26792269

Change-Id: I2387c7aed93b79d636ede2c9da4256b3272e86b0
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
483671620a809b5fc00bde3b694bdffb0fb72437 15-Jan-2016 Tony Mak <tonymak@google.com> Remove the default phone account when it is being disabled

BUG=26557929

Change-Id: I977f6c08ddcaa127b08c0ff99acbfc3d416f9215
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
ecda55454f4993003e71e09a63d20f94a216cc47 04-Dec-2015 Hall Liu <hallliu@google.com> Add unit tests for TelecomServiceImpl

Added unit tests for TelecomServiceImpl and added some refactoring to
avoid static dependencies in TelecomServiceImpl.

Change-Id: I22a54e1e36c3a44dc07f65f534c0b9b6d534abd9
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
4a3e2fd2b783c9f667a719237ef527ebe686fe32 04-Dec-2015 Tony Mak <tonymak@google.com> Allow setting default phone account handle per user

The problem we cannot have every users has their own user handle is becoz
we did not store user handle.
Store default phone account handle with user handle, so that every user
can has it owns default phone account handle.

Bug: 25941865

Change-Id: Iad8a920e9ceeb9caa8a7d8bc6a1d2f2dfc8dcd58
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
240656f19c078b4f703d0502ce29114de0d45a50 04-Dec-2015 Tony Mak <tonymak@google.com> Methods in PhoneAccountRegistrar should ask for userhandle explicitly

1. Get calling user handle before calling clearCallingIdentity
2. Methods in PhoneAccountRegistrar asked for the user handle explicitly
instead of trying both current user and calling user
3. Modify isVisibleForUser in PhoneAccountRegistrar,
- PA with CAPABILITY_MULTI_USER is visible to all users including
managed profile (We are still discussing this, but let's assume it
works in this way and change it later if necessary)
- For other PAs, they are only visible within the user they are
registered to.
- TelecomManager.getPhoneAccount is an exception case. The visibility
checking of getPhoneAccount allowing a PhoneAccountHandle from other
profiles in the same user.
Reason:
Telecom passes PhoneAccountHandle to incall UI and incall UI
retrieves PhoneAccount from the handle.
It is because we never bind to managed profile's incall UI, and bind
to its parent user provided one instead. So phone account handle in
managed profile is passed to it's parent user incall UI. And we need
to allow parent user incall UI to retrieve the PhoneAccount from
the handle.

4. Please notice that the default PA account related APIs does not really
support multi-users. The backend (xml storage) does not include user
as a key and it should be able to store one default only and is shared
among all users. This problem is not fixed in this commit.

Bug: 25936882

Change-Id: Ia371723d68247a208a0c1185f6d02f1b5897946a
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
98e6bdc795585b0d332a7eb86245926c8d80609a 25-Nov-2015 Tony Mak <tonymak@google.com> Update calllog insertion logic

Here are behaviors defined by Lilian, we may revisit the behavior later.

1. Calls using multi user PhoneAccount are inserted to all users
except managed profile.

2. Outgoing call placed through work dialer is inserted into managed profile
only.

3. Calls using non-multi user PhoneAccount should be only inserted to
that particular user.

Change-Id: I84f54afb3af38b931b71063608f38d265aa0417c
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
5385513ae43b4d5896245bf076a83b27dbf32a25 30-Oct-2015 Brad Ebinger <breadley@google.com> Add BluetoothPhoneServiceImpl testing

Adds unit tests for BluetoothPhoneServiceImpl.java, which manages
telecom's interfacing with a headset, including headset events
and connect/disconnect during a call.

Change-Id: Ia692b02f8e4d3fc52b0e266409a4c5ed1ca2e7b8
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
32a28c7d7724ff8563da81502aac3b027c9f700d 28-Oct-2015 Xiaohui Chen <xiaohuic@google.com> Merge "clean up USER_OWNER in Telecomm"
f734e619dfe24d1416c2752743e732c51ea2a50d 17-Oct-2015 Bryce Lee <brycelee@google.com> am 27b8c102: am 881a40b6: am 0f71e992: Merge "Handle emergency only phone accounts." into cw-e-dev

* commit '27b8c102e3eb1419c066d61bd1cf6b4e57edebcc':
Handle emergency only phone accounts.
a0bb705db62a254741629942e29c61da663449ff 16-Oct-2015 Bryce Lee <brycelee@google.com> Handle emergency only phone accounts.

Do not expose the emergency only phone account (only marked for wear)
unless we are explicitly querying for accounts that can place emergency
calls.

Bug: 24756957
Change-Id: I195bf25fdaced8ee0be411281d32e422a2987138
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
64196864859c3b46502002edacc235fc83f4aa32 13-Oct-2015 Xiaohui Chen <xiaohuic@google.com> clean up USER_OWNER in Telecomm

Bug: 22956426
Change-Id: I7a046d8c05e4e9d3958742a23493979055d39b42
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
369c8740adecbb47a17171f861322a76588a6319 08-Oct-2015 Tyler Gunn <tgunn@google.com> Add store/retrieve of PhoneAccount extras to PhoneAccountRegistry.

- Add write/read to parser.
- Add Unit test case for XML parsing.
- Add test extra data test ConnectionService phone accounts.

Bug: 22806380
Change-Id: Ib01843ee859616eb6674f070a674b792d52b8869
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
8ed7eeb62df48943eae3caac3005beaefa53330c 08-Sep-2015 Sailesh Nepal <sail@google.com> Change requirements for emergency call timeout

Previously if a SIM call manager was set we allowed
emergency calls to timeout if:
- the device was not in service
- and the device was connected to Wi-Fi
- and a connection manager with a emergency capability
was registered

Unfortunately this prevented scenarios like making an
e911 call over LTE. This CL changes the requirements to
the following:
- a connection manager with a emergency capability
is registered
- and the connection manager was set by the carrier

Bug: 19199181
Bug: 23900801

Change-Id: I8fd05e88e3c02b90170b5809366b71627b2cfbd5
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
7c64a4ee56436c6e3d2492f6c1d1076e10c862ee 25-Aug-2015 Anthony Lee <anthonylee@google.com> Don't print PII

Bug: 22907228
Change-Id: I2e6cc9264a093d4864c4a59df62be84c34bc1c39
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
6f752c88d583f3f8f149919aefdb667e3176fef8 10-Aug-2015 Roshan Pius <rpius@google.com> Migrate existing SIP PhoneAccount IDs to username.

We've changed the SIP phone accounts to use the SIP username as
account handle ID in M (ag/685031). So, need to migrate all existing
SIP phone accounts when upgrading from L or lower releases to use the
new account handle ID.
Adding a new version of the phone-account-registrar-state.xml file to
detect the need to migrate and replace the SIP URI's on the accounts
with only the username.

BUG: 23028921
Change-Id: I8cc6f099ec9cafb71c5cf6d040245ddb6a3b00ea
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
fc43ea86697d3d052415cbb4feda7bd508563532 29-Jul-2015 Sailesh Nepal <sail@google.com> Add user ID parameter for getSimCallMangaer

The sim call manager depends on the default dialer
which is a per user setting.

This CL adds a user ID to the getSimCallManager API.

BUG: 22790160
Change-Id: Icaf1db6c6943b3ddbd16a946a81d1bfb734d761f
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
b195723690b08ec025690b40497813ecc1b459bf 30-Jun-2015 Yorke Lee <yorkelee@google.com> Fix TelecomManager.isVoicemailNumber

Bug: 22184528
Change-Id: I7ce3f060d5c7a8caf8a5980bbb9b22aecae89aa4
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
46002293dbb08fdf21dddf0bf205638f674f5afa 29-Jun-2015 Tyler Gunn <tgunn@google.com> Merge "Fix to handle ConcurrentModificationException" into mnc-dev
b3ccd7e4ea41b733b46be5d15fb351faa3aa7645 27-Jun-2015 Sailesh Nepal <sail@google.com> Fix getSimCallManager to return non-null value

Getting the sim call manager always returned null.
This was a small typo. Fix was to return the actual handle.

BUG: 22127349
Change-Id: I6903b21b60ee51bcb85944035b3d861b97000aab
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
8f89f8d2a01385ca2972d2254b1b8c653e1bbe30 14-Apr-2015 Shriram Ganesh <sganesh@codeaurora.org> Fix to handle ConcurrentModificationException

Phone account list was being accessed by multiple threads
for add/remove/query at the same time.
Fix: Changed the Phone account list to CopyOnWriteArrayList
to make it thread safe.

Bug: 22060339
Change-Id: Ia213ea2465bd1fe306c2dfc8ff0d71ccab55d8a9
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
59c21a747c31773a67a32675be29c4d0537a3513 11-Jun-2015 Santos Cordon <santoscordon@google.com> Change Sim Call Managers to use default dialer app instead.

Bug: 21499476
Change-Id: I60505ac1699f287656434b55d81aa61d4ae4ce14
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
ab59adf3d1eae4ad194e6c24c839ee686a32df23 17-Jun-2015 Sailesh Nepal <sail@google.com> Remove OEM config for sim call manager [Telecom part]

This is the telecom part of deleting the OEM config.
See ag/710820 for the overlay part.

We can now set the default sim call manager using the following carrier config:
CarrierConfigManager.KEY_DEFAULT_SIM_CALL_MANAGER_STRING

This CL removes the old OEM config value.

BUG: 21499566
Change-Id: Ib287fa6d2c80b950fa1cb65e98c470fd7290c95c
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
aecfa9be525bd91902f975d7f7011ef2dd2d950c 16-Jun-2015 Sailesh Nepal <sail@google.com> Use a carrier config to get the sim call manager

Currently the default sim call manager is set using an OEM
config. We want to switch to using a carrier config.

With this CL, carriers can set the sim call manager using
the CarrierConfigManager.KEY_DEFAULT_SIM_CALL_MANAGER_STRING
config.

Once the carrier config is rolled out we can remove the OEM config.

BUG: 21499566

Change-Id: Ic0d33673b8a6424c6c20eb6686aa29dc35d4dfcd
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
abb6cc62b9b3502278bcaea68d09fbf140605221 12-Jun-2015 Santos Cordon <santoscordon@google.com> Merge "Add more logging." into mnc-dev
a9eebe4bd03a916655fd5b0d4f4fb9e8fdbc0ce8 11-Jun-2015 Santos Cordon <santoscordon@google.com> Mark all SIM accounts as enabled.

Since there is no way to disable a SIM account, make sure that on
upgrade from Lollipop, all SIM accounts are enabled.

Bug: 21674348
Change-Id: Ic649a6a748fcf768c7cfce5feb6e339d532e0e19
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
5fa4e4f1eb98f052cc0ee4b3ad0f6acb8e92c719 10-Jun-2015 Santos Cordon <santoscordon@google.com> Add more logging.

1) Call state logging was lost in a merge conflict, adding that back.
2) Adding better ringing state logging. Fixes problems:
- No more superfluous "STOP_RINGER" logging
- Adding call-waiting logging
- More accurate call attribution for start and stop ringing

Change-Id: Ie41340ab6790a6c5f87f5592836b29bf6799708d
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
71734c2db8a4e412d833b267777dd011e04cc942 02-Jun-2015 Yorke Lee <yorkelee@google.com> Allow default dialer changes and phone account enable/disable via ADB

Add commands accessible via adb shell that can be used for CTS tests
without the need for adb root
*set-phone-account-enabled
*set-phone-account-disabled
*set-default-dialer
*get-default-dialer

Modify enablePhoneAccount/setDefaultDialer to indicate success.

Remove now unused functionality in ProtectedEnableAccountPreferenceActivity
and ProtectedChangeDefaultDialerActivity.

Bug: 21583012
Change-Id: I542d145cc969334c004b8344fbbb01f278256f9d
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
76bcc370ae80c28ba1979d09a30b9fa0f88b73a6 02-Jun-2015 Sharvil Nanavati <sharvil@google.com> PhoneAccountRegistrar#getSimCallManager should consider disabled PhoneAccounts.

The enabled property of a PhoneAccount doesn't apply to connection managers.
This change simply iterates over all phone accounts, even if they're disabled,
to find the active call manager.

Without this change, the default call manager would be set to "None" in the
Dialer UI. getSimCallManager would return null because the default call
manager's PhoneAccount is disabled.

Bug: 21520812
Change-Id: Ieae8f5c377c47111acf262ff4bc0cf07db6ef64d
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
b515ec27fbba2b38f2d79afa3f83b700c82abc59 28-May-2015 Santos Cordon <santoscordon@google.com> Merge "Enable all older SIP-based accounts" into mnc-dev
a82aed819d3a86b748d9e403fb288967a10dcdf2 26-May-2015 Santos Cordon <santoscordon@google.com> Enable all older SIP-based accounts

Bug: 21436375
Change-Id: I1ba32804ba80fb32a961872c8fa0fcda7a49c831
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
a6b20a1ff1cd967323ba72cd1b2c9382262dc6e6 22-May-2015 Santos Cordon <santoscordon@google.com> Merge "Protecting PII data." into mnc-dev
3188b364c360f83631fe1c7623c0e4252088b3c6 22-May-2015 Santos Cordon <santoscordon@google.com> Protecting PII data.

Bug: 21204385
Change-Id: I95a82e6ae79b728ed75da25be3beedd0e66d5b41
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
e8b0a21786a310c1d11f441d2f4694df507bb403 22-May-2015 Sharvil Nanavati <sharvil@google.com> Merge "Fix bug where selecting the "None" call assistant wouldn't work." into mnc-dev
a8d6a384981a48a734fafdfdf48fb93f79762e09 22-May-2015 Sharvil Nanavati <sharvil@google.com> Fix bug where selecting the "None" call assistant wouldn't work.

We'd always fall back to the default call assistant from the XML
config.

Bug: 21093114
Change-Id: I841ebe2ef6432cae36530794908f2000306fb69c
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
638f05cb620a17ae7334486d2f53e223ac65eef5 20-May-2015 Santos Cordon <santoscordon@google.com> Add intent for enabling phone account.

Bug: 20303449
Change-Id: If6e717260df01160308fd395a6aac413aa5206d5
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
0a4b95fc7731943fdd1a9b295daae45eb46b28d0 18-May-2015 Ihab Awad <ihab@google.com> Fix test bitrot breakages

Change-Id: I39cbcd078c07fd48ca9b00abce21871ef273b19d
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
ea5cb93d81099f17654e0fdf9b8eda3bfa89f081 08-May-2015 Santos Cordon <santoscordon@google.com> Provide enable property on phone accounts.

Bug: 20303449
Change-Id: I4b9cb0e29377233ed4fc01757570351ee6e5856e
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
e10b8d178b1db10dc217cad73f0124f9e4410d3c 14-May-2015 Yorke Lee <yorkelee@google.com> Merge "Add BIND_TELECOM_CONNECTION_SERVICE permission" into mnc-dev
9c30c280f0007eb32d3ae9a7cad8ceb68120ca41 14-May-2015 Santos Cordon <santoscordon@google.com> [2/4] Use new Icon class in PhoneAccount.

Bug: 21088522
Change-Id: If57c3cb2f1c6630b6bd66e55862bec564e817945
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
7bb8ce9b4e7ffa5e603d8bd8780f55a1c2ced071 14-May-2015 Yorke Lee <yorkelee@google.com> Add BIND_TELECOM_CONNECTION_SERVICE permission

Bug: 21088342
Change-Id: I465307899d83c4a3ee5e88a28554c4b867c1f4ba
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
6a2126477ce3f527ecaec807fe4f40cd13ff02b0 09-May-2015 Santos Cordon <santoscordon@google.com> Clean up PhoneAccountRegistrar.

Cleanup lots of duplicate code and consolidate all phone account
retrievals into a single method: getPhoneAccounts(...).

Consolidate checks for capabilities, package-name, uri, and
isVisibleForUser(...). This will be very helpful when
implementing enable/disable for phone accounts.

Bug: 20303449
Change-Id: I24d63cd313876f5d9390f2eb31c0ce79d7cb0ab2
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
91fc8099a0690a3367eb206788c9c25ceff31875 15-Feb-2015 Sailesh Nepal <sail@google.com> Fix connection manager bugs related to work profiles

When calling TelecomManager.addNewIncomingCall with an account
that's was not registered we would crash. Fix was to check
for a null phone account.

Various TelecomManager APIs would throw security exceptions when
called from a work profile. Fix was to:
- switch to using APIs that allowed the user to be specified.
For example, using queryIntentServicesAsUse instead of
getServiceInfo
- don't look for work profiles if the calling user isn't the
owner.

The default connection manager (set using a config.xml overlay)
didn't work with work profiles. Fix was to allow the default
connection manager to resolve against the calling process's
user handle.

BUG: 19300886, 19301690, 19301359
Change-Id: I49d75b69dcfc829b74a5483d7a011f17d8d06838
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
479b3025ef8be1a115468fd6c113afa24cca2790 06-Feb-2015 Santos Cordon <santoscordon@google.com> Update Telecom to use getSubId* method

Remove custom code to convert PhoneAccount to sub-id from telecom and
start using the TelephonyManager version.

Change-Id: If324b4e577e4c0a43f93dd43e833d48a65e949cd
/packages/services/Telecomm/src/com/android/server/telecom/PhoneAccountRegistrar.java
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