Home
last modified time | relevance | path

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

123

/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_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 …]
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 …]
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()
DPixelCopyTest.java108 Bitmap dest = null; in testNullDest() local
109 mCopyHelper.request(mSurfaceRule.getSurface(), dest); in testNullDest() local
114 Bitmap dest = Bitmap.createBitmap(5, 5, Config.ARGB_8888); in testRecycledDest() local
115 dest.recycle(); in testRecycledDest()
116 mCopyHelper.request(mSurfaceRule.getSurface(), dest); in testRecycledDest() local
121 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testNoSourceData() local
122 int result = mCopyHelper.request(mSurfaceRule.getSurface(), dest); in testNoSourceData()
128 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectSurface() local
129 mCopyHelper.request(mSurfaceRule.getSurface(), new Rect(), dest); in testEmptySourceRectSurface() local
134 Bitmap dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testEmptySourceRectWindow() local
[all …]
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/hostsidetests/incident/src/com/android/server/cts/
DIncidentdTest.java26 public void testIncidentReportDump(final int filterLevel, final String dest) throws Exception { in testIncidentReportDump() argument
30 final String destArg = dest == null || dest.isEmpty() ? "" : "-p " + dest; in testIncidentReportDump()
DSettingsIncidentTest.java108 Destination dest = fd.getOptions().getExtension(Privacy.privacy).getDest(); in getSettingProtos() local
115 … settings.put((SettingProto) o, dest == Destination.DEST_UNSET ? Destination.DEST_EXPLICIT : dest); in getSettingProtos()
156 Destination dest = sDPair.getValue(); in verifySettings() local
165 if (dest == Destination.DEST_LOCAL) { in verifySettings()
175 if (dest == Destination.DEST_EXPLICIT) { in verifySettings()
/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/tests/framework/base/windowmanager/util/src/android/server/wm/
DCommandSession.java948 public void writeToParcel(final Parcel dest, final int flags) {
949 dest.writeInt(ordinal());
998 public void writeToParcel(Parcel dest, int flags) {
999 dest.writeInt(displayId);
1000 dest.writeInt(rotation);
1001 dest.writeParcelable(sizeInfo, 0 /* parcelableFlags */);
1091 public void writeToParcel(Parcel dest, int flags) {
1092 dest.writeInt(widthDp);
1093 dest.writeInt(heightDp);
1094 dest.writeInt(displayWidth);
[all …]
/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/common/device-side/util/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/tests/util/src/android/util/cts/
DStrictJarFileTest.java368 File dest = new File(mResourcesFile.toString() + "/" + file); in copyFile() local
370 if (!dest.exists()) { in copyFile()
373 FileOutputStream out = new FileOutputStream(dest); in copyFile()
380 dest.deleteOnExit(); in copyFile()
384 + " to file " + dest, e); in copyFile()
387 return dest; in copyFile()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAbstractAutoFillActivity.java97 final Bitmap dest = Bitmap.createBitmap( in takeScreenshot() local
101 final int copyResult = copy.request(getWindow(), srcRect, dest); in takeScreenshot()
104 return dest; in takeScreenshot()

123