445 Commits

Author SHA1 Message Date
Santos Cordon
1742413b9b Even more javadocs for telecom.
Bug: 18142177
Change-Id: I4eefe422ec66bb9e14fd8a3b1ee2cb24fedbff51
2014-10-29 15:59:50 -07:00
Tyler Gunn
167230987b Merge "Communicating participant changes to conference controller." into lmp-mr1-dev 2014-10-29 21:32:53 +00:00
Santos Cordon
d9e614fd56 More updates to javadocs for Telecom APIs.
Change-Id: I8f8389f521c0d654c9bfdc3ad9670be0d118f480
2014-10-29 14:13:00 -07:00
Anthony Lee
6727926a96 Added a function to clear accounts for a specified package.
Right now, clearAcounts() only clears the accounts
for the calling package. This new function will allow a class like
PhoneAccoutBroadcastReceiver to clear accounts for any package.

Bug: 17689845
Change-Id: I24db104268535e7e0e33e093e8fab63765df0b08
2014-10-28 22:39:58 -07:00
Ihab Awad
6c37f374b5 Merge "PhoneAccounts include literal icon bitmap (1/4)" into lmp-mr1-dev 2014-10-28 23:48:20 +00:00
Ihab Awad
074bf104c8 PhoneAccounts include literal icon bitmap (1/4)
Change-Id: I9110d983c0ca6610075bd24975f1e90d123ef9c1
2014-10-28 15:56:29 -07:00
Yorke Lee
e398db4a45 Merge "Add comment to TelecomManager.getCallState" into lmp-mr1-dev 2014-10-28 22:08:51 +00:00
Yorke Lee
7c72c2d3c2 Add comment to TelecomManager.getCallState
Explain why READ_PHONE_STATE permission is not required so that
people don't try to add it in the future. Requiring the permission
causes stability crashes with legacy apps and system components
that don't have the permission.

Change-Id: Idf8766aa409d4a2c4ed3d6f81a398f4a0eb24615
2014-10-28 14:12:02 -07:00
Tyler Gunn
3bffcf78b5 Communicating participant changes to conference controller.
- Add new ConferenceParticipant parcelable class which represents a
single participant contained in the conference event package.
- Adding callbacks/listeners to Connection to handle changes to
participant state.

Bug: 18057361
Change-Id: Iadfebe84959f30f8e835f282aa994c0b92768aa6
2014-10-28 13:51:27 -07:00
Santos Cordon
ccbc3e5c66 Merge "Update javadocs for Telecom APIs." into lmp-mr1-dev 2014-10-28 20:01:01 +00:00
Santos Cordon
32c65a548c Update javadocs for Telecom APIs.
Bug: 18142177
Change-Id: I78461f3634d281a6927cec9c555825a1bdab7a24
2014-10-28 10:03:57 -07:00
Tyler Gunn
b31868df32 Merge "Remove TODO in TelecomManager." into lmp-mr1-dev 2014-10-23 23:09:16 +00:00
Santos Cordon
db7fc1e833 Merge "Remove SystemApi annotations." into lmp-mr1-dev 2014-10-23 22:58:29 +00:00
Nancy Chen
9016ecab3b am 0145e17d: Merge "Add getter methods in SubInfoRecord for UI. Adapt PhoneAccount." into lmp-sprout-dev
* commit '0145e17db742dff963ea581bc944f99358d2dace':
  Add getter methods in SubInfoRecord for UI. Adapt PhoneAccount.
2014-10-23 19:49:25 +00:00
Santos Cordon
6c4ce40206 Remove SystemApi annotations.
SystemApi only makes sense for hidden APIs.

Bug: 18097290
Change-Id: I76af5f54321c4010334ef419bb7e066663ec784c
2014-10-23 10:20:12 -07:00
Tyler Gunn
a94ae5e7e3 Remove TODO in TelecomManager.
Bug: 18095076
Change-Id: I6509d295e9e25973040e06be96cf1046edc619ff
2014-10-23 09:04:19 -07:00
Nancy Chen
2ff9572992 am df0ace26: Merge "Add an option to set the selected phone account as the default. (1/3)" into lmp-sprout-dev
* commit 'df0ace26279f16beacdf9206cb2a8ecc126aecb7':
  Add an option to set the selected phone account as the default. (1/3)
2014-10-23 08:02:23 +00:00
Nancy Chen
3ace54b895 Add getter methods in SubInfoRecord for UI. Adapt PhoneAccount.
Settings and Dialer need label, icon, and color for UI display of
subscriptions/SIMs. Add getters for these methods in SubInfoRecord. Sets
up for the following changes:
+ getIcon will return a drawable instead of a resource ID
+ getColor will return a color value instead of an index
PhoneAccount will also be adding these changes which will be adopted
from SubInfoRecord. Adds changes that were reverted from ag/563976.

Bug: 17971273
Change-Id: Ie2beedf8475c6deb48a6ab83bc9656c1142cc004
2014-10-22 21:44:45 -07:00
Nancy Chen
df0ace2627 Merge "Add an option to set the selected phone account as the default. (1/3)" into lmp-sprout-dev 2014-10-23 00:42:24 +00:00
Santos Cordon
05f4d8d1d0 am 40f15895: am 028217eb: Merge "Add hidden method to access a connection\'s service." into lmp-dev
* commit '40f158954491c4d2587e0b2a13cd07195bc27b25':
  Add hidden method to access a connection's service.
2014-10-22 20:47:15 +00:00
Nancy Chen
36c62f3e3c Add an option to set the selected phone account as the default. (1/3)
Modify the phoneAccountSelected method to support the option to set the
selected phone account as the default for outgoing phone calls.

Bug: 18078232
Change-Id: I2689bc9611366d521dfd3dc2086fd31eb6393876
2014-10-22 13:32:57 -07:00
Santos Cordon
40f1589544 am 028217eb: Merge "Add hidden method to access a connection\'s service." into lmp-dev
* commit '028217eb6789e82c96ef5ff5fe0a5a9e0c740d97':
  Add hidden method to access a connection's service.
2014-10-21 23:29:41 +00:00
Andrew Lee
8f8e473cac Fire onConferenceChanged after reseting conference.
Bug: 17423848
Change-Id: Ic53f40e806f2bfd5b49bff2caad64bb93b290bad
2014-10-21 10:32:49 -07:00
Santos Cordon
af1b296a41 Add hidden method to access a connection's service.
This change exposes a method that is used by the actual
fix here: I4e4789c044d9e3614f42143cfa6053881a6d109b

Bug: 17962996
Change-Id: Iec3795ea372634120c71b0a80ee046e372569ecf
2014-10-20 18:38:55 +00:00
Andrew Lee
1557a226a7 Merge "Add functions to update on conference changes." into lmp-mr1-dev 2014-10-18 00:15:36 +00:00
Andrew Lee
4b116453e8 Add functions to update on conference changes.
+ Add onConferenceChanged() to Connection, so that the Connection can
make act on changes to the conference.
+ Add a utility function to PhoneCapabilities to remove a capability
from a PhoneCapabilities bitmask. Figure this abstracts some bit
logic away to make things more readable.

Bug: 17429707
Change-Id: I0c97731a95dd6573488cd10f094a63abe2428bce
2014-10-17 10:38:02 -07:00
Nancy Chen
df385fffe8 am a6a1c52f: Merge "Use Telecom API for checking if a number is voicemail (1/2)" into lmp-sprout-dev
* commit 'a6a1c52f58f24194de2665bb922577a9d7f6dccf':
  Use Telecom API for checking if a number is voicemail (1/2)
2014-10-17 00:05:36 +00:00
Nancy Chen
6f0c3f1a9a am c913c2de: Merge "Revert "Add API method to extract subscription ID from phone account (1/3)"" into lmp-sprout-dev
* commit 'c913c2dec18519ae5b989f65b207c7b3fec2d0ef':
  Revert "Add API method to extract subscription ID from phone account (1/3)"
2014-10-17 00:05:14 +00:00
Nancy Chen
443e501c46 Use Telecom API for checking if a number is voicemail (1/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: Iecea82a0e5f0b106eaf105e9026d606110acf122
2014-10-16 14:48:09 -07:00
Nancy Chen
c913c2dec1 Merge "Revert "Add API method to extract subscription ID from phone account (1/3)"" into lmp-sprout-dev 2014-10-16 21:17:03 +00:00
Nancy Chen
af6732ef6f Revert "Add API method to extract subscription ID from phone account (1/3)"
This reverts commit b0cad32c3cadd0387f6dcd82aade629e6f2f6bee.

Change-Id: I54b6373ba0fc7d1ecc64c6ceedc7b371c7017cd8
2014-10-16 21:08:39 +00:00
Jay Shrauner
9e18d7ab70 Merge "Remove unused onConferenceWith method" into lmp-mr1-dev 2014-10-15 19:59:19 +00:00
Andrew Lee
4ef72f85e0 Merge "Add helper method for checking phone capabilities." into lmp-mr1-dev 2014-10-15 19:29:57 +00:00
Nancy Chen
00bc5cf896 am 9faf13b4: Merge "Add API method to extract subscription ID from phone account (1/3)" into lmp-sprout-dev
* commit '9faf13b47467916897cf5c019a3a74df871b8f65':
  Add API method to extract subscription ID from phone account (1/3)
2014-10-15 18:50:38 +00:00
Jay Shrauner
2ec53ebbc6 Remove unused onConferenceWith method
Never part of public API

Bug:17860628
Change-Id: Ib7c4f4c402bd29d82cc0b9e1f496496ea86efce1
2014-10-15 11:48:04 -07:00
Nancy Chen
9faf13b474 Merge "Add API method to extract subscription ID from phone account (1/3)" into lmp-sprout-dev 2014-10-15 18:47:03 +00:00
Tyler Gunn
234703b3a1 Merge "MR1 - Adding more Telecom state dumping." into lmp-mr1-dev 2014-10-15 15:15:25 +00:00
Andrew Lee
52d65739ad Add helper method for checking phone capabilities.
I'm figuring this can help standardize phone capability checks when
need to do all over the place.

Bug: 17429707
Change-Id: I97327fd08158de3c18d186b6092597a1d4abcf14
2014-10-14 16:56:11 -07:00
Nancy Chen
b0cad32c3c Add API method to extract subscription ID from phone account (1/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: I926e969b365d9e9878436302117e8786ec5513b8
2014-10-13 14:01:49 -07:00
Ihab Awad
6d39d66900 am f5afb4d6: Revert "Add color to PhoneAccount objects (1/3)"
* commit 'f5afb4d617d591225cc504b52ba9b6f1605a5c87':
  Revert "Add color to PhoneAccount objects (1/3)"
2014-10-12 04:33:12 +00:00
Ihab Awad
f5afb4d617 Revert "Add color to PhoneAccount objects (1/3)"
This reverts commit 0000cd81c84d73d3f878cd581fb89b7ea257a05a.
2014-10-11 17:16:39 -07:00
Ihab Awad
d410a2f4ee am a516e445: Merge "Add color to PhoneAccount objects (1/3)" into lmp-sprout-dev
* commit 'a516e445651724da3a833d08540c42fabe4f34b7':
  Add color to PhoneAccount objects (1/3)
2014-10-11 02:49:21 +00:00
Ihab Awad
a516e44565 Merge "Add color to PhoneAccount objects (1/3)" into lmp-sprout-dev 2014-10-10 23:02:12 +00:00
Ihab Awad
82816c11bd Add color to PhoneAccount objects (1/3)
Change-Id: I1887ba14f284453784299434cbc3d67c950d4266
2014-10-10 11:04:21 -07:00
mike dooley
6e24a156cd am 3175824a: am 879142bf: Fix hangouts conference calling regression.
* commit '3175824a783c5d45df91ccf84fab8304f4d353c4':
  Fix hangouts conference calling regression.
2014-10-09 19:17:14 +00:00
mike dooley
879142bf1c Fix hangouts conference calling regression.
Check the connection-by-id hash table instead of conference-by-id hash
table when setting conferenceable connections.

Bug: 17919110
Change-Id: Ia8a5ab3fb96926e600d21eca7737a0044b233563
2014-10-09 01:15:58 +00:00
Tyler Gunn
663edb8bfb am 329bd662: am 3bde32e6: Merge "Fixing where call goes from disconnecting to active to disconnecting state." into lmp-dev
* commit '329bd662cc0dccaf41d441ea44db2895df48f0df':
  Fixing where call goes from disconnecting to active to disconnecting state.
2014-10-07 20:55:45 +00:00
Tyler Gunn
4afc6afd20 Fixing where call goes from disconnecting to active to disconnecting state.
- Adding disconnecting state to telecom used to communicate that a call is
being disconnected to InCall UI (rather than it existing only as a state
in the InCall UI).

Bug: 17821930
Change-Id: I6c2d9521915ba154c0468eea62c12c30060edd2e
2014-10-07 10:14:55 -07:00
Yorke Lee
7a394311ad am 770ed6ec: Fix build break
* commit '770ed6ec920ec10798c5b7a7b4850ccc0b2a531f':
  Fix build break
2014-10-07 03:31:21 +00:00
Yorke Lee
770ed6ec92 Fix build break
Bug: 16852844
Change-Id: I227aab0afdf4a5a5cd5dc38e7af055b7a1b94729
(cherry picked from commit 9858af0ec68ad28db60047587c8eb6232b4a6591)
2014-10-07 03:13:12 +00:00