Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java61 SpannableString dest = new SpannableString(destString); in testFilter1() local
63 dest, 0, dest.length())); in testFilter1()
64 assertEquals(destString, dest.toString()); in testFilter1()
68 dest, 0, dest.length())).toString()); in testFilter1()
69 assertEquals(destString, dest.toString()); in testFilter1()
73 dest, 0, dest.length())).toString()); in testFilter1()
74 assertEquals(destString, dest.toString()); in testFilter1()
78 dest, 0, dest.length())).toString()); in testFilter1()
79 assertEquals(destString, dest.toString()); in testFilter1()
85 0, spannableSource.length(), dest, 0, dest.length()); in testFilter1()
[all …]
DNumberKeyListenerTest.java52 SpannableString dest = new SpannableString("012345"); in testFilter() local
54 dest, 0, dest.length()).toString()); in testFilter()
57 dest = new SpannableString("012345"); in testFilter()
58 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
59 dest.length())); in testFilter()
62 dest = new SpannableString("012345"); in testFilter()
63 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
64 dest.length())); in testFilter()
67 dest = new SpannableString("012345 Android-test"); in testFilter()
69 dest, 0, dest.length()).toString()); in testFilter()
[all …]
/cts/tests/tests/text/src/android/text/cts/
DInputFilter_LengthFilterTest.java29 SpannableStringBuilder dest; in testFilter() local
37 dest = new SpannableStringBuilder("abcdefgh"); in testFilter()
38 dest.setFilters(filters); in testFilter()
40 dest.insert(1, source); in testFilter()
42 assertEquals(expectedString1, dest.toString()); in testFilter()
44 dest.replace(5, 8, source); in testFilter()
46 assertEquals(expectedString2, dest.toString()); in testFilter()
48 dest.delete(1, 3); in testFilter()
50 assertEquals(expectedString3, dest.toString()); in testFilter()
53 dest = new SpannableStringBuilder("abcdefgh"); in testFilter()
[all …]
DInputFilter_AllCapsTest.java30 SpannableStringBuilder dest = new SpannableStringBuilder("AllTest"); in testFilter() local
33 dest.setFilters(filters); in testFilter()
36 dest.insert(3, source); in testFilter()
37 assertEquals(expectedString1 , dest.toString()); in testFilter()
40 dest.replace(7, 11, source); in testFilter()
41 assertEquals(expectedString2, dest.toString()); in testFilter()
43 dest.delete(0, 4); in testFilter()
45 assertEquals(expectedString3, dest.toString()); in testFilter()
51 allCaps.filter(beforeFilterSource, 2, 7, dest, 0, beforeFilterSource.length()); in testFilter()
DAndroidCharacterTest.java33 byte[] dest = new byte[128]; in testGetDirectionalities()
35 AndroidCharacter.getDirectionalities(src, dest, count); in testGetDirectionalities()
43 for (int i = 0; i < dest.length; i++) { in testGetDirectionalities()
44 assertEquals(expected[i], dest[i]); in testGetDirectionalities()
81 byte[] dest = new byte[count]; in testGetEastAsianWidths()
82 AndroidCharacter.getEastAsianWidths(src, start, count, dest); in testGetEastAsianWidths()
84 for (int i = 0; i < dest.length; i++) { in testGetEastAsianWidths()
85 assertEquals(expected[i], dest[i]); in testGetEastAsianWidths()
88 AndroidCharacter.getEastAsianWidths(src, 24, 8, dest); in testGetEastAsianWidths()
94 AndroidCharacter.getEastAsianWidths(src, -1024, 1, dest); in testGetEastAsianWidths()
[all …]
DAnnotationTest.java67 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
70 mAnnotation.writeToParcel(dest, NOFLAG); in testWriteToParcel()
71 dest.setDataPosition(0); in testWriteToParcel()
72 Annotation out = new Annotation(dest); in testWriteToParcel()
78 dest.recycle(); in testWriteToParcel()
DAlteredCharSequenceTest.java63 char[] dest = new char[4]; in testGetChars() local
64 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
68 assertEquals(expected[i], dest[i]); in testGetChars()
72 dest[i] = 'a'; in testGetChars()
74 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
76 assertEquals('a', dest[i]); in testGetChars()
80 mAlteredCharSequence.getChars(start, end, dest, off); in testGetChars()
/cts/tests/tests/view/src/android/view/cts/
DKeyboardShortcutInfoTest.java61 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadCharacter() local
64 info.writeToParcel(dest, 0); in testWriteToParcelAndReadCharacter()
66 dest.setDataPosition(0); in testWriteToParcelAndReadCharacter()
67 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadCharacter()
76 Parcel dest = Parcel.obtain(); in testWriteToParcelAndReadKeycode() local
79 info.writeToParcel(dest, 0); in testWriteToParcelAndReadKeycode()
81 dest.setDataPosition(0); in testWriteToParcelAndReadKeycode()
82 KeyboardShortcutInfo result = KeyboardShortcutInfo.CREATOR.createFromParcel(dest); in testWriteToParcelAndReadKeycode()
DPixelCopyTests.java78 Bitmap dest = null; in testErrors() local
87 copyHelper.request(surface, dest); in testErrors()
95 dest = Bitmap.createBitmap(5, 5, Bitmap.Config.ARGB_8888); in testErrors()
96 int result = copyHelper.request(surface, dest); in testErrors()
99 dest.recycle(); in testErrors()
101 copyHelper.request(surface, dest); in testErrors()
305 public int request(Surface source, Bitmap dest) { in request() argument
307 PixelCopy.request(source, dest, this, sHandler); in request()
312 public int request(SurfaceView source, Bitmap dest) { in request() argument
314 PixelCopy.request(source, dest, this, sHandler); in request()
DAbsSavedStateTest.java54 Parcel dest = Parcel.obtain(); in testWriteToParcel() local
56 savedState.writeToParcel(dest, flags); in testWriteToParcel()
86 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
DKeyboardShortcutGroupTest.java80 Parcel dest = Parcel.obtain(); in testWriteToParcelAndRead() local
82 group.writeToParcel(dest, 0); in testWriteToParcelAndRead()
84 dest.setDataPosition(0); in testWriteToParcelAndRead()
85 KeyboardShortcutGroup result = KeyboardShortcutGroup.CREATOR.createFromParcel(dest); in testWriteToParcelAndRead()
/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/libs/deviceutil/src/android/cts/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.java199 File dest = new File(resources.toString() + "/" + file); in copyFile() local
201 if (!dest.exists()) { in copyFile()
204 FileOutputStream out = new FileOutputStream(dest); in copyFile()
211 dest.deleteOnExit(); in copyFile()
215 … "Unable to copy file from resource " + file + " to file " + dest, e); in copyFile()
218 return dest; in copyFile()
/cts/tools/vm-tests-tf/src/util/build/
DDasmBuildStep.java112 File dest = new File(dest_dir); in assemble() local
113 if (!dest.exists()) { in assemble()
114 dest.mkdirs(); in assemble()
117 if (!dest.isDirectory()) { in assemble()
/cts/tests/tests/widget/src/android/widget/cts/
DTimePickerTest.java251 MyTimePicker dest = new MyTimePicker(mContext); in testOnSaveInstanceStateAndOnRestoreInstanceState() local
252 int expectHour = (dest.getCurrentHour() + 10) % 24; in testOnSaveInstanceStateAndOnRestoreInstanceState()
253 int expectMinute = (dest.getCurrentMinute() + 10) % 60; in testOnSaveInstanceStateAndOnRestoreInstanceState()
258 dest.onRestoreInstanceState(p); in testOnSaveInstanceStateAndOnRestoreInstanceState()
260 assertEquals(Integer.valueOf(expectHour), dest.getCurrentHour()); in testOnSaveInstanceStateAndOnRestoreInstanceState()
261 assertEquals(Integer.valueOf(expectMinute), dest.getCurrentMinute()); in testOnSaveInstanceStateAndOnRestoreInstanceState()
/cts/tools/dasm/src/dasm/
DMain.java137 File dest = new File(dest_dir); in assemble() local
138 if (!dest.exists()) { in assemble()
139 dest.mkdirs(); in assemble()
142 if (!dest.isDirectory()) { in assemble()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/
DIntentDrivenTestActivity.java202 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
203 dest.writeInt(mButtonText); in writeToParcel()
204 dest.writeParcelableArray(mIntents, 0); in writeToParcel()
205 dest.writeString(mIntentFactoryClassName); in writeToParcel()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopy2DRangeTest.java60 private boolean compareTwoArrays(int[] src, int[] dest, int size) { in compareTwoArrays() argument
63 if (src[i] != dest[i]) { in compareTwoArrays()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRGBZ.java160 private Bitmap setAlphaChannelFromBitmap(Bitmap depth, Bitmap orig, Bitmap dest) { in setAlphaChannelFromBitmap() argument
174 dest.setPixels(orig_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
175 return dest; in setAlphaChannelFromBitmap()
/cts/tests/leanbackjank/app/src/android/leanbackjank/app/model/
DMovie.java102 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
103 dest.writeStringArray(new String[] {mId, in writeToParcel()
/cts/tests/openglperf2/jni/primitive/shaderperf/
DShaderPerfRenderer.cpp81 static int charCopy(const char* source, char* dest, int destStart) { in charCopy() argument
87 dest[destAddr] = current; in charCopy()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/managedprovisioning/
DNfcTestActivity.java135 Bitmap dest = Bitmap.createBitmap(w, h, Bitmap.Config.ARGB_8888); in createSampleImage() local
137 canvas.setBitmap(dest); in createSampleImage()
142 return dest; in createSampleImage()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/util/
DReportLogUtil.java96 String dest = destDir.getAbsolutePath(); in pull() local
98 deviceSrc, dest); in pull()
/cts/common/host-side/tradefed/src/com/android/compatibility/common/tradefed/targetprep/
DResultFilePuller.java101 private void pull(ITestDevice device, String src, String dest) { in pull() argument
102 String command = String.format("adb -s %s pull %s %s", device.getSerialNumber(), src, dest); in pull()

12