Lines Matching defs:Utility
17 package com.android.emailcommon.utility;
38 * This is a series of medium tests for the Utility class. These tests must be locally
42 * runtest -c com.android.emailcommon.utility.UtilityMediumTests email
71 Account acct = Utility.findExistingAccount(mMockContext, -1, "address-ha1", "login-ha1");
74 acct = Utility.findExistingAccount(mMockContext, -1, "address-ha2", "login-ha2");
78 acct = Utility.findExistingAccount(mMockContext, -1, "address-ha3", "login-ha3");
81 acct = Utility.findExistingAccount(mMockContext, account1.mId, "address-ha1", "login-ha1");
89 acct = Utility.findExistingAccount(mMockContext, -1, "address-foo_ba", "login-foo.ba");
91 acct = Utility.findExistingAccount(mMockContext, -1, "address-foo_ba", "login-foo_ba");
98 assertFalse(Utility.attachmentExists(mMockContext, null));
108 assertFalse(Utility.attachmentExists(mMockContext, attachment));
112 assertTrue(Utility.attachmentExists(mMockContext, attachment));
122 assertFalse(Utility.attachmentExists(mMockContext, attachment));
132 assertTrue(Utility.attachmentExists(mMockContext, attachment));
138 Utility.buildLimitOneUri(Uri.parse("content://com.android.email.provider")));
142 Utility.buildLimitOneUri(Uri.parse("content://com.android.email.attachmentprovider"
145 Utility.buildLimitOneUri(Uri.parse("content://gmail-ls/android@gmail.com"
155 assertEquals((Long) account2.mId, Utility.getFirstRowLong(
161 assertEquals((Long) account3.mId, Utility.getFirstRowLong(
168 assertEquals(null, Utility.getFirstRowLong(
175 assertEquals((Long) (-1L), Utility.getFirstRowLong(
188 assertEquals((Integer)(int) account2.mId, Utility.getFirstRowInt(
194 assertEquals((Integer)(int) account3.mId, Utility.getFirstRowInt(
201 assertEquals(null, Utility.getFirstRowInt(
208 assertEquals((Integer) (-1), Utility.getFirstRowInt(
223 assertEquals(account2.mDisplayName, Utility.getFirstRowString(
229 assertEquals(account3.mDisplayName, Utility.getFirstRowString(
235 assertEquals(null, Utility.getFirstRowString(
241 assertEquals("-", Utility.getFirstRowString(