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/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.java267 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
268 dest.writeLong(id); in writeToParcel()
269 dest.writeString(serverId); in writeToParcel()
270 dest.writeParcelable(uri, 0); in writeToParcel()
271 dest.writeParcelable(conversationUri, 0); in writeToParcel()
272 dest.writeString(subject); in writeToParcel()
273 dest.writeString(snippet); in writeToParcel()
274 dest.writeString(mFrom); in writeToParcel()
275 dest.writeString(mTo); in writeToParcel()
276 dest.writeString(mCc); in writeToParcel()
[all …]
DAccount.java645 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
646 dest.writeString(displayName); in writeToParcel()
647 dest.writeString(senderName); in writeToParcel()
648 dest.writeString(type); in writeToParcel()
649 dest.writeString(accountManagerName); in writeToParcel()
650 dest.writeInt(providerVersion); in writeToParcel()
651 dest.writeParcelable(uri, 0); in writeToParcel()
652 dest.writeInt(capabilities); in writeToParcel()
653 dest.writeParcelable(folderListUri, 0); in writeToParcel()
654 dest.writeParcelable(fullFolderListUri, 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 …]
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 …]
DSettings.java340 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
341 dest.writeString((String) getNonNull(signature, sDefault.signature)); in writeToParcel()
342 dest.writeInt(getAutoAdvanceSetting()); in writeToParcel()
343 dest.writeInt(snapHeaders); in writeToParcel()
344 dest.writeInt(replyBehavior); in writeToParcel()
345 dest.writeInt(convListIcon); in writeToParcel()
346 dest.writeInt(confirmDelete ? 1 : 0); in writeToParcel()
347 dest.writeInt(confirmArchive? 1 : 0); in writeToParcel()
348 dest.writeInt(confirmSend? 1 : 0); in writeToParcel()
349 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.java873 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
875 dest.writeLong(mId); in writeToParcel()
876 dest.writeString(mDisplayName); in writeToParcel()
877 dest.writeString(mEmailAddress); in writeToParcel()
878 dest.writeString(mSyncKey); in writeToParcel()
879 dest.writeInt(mSyncLookback); in writeToParcel()
880 dest.writeInt(mSyncInterval); in writeToParcel()
881 dest.writeLong(mHostAuthKeyRecv); in writeToParcel()
882 dest.writeLong(mHostAuthKeySend); in writeToParcel()
883 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 …]
DHostAuth.java432 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
434 dest.writeLong(mId); in writeToParcel()
435 dest.writeString(mProtocol); in writeToParcel()
436 dest.writeString(mAddress); in writeToParcel()
437 dest.writeInt(mPort); in writeToParcel()
438 dest.writeInt(mFlags); in writeToParcel()
439 dest.writeString(mLogin); in writeToParcel()
440 dest.writeString(mPassword); in writeToParcel()
441 dest.writeString(mDomain); in writeToParcel()
442 dest.writeString(mClientCertAlias); 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/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);
/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/Camera2/jni/
Djpegutil.cpp200 jpeg_destination_mgr dest; in compress() local
202 dest.init_destination = [](j_compress_ptr cinfo) { in compress()
205 cinfo->dest->next_output_byte = cdata.outBuf; in compress()
206 cinfo->dest->free_in_buffer = cdata.outBufCapacity; in compress()
209 dest.empty_output_buffer = [](j_compress_ptr cinfo) -> boolean { in compress()
217 cinfo->dest->next_output_byte = cdata.outBuf; in compress()
218 cinfo->dest->free_in_buffer = cdata.outBufCapacity; in compress()
223 dest.term_destination = [](j_compress_ptr cinfo) { in compress()
227 cinfo.dest = &dest; in compress()
295 int numBytesInBuffer = cinfo.dest->next_output_byte - outBuf; in compress()
/packages/apps/UnifiedEmail/src/com/android/mail/providers/protos/exchange/
DExchangeAttachment.java48 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
49 super.writeToParcel(dest, flags); in writeToParcel()
50 dest.writeString(contentId); in writeToParcel()
51 dest.writeLong(messageKey); in writeToParcel()
52 dest.writeString(location); in writeToParcel()
53 dest.writeString(encoding); in writeToParcel()
54 dest.writeString(content); in writeToParcel()
55 dest.writeInt(flags); in writeToParcel()
56 dest.writeLong(accountKey); in writeToParcel()

12345