Home
last modified time | relevance | path

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

123

/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/
DAInjector.java60 private static void beginClipData(Parcel dest) { in beginClipData() argument
63 TextUtils.writeToParcel(null, dest, 0); // mLabel in beginClipData()
64 dest.writeStringArray(new String[0]); // mMimeTypes in beginClipData()
65 dest.writePersistableBundle(null); // mExtras in beginClipData()
66 dest.writeLong(0); // mTimeStamp in beginClipData()
67 dest.writeBoolean(false); // mIsStyledText in beginClipData()
68 dest.writeInt(0); // mClassificationStatus in beginClipData()
69 dest.writeBundle(new Bundle()); // mEntityConfidence in beginClipData()
71 dest.writeInt(0); // mIcon == null in beginClipData()
72 dest.writeInt(1); // mItems.size() in beginClipData()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java88 SpannableString dest = new SpannableString(destString); in testFilter1() local
90 dest, 0, dest.length())); in testFilter1()
91 assertEquals(destString, dest.toString()); in testFilter1()
95 dest, 0, dest.length())).toString()); in testFilter1()
96 assertEquals(destString, dest.toString()); in testFilter1()
100 dest, 0, dest.length())).toString()); in testFilter1()
101 assertEquals(destString, dest.toString()); in testFilter1()
105 dest, 0, dest.length())).toString()); in testFilter1()
106 assertEquals(destString, dest.toString()); in testFilter1()
112 0, spannableSource.length(), dest, 0, dest.length()); in testFilter1()
[all …]
DNumberKeyListenerTest.java58 SpannableString dest = new SpannableString("012345"); in testFilter() local
60 dest, 0, dest.length()).toString()); in testFilter()
63 dest = new SpannableString("012345"); in testFilter()
64 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
65 dest.length())); in testFilter()
68 dest = new SpannableString("012345"); in testFilter()
69 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
70 dest.length())); in testFilter()
73 dest = new SpannableString("012345 Android-test"); in testFilter()
75 dest, 0, dest.length()).toString()); in testFilter()
[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/libs/deviceutillegacy/src/com/android/compatibility/common/util/
DSynchronousPixelCopy.java41 public int request(Surface source, Bitmap dest) { in request() argument
43 PixelCopy.request(source, dest, this, sHandler); in request()
48 public int request(Surface source, Rect srcRect, Bitmap dest) { in request() argument
50 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
55 public int request(SurfaceView source, Bitmap dest) { in request() argument
57 PixelCopy.request(source, dest, this, sHandler); in request()
62 public int request(SurfaceView source, Rect srcRect, Bitmap dest) { in request() argument
64 PixelCopy.request(source, srcRect, dest, this, sHandler); in request()
69 public int request(Window source, Bitmap dest) { in request() argument
71 PixelCopy.request(source, dest, this, sHandler); in request()
[all …]
/cts/tests/tests/externalservice/common/src/android/externalservice/common/
DRunningServiceInfo.java42 public void writeToParcel(Parcel dest, int parcelableFlags) { in writeToParcel() argument
43 dest.writeInt(uid); in writeToParcel()
44 dest.writeInt(pid); in writeToParcel()
45 dest.writeString(packageName); in writeToParcel()
46 dest.writeInt(zygotePid); in writeToParcel()
47 dest.writeString(zygotePackage); in writeToParcel()
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutInfoTest.java78 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadCharacter() local
81 info.writeToParcel(dest, 0); in testWriteToParcelAndReadCharacter()
83 dest.setDataPosition(0); in testWriteToParcelAndReadCharacter()
84 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadCharacter()
94 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadKeycode() local
97 info.writeToParcel(dest, 0); in testWriteToParcelAndReadKeycode()
99 dest.setDataPosition(0); in testWriteToParcelAndReadKeycode()
100 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadKeycode()
DKeyboardShortcutGroupTest.java112 Parcel dest = Parcel.obtain(); in testWriteToParcelAndRead() local
114 group.writeToParcel(dest, 0); in testWriteToParcelAndRead()
116 dest.setDataPosition(0); in testWriteToParcelAndRead()
117 KeyboardShortcutGroup result = KeyboardShortcutGroup.CREATOR.createFromParcel(dest); in testWriteToParcelAndRead()
DView_BaseSavedStateTest.java101 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
103 savedState.writeToParcel(dest, flags); in testWriteToParcel()
104 verify(superState).writeToParcel(eq(dest), eq(flags)); in testWriteToParcel()
/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/media/src/android/media/cts/
DSession2CommandTest.java106 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
107 command.writeToParcel(dest, 0); in testWriteToParcel()
108 dest.setDataPosition(0); in testWriteToParcel()
109 assertEquals(command.getCommandCode(), dest.readInt()); in testWriteToParcel()
110 assertEquals(command.getCustomAction(), dest.readString()); in testWriteToParcel()
111 assertEquals(command.getCustomExtras(), dest.readBundle()); in testWriteToParcel()
DSession2CommandGroupTest.java85 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
86 commandGroup.writeToParcel(dest, 0); in testWriteToParcel()
87 dest.setDataPosition(0); in testWriteToParcel()
89 Session2CommandGroup.CREATOR.createFromParcel(dest); in testWriteToParcel()
91 dest.recycle(); in testWriteToParcel()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/nfc/hce/
DCommandApdu.java44 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
45 dest.writeString(mApdu); in writeToParcel()
46 dest.writeInt(mReachable ? 1 : 0); in writeToParcel()
/cts/hostsidetests/incident/src/com/android/server/cts/
DIncidentdTest.java26 public void testIncidentReportDump(final int filterLevel, final String dest) throws Exception { in testIncidentReportDump() argument
27 final String destArg = dest == null || dest.isEmpty() ? "" : "-p " + dest; in testIncidentReportDump()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0421/
Dpoc.cpp36 int vsnprintf(char *const dest, size_t size, const char *format, va_list ap) { in vsnprintf() argument
40 return (*fptr)(dest, size, format, ap); in vsnprintf()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DIBinderParcelable.java33 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
34 dest.writeStrongBinder(binder); in writeToParcel()
/cts/tests/autofillservice/src/android/autofillservice/cts/testcore/
DMyAutofillId.java64 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
65 dest.writeParcelable(mId, flags); in writeToParcel()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java1048 public void writeToParcel(final Parcel dest, final int flags) {
1049 dest.writeInt(ordinal());
1103 public void writeToParcel(Parcel dest, int flags) {
1104 dest.writeInt(displayId);
1105 dest.writeInt(rotation);
1106 dest.writeParcelable(sizeInfo, 0 /* parcelableFlags */);
1229 public void writeToParcel(Parcel dest, int flags) {
1230 dest.writeInt(widthDp);
1231 dest.writeInt(heightDp);
1232 dest.writeInt(displayWidth);
[all …]
/cts/tests/tests/content/src/android/content/pm/cts/
DProviderInfoListTest.java53 final ProviderInfoList dest = ProviderInfoList.CREATOR.createFromParcel(p); in testApplicationInfoSquashed() local
56 final List<ProviderInfo> destList = dest.getList(); in testApplicationInfoSquashed()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopy2DRangeTest.java63 private boolean compareTwoArrays(int[] src, int[] dest, int size) { in compareTwoArrays() argument
66 if (src[i] != dest[i]) { in compareTwoArrays()

123