summaryrefslogtreecommitdiffstats
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* resolve merge conflicts of 9f523b4 to nyc-devWalter Jang2017-02-036-31/+168
| | | | | | | | | | | | | | Bug: 32219099 Merged-In: Ib141ad682488aeabf6d90e8d169d5fff6df7a8dd Change-Id: I895b1f9f8ade2dcfa47d1c17e0aaac2edeb75a74 (cherry picked from commit b7eecdd9a1276b721bb9644a0762dfd969e52709) (cherry picked from commit d47661ad82d402c1e0c90eb83970687d784add1b) # Conflicts: # src/com/android/contacts/common/activity/RequestPermissionsActivity.java # src/com/android/contacts/common/activity/RequestPermissionsActivityBase.java # src/com/android/contacts/common/util/AccountSelectionUtil.java # src/com/android/contacts/common/vcard/ImportVCardActivity.java mh0rst: Backport from android-7.1.1_r9
* PhoneNumberHelper: formatNumber: check if isEmptyMarcos Marado2016-10-181-2/+4
| | | | | | | | If formatNumber is invoked with an empty number, then there's no formatting to be done. This patch avoids an NPE while trying to parse an inexistent string. Change-Id: Ic7a9dd3d1e0e7b27457f59f1209387b7faa359d9
* Fix crash when block incoming call without caller IDKeith Mok2016-08-161-1/+3
| | | | | | | | | | | If caller phone number is empty, finish will be called directly in onCreate without mBlockContactHelper being created. Causing null object refernece in onDestory function. Add a null checking to guard that. CYNGNOS-3262 HAM-1455 Change-Id: I4e73fc52c815feec723e5b56ffee06375619a109
* Finish BlockContactActivity on dialog closedKeith Mok2016-07-191-1/+3
| | | | | | | | | | When block contact dialog box closed, the activity remains on screen, leaving a grey dummy full screen in the ui. finish the activity in those cases. FEIJ-1339, FEIJ-1341 Change-Id: I84ce9afbc538cb0324e9bdb6bda34b7db7b85e06
* [1/4] Add cancel callback for BlockContactDialogStephen Bird2016-07-122-7/+26
| | | | | | | | Some ui elements need to refresh themselves when the dialog is cancelled. This allows them to do that. Change-Id: Ifa4646d799727cf864f560eaeca5fee95c546c36 Ticket: CYNGNOS-3111
* Add valid number checks for block menu itemErica Chang2016-06-091-1/+2
| | | | | | | | CallStatsDetailActivity crashes upon block contacts synced from InCall plugins without valid phone numbers. Change-Id: Ic921fc16bf7a1911c7f0ebf3aed33decc54cc67f Issue-id: FEIJ-992
* Update LookupRequest to use the new ORIGIN codes within AmbientSDKRohit Yengisetty2016-05-191-2/+1
| | | | | Change-Id: I02f21d5769271d4918cc084fdc56eaf0fc0df92a Issue-Id: CYNGNOS-2888
* Extract spam information from encoded lookup-uriRohit Yengisetty2016-05-183-2/+23
| | | | | Change-Id: Ibd4ca9b0cc340a59de09c14082b0b74eae180224 Issue-Id: OPO-736
* Update LookupProvider to new CallerInfoAPI specArtem Shvadskiy2016-05-096-25/+154
| | | | | Change-Id: Icfd981473fdece5bf90016223909be54ee0f4b05 issue-id: DIALER-719 DIALER-724
* Avoid drawable resources from being scaled.Danny Baumann2016-05-081-3/+37
| | | | | | | | CheckableFlipDrawable should only scale contact photos, not drawable resources. Change-Id: I63c161c4c5495621d4783ca2bdb92376bb4af43b Ticket: CD-553
* Export only selected contact, not all contactsArtem Shvadskiy2016-05-051-0/+1
| | | | | Change-Id: Ia9e9908949d91ce9bb4e53394664ab9697db775e issue-id: FEIJ-326
* Add methods to check valid phone numbers and choose labelRichard MacGregor2016-04-292-0/+55
| | | | | | | | This is needed to fix call log lookups in Dialer. It also fixes label choice for incall api contacts. Ticket CD-460 Change-Id: I3eae46eec00dd51d67ea3c3ed0022fbb4e49473f
* Fix height calculation of ContactListItemViewRichard MacGregor2016-04-291-1/+2
| | | | | | | | | | | | | | | | | | | | | Height calculation compared height without padding against preferred height that included padding. Existing comments stated that a height calculation was supposed to includepadding, but didn't. Add the padding back into the calculation. To test this: - Include an app that reports a contact's presence, and therefore shows the presence icon. - Make sure contact also has an email or similar. Open contacts app and search for the email address. - Three rows of information should show up for that contact, those being Name, Presence, and email. The issue fixed is that the top and bottom text is cutoff due to bad height calculation. Ticket CD-576 Change-Id: I9a639ec0d505e679e36bd1a5a4097aa808e7c320
* Add new method to LookupHandlerThread for calling new API interfacesMartin Brabham2016-04-251-0/+5
| | | | | Change-Id: I7353c82019fa5588e08db4522c6f9cbc3c81c3a7 Ticket-Id: MMS-213
* [1/2] Add new method for determining whether to show block optionRichard MacGregor2016-04-141-0/+5
| | | | | | | | | | 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: If3f50f1ee0a4cee2d17fcc33b94eea75099ae561
* Remove scaling option for the Front drawable in CheckableFlipDrawableRohit Yengisetty2016-04-111-19/+5
| | | | | | | | The default option was inadventently set to not scale to the Drawable's bounds. Removing this option altogether as the original feature that needed this is no longer valid. Change-Id: I160a5a4297fb7dc8b8abf7f813ae9646ee2d57fc
* Contacts : fix RTL ViewPager offset on configuration changeErica Chang2016-04-071-3/+15
| | | | | | | | | | | Specifically in RTL, during a screen rotation to landscape, there's a window during init where ViewPagerTabs is not yet attached to a parent. Without a parent, View.getLayoutDirection() cannot resolve layout directions and as a result is unable to restore the previously selected ViewPager tab. CYNGNOS-2281 Change-Id: I25c12efda856b38b9a2a38c0d538eb283edffaa1
* Add origin option to call methods.Stephen Bird2016-03-251-4/+31
| | | | | Ticket: CD-425 Change-Id: Ifd0562a6e59d8b7fd245fbaf27e66fe35332dc86
* Add BlockContactActivityRohit Yengisetty2016-03-251-0/+77
| | | | Change-Id: Ice36988a3773dbc36b1d59cbb45cb607b07885de
* Refactor BlockContactHelper and BlockContactDialogFragmentRohit Yengisetty2016-03-254-272/+270
| | | | | | | | | | | | - remove redundant and duplicated BlockNumberHelper - Enforce BlockContactDialogFragment callback to strictly be an Activity or Fragment. This is to preserve the Callback across Fragment reconstruction (like that during a config change) - Additional callbacks in BlockContactHelper Change-Id: I029e31d51baa14ba13c267242bff12e6153337da
* Tie blocking to blacklist and contact_info providerKamaljeet Maini2016-03-252-0/+193
| | | | | | | | Add BlockNumberHelper.java for blocking numbers. The blocking includes notifying the framework and any call info provider. Issue-Id: DIALER-705 Change-Id: I171460920b7df9311bba2508a04f29ff5e009022
* Fix derp in labeling that breaks messagingStephen Bird2016-03-251-16/+6
| | | | Change-Id: I6da0cbcc469303ea74e7adb61c59d702abb20f8d
* (2/2) T9 cleanupStephen Bird2016-03-253-105/+23
| | | | | | | | | | We can remove the changes we made to ContactListItemView since we are now using the adapter to auto-merge multiple mimetype items. This fixes ripples and let's us clean up quite a bit on the app side of things Ticket: CD-370 CD-339 CD-359 CD-385 CD-384 CD-380 CD-378 CD-372 Change-Id: I929957720cb836bfbe9bf5be187ce8d7df8a1b1c
* Extend LookupProvider APIsRohit Yengisetty2016-03-253-2/+56
| | | | | | | - Adding blockingFetchInfo method to LookupProvider - Adding StatusCode Change-Id: Ifdc8ca04b1493cd3322abb646bfc8fc7b66cf694
* Setup mimetypes for regular searchStephen Bird2016-03-253-0/+30
| | | | Change-Id: I73a1698e62e5a5fa6914e1fa478147ce91668cea
* Add setDrawable to assign a drawable directlyStephen Bird2016-03-251-0/+10
| | | | Change-Id: Ib91d51a8c2218a8dcfabfef93d0533ee9d77a823
* [1/2] Use provider string instead of user nameRichard MacGregor2016-03-252-16/+2
| | | | | | | Use provider string instead of user name for search extra number field Ticket CD-333 Change-Id: I6ae2e716ad03a06478b1e3e773a24456a9b44aa0
* Explicity set extra number to null if one does not existStephen Bird2016-03-251-1/+3
| | | | | Change-Id: I25515c10cef2773ddafd7f5db51bd53dd64719c5 Ticket: CD-334
* Remove ambient related codeStephen Bird2016-03-251-10/+0
| | | | | | This breaks projects that use ContactsCommon that don't have ambient Change-Id: I317139e79c5cb1500aeae9fd13514f448b1da4cf
* T9 searchStephen Bird2016-03-253-4/+138
| | | | | | Add views and methods for displaying incall usernames. Change-Id: I8a1add14734a84a455937b984224422f3b2d75d5
* Setup mime type dataStephen Bird2016-03-252-2/+8
| | | | Change-Id: Ia78bd00108da708aeafb72206619af1d212287fc
* Fix mimetype lookup for incall pluginsStephen Bird2016-03-256-3/+26
| | | | Change-Id: Ib8334a672c626bc33ebbbe8672145f10d0aa51d4
* [2/3] Show incall plugin contacts in favoritesRichard MacGregor2016-03-252-3/+25
| | | | | | | | | Add ability to show contacts with incall callable mimetypes as starred/favorites. Change-Id: Ibe0a31f28e8aad3002b338d2943c829ccd5d7be1 Tickets: CD-58 CD-60 CD-119 (cherry picked from commit 6a0294b2986068cf19a1c31276025fdef0b11352)
* Stability fixes.Erica Chang2016-03-253-6/+39
| | | | | | | | | -Check that mIndexForSelection is >=0 in ViewPagerTabStrip -Contact Loader: parse for a JSONarray if num is -1 -Contacts: fixed TrueCaller mimetype contact card parsing -Contacts: fixed tab sliding offset upon onRestore Change-Id: Idf22af57d039ff19979335a7739d44c31dfaad58
* Add RequestOrigin to LookupRequestRohit Yengisetty2016-03-251-0/+25
| | | | | | | This new field will help identify the origin and reason behind the LookupRequest. Change-Id: Iaf547a50c8113abac3ca9339cc289cda4357d718
* Extend LookupProvider api to add an unique identiferRohit Yengisetty2016-03-251-0/+8
| | | | Change-Id: Id41515ffca11b82aafa9ac3f50ac864ec409ad2b
* Enable support for groups in External contacts accountspulser2016-03-251-0/+5
| | | | | | | | This permits use with DavDroid and other external providers and lets external contacts providers also do groups (as there's nothing otherwise stopping them) Change-Id: I6b8133c03a1a647e52b32007a4891051c2c57999 (cherry picked from commit 0cbd4e195ec22f31c0d4be21e325a1673fa9fa99)
* Expose method to clean up resources in BlockContactHelperRohit Yengisetty2016-02-241-0/+10
| | | | | Change-Id: If19475383e083d0f210ead4015c4a707d0780fba Issue-Id: CYNGNOS-2143
* ContactPhotoManager: Consider BITMAP_UNAVAILABLE as a cache missDiogo Ferreira2016-02-151-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | When a default image is generated, it is cached as an instance of BITMAP_UNAVAILABLE. The code that renders default images interprets null (not present) and null content (invalid byte array) as misses and generates default images. However, it misses the case of previously generated default images. An easy way to repro this is in Sim Contacts: 1) Go to contacts 2) Chose Import from Sim 3) Observe that images are shown correctly 4) Go back, chose import from sim again 5) Observe that images are missing 6) (As a side-effect pressing one will crash the app). This patch considers a cache BITMAP_UNAVAILABLE as a cache miss when generating default images, fixing the problem above. Change-Id: I61050e68b27c605392d0649316ba12a4660a7289 Ticket: CYNGNOS-1829 Ticket: CRACKLING-910 Ticket: KIPPER-590
* Refactor BlockContactHelperRohit Yengisetty2016-01-202-33/+32
| | | | Change-Id: Ic10174bc1a9fb9bf1c68aa2efc25472dd8c656d6
* Add lookupkey for Contact in ContactBuilderRohit Yengisetty2016-01-191-1/+11
| | | | Change-Id: I3271b7c14ef3c61c6f976fcb369c340c1bbaf7bb
* Ensure non-null encoded uri before attempting to parseRohit Yengisetty2016-01-141-0/+4
| | | | Change-Id: Ief4d9b5b305bfcfa18f173ffa0f21b56584a6a2b
* Add block contact dialog and supporting helper classesRohit Yengisetty2016-01-123-0/+306
| | | | Change-Id: I7f2697a843d4f615fe1ae9e8525baaefcbe9428b
* Refactor contact info lookupRohit Yengisetty2016-01-124-0/+254
| | | | Change-Id: Ie926475b31360455b7cdf2d653b58bec9579f736
* Propagate group default and favorites state into GroupMembershipDataItem.Danny Baumann2016-01-101-1/+14
| | | | Change-Id: I80147537e404e551f4a10f1d018cdf6236e73e3c
* Revert "Refactor contact info lookup"Rohit Yengisetty2016-01-084-254/+0
| | | | | | This reverts commit 51aabe650a5f3530e29c66cbf1ac287d1f7f00a9. Change-Id: Ia39ffade0f8939194b373dd0b0e1ec26d25d1160
* Move info_lookup's LookupHandlerThread into src/Rohit Yengisetty2016-01-081-7/+8
| | | | Change-Id: If75beec6979c570fda6e050f232b13ccc855f959
* Add additional SIM constantsRohit Yengisetty2016-01-081-2/+7
| | | | Change-Id: I825d812805bff6eaccf5f2fa0138c95d8546578a
* Refactor contact info lookupRohit Yengisetty2016-01-084-0/+253
| | | | Change-Id: I17c33ddb046437dde3348d7359dcb422f118a478
* ContactsCommon: Improve CAF stringsMichael Bestas2015-12-141-17/+14
| | | | | | * Also remove unused ones Change-Id: Ia8724c749e51028a92544bdf476fbbbfe51e6444