Home
last modified time | relevance | path

Searched refs:dest (Results 1 – 25 of 120) sorted by relevance

12345

/packages/apps/UnifiedEmail/src/com/google/android/mail/common/base/
DPercentEscaper.java216 char[] dest = new char[3]; in escape() local
217 dest[0] = '%'; in escape()
218 dest[2] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
219 dest[1] = UPPER_HEX_DIGITS[cp >>> 4]; in escape()
220 return dest; in escape()
224 char[] dest = new char[6]; in escape() local
225 dest[0] = '%'; in escape()
226 dest[3] = '%'; in escape()
227 dest[5] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
229 dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; in escape()
[all …]
DUnicodeEscaper.java172 char[] dest = Platform.charBufferFromThreadLocal(); in escapeSlow() local
193 if (dest.length < sizeNeeded) { in escapeSlow()
195 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
199 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
203 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
217 if (dest.length < endIndex) { in escapeSlow()
218 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
220 s.getChars(unescapedChunkStart, end, dest, destIndex); in escapeSlow()
223 return new String(dest, 0, destIndex); in escapeSlow()
423 private static final char[] growBuffer(char[] dest, int index, int size) { in growBuffer() argument
[all …]
DCharEscaper.java124 char[] dest = Platform.charBufferFromThreadLocal();
125 int destSize = dest.length;
147 dest = growBuffer(dest, destIndex, destSize);
152 s.getChars(lastEscape, index, dest, destIndex);
158 System.arraycopy(r, 0, dest, destIndex, rlen);
171 dest = growBuffer(dest, destIndex, sizeNeeded);
173 s.getChars(lastEscape, slen, dest, destIndex);
176 return new String(dest, 0, destIndex);
200 private static char[] growBuffer(char[] dest, int index, int size) {
203 System.arraycopy(dest, 0, copy, 0, index);
/packages/apps/UnifiedEmail/src/com/android/mail/lib/base/
DPercentEscaper.java215 char[] dest = new char[3]; in escape() local
216 dest[0] = '%'; in escape()
217 dest[2] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
218 dest[1] = UPPER_HEX_DIGITS[cp >>> 4]; in escape()
219 return dest; in escape()
223 char[] dest = new char[6]; in escape() local
224 dest[0] = '%'; in escape()
225 dest[3] = '%'; in escape()
226 dest[5] = UPPER_HEX_DIGITS[cp & 0xF]; in escape()
228 dest[4] = UPPER_HEX_DIGITS[0x8 | (cp & 0x3)]; in escape()
[all …]
DUnicodeEscaper.java172 char[] dest = Platform.charBufferFromThreadLocal(); in escapeSlow() local
193 if (dest.length < sizeNeeded) { in escapeSlow()
195 dest = growBuffer(dest, destIndex, destLength); in escapeSlow()
199 s.getChars(unescapedChunkStart, index, dest, destIndex); in escapeSlow()
203 System.arraycopy(escaped, 0, dest, destIndex, escaped.length); in escapeSlow()
217 if (dest.length < endIndex) { in escapeSlow()
218 dest = growBuffer(dest, destIndex, endIndex); in escapeSlow()
220 s.getChars(unescapedChunkStart, end, dest, destIndex); in escapeSlow()
223 return new String(dest, 0, destIndex); in escapeSlow()
423 private static final char[] growBuffer(char[] dest, int index, int size) { in growBuffer() argument
[all …]
DCharEscaper.java123 char[] dest = Platform.charBufferFromThreadLocal();
124 int destSize = dest.length;
146 dest = growBuffer(dest, destIndex, destSize);
151 s.getChars(lastEscape, index, dest, destIndex);
157 System.arraycopy(r, 0, dest, destIndex, rlen);
170 dest = growBuffer(dest, destIndex, sizeNeeded);
172 s.getChars(lastEscape, slen, dest, destIndex);
175 return new String(dest, 0, destIndex);
199 private static char[] growBuffer(char[] dest, int index, int size) {
202 System.arraycopy(dest, 0, copy, 0, index);
/packages/apps/Settings/tests/src/com/android/settings/bluetooth/
DUtf8ByteLengthFilterTest.java49 SpannableStringBuilder dest; in testFilter() local
57 dest = new SpannableStringBuilder("abcdefgh"); in testFilter()
58 dest.setFilters(filters); in testFilter()
60 dest.insert(1, source); in testFilter()
62 assertEquals(expectedString1, dest.toString()); in testFilter()
64 dest.replace(5, 8, source); in testFilter()
66 assertEquals(expectedString2, dest.toString()); in testFilter()
68 dest.insert(2, source); in testFilter()
69 assertEquals(expectedString2, dest.toString()); in testFilter()
71 dest.delete(1, 3); in testFilter()
[all …]
/packages/apps/UnifiedEmail/src/com/android/mail/providers/
DMessage.java265 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
266 dest.writeLong(id); in writeToParcel()
267 dest.writeString(serverId); in writeToParcel()
268 dest.writeParcelable(uri, 0); in writeToParcel()
269 dest.writeParcelable(conversationUri, 0); in writeToParcel()
270 dest.writeString(subject); in writeToParcel()
271 dest.writeString(snippet); in writeToParcel()
272 dest.writeString(mFrom); in writeToParcel()
273 dest.writeString(mTo); in writeToParcel()
274 dest.writeString(mCc); in writeToParcel()
[all …]
DAccount.java616 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
617 dest.writeString(displayName); in writeToParcel()
618 dest.writeString(senderName); in writeToParcel()
619 dest.writeString(type); in writeToParcel()
620 dest.writeString(accountManagerName); in writeToParcel()
621 dest.writeInt(providerVersion); in writeToParcel()
622 dest.writeParcelable(uri, 0); in writeToParcel()
623 dest.writeInt(capabilities); in writeToParcel()
624 dest.writeParcelable(folderListUri, 0); in writeToParcel()
625 dest.writeParcelable(fullFolderListUri, 0); in writeToParcel()
[all …]
DFolder.java477 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
478 dest.writeInt(id); in writeToParcel()
479 dest.writeString(persistentId); in writeToParcel()
480 dest.writeParcelable(folderUri != null ? folderUri.fullUri : null, 0); in writeToParcel()
481 dest.writeString(name); in writeToParcel()
482 dest.writeInt(capabilities); in writeToParcel()
484 dest.writeInt(hasChildren ? 1 : 0); in writeToParcel()
485 dest.writeInt(syncWindow); in writeToParcel()
486 dest.writeParcelable(conversationListUri, 0); in writeToParcel()
487 dest.writeParcelable(childFoldersListUri, 0); in writeToParcel()
[all …]
DConversation.java177 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
178 dest.writeLong(id); in writeToParcel()
179 dest.writeParcelable(uri, flags); in writeToParcel()
180 dest.writeString(subject); in writeToParcel()
181 dest.writeLong(dateMs); in writeToParcel()
182 dest.writeInt(hasAttachments ? 1 : 0); in writeToParcel()
183 dest.writeParcelable(messageListUri, 0); in writeToParcel()
184 dest.writeInt(sendingState); in writeToParcel()
185 dest.writeInt(priority); in writeToParcel()
186 dest.writeInt(read ? 1 : 0); in writeToParcel()
[all …]
DSettings.java338 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
339 dest.writeString((String) getNonNull(signature, sDefault.signature)); in writeToParcel()
340 dest.writeInt(getAutoAdvanceSetting()); in writeToParcel()
341 dest.writeInt(snapHeaders); in writeToParcel()
342 dest.writeInt(replyBehavior); in writeToParcel()
343 dest.writeInt(convListIcon); in writeToParcel()
344 dest.writeInt(confirmDelete ? 1 : 0); in writeToParcel()
345 dest.writeInt(confirmArchive? 1 : 0); in writeToParcel()
346 dest.writeInt(confirmSend? 1 : 0); in writeToParcel()
347 dest.writeString(getNonNull(defaultInbox, sDefault.defaultInbox).toString()); in writeToParcel()
[all …]
/packages/inputmethods/LatinIME/native/jni/src/
Ddefines.h47 char *dest, const int destSize) { in intArrayToCharArray() argument
56 dest[di++] = codePoint; in intArrayToCharArray()
59 dest[di++] = 0xC0 + (codePoint >> 6); in intArrayToCharArray()
60 dest[di++] = 0x80 + (codePoint & 0x3F); in intArrayToCharArray()
63 dest[di++] = 0xE0 + (codePoint >> 12); in intArrayToCharArray()
64 dest[di++] = 0x80 + ((codePoint >> 6) & 0x3F); in intArrayToCharArray()
65 dest[di++] = 0x80 + (codePoint & 0x3F); in intArrayToCharArray()
68 dest[di++] = 0xF0 + (codePoint >> 18); in intArrayToCharArray()
69 dest[di++] = 0x80 + ((codePoint >> 12) & 0x3F); in intArrayToCharArray()
70 dest[di++] = 0x80 + ((codePoint >> 6) & 0x3F); in intArrayToCharArray()
[all …]
/packages/apps/Email/emailcommon/src/com/android/emailcommon/provider/
DPolicy.java472 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
474 dest.writeLong(mId); in writeToParcel()
475 dest.writeInt(mPasswordMode); in writeToParcel()
476 dest.writeInt(mPasswordMinLength); in writeToParcel()
477 dest.writeInt(mPasswordMaxFails); in writeToParcel()
478 dest.writeInt(mPasswordHistory); in writeToParcel()
479 dest.writeInt(mPasswordExpirationDays); in writeToParcel()
480 dest.writeInt(mPasswordComplexChars); in writeToParcel()
481 dest.writeInt(mMaxScreenLockTime); in writeToParcel()
482 dest.writeInt(mRequireRemoteWipe ? 1 : 0); in writeToParcel()
[all …]
DAccount.java867 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
869 dest.writeLong(mId); in writeToParcel()
870 dest.writeString(mDisplayName); in writeToParcel()
871 dest.writeString(mEmailAddress); in writeToParcel()
872 dest.writeString(mSyncKey); in writeToParcel()
873 dest.writeInt(mSyncLookback); in writeToParcel()
874 dest.writeInt(mSyncInterval); in writeToParcel()
875 dest.writeLong(mHostAuthKeyRecv); in writeToParcel()
876 dest.writeLong(mHostAuthKeySend); in writeToParcel()
877 dest.writeInt(mFlags); in writeToParcel()
[all …]
DMailbox.java806 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
807 dest.writeParcelable(mBaseUri, flags); in writeToParcel()
808 dest.writeLong(mId); in writeToParcel()
809 dest.writeString(mDisplayName); in writeToParcel()
810 dest.writeString(mServerId); in writeToParcel()
811 dest.writeString(mParentServerId); in writeToParcel()
812 dest.writeLong(mParentKey); in writeToParcel()
813 dest.writeLong(mAccountKey); in writeToParcel()
814 dest.writeInt(mType); in writeToParcel()
815 dest.writeInt(mDelimiter); in writeToParcel()
[all …]
/packages/apps/Settings/src/com/android/settings/applications/
DProcStatsEntry.java281 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
282 dest.writeString(mPackage); in writeToParcel()
283 dest.writeInt(mUid); in writeToParcel()
284 dest.writeString(mName); in writeToParcel()
285 dest.writeStringList(mPackages); in writeToParcel()
286 dest.writeLong(mDuration); in writeToParcel()
287 dest.writeLong(mAvgPss); in writeToParcel()
288 dest.writeLong(mMaxPss); in writeToParcel()
289 dest.writeLong(mAvgUss); in writeToParcel()
290 dest.writeLong(mMaxUss); in writeToParcel()
[all …]
/packages/apps/Settings/src/com/android/settings/dashboard/
DDashboardTile.java132 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
133 dest.writeLong(id); in writeToParcel()
134 dest.writeInt(titleRes); in writeToParcel()
135 TextUtils.writeToParcel(title, dest, flags); in writeToParcel()
136 dest.writeInt(summaryRes); in writeToParcel()
137 TextUtils.writeToParcel(summary, dest, flags); in writeToParcel()
138 dest.writeInt(iconRes); in writeToParcel()
139 dest.writeString(fragment); in writeToParcel()
140 dest.writeBundle(fragmentArguments); in writeToParcel()
142 dest.writeInt(1); in writeToParcel()
[all …]
/packages/apps/UnifiedEmail/tests/src/com/android/mail/providers/
DAccountTests.java32 final Parcel dest = Parcel.obtain(); in testSerializeDeserialize() local
33 dest.writeInt(0); in testSerializeDeserialize()
34 dest.writeString("accountUri"); in testSerializeDeserialize()
35 dest.writeInt(12345); in testSerializeDeserialize()
36 dest.writeString("foldersList"); in testSerializeDeserialize()
37 dest.writeString("searchUri"); in testSerializeDeserialize()
38 dest.writeString("fromAddresses"); in testSerializeDeserialize()
39 dest.writeString("expungeMessageUri"); in testSerializeDeserialize()
40 dest.writeString("undoUri"); in testSerializeDeserialize()
41 dest.writeString("settingIntentUri"); in testSerializeDeserialize()
[all …]
/packages/apps/Calendar/src/com/android/calendar/
DEvent.java180 public final void copyTo(Event dest) { in copyTo() argument
181 dest.id = id; in copyTo()
182 dest.title = title; in copyTo()
183 dest.color = color; in copyTo()
184 dest.location = location; in copyTo()
185 dest.allDay = allDay; in copyTo()
186 dest.startDay = startDay; in copyTo()
187 dest.endDay = endDay; in copyTo()
188 dest.startTime = startTime; in copyTo()
189 dest.endTime = endTime; in copyTo()
[all …]
/packages/apps/PackageInstaller/src/com/android/packageinstaller/
DInstallFlowAnalytics.java178 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
179 dest.writeInt(mFlags); in writeToParcel()
180 dest.writeByte(mResult); in writeToParcel()
181 dest.writeInt(mPackageManagerInstallResult); in writeToParcel()
182 dest.writeLong(mStartTimestampMillis); in writeToParcel()
183 dest.writeLong(mPackageInfoObtainedTimestampMillis); in writeToParcel()
184 dest.writeLong(mInstallButtonClickTimestampMillis); in writeToParcel()
185 dest.writeLong(mEndTimestampMillis); in writeToParcel()
186 dest.writeString(mPackageUri); in writeToParcel()
187 writeBoolean(dest, mLogged); in writeToParcel()
[all …]
/packages/apps/Contacts/src/com/android/contacts/list/
DContactsRequest.java148 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
149 dest.writeInt(mValid ? 1 : 0); in writeToParcel()
150 dest.writeInt(mActionCode); in writeToParcel()
151 dest.writeParcelable(mRedirectIntent, 0); in writeToParcel()
152 dest.writeCharSequence(mTitle); in writeToParcel()
153 dest.writeInt(mSearchMode ? 1 : 0); in writeToParcel()
154 dest.writeString(mQueryString); in writeToParcel()
155 dest.writeInt(mIncludeProfile ? 1 : 0); in writeToParcel()
156 dest.writeInt(mLegacyCompatibilityMode ? 1 : 0); in writeToParcel()
157 dest.writeInt(mDirectorySearchEnabled ? 1 : 0); in writeToParcel()
[all …]
/packages/apps/Gallery2/jni_jpegstream/src/
Djpeg_hook.cpp25 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_init_destination_fcn()
31 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_empty_output_buffer_fcn()
42 DestManager *dst = reinterpret_cast<DestManager*>(cinfo->dest); in Mgr_term_destination_fcn()
50 if (cinfo->dest != NULL) { in MakeDst()
55 cinfo->dest = (struct jpeg_destination_mgr *) (*cinfo->mem->alloc_small) in MakeDst()
57 if (cinfo->dest == NULL) { in MakeDst()
61 memset(cinfo->dest, '0', size); in MakeDst()
63 DestManager *d = reinterpret_cast<DestManager*>(cinfo->dest); in MakeDst()
75 DestManager* d = reinterpret_cast<DestManager*>(cinfo->dest); in UpdateDstEnv()
80 if (cinfo != NULL && cinfo->dest != NULL) { in CleanDst()
[all …]
/packages/apps/Camera/jni/feature_mos/src/mosaic/
DDelaunay.cpp28 #define valid(l) ccw(orig(basel), dest(l), dest(basel))
162 ans = makeEdge(dest(a), orig(b)); in connectLeft()
171 ans = makeEdge(dest(a), orig(b)); in connectRight()
522 while (ccw(orig(ldi), dest(ldi), orig(rdi))) {
525 if (ccw(dest(rdi), orig(rdi), orig(ldi))) {
538 if (dest(basel) == orig(*ldo)) {
549 while (incircle(dest(lcand), dest(t), orig(lcand), orig(basel))) {
561 while (incircle(dest(t), dest(rcand), orig(rcand), dest(basel))) {
580 (rvalid && incircle(dest(lcand), orig(lcand), orig(rcand), dest(rcand)))) {
600 nex = dest(last);
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp28 #define valid(l) ccw(orig(basel), dest(l), dest(basel))
162 ans = makeEdge(dest(a), orig(b)); in connectLeft()
171 ans = makeEdge(dest(a), orig(b)); in connectRight()
522 while (ccw(orig(ldi), dest(ldi), orig(rdi))) {
525 if (ccw(dest(rdi), orig(rdi), orig(ldi))) {
538 if (dest(basel) == orig(*ldo)) {
549 while (incircle(dest(lcand), dest(t), orig(lcand), orig(basel))) {
561 while (incircle(dest(t), dest(rcand), orig(rcand), dest(basel))) {
580 (rvalid && incircle(dest(lcand), orig(lcand), orig(rcand), dest(rcand)))) {
600 nex = dest(last);

12345