summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Automatic translation importJessica Wagantall2016-05-202-0/+4
| | | | | Change-Id: I1fa51217b70dd3132c4b09705377502ab12e917d Ticket: RM-214
* Use the explicit spam flag on Contact for identifying spammy contactsRohit Yengisetty2016-05-181-1/+2
| | | | | | | | | | | We were using the spam count as an indicator for determing whether a contact is spam. Changing this behavior to rely on a caller-info provider to signal that a contact is spam, rather than determining that ourselves. A caller-info provider would have the proper domain knowledge to make this determination, so deferring to them is worthwhile. Change-Id: If548926b7269e51c0805f5d1ef73edcffbd9e298 Issue-Id: OPO-736
* Automatic translation importAbhisek Devkota2016-05-178-0/+15
| | | | Change-Id: I1aa469815f988de82a9eb69d52e7c483fc74db84
* Contacts : handle InCall plugin refresh on configuration changeErica Chang2016-05-165-20/+79
| | | | | | | | | | | | | | | | | | InCallMethod text provided by InCall plugin (nudges, name etc) was not updated on a locale change. This patch addresses the issue by -tracking current locale in SharedPreferences -if the onResume lifecycle comes directly from a configuration change, check if the current locale is different than the saved locale in SharedPreferences. If the locale changed, refreshing all CallMethodInfo (instead of only dynamic items) -Android system global locale update has significant delays, so Application.onConfigurationChanged is not used, instead, the locale check is placed in onResume of affected Activities (PeopleActivity & QuickContactActivity) CD-640 Change-Id: I669a36e6a6739e56215af065c1d1b26909aac450
* Contacts: fixed build break in androidTestErica Chang2016-05-161-1/+1
| | | | | | CD-501 Change-Id: I4eccefbb6b4bece3579500b171bd3b491d92b3ed
* Automatic translation importAbhisek Devkota2016-05-153-0/+6
| | | | Change-Id: Ic29a5f8321d0f0a8ca8163242e732782af9a7ada
* Automatic translation importAbhisek Devkota2016-05-141-0/+2
| | | | Change-Id: I900cc5074b3a59e1ec6be74ef5ae90e1cd568153
* Use JobService for periodic InCallMetrics reportingErica Chang2016-05-135-75/+142
| | | | | | | | Replaced AlarmManager with JobService. CD-501 Change-Id: I3280d8355c3d6d4ea89f9100ccfa5443124d2a48
* Contacts : prompt run time READ_SMS permission for MErica Chang2016-05-132-9/+85
| | | | | | | | | READ_SMS is required to load SMS history in contact cards. M's disabled this permission by default. CYNGNOS-2732 Change-Id: I38b0384ae961d0cfd41d02fe9c3a79511d701cb6
* Contacts InCall metrics testErica Chang2016-05-1312-0/+1086
| | | | | | | | | | | | | | | -added espresso & uiautomator for UI automation -added test cases for metrics -INAPP_NUDGE_CONTACTS_TAB_LOGIN -DIRECTORY_SEARCH (from contacts tab) -CONTACTS_MANUAL_MERGED -CONTACTS_AUTO_MERGED -INVITES_SENT -DIRECTORY_SEARCH -INAPP_NUDGE_CONTACTS_LOGIN -INAPP_NUDGE_CONTACTS_INSTALL Change-Id: I86e5827b19ed4f313d55902198d5f3ccb25b20e8
* Automatic translation importAbhisek Devkota2016-05-101-0/+5
| | | | | Change-Id: I5cd7142ab4e7b63e06809e1af1baa5dde6996e0f Ticket: RM-232
* Automatic translation importMichael Bestas2016-05-1028-3/+79
| | | | Change-Id: I7b15101207c2e38f7c632d0e966d59f9f0efa92a
* Track changes to AmbientDataSubscription.Danny Baumann2016-05-102-7/+8
| | | | Change-Id: Ica281e4e4ce7384b18626e3347df6e96bc0385ba
* Update BlockContactHelper usage to new specArtem Shvadskiy2016-05-091-1/+1
| | | | | Change-Id: If6cdd1d92308043bddbf7089afdaff1705248b4a issue-id: DIALER-719 DIALER-724
* [1/2] Only get directory intent on button pressStephen Bird2016-05-093-13/+40
| | | | | | | | | | | | | | | | Requesting this intent may cause plugins to request permissions at odd times. Instead, requesting this intent when the button is clicked will give the user some context when plugin permission dialogs come up. Note that the delay caused by requesting this intent when the button is clicked is fairly indiscernible from caching this intent at application creation. This action is only presented to the user once other metadata from the plugin has already been captured, so this call will happen after the plugin has been instantiated, and should be performant. Change-Id: Ic0fd385ea6346fcfb965704f40a31e7db6e55b5b
* Contacts : only refresh ENABLED plugins onResumeErica Chang2016-05-092-14/+25
| | | | | | | | | | | | | Since we only request refreshDynamicItems if there are ENABLED plugins, there would not be a callback that calls updatePlugin. In that case we'll manually call updatePlugin to manually check if any plugin related UI components need to be updated (eg. the current UI may show a plugin that's already gone into DISABLED/HIDDEN state) CD-616 Change-Id: I469960212e67844a63661e855daa7097ac186a05
* Add permission for binding to Ambient's Caller Information serviceRohit Yengisetty2016-05-091-0/+1
| | | | Change-Id: I694790712220c2701e0cb3b1150a825fb4935a0a
* Revert "Contacts : added PUBLISH_DISCOVERY_NUDGE permission"Erica Chang2016-05-051-1/+0
| | | | | | This reverts commit 58dc89ae9578490e957e30651410b4500ef3a4f8. Change-Id: I3ed87f1d4c6d37230c6ae9be9d4200c7d0509db3
* Contacts : added PUBLISH_DISCOVERY_NUDGE permissionErica Chang2016-05-051-0/+1
| | | | | | | | | The PUBLISH_DISCOVERY_NUDGE permission is required to query InCall plugin nudge parameters CD-625 Change-Id: I9dd76b0dc03f3eecff4edff5abe4393ea14bce25
* Fix number label in quick contacts recent calls listRichard MacGregor2016-05-051-3/+7
| | | | | | | | | | | | | Custom number label were not being shown in recent calls list due to database entry for number type being null instead of a valid integer. Use InCallApi plugin name as label if available, becauase some plugins use the label column for strings that are too long to be considered a label. Ticket CD-460 Change-Id: Ic10cf4bbc6edea8dc7363f7897756df61385581d
* Fix double ripple in quick contact card entryRichard MacGregor2016-05-052-7/+19
| | | | | | | | | | | | InCallApi plugin contact entry would animate ripple on both main entry card and "third" icon. This was because the correct onclick listener was not being set due to the Entry not defining thirdAction. Ticket CD-547 Change-Id: I9aea37e16fc62f760048ade29bab71d6c74f513f
* Contacts Metrics: added directory search and bug fixErica Chang2016-05-056-191/+283
| | | | | | | | | | | | | | | | | | | | | | -Added directory search metrics >PeopleActivity plugin + fab onclick >Contacts card directory search onclick -Fixed bugs for >db upgrade (upgrade only oldversion < new version not <=) >auto/manual merge count (was not capturing count increment with an existing count entry) >PeopleActivity plugin tab login nudge impression count (was tracking the event of leaving the plugin tab rather than going into the plugin tab) >NPE for getBytes() in InCallMetricsHelper.generateNudgeId() -Consolidated InCallMetricsHelper.increaseCount to handle all user action event types CD-501, CD-527, CD-610 Change-Id: I6c8c2d951108d10be735365ebaf1b133cd4d52c1
* Revert "Merge tag 'android-6.0.1_r22' of ↵Michael Bestas2016-05-0178-480/+1102
| | | | | | | | | https://android.googlesource.com/platform/packages/apps/Contacts into cm-13.0" This reverts commit 3c1aaac1535bf8825f7067256814e1055986e416, reversing changes made to cd5f6711d196dd21564343403186128926018fad. Change-Id: I69612db3197cf06c8884a095bd4a4a5a946318f0
* Automatic translation importMichael Bestas2016-04-2913-2/+35
| | | | Change-Id: Ia32669b5bab525cde8f238d428ff56d62fb420ed
* [2/2] Contacts : fixed InCall plugin PendingIntent after refactorErica Chang2016-04-276-17/+37
| | | | | | | | | | | -Addressed contact card not reflecting InCall plugin status/auth state change -Added error Snackbar message in case invite and directory search PendingIntents are null CD-550,CD-588 Change-Id: I2ba66a98d13f982fe13563439afd5f785ab0f16c
* [2/4] Update contacts for CallMethodHelper refactorStephen Bird2016-04-2610-214/+71
| | | | Change-Id: I9b165d9ddb3fd4e66657325447af08781c487a5d
* Automatic translation importMichael Bestas2016-04-1697-0/+540
| | | | Change-Id: I80c66c07d9e421a934898c8e4575a0ac34cd74ae
* [2/2] Add new method for determining whether to show block optionRichard MacGregor2016-04-141-4/+1
| | | | | | | | | | BlockRequests only work on certain data types. Phone numbers are currently the only type supported. It doesn't make sense to give block action to something that won't get blocked. Ticket CD-461 Change-Id: Ic02dedb7815f2239e8bf031c1d4b1e422fca9d04
* Make Block action contingent on system-wide Blacklist settingRohit Yengisetty2016-04-141-3/+12
| | | | Change-Id: I9c7b474765fabcf0c8681367b49ba8ddb84f172e
* Fix camel caseMichael Bestas2016-04-141-1/+1
| | | | Change-Id: I042b23228f1e38d390120ad6143dbc5557c12c2a
* Add null object checkStephen Bird2016-04-081-1/+3
| | | | Change-Id: Ia316d98dd6507f89390072e7010da3976049c857
* Add 'ims-common' build dependencyStephen Bird2016-04-081-1/+1
| | | | Change-Id: I0cb00d3214d9f41072d2e55ca9a885940c7a6a15
* Contacts: fixed ConcurrentModificationExceptionErica Chang2016-04-071-2/+6
| | | | | | | | | | The HashMap.removed() was called in an implicit iterator which caused this exception. Changed the implementation to use an explicit iterator instead. CD-530 Change-Id: I157563e8d562b248a599583a564ff337feeddfdd
* Fix: update ambiguous placeCall methodRaj Yengisetty2016-04-071-1/+1
| | | | Change-Id: Ib79fffe96961f67af6337dbc4e14a112dce5e179
* Contacts Card: nudge subtitle adjustmentErica Chang2016-04-071-2/+2
| | | | | | | | Pointed nudge subtitle source to the correct nudge parameters CD-464 Change-Id: Id9285979d342256284f4e11ebb7cecf47725b302
* Contacts: show InCall plugin tab FAB in soft logged out stateErica Chang2016-04-071-3/+3
| | | | | | | | | The old implementation was to hide plugin TAB in soft logged out. This patch shows that. CD-525 Change-Id: I78e90b4df9a29071931273e6b61465c16891ad99
* Contacts: added stats settings checkErica Chang2016-04-072-2/+31
| | | | | | CD-501 Change-Id: Ia9fd922d3c3049e4caacbf57b43039bcc8649a24
* Contacts: metricsErica Chang2016-04-0715-4/+1039
| | | | | | | | | | -Added contacts in app and user action metrics -backed in a db -every 24 hours the entries are reported to ambient CD-297,CD-501 Change-Id: Ia9fd922d3c3049e4caacbf57b43039bcc8649a24
* Contacts : ViewPager RTL fixErica Chang2016-04-071-1/+1
| | | | | | | | -ViewPager Fragment now renders correctly in RTL CD-227 Change-Id: Iefa424946823a6741f962b68fd3d46622e1fa15f
* [2/2]Contacts: handle soft logged out stateErica Chang2016-04-072-10/+12
| | | | | | | | | | -Contacts now displays all contacts. -Contacts cards now display plugin callable entry, when clicked on will launch plugin application's login Activity CD-450 Change-Id: I0d4ee8c20dcc3e89e14674f2d9d83a0044078031
* Contacts: fixed contacts filter exceptionErica Chang2016-04-071-1/+3
| | | | | | | Contacts filter needs both the account type and account handle to be not empty, added the check in to prevent NPE. Change-Id: I5138f457caa334b22d37d22196a1cfad4a712229
* Contacts Card: fixed merged contacts with multiple plugin accountsErica Chang2016-04-071-11/+10
| | | | | | | Previously the Contact card had a bug and could not handle a merged contact with two skype accounts Change-Id: Ie16d48925b7ec60cb56a6f08f0a859d7245fd51f
* Contacts Card: fix nudgesErica Chang2016-04-071-8/+24
| | | | | | | | | -Fixed empty nudges -Fixed dismissed nudge reappear issue (check shared preferences) CD-464, CD-496 Change-Id: I930048e111616461ea3062a37f6d6f2dc8f88d1b
* Contacts: add plugin status change receiverErica Chang2016-04-075-10/+57
| | | | | | | | | Contacts now receives updates and updates UI accordingly based on plugin status. CD-452, CD-464 Change-Id: Ib5c3d7cd683a09d07d3f466248129d31c321123d
* Adapt to the API changes in contact blocking classesRohit Yengisetty2016-04-071-3/+3
| | | | Change-Id: Icc733172281156fac8b5e025d16ebc84db03f3f1
* (2/2) Contacts: fixed auth state handling and account handleErica Chang2016-04-073-75/+102
| | | | | | | | | | Contacts wasn't able to update the fragment UI properly with the auth state change. Also needed to lookup account handle in the event where the plugin fails to report a valid one. Issue-id: CD-448, CD-449 Change-Id: I118ba8bd152af19fbffee6a218c622d631aaf979
* Contacts Card: fixed plugin call logErica Chang2016-04-071-4/+4
| | | | | | | | The original implementation skipped call log gathering if the contact does not have any phone number. The fix was to add the check for plugin account too. Change-Id: I96d07edcab9ec023114e61cb76c7938e4a80bbdb
* Contacts: added fix for parcelableErica Chang2016-04-071-1/+3
| | | | | | Caused crash Change-Id: I1f46b9ba33bc2446bd25eed7db0bfb3033d58878
* Fix build breakage in QuickContactActivityRaj Yengisetty2016-04-071-10/+0
| | | | Change-Id: I04965b0383766465cdd4aa0bee2f7cc9ef757edb
* Contacts: incall plugin implementationErica Chang2016-04-0723-258/+2528
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Contacts Card: fixed encoded contact Uri invite intent -When a contacts card is launched from a dialed phone number history, the particular contact does not exist in contacts so the uri is encoded. In this case we'll provide either the display name or phone number as the Uri argument for getInvitePendingIntent. CD-346 Contacts Card: fix callog -added in cm-12.1 calllog related changes that accidentally didn't get merged in CD-354 Contacts Card: removed redundant code from cm-13.0 creation -in Quick contact card onclick handler there's redundant code since cm-13.0 was created Contacts Card: fix multiple ContacLoader calls issue -consodliate one AsynTask to load contact data -added a synchronized method checkAndBindContactData to fix contact card update condition Note. The internal implementation of AsyncTask.doInBackground is done on FutureTask; onPostExecute run on a main loop via Message. If the onPostExecute is already placed on the main loop, it can no longer be cancelled. cancel() is the most effective while an AsyncTask is still running doInBackground, upon completion, it'd either execute onCancelled() or onPostExecute() CD-324 Contacts: lookup plugin account handles as a backup -Need to rely on AccountManager to lookup logged in plugin account handles just in case the plugin fails to return a valid one CD-422 (2/2) Contacts: refactor -makes use of PhoneCommon/CallMethodInfo.java, CallMethodHelper -new InCallPluginHelper extends CallMethodHelper -InCallPluginUtils uses CallMethodHelper singleton and StartInCallCallReceiver CD-301,CD-374,CD-423 Change-Id: Iaa6f3f4539969a8cdad7c719f71ffaad8dd8cc39