Searched refs:Utility (Results 1 - 25 of 40) sorted by relevance

12

/packages/apps/Email/tests/src/com/android/emailcommon/utility/
H A DUtilityTest.java25 import com.android.emailcommon.utility.Utility.NewFileCreator;
38 GregorianCalendar cal = Utility.parseDateTimeToCalendar(date);
64 long timeInMillis = Utility.parseEmailDateTimeToMillis(date);
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
[all...]
/packages/apps/Email/provider_src/com/android/email/mail/store/imap/
H A DImapSimpleString.java19 import com.android.emailcommon.utility.Utility;
47 return new ByteArrayInputStream(Utility.toAscii(mString));
H A DImapMemoryLiteral.java21 import com.android.emailcommon.utility.Utility;
59 return Utility.fromAscii(mData);
H A DImapTempFileLiteral.java22 import com.android.emailcommon.utility.Utility;
95 return Utility.fromAscii(bytes);
/packages/apps/Email/provider_src/com/android/email/
H A DDebugUtils.java7 import com.android.emailcommon.utility.Utility;
45 Utility.enableStrictMode(enable);
H A DAttachmentInfo.java23 import com.android.emailcommon.utility.Utility;
121 if (!Utility.isExternalStorageMounted()) {
136 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS,
153 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS,
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/
H A DImapTestUtils.java26 import com.android.emailcommon.utility.Utility;
33 * Utility methods for IMAP tests.
89 new ByteArrayInputStream(Utility.toAscii(line + "\r\n")), new DiscourseLogger(4));
103 ByteArrayInputStream in = new ByteArrayInputStream(Utility.toAscii(content + "#trailing"));
H A DImapStringTest.java22 import com.android.emailcommon.utility.Utility;
49 assertEquals("", Utility.fromAscii(IOUtils.toByteArray(ImapString.EMPTY.getAsStream())));
65 assertEquals("AbcD", Utility.fromAscii(IOUtils.toByteArray(s.getAsStream())));
147 assertEquals(content, Utility.fromAscii(IOUtils.toByteArray(s.getAsStream())));
H A DImapResponseParserTest.java28 import com.android.emailcommon.utility.Utility;
40 return new ImapResponseParser(new ByteArrayInputStream(Utility.toAscii(responses)),
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/imap/
H A DImapTempFileLiteral.java21 import com.android.voicemail.impl.mail.utils.Utility;
91 return Utility.fromAscii(bytes);
/packages/apps/Email/emailcommon/src/com/android/emailcommon/
H A DDevice.java23 import com.android.emailcommon.utility.Utility;
112 return Utility.getSmallHash(deviceId);
/packages/apps/Email/src/com/android/email/activity/
H A DEventViewer.java30 import com.android.emailcommon.utility.Utility;
69 time = Utility.parseEmailDateTimeToMillis(info.get(MeetingInfo.MEETING_DTSTART));
H A DContactStatusLoader.java33 import com.android.emailcommon.utility.Utility;
130 final byte[] photoData = Utility.getFirstRowBlob(context,
/packages/apps/Email/provider_src/com/android/email/service/
H A DImapTempFileLiteral.java25 import com.android.emailcommon.utility.Utility;
98 return Utility.fromAscii(bytes);
H A DEmailServiceStub.java62 import com.android.emailcommon.utility.Utility;
146 if (Utility.attachmentExists(mContext, attachment)
164 long sourceId = Utility.getFirstRowLong(mContext, Body.CONTENT_URI,
473 if (Utility.hasUnloadedAttachments(context, messageId)) {
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/utils/
H A DUtility.java22 public class Utility { class
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/
H A DLoggingInputStream.java92 mSb.append("\\x" + Utility.byteToHex(oneByte));
H A DAttachmentUtilities.java410 } else if (Utility.isExternalStorageMounted()) {
421 File file = Utility.createUniqueFile(downloads, attachment.mFileName);
/packages/apps/Email/tests/src/com/android/email/service/
H A DEmailBroadcastProcessorServiceTests.java29 import com.android.emailcommon.utility.Utility;
74 Integer flags = Utility.getFirstRowInt(mMockContext, uri,
/packages/apps/Email/src/com/android/email/activity/setup/
H A DAccountSetupOutgoingFragment.java49 import com.android.emailcommon.utility.Utility;
282 Utility.isServerNameValid(mServerView) && Utility.isPortFieldValid(mPortView);
H A DMailboxSettings.java49 import com.android.emailcommon.utility.Utility;
340 final Long policyKey = Utility.getFirstRowLong(getContext(),
348 final int maxLookback = Utility.getFirstRowInt(getContext(),
/packages/apps/Dialer/java/com/android/voicemail/impl/mail/store/
H A DImapFolder.java45 import com.android.voicemail.impl.mail.utils.Utility;
167 return uids.toArray(Utility.EMPTY_STRINGS);
181 return Utility.EMPTY_STRINGS; // Not found
304 Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ')),
350 message.parse(Utility.streamFromAsciiString(header));
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
H A DMailbox.java39 import com.android.emailcommon.utility.Utility;
667 return Utility.getFirstRowLong(context, Mailbox.CONTENT_URI,
703 return Utility.getFirstRowInt(context, url, MAILBOX_TYPE_PROJECTION,
712 return Utility.getFirstRowString(context, url, MAILBOX_DISPLAY_NAME_PROJECTION,
921 return Utility.getFirstRowLong(context,
/packages/apps/Email/provider_src/com/android/email/mail/store/
H A DImapStore.java47 import com.android.emailcommon.utility.Utility;
603 return Utility.fromAscii(b);
612 folder = MODIFIED_UTF_7_CHARSET.decode(ByteBuffer.wrap(Utility.toAscii(name))).toString();
H A DImapFolder.java51 import com.android.emailcommon.utility.Utility;
396 return uids.toArray(Utility.EMPTY_STRINGS);
427 return Utility.EMPTY_STRINGS; // Not found
499 return Utility.EMPTY_STRINGS; // not found;
681 Utility.combine(fetchFields.toArray(new String[fetchFields.size()]), ' ')
726 message.parse(Utility.streamFromAsciiString(header));

Completed in 229 milliseconds

12