Home
last modified time | relevance | path

Searched refs:canAddDigit (Results 1 – 2 of 2) sorted by relevance

/packages/apps/Dialer/tests/src/com/android/dialer/dialpad/
DDialpadFragmentTest.java29 assertTrue(DialpadFragment.canAddDigit("123", 3, 3, ';')); in testCanAddDigit_Valid()
30 assertTrue(DialpadFragment.canAddDigit("123", 1, 1, ',')); in testCanAddDigit_Valid()
31 assertTrue(DialpadFragment.canAddDigit("123", 1, 3, ';')); in testCanAddDigit_Valid()
32 assertTrue(DialpadFragment.canAddDigit("123", 1, 2, ',')); in testCanAddDigit_Valid()
38 DialpadFragment.canAddDigit("123", 1, 1, '5'); in testCanAddDigit_InvalidCharacter()
46 assertFalse(DialpadFragment.canAddDigit("123", -1, -1, ';')); in testCanAddDigit_BadOrNoSelection()
47 assertFalse(DialpadFragment.canAddDigit("123", -1, 1, ',')); in testCanAddDigit_BadOrNoSelection()
50 assertFalse(DialpadFragment.canAddDigit("123", 2, 1, ',')); in testCanAddDigit_BadOrNoSelection()
55 assertFalse(DialpadFragment.canAddDigit("123", 1, 4, ';')); in testCanAddDigit_OutOfBounds()
56 assertFalse(DialpadFragment.canAddDigit("123", 4, 4, ',')); in testCanAddDigit_OutOfBounds()
[all …]
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DDialpadFragment.java1491 if (canAddDigit(digits, selectionStart, selectionEnd, newDigit)) { in updateDialString()
1560 /* package */ static boolean canAddDigit(CharSequence digits, int start, int end, in canAddDigit() method in DialpadFragment