/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0928/src/android/security/cts/CVE_2021_0928/ |
D | AInjector.java | 61 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/ |
D | DigitsKeyListenerTest.java | 86 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 …]
|
D | NumberKeyListenerTest.java | 56 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/ |
D | BitmapWrapper.java | 66 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/ |
D | InputFilter_LengthFilterTest.java | 38 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 …]
|
D | InputFilter_AllCapsTest.java | 46 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 …]
|
D | AndroidCharacterTest.java | 46 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 …]
|
D | AnnotationTest.java | 76 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()
|
D | AlteredCharSequenceTest.java | 73 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/ |
D | Message.java | 109 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/ |
D | SynchronousPixelCopy.java | 46 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/ |
D | KeyboardShortcutInfoTest.java | 80 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/ |
D | ActivityResult.java | 91 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()
|
D | OnSystemBarVisibilityChangedInfo.java | 75 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/ |
D | TestResult.java | 105 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/ |
D | CursorWindowContentProvider.java | 77 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/ |
D | RunningServiceInfo.java | 52 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/ |
D | BooleanTransaction.java | 48 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()
|
D | CallEndpointTransaction.java | 49 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()
|
D | PhoneAccountTransaction.java | 49 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()
|
D | CallExceptionTransaction.java | 54 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()
|
D | AvailableEndpointsTransaction.java | 52 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()
|
D | NoDataTransaction.java | 41 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/ |
D | CommandApdu.java | 40 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/ |
D | Session2CommandTest.java | 105 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()
|