summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/speeddial/database/SpeedDialEntryDatabaseHelper.java
Commit message (Collapse)AuthorAgeFilesLines
* Use Option.ofNullable instead of Optional.ofCole Faust2021-08-111-1/+1
| | | | | | | | | | | Optional.of expects a non-null value, and throws a NullPointerException if it gets null. This needs to be fixed to upgrade errorprone to v3.8.1. Bug: 190944875 Test: Presubmits Change-Id: I38b5d80ec8c1e2dc93d76e08a0d0051fc4127ab3
* Don't crash when cp2 returns a null label.calderwoodra2018-05-151-1/+1
| | | | | | | Bug: 79260760 Test: n/a PiperOrigin-RevId: 196547205 Change-Id: Ic3c39a920ea759e5fc2b03f5022c5f2cc7ed3f8c
* Persist contacts pinned positions in speed dial.calderwoodra2018-04-251-6/+24
| | | | | | | Bug: 78491298 Test: WIP PiperOrigin-RevId: 194323952 Change-Id: I6883ce1506684c93cb5538ebbc0e14aecc300a00
* Newly starred SpeedDialUiItems now have SpeedDialEntry ids set.calderwoodra2018-04-251-8/+19
| | | | | | | Bug: 78241895 Test: numerous PiperOrigin-RevId: 194147693 Change-Id: I9e9947ad689c5bf24dd52e37787f4138a92f5238
* Migrate SpeedDialUiLoader to use contact lookup URIs.calderwoodra2018-04-171-3/+8
| | | | | | | | | | | | | | The changes in this CL improve the loader in the follow ways: - Speed: by reducing the number of queries - Long term accuracy: by using lookup URIs This change also adds ViLTE presence and contact labels to the results returned by the Loader. Bug: 36841782,77724710,77725860 Test: SpeedDialUiLoaderTest PiperOrigin-RevId: 193235046 Change-Id: If5e6aa821c8bad88dc77af81827abbd8e0f1b28e
* Autogenerate IDs for inserts and consolidate loader into one transaction.calderwoodra2018-04-091-33/+92
| | | | | | | Bug: 36841782,77724716,77725859 Test: implemented PiperOrigin-RevId: 192191296 Change-Id: I7a22367b33c7555d014a29a2af2942f2eb76c0a5
* Implemented SpeedDialUiItemLoader.calderwoodra2018-04-091-13/+19
| | | | | | | | | | | SpeedDialUiItemLoader builds a listenable future for returning a list of SpeedDialUiItems which are the POJO representation of each speed dial list element. Bug: 36841782 Test: SpeedDialContentObserverTest PiperOrigin-RevId: 192186376 Change-Id: I70f3abbeac14117ff4a68355e3a07b395b72386b
* Add SpeedDialEntry database helper.calderwoodra2018-03-301-0/+221
Bug: 36841782 Test: SpeedDialEntryDatabaseHelperTest PiperOrigin-RevId: 191121137 Change-Id: Iab712d5fac56e515bd4e977282656bf80db4337d