History log of /packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
ec2a7d46128888f025dc3248d083043b978a46f4 23-Oct-2014 Santos Cordon <santoscordon@google.com> Add permission to CONNECTION_MANAGER PhoneAccount registration.

We need to add a system-level permission for registering PhoneAccounts
to prevent third party apps from registering and being able to
control the call.

Bug: 18100571
Change-Id: I06de9311620b271904babc78f23faff90a15e1a9
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
9250e5fa9987c3ab80e11e1955657055f5866539 01-Oct-2014 Yorke Lee <yorkelee@google.com> Add ability to add sim-initiated MO call to UI (3/4)

Pipe an unknown call through CallsManager via various new APIs like
onSuccessfulUnknownCall, onFailedUnknownCall, etc. These are the unknown call's
equivalent of onSuccessfulOutgoingCall and onFailedOutgoingCall.

Only the TelephonyConnectionService is allowed to call this hidden new API
in Telecom.

Also add the ability for TestConnectionService to test this API (although the
check for TelephonyConnectionService must be disabled at build time first).

Bug: 16852844
Change-Id: I5dfdfc1bd4675f6b300a4a55a3098582f9d715a2
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
6dc1c75ff9fbabce11540c2bbe3972159899b414 24-Sep-2014 Yorke Lee <yorkelee@google.com> Split CallActivity into trampoline activity and CallReceiver

Move most of CallActivity logic into CallReceiver. Only significant logic
remaining in CallActivity is checking for OUTGOING_CALL_RESTRICTED and
showing a toast.

Also fixes a bug where the secondary user would never be able to make
a call if the primary user had Google Voice installed, because the
ordered broadcast is sent out for the primary user, allowing Google
voice to cancel it.

Bug: 17579886

Change-Id: Id1689f36503a74e5754b10d019a8b64024d27f77
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
5070b0da14bd2da6f68a1ba011f9125fb9d193c5 20-Sep-2014 Santos Cordon <santoscordon@google.com> Forward CallActivity invocations to the primary user.

Telecom framework runs as the primary user only.

When CALL intents are sent via startActivity, they invoke
telecom.CallActivity on the current user (activities don't allow
specifying them as singleUser="true"). This code checks to see if
CallActivity was invoked from as the secondary user and if so
forwards the intent to the primary user's version of CallActivity.
CallActivity then simply calls directly into the rest of telecom.

NOTE: Telecom already does the right thing when binding to the
In-Call UI so that the UI always shows up under the current user.

Bug: 17253031
Change-Id: Iea7ecf4aa48ed80710a1ed35603cbf4588581afc
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.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/TelecomServiceImpl.java
ce1a21ef6e0221107383b228c2219b3f0586eb67 17-Sep-2014 Tyler Gunn <tgunn@google.com> Merge "Preparatory work to move Telecom to system service." into lmp-dev
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/TelecomServiceImpl.java
a53eb7f3b260c0601f0a01dae597a789450b2872 17-Sep-2014 Sailesh Nepal <sail@google.com> Remove MODIFY_PHONE_STATE requirement for Connection Managers

3rd party apps can't get this permission.

Bug: 17546794
Bug: 17510811
Change-Id: Ic479d4efb1e3aa9f418a0cf9c9a4fd879211b4bc
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.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/TelecomServiceImpl.java
ee9649b8694f2f6867b99072b8184e998359fc7c 16-Sep-2014 Yorke Lee <yorkelee@google.com> Merge "No longer require READ_PHONE_STATE permission for getCallState" into lmp-dev
97f8c770399a8fcc3ce740129cdc01066f3ae976 16-Sep-2014 Yorke Lee <yorkelee@google.com> No longer require READ_PHONE_STATE permission for getCallState

Bug: 17510808
Change-Id: I4c10d1440fefc85d777516353e4be5245038ed68
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
f1863270a872c18f73fc59ab581194ed203e6612 12-Sep-2014 Ihab Awad <ihab@google.com> Add system feature for ConnectionService API support (3/3)

Bug: 17445268

Change-Id: I01394f91d00401c572b598ea8ffc05b613de5045
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.java
f86db2e63ec71781ac8214ed6d2603d02266143d 13-Sep-2014 Yorke Lee <yorkelee@google.com> Add getCallState to Telecomm

Use getCallState in TelecommManager.isInCall and isRinging

Bug: 17378767
Change-Id: Id356c03f7fa21297d0376d56e09ce3f45399435b
/packages/services/Telecomm/src/com/android/server/telecom/TelecomServiceImpl.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/TelecomServiceImpl.java