Home
last modified time | relevance | path

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

12

/cts/tests/tests/text/src/android/text/method/cts/
DDigitsKeyListenerTest.java52 SpannableString dest = new SpannableString(destString); in testFilter1() local
54 dest, 0, dest.length())); in testFilter1()
55 assertEquals(destString, dest.toString()); in testFilter1()
59 dest, 0, dest.length())).toString()); in testFilter1()
60 assertEquals(destString, dest.toString()); in testFilter1()
64 dest, 0, dest.length())).toString()); in testFilter1()
65 assertEquals(destString, dest.toString()); in testFilter1()
69 dest, 0, dest.length())).toString()); in testFilter1()
70 assertEquals(destString, dest.toString()); in testFilter1()
76 0, spannableSource.length(), dest, 0, dest.length()); in testFilter1()
[all …]
DNumberKeyListenerTest.java46 SpannableString dest = new SpannableString("012345"); in testFilter() local
48 dest, 0, dest.length()).toString()); in testFilter()
51 dest = new SpannableString("012345"); in testFilter()
52 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
53 dest.length())); in testFilter()
56 dest = new SpannableString("012345"); in testFilter()
57 assertNull(mMockNumberKeyListener.filter(source, 0, source.length(), dest, 0, in testFilter()
58 dest.length())); in testFilter()
61 dest = new SpannableString("012345 Android-test"); in testFilter()
63 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/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/tests/view/src/android/view/cts/
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
/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/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()
DExpandableListViewTest.java383 ExpandableListView dest = new ExpandableListView(mContext); in testOnSaveInstanceState() local
384 dest.onRestoreInstanceState(p1); in testOnSaveInstanceState()
385 Parcelable p2 = dest.onSaveInstanceState(); in testOnSaveInstanceState()
/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/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/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/leanbackjank/app/src/android/cts/jank/leanback/model/
DMovie.java102 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
103 dest.writeStringArray(new String[] {mId, in writeToParcel()
/cts/suite/cts/deviceTests/opengl/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/tests/tests/net/src/android/net/ipv6/cts/
DPingTest.java111 private void checkResponse(FileDescriptor s, InetAddress dest, in checkResponse() argument
126 assertEquals(dest.getHostAddress(), fromAddress.getHostAddress()); in checkResponse()
/cts/tests/tests/location/src/android/location/cts/
DLocationTest.java79 Location dest = new Location(""); in testBearingTo() local
85 dest.setLatitude(30.7); in testBearingTo()
86 dest.setLongitude(104.1); in testBearingTo()
87 assertEquals(-128.66, location.bearingTo(dest), DELTA); in testBearingTo()
DAddressTest.java306 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
/cts/libs/deviceutillegacy/src/android/webkit/cts/
DWebViewOnUiThread.java626 public boolean savePicture(final Bundle b, final File dest) {
630 return mWebView.savePicture(b, dest);
/cts/tests/tests/util/src/android/util/cts/
DArrayMapTest.java122 public void writeToParcel(Parcel dest, int flags) { in writeToParcel() argument
123 dest.writeInt(mValue); in writeToParcel()
/cts/suite/cts/deviceTests/browserbench/assets/octane/
Ddeltablue.js458 function ScaleConstraint(src, scale, offset, dest, strength) { argument
462 ScaleConstraint.superConstructor.call(this, src, dest, strength);

12