Home
last modified time | relevance | path

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

1234

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DAInjector.java61 private static void beginClipData(Parcel dest) { in beginClipData() argument
64 TextUtils.writeToParcel(null, dest, 0); // mLabel in beginClipData()
65 dest.writeStringArray(new String[0]); // mMimeTypes in beginClipData()
66 dest.writePersistableBundle(null); // mExtras in beginClipData()
67 dest.writeLong(0); // mTimeStamp in beginClipData()
68 dest.writeBoolean(false); // mIsStyledText in beginClipData()
69 dest.writeInt(0); // mClassificationStatus in beginClipData()
70 dest.writeBundle(new Bundle()); // mEntityConfidence in beginClipData()
72 dest.writeInt(0); // mIcon == null in beginClipData()
73 dest.writeInt(1); // mItems.size() in beginClipData()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java86 SpannableString dest = new SpannableString(destString); in testFilter1() local
88 dest, 0, dest.length())); in testFilter1()
89 assertEquals(destString, dest.toString()); in testFilter1()
93 dest, 0, dest.length())).toString()); in testFilter1()
94 assertEquals(destString, dest.toString()); in testFilter1()
98 dest, 0, dest.length())).toString()); in testFilter1()
99 assertEquals(destString, dest.toString()); in testFilter1()
103 dest, 0, dest.length())).toString()); in testFilter1()
104 assertEquals(destString, dest.toString()); in testFilter1()
110 0, spannableSource.length(), dest, 0, dest.length()); in testFilter1()
[all …]
DNumberKeyListenerTest.java56 SpannableString dest = new SpannableString("012345"); in testFilter() local
58 dest, 0, dest.length()).toString()); in testFilter()
61 dest = new SpannableString("012345"); in testFilter()
62 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
63 dest.length())); in testFilter()
66 dest = new SpannableString("012345"); in testFilter()
67 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
68 dest.length())); in testFilter()
71 dest = new SpannableString("012345 Android-test"); in testFilter()
73 dest, 0, dest.length()).toString()); in testFilter()
[all …]
/cts/tests/tests/security/src/android/security/cts/
DBitmapWrapper.java66 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
67 final int before = dest.dataPosition(); in writeToParcel()
68 mBitmap.writeToParcel(dest, flags); in writeToParcel()
69 final int oldEnd = dest.dataPosition(); in writeToParcel()
71 dest.setDataPosition(before in writeToParcel()
76 int colorSpaceLen = dest.readInt(); in writeToParcel()
77 dest.setDataPosition(dest.dataPosition() + colorSpaceLen); in writeToParcel()
78 Assert.assertEquals(mBitmap.getWidth(), dest.readInt()); in writeToParcel()
79 Assert.assertEquals(mBitmap.getHeight(), dest.readInt()); in writeToParcel()
81 dest.setDataPosition(dest.dataPosition() - 4); in writeToParcel()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DInputFilter_LengthFilterTest.java38 SpannableStringBuilder dest; in testFilter() local
48 dest = new SpannableStringBuilder("abcdefgh"); in testFilter()
49 dest.setFilters(filters); in testFilter()
51 dest.insert(1, source); in testFilter()
53 assertEquals(expectedString1, dest.toString()); in testFilter()
55 dest.replace(5, 8, source); in testFilter()
57 assertEquals(expectedString2, dest.toString()); in testFilter()
59 dest.delete(1, 3); in testFilter()
61 assertEquals(expectedString3, dest.toString()); in testFilter()
64 dest = new SpannableStringBuilder("abcdefgh"); in testFilter()
[all …]
DInputFilter_AllCapsTest.java46 SpannableStringBuilder dest = new SpannableStringBuilder("AllTest"); in testFilter() local
49 dest.setFilters(filters); in testFilter()
52 dest.insert(3, source); in testFilter()
53 assertEquals(expectedString1, dest.toString()); in testFilter()
56 dest.replace(7, 11, source); in testFilter()
57 assertEquals(expectedString2, dest.toString()); in testFilter()
59 dest.delete(0, 4); in testFilter()
61 assertEquals(expectedString3, dest.toString()); in testFilter()
67 allCaps.filter(beforeFilterSource, 2, 7, dest, 0, beforeFilterSource.length()); in testFilter()
80 final SpannedString dest = new SpannedString(""); in testFilter_nonBMP() local
[all …]
DAndroidCharacterTest.java46 byte[] dest = new byte[128]; in testGetDirectionalities()
48 AndroidCharacter.getDirectionalities(src, dest, count); in testGetDirectionalities()
56 for (int i = 0; i < dest.length; i++) { in testGetDirectionalities()
57 assertEquals(expected[i], dest[i]); in testGetDirectionalities()
96 byte[] dest = new byte[count]; in testGetEastAsianWidths()
97 AndroidCharacter.getEastAsianWidths(src, start, count, dest); in testGetEastAsianWidths()
99 for (int i = 0; i < dest.length; i++) { in testGetEastAsianWidths()
100 assertEquals(expected[i], dest[i]); in testGetEastAsianWidths()
103 AndroidCharacter.getEastAsianWidths(src, 24, 8, dest); in testGetEastAsianWidths()
109 AndroidCharacter.getEastAsianWidths(src, -1024, 1, dest); in testGetEastAsianWidths()
[all …]
DAnnotationTest.java76 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
79 mAnnotation.writeToParcel(dest, NOFLAG); in testWriteToParcel()
80 dest.setDataPosition(0); in testWriteToParcel()
81 Annotation out = new Annotation(dest); in testWriteToParcel()
87 dest.recycle(); in testWriteToParcel()
DAlteredCharSequenceTest.java73 char[] dest = new char[4]; in testGetChars() local
74 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
78 assertEquals(expected[i], dest[i]); in testGetChars()
82 dest[i] = 'a'; in testGetChars()
84 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
86 assertEquals('a', dest[i]); in testGetChars()
90 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
/cts/tests/process/src/android/os/cts/process/common/
DMessage.java109 public void writeToParcel(@android.annotation.NonNull android.os.Parcel dest, int flags) { in writeToParcel() argument
119 dest.writeInt(flg); in writeToParcel()
120 if (packageName != null) dest.writeString(packageName); in writeToParcel()
121 if (applicationClassName != null) dest.writeString(applicationClassName); in writeToParcel()
122 if (receiverClassName != null) dest.writeString(receiverClassName); in writeToParcel()
123 if (applicationContextClassName != null) dest.writeString(applicationContextClassName); in writeToParcel()
124 if (processName != null) dest.writeString(processName); in writeToParcel()
125 dest.writeLong(startElapsedRealtime); in writeToParcel()
126 dest.writeLong(startUptimeMillis); in writeToParcel()
127 dest.writeLong(startRequestedElapsedRealtime); in writeToParcel()
[all …]
/cts/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java46 public int request(Surface source, Bitmap dest) { in request() argument
49 PixelCopy.request(source, dest, this, sHandler); in request()
54 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() argument
57 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
62 public int request(SurfaceView source, Bitmap dest) { in request() argument
65 PixelCopy.request(source, dest, this, sHandler); in request()
70 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() argument
73 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
78 public int request(Window source, Bitmap dest) { in request() argument
81 PixelCopy.request(source, dest, this, sHandler); in request()
[all …]
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutInfoTest.java80 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadCharacter() local
83 info.writeToParcel(dest, 0); in testWriteToParcelAndReadCharacter()
85 dest.setDataPosition(0); in testWriteToParcelAndReadCharacter()
86 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadCharacter()
96 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadKeycode() local
99 info.writeToParcel(dest, 0); in testWriteToParcelAndReadKeycode()
101 dest.setDataPosition(0); in testWriteToParcelAndReadKeycode()
102 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadKeycode()
/cts/tests/tests/gameservice/src/android/service/games/testing/
DActivityResult.java91 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
92 dest.writeString(mGameSessionPackageName); in writeToParcel()
93 dest.writeParcelable(mSuccess, flags); in writeToParcel()
94 dest.writeParcelable(mFailure, flags); in writeToParcel()
136 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
137 dest.writeInt(mResultCode); in writeToParcel()
138 dest.writeParcelable(mData, flags); in writeToParcel()
179 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
180 dest.writeSerializable(mClazz); in writeToParcel()
181 dest.writeString(mMessage); in writeToParcel()
DOnSystemBarVisibilityChangedInfo.java75 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
76 dest.writeInt(mTimesShown); in writeToParcel()
77 dest.writeInt(mTimesHidden); in writeToParcel()
/cts/hostsidetests/appsecurity/test-apps/EphemeralTestApp/util/src/com/android/cts/util/
DTestResult.java105 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
106 dest.writeString(mPackageName); in writeToParcel()
107 dest.writeString(mComponentName); in writeToParcel()
108 dest.writeString(mMethodName); in writeToParcel()
109 dest.writeString(mStatus); in writeToParcel()
110 dest.writeString(mException); in writeToParcel()
111 dest.writeParcelable(mIntent, 0 /* flags */); in writeToParcel()
112 dest.writeInt(mInstantAppPackageInfoExposed ? 1 : 0); in writeToParcel()
/cts/tests/tests/content/src/android/content/cts/
DCursorWindowContentProvider.java77 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
99 dest.appendFrom(tmp, 0, fdPos); in writeToParcel()
100 dest.writeFileDescriptor(evilFd.getFileDescriptor()); in writeToParcel()
101 tmp.setDataPosition(dest.dataPosition()); in writeToParcel()
102 dest.appendFrom(tmp, dest.dataPosition(), tmp.dataAvail()); in writeToParcel()
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java52 public void writeToParcel(Parcel dest, int parcelableFlags) { in writeToParcel() argument
53 dest.writeInt(uid); in writeToParcel()
54 dest.writeInt(pid); in writeToParcel()
55 dest.writeString(packageName); in writeToParcel()
56 dest.writeInt(zygotePid); in writeToParcel()
57 dest.writeString(zygotePackage); in writeToParcel()
/cts/tests/tests/telecom-apps/Utils/src/android/telecom/cts/apps/transaction/
DBooleanTransaction.java48 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
49 dest.writeParcelable(mResult, flags); in writeToParcel()
51 dest.writeBoolean(mBoolResult); in writeToParcel()
53 dest.writeParcelable(mException, flags); in writeToParcel()
DCallEndpointTransaction.java49 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
50 dest.writeParcelable(mResult, flags); in writeToParcel()
52 dest.writeParcelable(mCallEndpoint, flags); in writeToParcel()
54 dest.writeParcelable(mException, flags); in writeToParcel()
DPhoneAccountTransaction.java49 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
50 dest.writeParcelable(mResult, flags); in writeToParcel()
52 dest.writeParcelable(mPhoneAccount, flags); in writeToParcel()
54 dest.writeParcelable(mException, flags); in writeToParcel()
DCallExceptionTransaction.java54 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
55 dest.writeParcelable(mResult, flags); in writeToParcel()
57 dest.writeParcelable(mCallException, flags); in writeToParcel()
59 dest.writeParcelable(mException, flags); in writeToParcel()
DAvailableEndpointsTransaction.java52 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
53 dest.writeParcelable(mResult, flags); in writeToParcel()
55 dest.writeParcelableList(mCallEndpoints, flags); in writeToParcel()
57 dest.writeParcelable(mException, flags); in writeToParcel()
DNoDataTransaction.java41 public void writeToParcel(@NonNull Parcel dest, int flags) { in writeToParcel() argument
42 dest.writeParcelable(mResult, flags); in writeToParcel()
43 dest.writeParcelable(mException, flags); in writeToParcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DCommandApdu.java40 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
41 dest.writeString(mApdu); in writeToParcel()
42 dest.writeInt(mReachable ? 1 : 0); in writeToParcel()
/cts/tests/tests/media/bettertogether/src/android/media/bettertogether/cts/
DSession2CommandTest.java105 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
106 command.writeToParcel(dest, 0); in testWriteToParcel()
107 dest.setDataPosition(0); in testWriteToParcel()
108 assertThat(dest.readInt()).isEqualTo(command.getCommandCode()); in testWriteToParcel()
109 assertThat(dest.readString()).isEqualTo(command.getCustomAction()); in testWriteToParcel()
110 assertThat(dest.readBundle()).isEqualTo(command.getCustomExtras()); in testWriteToParcel()

1234