Home
last modified time | relevance | path

Searched refs:Utility (Results 1 – 25 of 42) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/emailcommon/utility/
DUtilityTest.java25 import com.android.emailcommon.utility.Utility.NewFileCreator;
38 GregorianCalendar cal = Utility.parseDateTimeToCalendar(date); in testParseDateTimesHelper()
64 long timeInMillis = Utility.parseEmailDateTimeToMillis(date); in testParseEmailDateTimeHelper()
109 Utility.createUniqueFileInternal(getCountdownFileCreator(), directory, "file");
114 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file");
119 Utility.createUniqueFileInternal(getCountdownFileCreator(), directory, "file.ext");
124 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file.ext");
135 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file%s");
139 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file%s.ext");
149 Utility.createUniqueFileInternal(getTrueFileCreator(), directory, "file");
[all …]
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
DImapStringTest.java22 import com.android.emailcommon.utility.Utility;
49 assertEquals("", Utility.fromAscii(IOUtils.toByteArray(ImapString.EMPTY.getAsStream()))); in testEmpty()
65 assertEquals("AbcD", Utility.fromAscii(IOUtils.toByteArray(s.getAsStream()))); in testBasics()
147 assertEquals(content, Utility.fromAscii(IOUtils.toByteArray(s.getAsStream()))); in doLiteralTest()
DImapTestUtils.java26 import com.android.emailcommon.utility.Utility;
89 new ByteArrayInputStream(Utility.toAscii(line + "\r\n")), new DiscourseLogger(4)); in parseResponse()
103 ByteArrayInputStream in = new ByteArrayInputStream(Utility.toAscii(content + "#trailing")); in createFixedLengthInputStream()
DImapResponseParserTest.java28 import com.android.emailcommon.utility.Utility;
40 return new ImapResponseParser(new ByteArrayInputStream(Utility.toAscii(responses)), in generateParser()
/packages/apps/Email/provider_src/com/android/email/
DAttachmentInfo.java23 import com.android.emailcommon.utility.Utility;
121 if (!Utility.isExternalStorageMounted()) { in AttachmentInfo()
136 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS, in AttachmentInfo()
153 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS, in AttachmentInfo()
DDebugUtils.java7 import com.android.emailcommon.utility.Utility;
45 Utility.enableStrictMode(enable); in enableStrictMode()
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
DImapSimpleString.java19 import com.android.emailcommon.utility.Utility;
47 return new ByteArrayInputStream(Utility.toAscii(mString)); in getAsStream()
DImapMemoryLiteral.java21 import com.android.emailcommon.utility.Utility;
59 return Utility.fromAscii(mData); in getString()
DImapTempFileLiteral.java22 import com.android.emailcommon.utility.Utility;
95 return Utility.fromAscii(bytes); in getString()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
DDevice.java23 import com.android.emailcommon.utility.Utility;
112 return Utility.getSmallHash(deviceId); in getConsistentDeviceId()
/packages/apps/Email/src/com/android/email/activity/
DEventViewer.java30 import com.android.emailcommon.utility.Utility;
69 … time = Utility.parseEmailDateTimeToMillis(info.get(MeetingInfo.MEETING_DTSTART)); in onCreate()
DContactStatusLoader.java33 import com.android.emailcommon.utility.Utility;
130 final byte[] photoData = Utility.getFirstRowBlob(context, in getContactInfo()
/packages/services/Telephony/src/com/android/phone/common/mail/store/imap/
DImapTempFileLiteral.java20 import com.android.phone.common.mail.utils.Utility;
95 return Utility.fromAscii(bytes); in getString()
/packages/apps/Email/provider_src/com/android/email/service/
DImapTempFileLiteral.java25 import com.android.emailcommon.utility.Utility;
98 return Utility.fromAscii(bytes); in getString()
DEmailServiceStub.java62 import com.android.emailcommon.utility.Utility;
146 if (Utility.attachmentExists(mContext, attachment) in loadAttachment()
164 long sourceId = Utility.getFirstRowLong(mContext, Body.CONTENT_URI, in loadAttachment()
473 if (Utility.hasUnloadedAttachments(context, messageId)) { in sendMailImpl()
/packages/apps/Email/tests/src/com/android/email/service/
DEmailBroadcastProcessorServiceTests.java29 import com.android.emailcommon.utility.Utility;
74 Integer flags = Utility.getFirstRowInt(mMockContext, uri, in getAccountFlags()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DMailbox.java39 import com.android.emailcommon.utility.Utility;
667 return Utility.getFirstRowLong(context, Mailbox.CONTENT_URI, in findMailboxOfType()
703 return Utility.getFirstRowInt(context, url, MAILBOX_TYPE_PROJECTION, in getMailboxType()
712 return Utility.getFirstRowString(context, url, MAILBOX_DISPLAY_NAME_PROJECTION, in getDisplayName()
921 return Utility.getFirstRowLong(context, in getAccountIdForMailbox()
DAccount.java34 import com.android.emailcommon.utility.Utility;
570 return null != Utility.getFirstRowLong(context, CONTENT_URI, ID_PROJECTION, in isValidId()
579 return (Utility.getFirstRowLong(context, in isSecurityHold()
589 return Utility.getFirstRowLong(context, Mailbox.CONTENT_URI, ID_PROJECTION, in getInboxId()
/packages/services/Telephony/src/com/android/phone/common/mail/store/
DImapFolder.java51 import com.android.phone.common.mail.utils.Utility;
192 return uids.toArray(Utility.EMPTY_STRINGS); in getSearchUids()
207 return Utility.EMPTY_STRINGS; // Not found in searchForUids()
328 Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ') in fetchInternal()
373 message.parse(Utility.streamFromAsciiString(header)); in fetchInternal()
/packages/apps/Email/src/com/android/email/activity/setup/
DAccountSetupOutgoingFragment.java49 import com.android.emailcommon.utility.Utility;
282 Utility.isServerNameValid(mServerView) && Utility.isPortFieldValid(mPortView); in validateFields()
DMailboxSettings.java49 import com.android.emailcommon.utility.Utility;
340 final Long policyKey = Utility.getFirstRowLong(getContext(), in loadInBackground()
348 final int maxLookback = Utility.getFirstRowInt(getContext(), in loadInBackground()
/packages/apps/Email/provider_src/com/android/email/mail/store/
DImapFolder.java51 import com.android.emailcommon.utility.Utility;
396 return uids.toArray(Utility.EMPTY_STRINGS); in getSearchUids()
427 return Utility.EMPTY_STRINGS; // Not found in searchForUids()
499 return Utility.EMPTY_STRINGS; // not found; in complexSearchForUids()
681 Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ') in fetchInternal()
726 message.parse(Utility.streamFromAsciiString(header)); in fetchInternal()
DImapStore.java47 import com.android.emailcommon.utility.Utility;
603 return Utility.fromAscii(b); in encodeFolderName()
612 folder = MODIFIED_UTF_7_CHARSET.decode(ByteBuffer.wrap(Utility.toAscii(name))).toString(); in decodeFolderName()
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
DAttachmentUtilities.java410 } else if (Utility.isExternalStorageMounted()) { in saveAttachment()
421 File file = Utility.createUniqueFile(downloads, attachment.mFileName); in saveAttachment()
/packages/services/Telephony/src/com/android/phone/common/mail/utils/
DUtility.java26 public class Utility { class

12