summaryrefslogtreecommitdiff
path: root/java/com/android/dialer/speeddial/database/SpeedDialEntry.java
diff options
context:
space:
mode:
authorcalderwoodra <calderwoodra@google.com>2018-04-17 12:09:01 -0700
committerCopybara-Service <copybara-piper@google.com>2018-04-17 12:42:39 -0700
commitab8573b754a0b5a102a68f5783743ee86ef24614 (patch)
tree16eb20d561a363d85bd4b196d3a4a7c9184a9917 /java/com/android/dialer/speeddial/database/SpeedDialEntry.java
parent6665ab84a66757f22a1fa199af6b878510544312 (diff)
Migrate SpeedDialUiLoader to use contact lookup URIs.
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
Diffstat (limited to 'java/com/android/dialer/speeddial/database/SpeedDialEntry.java')
-rw-r--r--java/com/android/dialer/speeddial/database/SpeedDialEntry.java14
1 files changed, 7 insertions, 7 deletions
diff --git a/java/com/android/dialer/speeddial/database/SpeedDialEntry.java b/java/com/android/dialer/speeddial/database/SpeedDialEntry.java
index 13ef4e306..89aed8f37 100644
--- a/java/com/android/dialer/speeddial/database/SpeedDialEntry.java
+++ b/java/com/android/dialer/speeddial/database/SpeedDialEntry.java
@@ -92,16 +92,14 @@ public abstract class SpeedDialEntry {
/**
* Raw phone number as the user entered it.
*
- * @see {@link Phone#NUMBER}
+ * @see Phone#NUMBER
*/
public abstract String number();
- /**
- * Label that the user associated with this number like {@link Phone#TYPE_WORK}, {@link
- * Phone#TYPE_HOME}, ect.
- *
- * @see {@link Phone#LABEL}
- */
+ /** @see Phone#TYPE */
+ public abstract int phoneType();
+
+ /** @see Phone#LABEL */
public abstract String label();
public abstract @Technology int technology();
@@ -118,6 +116,8 @@ public abstract class SpeedDialEntry {
public abstract Builder setNumber(String number);
+ public abstract Builder setPhoneType(int phoneType);
+
public abstract Builder setLabel(String label);
public abstract Builder setTechnology(@Technology int technology);