Home
last modified time | relevance | path

Searched refs:original (Results 1 – 25 of 36) sorted by relevance

12

/cts/tests/tests/libcoreapievolution/src/android/apievolution/cts/
DApiEvolutionTest.java171 Method original = null; in assertSyntheticMethodOverloadExists() local
178 original = method; in assertSyntheticMethodOverloadExists()
183 + ", returning " + originalReturnType, original); in assertSyntheticMethodOverloadExists()
188 assertFalse(original.isSynthetic()); in assertSyntheticMethodOverloadExists()
189 assertFalse(original.isBridge()); in assertSyntheticMethodOverloadExists()
193 int originalModifiers = original.getModifiers(); in assertSyntheticMethodOverloadExists()
211 original.getExceptionTypes(), synthetic.getExceptionTypes()); in assertSyntheticMethodOverloadExists()
220 Annotation[] annotations = original.getDeclaredAnnotations(); in assertSyntheticMethodOverloadExists()
223 Annotation[][] parameterAnnotations = original.getParameterAnnotations(); in assertSyntheticMethodOverloadExists()
/cts/tests/tests/text/src/android/text/cts/
DSpannableStringBuilderSpanTest.java62 for (String original: originals) { in testReplaceWithSpans()
64 replace(original, replacement); in testReplaceWithSpans()
69 private void replace(String original, String replacement) { in replace() argument
72 positionSet.addPosition(original.length() / 3); in replace()
73 positionSet.addPosition(2 * original.length() / 3); in replace()
74 positionSet.addPosition(original.length()); in replace()
86 replaceWithRange(original, in replace()
96 private void replaceWithRange(String original, int replaceStart, int replaceEnd, in replaceWithRange() argument
103 replaceWithSpanFlag(original, replaceStart, replaceEnd, in replaceWithRange()
108 private void replaceWithSpanFlag(String original, int replaceStart, int replaceEnd, in replaceWithSpanFlag() argument
[all …]
DSpannableStringTest.java223 final SpannableStringBuilder original = new SpannableStringBuilder("\ntest data\nb"); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
226 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
229 SpannableString copied = new SpannableString(original); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
237 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
/cts/tests/tests/keystore/src/android/keystore/cts/
DImportedKey.java32 public ImportedKey(String alias, KeyPair original, KeyPair keystoreBacked) { in ImportedKey() argument
35 mOriginalKeyPair = original; in ImportedKey()
41 public ImportedKey(String alias, SecretKey original, SecretKey keystoreBacked) { in ImportedKey() argument
46 mOriginalSecretKey = original; in ImportedKey()
/cts/tests/tests/text/src/android/text/method/cts/
DSingleLineTransformationMethodTest.java83 final SpannableString original = new SpannableString("\ntest data\nb"); in testSubsequence_doesNotThrowExceptionWithParagraphSpans() local
86 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
88 final CharSequence transformed = method.getTransformation(original, null); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DReplacementTransformationMethodTest.java141 public MyReplacementTransformationMethod(char[] original, char[] replacement) { in MyReplacementTransformationMethod() argument
142 mOriginal = original; in MyReplacementTransformationMethod()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPictureTest.java53 Picture original = new Picture(); in testSaveRestoreBalance() local
54 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance()
60 Picture copy = new Picture(original); in testSaveRestoreBalance()
67 original.draw(drawDest); in testSaveRestoreBalance()
68 verifyBalance(original); in testSaveRestoreBalance()
DBitmapFactoryTest.java532 Bitmap original = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeReuseScaling() local
533 int originalSize = original.getByteCount(); in testDecodeReuseScaling()
534 assertEquals(originalSize, original.getAllocationByteCount()); in testDecodeReuseScaling()
536 options.inBitmap = original; in testDecodeReuseScaling()
540 assertSame(original, reduced); in testDecodeReuseScaling()
551 Bitmap original = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeReuseDoubleScaling() local
552 int originalSize = original.getByteCount(); in testDecodeReuseDoubleScaling()
555 options.inBitmap = original; in testDecodeReuseDoubleScaling()
562 assertSame(original, doubleScaled); in testDecodeReuseDoubleScaling()
/cts/apps/VpnApp/src/com/android/cts/vpnfirewall/
DIcmpMessage.java44 byte[] original = new byte[length]; in IcmpMessage()
46 stream.readFully(original); in IcmpMessage()
47 if (!Arrays.equals(original, getEncoded())) { in IcmpMessage()
DIpv4Packet.java77 byte[] original = new byte[totalLength]; in Ipv4Packet()
79 stream.readFully(original); in Ipv4Packet()
80 if (!Arrays.equals(original, getEncoded())) { in Ipv4Packet()
/cts/tests/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java179 private String getNonNullLocaleString(@Nullable final Locale original) { in getNonNullLocaleString() argument
180 if (original == null) { in getNonNullLocaleString()
183 return original.toString(); in getNonNullLocaleString()
240 SuggestionSpan cloneViaParcel(@NonNull final SuggestionSpan original) { in cloneViaParcel() argument
244 original.writeToParcel(parcel, 0); in cloneViaParcel()
DLocaleSpanTest.java61 LocaleSpan cloneViaParcel(@NonNull final LocaleSpan original) { in cloneViaParcel() argument
65 original.writeToParcel(parcel, 0); in cloneViaParcel()
/cts/suite/audio_quality/client/src/com/android/cts/audiotest/
DCtsAudioClientActivity.java71 int original = mgr.getStreamVolume(AudioManager.STREAM_MUSIC); in setVolume() local
77 return original; in setVolume()
/cts/tests/framework/base/windowmanager/app/src/android/server/wm/app/
DInputMethodTestActivity.java49 final InputConnection original = super.onCreateInputConnection(outAttrs); in onCreate()
51 return new InputConnectionWrapper(original, false) { in onCreate()
/cts/tests/tests/content/src/android/content/cts/
DLocusIdTest.java79 private LocusId cloneThroughParcel(@NonNull LocusId original) { in cloneThroughParcel() argument
85 original.writeToParcel(parcel, 0); in cloneThroughParcel()
/cts/hostsidetests/inputmethodservice/deviceside/devicetest/src/android/inputmethodservice/cts/devicetest/
DMultiUserDeviceTest.java96 final InputConnection original = super.onCreateInputConnection(editorInfo); in testConnectingToTheSameUserIme()
103 return new ReplyReceivingInputConnection(original, sessionId, resultQueue); in testConnectingToTheSameUserIme()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java329 private void assertFreezePeriodListsEqual(List<FreezePeriod> original, in assertFreezePeriodListsEqual() argument
331 assertThat(original).isNotNull(); in assertFreezePeriodListsEqual()
333 assertThat(original.size()).isEqualTo(copy.size()); in assertFreezePeriodListsEqual()
334 for (FreezePeriod period1 : original) { in assertFreezePeriodListsEqual()
340 assertFreezePeriodListContains(original, period1); in assertFreezePeriodListsEqual()
/cts/tests/tests/opengl/src/android/opengl/cts/
DCompressedTextureSurfaceView.java182 int original = mBaseTexture.getPixel(x, y); in comparePixel() local
184 int deltaR = Math.abs(R - Color.red(original)); in comparePixel()
185 int deltaG = Math.abs(G - Color.green(original)); in comparePixel()
186 int deltaB = Math.abs(B - Color.blue(original)); in comparePixel()
/cts/tests/tests/os/src/android/os/cts/
DLocaleListTest.java313 LocaleList original = LocaleList.forLanguageTags("en-PH,en-US"); in testParcelable() local
314 assertEquals(original, cloneViaParcel(original)); in testParcelable()
345 private static LocaleList cloneViaParcel(final LocaleList original) { in cloneViaParcel() argument
349 original.writeToParcel(parcel, 0); in cloneViaParcel()
/cts/tests/app/src/android/app/cts/
DPersonTest.java63 Person original = in testToBuilder() local
72 Person result = original.toBuilder().build(); in testToBuilder()
DWearableExtenderTest.java141 WearableExtender original = new WearableExtender() in testWearableExtender_clone() local
151 WearableExtender clone = original.clone(); in testWearableExtender_clone()
153 original.clearActions(); in testWearableExtender_clone()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java198 ParcelFileDescriptor original = printJob.getDocument().getData(); in adjustPageRangeAndVerifyPages()
204 try (FileInputStream in = new FileInputStream(original.getFileDescriptor()); in adjustPageRangeAndVerifyPages()
217 original.close(); in adjustPageRangeAndVerifyPages()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dimage_and_kernel.rsh9 // The dimension of the original unpadded image is
/cts/tests/jdwp/runner/host-side/
DAndroid.bp17 // a test to retain the test_suites from the original Android.mk.
/cts/tests/tests/media/libmediandkjni/
Dnative-media-jni.cpp1477 AMediaFormat *original = AMediaFormat_new(); in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative() local
1481 AMediaFormat_setInt64(original, AMEDIAFORMAT_KEY_DURATION, 1234ll); in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()
1483 if (!AMediaFormat_getInt64(original, AMEDIAFORMAT_KEY_DURATION, &value) || value != 1234) { in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()
1487 AMediaFormat_copy(copy, original); in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()
1493 AMediaFormat_clear(original); in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()
1494 if (AMediaFormat_getInt64(original, AMEDIAFORMAT_KEY_DURATION, &value)) { in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()
1506 AMediaFormat_delete(original); in Java_android_media_cts_NativeDecoderTest_testMediaFormatNative()

12