/packages/apps/Email/tests/src/com/android/emailcommon/utility/ |
UtilityUnitTests.java | 17 package com.android.emailcommon.utility; 38 import com.android.emailcommon.utility.Utility.NewFileCreator; 52 * This is a series of unit tests for the Utility class. These tests must be locally 67 assertNull(Utility.toUtf8(null)); 68 MoreAsserts.assertEquals(new byte[] {}, Utility.toUtf8("")); 69 MoreAsserts.assertEquals(b('a'), Utility.toUtf8("a")); 70 MoreAsserts.assertEquals(b('A', 'B', 'C'), Utility.toUtf8("ABC")); 72 Utility.toUtf8("\u65E5\u672C\u8A9E")); 76 assertNull(Utility.fromUtf8(null)) [all...] |
UtilityMediumTests.java | 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 72 Account acct = Utility.findExistingAccount(mMockContext, -1, "address-ha1", "login-ha1"); 75 acct = Utility.findExistingAccount(mMockContext, -1, "address-ha2", "login-ha2"); 79 acct = Utility.findExistingAccount(mMockContext, -1, "address-ha3", "login-ha3"); 82 acct = Utility.findExistingAccount(mMockContext, account1.mId, "address-ha1", "login-ha1"); 90 acct = Utility.findExistingAccount(mMockContext, -1, "address-foo_ba", "login-foo.ba"); 92 acct = Utility.findExistingAccount(mMockContext, -1, "address-foo_ba", "login-foo_ba"); 99 assertFalse(Utility.attachmentExists(mMockContext, null)) [all...] |
/packages/apps/Email/src/com/android/email/mail/store/imap/ |
ImapSimpleString.java | 19 import com.android.emailcommon.utility.Utility; 47 return new ByteArrayInputStream(Utility.toAscii(mString));
|
ImapMemoryLiteral.java | 21 import com.android.emailcommon.utility.Utility; 59 return Utility.fromAscii(mData);
|
ImapTempFileLiteral.java | 22 import com.android.emailcommon.utility.Utility; 95 return Utility.fromAscii(bytes);
|
/packages/apps/Exchange/src/com/android/exchange/utility/ |
SimpleIcsWriter.java | 16 package com.android.exchange.utility; 18 import com.android.emailcommon.utility.Utility; 41 for (byte b : Utility.toUtf8(string)) { 47 && Utility.isFirstUtf8Byte(b)) { // Only wrappable if it's before the first byte 106 return Utility.fromUtf8(getBytes());
|
/packages/apps/Exchange/tests/src/com/android/exchange/utility/ |
SimpleIcsWriterTests.java | 16 package com.android.exchange.utility; 18 import com.android.emailcommon.utility.Utility; 27 * runtest -c com.android.exchange.utility.SimpleIcsWriterTests exchange 48 final String actual = Utility.fromUtf8(ics.getBytes()); 102 final String actual = Utility.fromUtf8(bytes);
|
/frameworks/base/drm/jni/ |
android_drm_DrmManagerClient.cpp | 42 * Utility class used to extract the value from the provided java object. 43 * May need to add some utility function to create java object. 45 class Utility { 60 String8 Utility::getStringValue(JNIEnv* env, jobject object, const char* fieldName) { 67 return Utility::getStringValue(env, valueString); 74 String8 Utility::getStringValue(JNIEnv* env, jstring string) { 91 char* Utility::getByteArrayValue( 100 return Utility::getByteArrayValue(env, byteArray, dataLength); 105 char* Utility::getByteArrayValue(JNIEnv* env, jbyteArray byteArray, int* dataLength) { 119 int Utility::getIntValue(JNIEnv* env, jobject object, const char* fieldName) [all...] |
/packages/apps/Email/tests/src/com/android/email/ |
UtilityLargeTest.java | 26 import com.android.emailcommon.utility.Utility; 32 * Large tests for {@link Utility}. 64 new Utility.ForEachAccount(mProviderContext) {
|
/packages/apps/Email/tests/src/com/android/email/mail/store/imap/ |
ImapTestUtils.java | 26 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"));
|
ImapStringTest.java | 22 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())));
|
/external/chromium_org/chrome/browser/resources/task_manager/ |
measure_time.js | 6 * @fileoverview Utility methods for measuring loading times.
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/ |
Device.java | 23 import com.android.emailcommon.utility.Utility; 112 return Utility.getSmallHash(deviceId);
|
/packages/apps/Email/src/com/android/email/activity/ |
EventViewer.java | 30 import com.android.emailcommon.utility.Utility; 66 Utility.parseEmailDateTimeToMillis(info.get(MeetingInfo.MEETING_DTSTART));
|
ContactStatusLoader.java | 33 import com.android.emailcommon.utility.Utility; 130 final byte[] photoData = Utility.getFirstRowBlob(context,
|
/packages/apps/Email/src/com/android/email/service/ |
ImapTempFileLiteral.java | 25 import com.android.emailcommon.utility.Utility; 98 return Utility.fromAscii(bytes);
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/utility/ |
LoggingInputStream.java | 17 package com.android.emailcommon.utility; 92 mSb.append("\\x" + Utility.byteToHex(oneByte));
|
/packages/apps/Email/src/com/android/email/ |
AttachmentInfo.java | 21 import com.android.emailcommon.utility.AttachmentUtilities; 22 import com.android.emailcommon.utility.Utility; 114 if (!Utility.isExternalStorageMounted()) { 129 Utility.arrayContains(AttachmentUtilities.UNACCEPTABLE_ATTACHMENT_EXTENSIONS, 146 Utility.arrayContains(AttachmentUtilities.INSTALLABLE_ATTACHMENT_EXTENSIONS,
|
/packages/apps/Exchange/src/com/android/exchange/service/ |
EasMeetingResponder.java | 18 import com.android.emailcommon.utility.Utility; 24 import com.android.exchange.utility.CalendarUtilities; 97 final String mailboxServerId = Utility.getFirstRowString(context, 140 entityValues.put(Events.DTSTART, Utility.parseEmailDateTimeToMillis(dtStart)); 141 entityValues.put(Events.DTEND, Utility.parseEmailDateTimeToMillis(dtEnd));
|
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/ |
HostAuth.java | 29 import com.android.emailcommon.utility.SSLUtils; 30 import com.android.emailcommon.utility.Utility; 86 * no public constructor since this is a utility class 360 && Utility.areStringsEqual(mProtocol, that.mProtocol) 361 && Utility.areStringsEqual(mAddress, that.mAddress) 362 && Utility.areStringsEqual(mLogin, that.mLogin) 363 && Utility.areStringsEqual(mPassword, that.mPassword) 364 && Utility.areStringsEqual(mDomain, that.mDomain) 365 && Utility.areStringsEqual(mClientCertAlias, that.mClientCertAlias) [all...] |
/packages/apps/Email/tests/src/com/android/email/service/ |
EmailBroadcastProcessorServiceTests.java | 29 import com.android.emailcommon.utility.Utility; 74 Integer flags = Utility.getFirstRowInt(mMockContext, uri,
|
/packages/apps/Exchange/src/com/android/exchange/ |
EasOutboxService.java | 41 import com.android.emailcommon.utility.Utility; 268 String[] cols = Utility.getRowColumns(context, Body.CONTENT_URI, 275 cols = Utility.getRowColumns(context, Message.CONTENT_URI, refId, 282 cols = Utility.getRowColumns(context, Mailbox.CONTENT_URI, boxId, 523 if (Utility.hasUnloadedAttachments(mContext, msgId)) {
|
/packages/apps/Email/src/com/android/email/activity/setup/ |
MailboxSettings.java | 41 import com.android.emailcommon.utility.EmailAsyncTask; 42 import com.android.emailcommon.utility.Utility; 174 final Long policyKey = Utility.getFirstRowLong(c, ContentUris.withAppendedId( 178 mMaxLookback = Utility.getFirstRowInt(c, ContentUris.withAppendedId(
|
/external/chromium/chrome/browser/resources/file_manager/js/ |
util.js | 6 * Namespace for utility functions. 61 * Utility function to invoke callback once for each entry in dirEntry. 85 * Utility function to resolve multiple directories with a single call.
|
/packages/apps/Exchange/src/com/android/exchange/eas/ |
EasOutboxSync.java | 20 import com.android.emailcommon.utility.Utility; 342 String[] cols = Utility.getRowColumns(context, Body.CONTENT_URI, BODY_SOURCE_PROJECTION, 349 cols = Utility.getRowColumns(context, Message.CONTENT_URI, refId, 356 cols = Utility.getRowColumns(context, Mailbox.CONTENT_URI, boxId,
|