Lines Matching refs:CONTENT_ITEM_TYPE
35 assertCollapses("41", true, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE, null);
36 assertCollapses("42", true, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "1");
38 assertCollapses("51", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "2");
39 assertCollapses("52", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, null);
40 assertCollapses("53", false, Phone.CONTENT_ITEM_TYPE, null, Phone.CONTENT_ITEM_TYPE, "2");
43 assertCollapses("60", true, Phone.CONTENT_ITEM_TYPE, "1234567", Phone.CONTENT_ITEM_TYPE,
45 assertCollapses("61", false, Phone.CONTENT_ITEM_TYPE, "1234567", Phone.CONTENT_ITEM_TYPE,
47 assertCollapses("62", true, Phone.CONTENT_ITEM_TYPE, "1234567;0", Phone.CONTENT_ITEM_TYPE,
49 assertCollapses("63", false, Phone.CONTENT_ITEM_TYPE, "1234567;89321",
50 Phone.CONTENT_ITEM_TYPE, "1234567;89322");
51 assertCollapses("64", true, Phone.CONTENT_ITEM_TYPE, "1234567;89321",
52 Phone.CONTENT_ITEM_TYPE, "1234567;89321");
53 assertCollapses("65", false, Phone.CONTENT_ITEM_TYPE, "1234567;0111111111",
54 Phone.CONTENT_ITEM_TYPE, "1234567;");
55 assertCollapses("66", false, Phone.CONTENT_ITEM_TYPE, "12345675426;91970xxxxx",
56 Phone.CONTENT_ITEM_TYPE, "12345675426");
57 assertCollapses("67", false, Phone.CONTENT_ITEM_TYPE, "12345675426;23456xxxxx",
58 Phone.CONTENT_ITEM_TYPE, "12345675426;234567xxxx");
59 assertCollapses("68", true, Phone.CONTENT_ITEM_TYPE, "1234567;1234567;1234567",
60 Phone.CONTENT_ITEM_TYPE, "1234567;1234567;1234567");
61 assertCollapses("69", false, Phone.CONTENT_ITEM_TYPE, "1234567;1234567;1234567",
62 Phone.CONTENT_ITEM_TYPE, "1234567;1234567");
65 assertCollapses("70", true, Phone.CONTENT_ITEM_TYPE, "+49 (89) 12345678",
66 Phone.CONTENT_ITEM_TYPE, "+49 (89) 12345678");
67 assertCollapses("71", true, Phone.CONTENT_ITEM_TYPE, "+49 (89) 12345678",
68 Phone.CONTENT_ITEM_TYPE, "+49 (89)12345678");
69 assertCollapses("72", true, Phone.CONTENT_ITEM_TYPE, "+49 (8092) 1234",
70 Phone.CONTENT_ITEM_TYPE, "+49 (8092)1234");
71 assertCollapses("73", false, Phone.CONTENT_ITEM_TYPE, "0049 (8092) 1234",
72 Phone.CONTENT_ITEM_TYPE, "+49/80921234");
73 assertCollapses("74", false, Phone.CONTENT_ITEM_TYPE, "+49 (89) 12345678",
74 Phone.CONTENT_ITEM_TYPE, "+49 (89) 12345679");
78 assertEquals("100", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
79 "+1 (415) 555-1212", Phone.CONTENT_ITEM_TYPE, "(415) 555-1212"));
80 assertEquals("101", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
81 "+14155551212", Phone.CONTENT_ITEM_TYPE, "4155551212"));
82 assertEquals("102", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
83 "(415) 555-1212", Phone.CONTENT_ITEM_TYPE, "+1 (415) 555-1212"));
84 assertEquals("103", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
85 "4155551212", Phone.CONTENT_ITEM_TYPE, "+14155551212"));
87 assertEquals("104", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
88 "1-415-555-1212", Phone.CONTENT_ITEM_TYPE, "415-555-1212"));
89 assertEquals("105", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
90 "14155551212", Phone.CONTENT_ITEM_TYPE, "4155551212"));
91 assertEquals("106", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
92 "+1 (415) 555-1212", Phone.CONTENT_ITEM_TYPE, " 1 (415) 555-1212"));
93 assertEquals("107", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
94 "+14155551212", Phone.CONTENT_ITEM_TYPE, " 14155551212"));
95 assertEquals("108", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
96 "1 (415) 555-1212", Phone.CONTENT_ITEM_TYPE, "+1 (415) 555-1212"));
97 assertEquals("109", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
98 "14155551212", Phone.CONTENT_ITEM_TYPE, "+14155551212"));
101 assertCollapses("200", true, Phone.CONTENT_ITEM_TYPE, "+49 (8092) 1234;89321",
102 Phone.CONTENT_ITEM_TYPE, "+49/80921234;89321");
103 assertCollapses("201", false, Phone.CONTENT_ITEM_TYPE, "+49 (8092) 1234;89321",
104 Phone.CONTENT_ITEM_TYPE, "+49/80921235;89321");
105 assertCollapses("202", false, Phone.CONTENT_ITEM_TYPE, "+49 (8092) 1234;89322",
106 Phone.CONTENT_ITEM_TYPE, "+49/80921234;89321");
107 assertCollapses("203", true, Phone.CONTENT_ITEM_TYPE, "1234567;+49 (8092) 1234",
108 Phone.CONTENT_ITEM_TYPE, "1234567;+49/80921234");
110 assertCollapses("300", true, Phone.CONTENT_ITEM_TYPE, "", Phone.CONTENT_ITEM_TYPE, "");
112 assertCollapses("301", false, Phone.CONTENT_ITEM_TYPE, "1", Phone.CONTENT_ITEM_TYPE, "");
114 assertCollapses("302", false, Phone.CONTENT_ITEM_TYPE, "", Phone.CONTENT_ITEM_TYPE, "1");
116 assertCollapses("303", true, Phone.CONTENT_ITEM_TYPE, "---", Phone.CONTENT_ITEM_TYPE, "---");
118 assertCollapses("304", false, Phone.CONTENT_ITEM_TYPE, "1-/().", Phone.CONTENT_ITEM_TYPE,
123 assertEquals("400", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
124 "abcdefghijklmnopqrstuvwxyz", Phone.CONTENT_ITEM_TYPE,
126 assertEquals("401", false, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
127 "22233344455566677778889999", Phone.CONTENT_ITEM_TYPE,
130 assertCollapses("402", false, Phone.CONTENT_ITEM_TYPE, "1;2", Phone.CONTENT_ITEM_TYPE,
133 assertCollapses("403", false, Phone.CONTENT_ITEM_TYPE, "1,2", Phone.CONTENT_ITEM_TYPE,
138 assertEquals("1", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
139 "555-1212", Phone.CONTENT_ITEM_TYPE, "5551212"));
140 assertEquals("1", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
141 "415-555-1212", Phone.CONTENT_ITEM_TYPE, "(415) 555-1212"));
142 assertEquals("2", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
143 "4155551212", Phone.CONTENT_ITEM_TYPE, "(415) 555-1212"));
144 assertEquals("3", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
145 "1-415-555-1212", Phone.CONTENT_ITEM_TYPE, "1 (415) 555-1212"));
146 assertEquals("4", true, MoreContactUtils.shouldCollapse(Phone.CONTENT_ITEM_TYPE,
147 "14155551212", Phone.CONTENT_ITEM_TYPE, "1 (415) 555-1212"));