Home
last modified time | relevance | path

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

12

/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/cts/
DSpannableStringBuilderSpanTest.java61 for (String original: originals) { in testReplaceWithSpans()
63 replace(original, replacement); in testReplaceWithSpans()
68 private void replace(String original, String replacement) { in replace() argument
71 positionSet.addPosition(original.length() / 3); in replace()
72 positionSet.addPosition(2 * original.length() / 3); in replace()
73 positionSet.addPosition(original.length()); in replace()
85 replaceWithRange(original, in replace()
95 private void replaceWithRange(String original, int replaceStart, int replaceEnd, in replaceWithRange() argument
102 replaceWithSpanFlag(original, replaceStart, replaceEnd, in replaceWithRange()
107 private void replaceWithSpanFlag(String original, int replaceStart, int replaceEnd, in replaceWithSpanFlag() argument
[all …]
DSpannableStringTest.java221 final SpannableStringBuilder original = new SpannableStringBuilder("\ntest data\nb"); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint() local
224 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
227 SpannableString copied = new SpannableString(original); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
235 final CharSequence transformed = transformation.getTransformation(original, null); in testCopyConstructorDoesNotEnforceParagraphStyleConstraint()
/cts/tests/tests/text/src/android/text/method/cts/
DSingleLineTransformationMethodTest.java82 final SpannableString original = new SpannableString("\ntest data\nb"); in testSubsequence_doesNotThrowExceptionWithParagraphSpans() local
85 original.setSpan(span, 1, original.length() - 1, Spanned.SPAN_PARAGRAPH); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
87 final CharSequence transformed = method.getTransformation(original, null); in testSubsequence_doesNotThrowExceptionWithParagraphSpans()
DReplacementTransformationMethodTest.java140 public MyReplacementTransformationMethod(char[] original, char[] replacement) { in MyReplacementTransformationMethod() argument
141 mOriginal = original; in MyReplacementTransformationMethod()
/cts/tests/tests/graphics/src/android/graphics/cts/
DPictureTest.java56 Picture original = new Picture(); in testSaveRestoreBalance() local
57 Canvas canvas = original.beginRecording(TEST_WIDTH, TEST_HEIGHT); in testSaveRestoreBalance()
63 Picture copy = new Picture(original); in testSaveRestoreBalance()
69 original.writeToStream(bout); in testSaveRestoreBalance()
81 original.draw(drawDest); in testSaveRestoreBalance()
82 verifyBalance(original); in testSaveRestoreBalance()
DBitmapFactoryTest.java482 Bitmap original = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeReuseScaling() local
483 int originalSize = original.getByteCount(); in testDecodeReuseScaling()
484 assertEquals(originalSize, original.getAllocationByteCount()); in testDecodeReuseScaling()
486 options.inBitmap = original; in testDecodeReuseScaling()
490 assertSame(original, reduced); in testDecodeReuseScaling()
501 Bitmap original = BitmapFactory.decodeResource(mRes, R.drawable.robot, options); in testDecodeReuseDoubleScaling() local
502 int originalSize = original.getByteCount(); in testDecodeReuseDoubleScaling()
505 options.inBitmap = original; in testDecodeReuseDoubleScaling()
512 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/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/tests/text/src/android/text/style/cts/
DSuggestionSpanTest.java177 private String getNonNullLocaleString(@Nullable final Locale original) { in getNonNullLocaleString() argument
178 if (original == null) { in getNonNullLocaleString()
181 return original.toString(); in getNonNullLocaleString()
238 SuggestionSpan cloneViaParcel(@NonNull final SuggestionSpan original) { in cloneViaParcel() argument
242 original.writeToParcel(parcel, 0); in cloneViaParcel()
DLocaleSpanTest.java60 LocaleSpan cloneViaParcel(@NonNull final LocaleSpan original) { in cloneViaParcel() argument
64 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()
DNotificationTest.java556 private static <T extends Parcelable> T writeAndReadParcelable(T original) { in writeAndReadParcelable() argument
558 p.writeParcelable(original, /* flags */ 0); in writeAndReadParcelable()
/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/renderscript/src/android/renderscript/cts/refocus/
Dimage_and_kernel.rsh9 // The dimension of the original unpadded image is
/cts/tests/tests/os/src/android/os/cts/
DLocaleListTest.java310 LocaleList original = LocaleList.forLanguageTags("en-PH,en-US"); in testParcelable() local
311 assertEquals(original, cloneViaParcel(original)); in testParcelable()
322 private static LocaleList cloneViaParcel(final LocaleList original) { in cloneViaParcel() argument
326 original.writeToParcel(parcel, 0); in cloneViaParcel()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java197 ParcelFileDescriptor original = printJob.getDocument().getData(); in adjustPageRangeAndVerifyPages()
203 try (FileInputStream in = new FileInputStream(original.getFileDescriptor()); in adjustPageRangeAndVerifyPages()
216 original.close(); in adjustPageRangeAndVerifyPages()
/cts/tests/tests/view/src/android/view/cts/
DLayoutInflaterTest.java421 public MockLayoutInflater(LayoutInflater original, Context newContext) { in MockLayoutInflater() argument
422 super(original, newContext); in MockLayoutInflater()
/cts/hostsidetests/sustainedperf/dhrystone/
DRationale91 The original publication of Dhrystone did not contain any statements
202 not been changed, to keep the program consistent with the original
237 For consistency with the original benchmark, I didn't change the
/cts/tests/tests/tv/src/android/media/tv/cts/
DTvContractTest.java1356 String original = genres[i].trim(); in checkGenreEncodeDecode() local
1357 if (!original.isEmpty()) { in checkGenreEncodeDecode()
1358 assertEquals(original, decoded[decodedIndex++]); in checkGenreEncodeDecode()
/cts/tests/tests/provider/src/android/provider/cts/
DCalendarTest.java184 ContentValues original, int seed) { in getUpdateCalendarValuesWithOriginal() argument
193 original.putAll(values); in getUpdateCalendarValuesWithOriginal()
194 original.put(Calendars.DIRTY, 1); in getUpdateCalendarValuesWithOriginal()
479 public static ContentValues getUpdateEventValuesWithOriginal(ContentValues original, in getUpdateEventValuesWithOriginal() argument
507 original.putAll(values); in getUpdateEventValuesWithOriginal()
/cts/tools/dasm/src/java_cup/
Dparser.cup75 /* if there is no label, or this is an action, just return the original */
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2335 String original = parameters.getFlashMode();
2344 assertEquals(original, parameters.getFlashMode());

12