Age | Commit message (Collapse) | Author |
|
- Creates a database helper to create a smartdial database for the Dialer app.
- Queries all rows in the Contact database and copies related columns to
the smart dial database.
- Create another prefix database to contain all prefixes of a contact.
- During keypad input, the prefix databse is queried to find contact
suggestions, and suggestions are ranked by the usage data and contact
status (starred, primary contact, etc.)
- Created unit test for the SmartDial database insertion and prefix
computing functions.
Change-Id: I4d7c3b3bcc52dd6efa4d6e69d3f1687c3abaeb69
|
|
Switch to using new number presentation column in the CallLog table and
discontinue using special phone number strings in CallerInfo. Needed for
unbundling.
Bug:6948882
Change-Id: Ibf27ea55cee783c4530101e4e228198e245e6684
|
|
* commit '1dd46a5c676325d20b7a042d0d0d3c7d9365d0bd':
Fix crash in Dialer in landscape mode
|
|
Change-Id: I57ffcea3d3fc43e8c87a47a97d6b4f7e5edf1525
|
|
Bug 9369806
Change-Id: I286ebb828c0f6ce7c005c541661b9aa67284847e
|
|
Added check on whether the intent is new to decide when to fill in the
number in dialer automatically. If the intent is not new, the dialer
will be filled with previously used number, preserving any edits on that
number.
Bug: 8484457
Change-Id: I45f02d395ce402670b380485b5ba1e7190600ec3
|
|
Switch to using public TelephonyManager calls (needed for unbundling).
Bug: 6948882
Change-Id: I301590efa5c45dfc3d31a16181694941a2bee092
|
|
|
|
- Currently only the active tab is being backed up.
- More settings may be added later.
Change-Id: Id66565029be751beae8b58d4cc054f8d2d16ceea
|
|
All character validation, remap and index calculations in both
SmartDialTrie and SmartDialNameMatcher now go through a
SmartDialMap. The LatinSmartDialMap is used by default.
Bug: 8769026
Change-Id: I4ff90acc380e802f035ca1fbc55c022bf3b76aa3
|
|
Bug 9086662
Change-Id: Iab8fc869180188930f84edb794e0a24a1a0a2229
|
|
Suggestions now appear with a fade in and slide up animation.
Suggestions vanish with a fade out and slide down animation.
If a suggestion is moved into the middle, it slides to the left/right
as appropriate.
Change the layout containing suggestions to a LinearLayout, in order to
better support animations.
Renamed SmartDialAdapter to SmartDialController, and also refactored
it to handle entries for a LinearLayout instead of a GridView, as well
as adding animation support and view management.
Use null object pattern in SmartDialEntry to better handle null entries.
Start displaying suggestions on the first digit entered.
Bug 8840240
Change-Id: If4e16006c0b36d2244434e0b2d8f3d3b997b0ad2
|
|
Make sure that smart dialing state is properly set before
any digits in the dialpad EditText is populated.
Also turn smart dialing off by default even if the system
setting hasn't been previously set.
Bug 8963485
Change-Id: If556d8b1405cc9e60043774b3aafd5e111e4e7ee
|
|
|
|
Bug 8840243
Change-Id: I1d1fea4f958821f3a9273ba189e2140367049516
|
|
https://googleplex-android-review.googlesource.com/#/c/253417/
Converts vanity numbers such as 1-800-FLOWERS to the numeric
equivalents when the number string is populated via a DIAL intent
or pasted from the clipboard. Does not remove valid formatting such
as dashes, periods, spaces, etc.
Bug: 8858358
Change-Id: I553c91628b8fd86ff38a8eeec7823ebdc96bfe6b
|
|
Bug 8769688
Change-Id: I4aadd0f9e5495fb1b604910306dfd918d1540136
|
|
Names with an extremely large number of name tokens were
using exponentially increasing amounts of memory since we have
to insert entries for all possible initial name combinations.
Added a check in the trie insertion algorithm to only add initial
matches for the 1st 2, and the last 2 name tokens.
This change only affects search by initial matches for names exceeding
4 name tokens. Full token search for names of all lengths should still
work. E.g. "frank", "enstein" would still match "Dr Frank En Stein DDS".
However initial matching would be limited to the first 2 and last 2 tokens.
So "dfsd" or "fsd" would work, but "fes" or "fed" would not.
Also fixes a bug caused by integer overflow when calculating thresholds
for bucketing frequently used contacts
Bug 8737986
Change-Id: I804184368b78fe2fa407667ed83874d839c28115
|
|
When user dials "*#07#", display the regulatory info graphic, or
SAR data if no regulatory info PNG is provided for the device.
Bug: 8259869
Change-Id: I5d8c640bfa13e2f0d3de7c68258a65428e336bca
|
|
For SmartDialTrie, also include numbers as valid characters when
calculating indexes when generating the byte array.
For SmartDialNameMatcher, include '0'-'9' as valid latin characters,
and handle them appropriately after remapping accented characters.
Also fixed a subtle matching bug that would manifest itself when
matching against multiple tokens with similar initials - E.g.
"Dr.Dredd"
Bug 8659001
Change-Id: If461d2760a723ef7fd03dda0c1a1515cd7b44cf6
|
|
Add handling of country codes if the number starts with a '+' prefix
Also add special case handling for NANP numbers in SmartDialTrie
if we determine that the user is in North America.
Save user's SIM country ISO into SharedPreferences.
Add SmartDialNameMatcher methods to correctly match NANP numbers
Fix tests to use assertTrue/assertFalse instead of assertEquals
Bug 8292294
Change-Id: Ic61dac75ee3b772986d3008240bbda81322c8f31
|
|
|
|
Bug: 8435819
Change-Id: I69c32207d123e5da4ae5421a5fe83ffeee4e5070
|
|
|
|
Bug 8281648
Change-Id: I55bfaf137f9657a47616187fe7b7999c321b21f9
|
|
into jb-mr2-dev
|
|
- replace left/right properties with start/end ones (Dialer will never be unbundled)
- add mirrored version of some drawables
- update AndroidManifest
Change-Id: Ia7f5b6ad13dd75fe42f1ee763dda5ab18e2d92c7
|
|
The content observer doesn't help to detect changes that happen
outside the application (e.g. user modifies a contact in the People
app), and seems to be called multiple times while in the dialer for
no reason, causing multiple unnecessary recaches. Instead, just force
a recache in onResume upon startup to refresh the cache.
Bug 8527847
Change-Id: I52f5c435ad573ce8b195d7b7828f19501e068c60
|
|
Bug 8518729
Change-Id: Ib6626385c3b7cd9a6c3a18335444db21b937ea02
|
|
|
|
Used to hide menu items when not applicable. Now we show them always
and only perform the action in those cases where menu items were
previously visible.
Updated code to do zero-position checks when there is no
selection...previously missing check.
Changed code to use chars instead of Strings when dealing with single
digits.
Consolidated duplicate code with updateDialString() function.
bug: 7478840
Change-Id: I2aa5d3badd40079e9aa75abf7e4051f9dba5e667
|
|
Bug: 8369906
Change-Id: Ibdf8a4d43d0898429333af03e98a9aa494e5c819
|
|
into jb-mr2-dev
|
|
Bug: 8328641
Change-Id: I76fda040f709a9a5c0e88e67abfa106763b75ffb
|
|
Bug: 8330225
Change-Id: I0c61e12b4090ff6eeaff5ef5791ac62814d90383
|
|
Behavior:
Use a prefix tree to cache contacts instead of an array list
Perform matches against phone numbers as well
DialpadFragment now ignores results from stale tasks where
queries no longer match
Add ability to not use default phone number for phone number
disambiguation dialog
Contacts are now ranked by the order which they were sorted
by in the ContactsProvider (affinity)
Change remapAccentedChars to always return lowercase characters to avoid
overhead of uppercase character conversion
Resource/Layout changes:
Tweak margins so that the section containing smart dial
suggestions looks cleaner
Use color resource instead of hardcoding color values
Add phone number to SmartDial items
ContentObserver:
Add a contentobserver to be notified on changes in contacts
Refactored cache to allow for forced cache refreshes
Use a single instance of SmartDialCache
Tests:
Added SmartDialTrie tests
Comments:
Comment cleanup
Change-Id: Ica2854e2845d4d75048aa1fd982f139496d21bf3
|
|
Change-Id: If851c291273aa5296f1d59edccc83e6d4019be76
|
|
Allow the name matcher function used by smart dialling to perform
initial matches of the variety 57 - (J)ohn (S)mith
Refactor SmartDialNameMatcher testing method to allow checking multiple
match positions.
Add tests for initial matches
Change-Id: Iadc5e3e8b2f408136c704015d2297e9b520e1065
|
|
|
|
Remove redundant call to shouldCollapseWith() and remove ignored return value
in collapseWith().
Bug:7519057
Change-Id: I7e01746749d8574dbb596b2e1b09673bf78fa045
|
|
Add an additional "No contacts" view to the sub-header view
returned by PhoneFavoriteMergedAdapter. This is required because
the empty view functionality provided by a simple list view does
not work because PhoneFavoriteMergedAdapter is a combination of
two adapters. This "No contacts" view provides the illusion of
an empty view for the 2nd adapter that displays all contacts
without phone numbers, even if the first adapter does contain
contacts.
Bug: 5522729
Change-Id: I7dcc4cd7b4b2b28fefea4be384de40318654e165
|
|
|
|
If a user disables the contacts application, the "add contact" option will
no longer work. Add a notification to inform them that they need to enable
the contact app to use the feature.
Bug: 7694569
Change-Id: I1aad7b1396f624461083cfab7ba470f9d4ac25ce
|
|
Change-Id: Idcab1877b341b42440e336fa09ba7d631c28c7d0
|
|
Change-Id: If60fc1d68bf7d32807f61716aecc7eb5d2ac1677
|
|
This completes the clean-up of class depedencies for DialtactsActivity in
the Dialer.
Bug: 6993891
Change-Id: I86389308e9fe29aeb835b77a9f3d3a4a308bf690
|
|
This completes the dependency clean-up of the PhoneFavoriteFragment in the
dialer.
Bug: 6993891
Change-Id: I72ee8054d18f2b5ee12810194f37f78bad272c4e
|
|
The PeopleActivity was hard coded as the target activity when clicking on
a vcard processed notification. Since the vcard export can be triggered
from both the dialtacts UI and the people UI, it's strange to always go
back to the people UI.
Change vcard UI classes to accept the calling activity. This way we can
send the user back to the activity that originally triggered the vcard
export.
Bug: 6993891
Change-Id: Ice978acb8244aacfcdc94c7da0ccc1e43bada54c
|
|
|
|
Moving dependencies of Dialer PhoneFavoriteFragment. Mostly filtering
dependencies.
Bug: 6993891
Change-Id: I1789580470dd753ffdcb141e5ab827c88369bb3d
|
|
Bug: 6656969
Change-Id: I0bb094125eb9be2b6508e6ca658ae23da9da19d1
|
|
|
|
Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts
and Dialer.
Bug: 6993891
Change-Id: I399de7f92f86270740db51efb32a136b413161c5
|
|
Extract caching methods from SmartDialLoaderTask
and use a standalone SmartDialCache object instead. This
cache object handles caching failures as well as concurrent
multiple cache requests.
Bug: 6977981
Change-Id: I6df9e273191c7ac434d094e567d7a91814f8c030
|
|
Moving dependencies in preparation to move AccountTypeManager.
Bug: 6993891
Change-Id: I0399fee27960d46cd5b6f629d32868ff0c2ce38e
|
|
|
|
|
|
|
|
Instead of normalizing names during caching, add a function that
that maps accented characters to their alphabetic equivalents
using switch statements.
This character map is used in the on-the-fly matching algorithm.
This speeds up the caching process(11k contacts) from 800-1500ms
to about 600-1000ms since we no longer perform the normalizing
step during caching.
Bug: 6977981
Change-Id: I98dfc3cba00258bb7ff03b346eab7ca7dc1065be
|
|
Add null check for mContext to prevent NPE if somehow
SmartDialLoaderTask receives a null context
Bug: 6977981
Change-Id: Id87b254520a48ad78dc0c579f0fd58d7f7ce270e
|
|
Bug: 7205096
Change-Id: Ib81e81195475e74f06ed7eda600b3f777a28ad70
|
|
Moving common dependencies from Contacts to ContactsCommon.
Bug: 6993891
Change-Id: I810454230dd614bf849504ec301fd1f80a80e57f
|
|
|
|
Layout changes to dialpad fragment to make space for smart dial suggestions.
This feature does not appear in landscape mode.
SmartDialTextView automatically resizes text to fit within the bounds of the view.
SmartDialAdapter highlights certain portions of the matching name based on match
positions provided by SmartDialNameMatcher.
SmartDialLoaderTask is an AsyncTask that caches all contacts with a phone number
into memory, or matches all contact names against a provided query to return a
list of matches (maximum of 3).
SmartDialNameMatcher contains utility functions to remove accents from accented
characters and normalize a phone number. It also contains the matching logic that
determines if a contact's display name matches a numeric query.
Added some tests for SmartDialNameMatcher
Bug: 6977981
Change-Id: I43e1a70d8d0d46e02fc67fe1caaec9a1769124f5
|
|
This fixes the problem where the chooser is not shown when the dialpad is
started and pushed to recents before a call comes in. When the call comes
and dial pad is selected from recents, the dialpad is shown. Instead, we
should be showing the chooser so the user has the option of getting back
into the call.
Bug: 5761141
Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
|
|
Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.
Bug: 6993891
Change-Id: I55c871fab9556ce4cc94ccc15716304810c65a28
|
|
|
|
Bug: 6993891
Change-Id: Id4701c00455de609850a5afea74e68c6bd84cbb3
|
|
Initial clean-up of class. More to come.
Bug: 6993891
Change-Id: If00b96432a0d5573c5669b8c8db049d94f264ad6
|
|
Bug: 6993891
Change-Id: I21b3afb81855ae728b9e20f8af8632c9cd9f4e58
|
|
Bug: 6993891
Change-Id: I0137ea3a72e0ee1a75f9218fec471049abf36d97
|
|
|
|
Also added ContactUpdateService so PhoneNumberInteractions can use it
in a coming CL.
Bug: 6993891
Change-Id: If83ec9112bb65b9c885d773d7daa0c7dacecb6a5
|
|
ViewNotificationService and NonPhoneActivity make more sense in contacts since
they perform contact related operations.
Bug: 6993891
Change-Id: Ifb11f26e8f1567ce391da1189f50b5ec79340f5d
|
|
Bug: 6993891
Change-Id: I3ef54efc0ff92367ea4f9b68c1629a99d90ff22c
|
|
Bug: 6993891
Change-Id: I921ec71fffbd4d4a058bab29ded8a6ac62adfb70
|
|
Cherry pick of I7d4a292ebc306b51666d9aa840ddcb2a7e5770fb from jb-mr1
bug: 7297096
Change-Id: I6d95d5d6e2f9ef320002b344af82c9c7a38ffde8
|
|
Bug 7164046
Change-Id: Ic03bd6151ba5ee91287b248fe295614aa816f25b
|
|
Created a receiver which will reset the call filter. Remove
the receiver when filter is not used.
Bug: 7164046
Change-Id: I17fa005a70369d777afc12567643d38176977d7a
|
|
|
|
Bug: 7164046
Change-Id: I02e2bcec47377f9e308bfe5928e372b15a3c0338
|
|
To prevent random null cursors, changed all usages of AsyncQueryHandler to
NoNullAsyncQueryHandler.
Bug: 7012260
Change-Id: I0c3d9593a7b68eb0220a444a21f27b6282f94e07
|
|
- Also moving some shared utilities.
Bug: 6993891
Change-Id: I5fa18d26e4f5423f4d3f3450b8f3e3dacbfb947a
|
|
- These classes are only used by dialer code.
- Fixed import order.
Bug: 6993891
Change-Id: I7941a029989c4793b766fdc77a4666f9f99b750a
|
|
- removed dependency on com.android.phone.common jar (old package)
Bug: 7054788
Change-Id: I8c1f6449534a946f4660a9e8924079c08ff1786c
|
|
Bug: 6993891
Change-Id: I758ce359ca7e87a1d184303822979318be171921
|