Home
last modified time | relevance | path

Searched refs:target (Results 1 – 25 of 59) sorted by relevance

123

/cts/tests/tests/jni/src/android/jni/cts/
DJniInstanceTest.java27 private InstanceNonce target; field in JniInstanceTest
31 target = new InstanceNonce(); in setUp()
38 target.nop(); in test_nop()
45 assertEquals(false, target.returnBoolean()); in test_returnBoolean()
52 assertEquals(123, target.returnByte()); in test_returnByte()
59 assertEquals(-12345, target.returnShort()); in test_returnShort()
66 assertEquals(34567, target.returnChar()); in test_returnChar()
73 assertEquals(12345678, target.returnInt()); in test_returnInt()
80 assertEquals(-1098765432109876543L, target.returnLong()); in test_returnLong()
87 assertEquals(-98765.4321F, target.returnFloat()); in test_returnFloat()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DPorterDuffXfermodeTest.java35 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() local
36 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode()
42 Canvas canvas = new Canvas(target); in testPorterDuffXfermode()
47 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
48 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
49 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
51 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode()
56 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode()
57 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
58 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode()
[all …]
DPorterDuffColorFilterTest.java39 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter() local
40 target.eraseColor(Color.TRANSPARENT); in testPorterDuffColorFilter()
41 Canvas canvas = new Canvas(target); in testPorterDuffColorFilter()
49 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
50 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter()
53 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter()
56 target.eraseColor(Color.BLACK); in testPorterDuffColorFilter()
62 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter()
63 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter()
64 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter()
[all …]
DPixelXorXfermodeTest.java37 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPixelXorXfermode() local
38 target.eraseColor(Color.BLACK); in testPixelXorXfermode()
39 Canvas canvas = new Canvas(target); in testPixelXorXfermode()
44 assertEquals(Color.WHITE, target.getPixel(width / 4, height / 4)); in testPixelXorXfermode()
46 assertEquals(Color.YELLOW, target.getPixel(width / 4, height * 3 / 4)); in testPixelXorXfermode()
48 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPixelXorXfermode()
52 target.eraseColor(alphaColor(Color.BLACK, 42)); in testPixelXorXfermode()
56 assertEquals(255, Color.alpha(target.getPixel(0, 0))); in testPixelXorXfermode()
DMovieTest.java79 OutputStream target = null; in writeSampleImage() local
83 target = new FileOutputStream(imagefile); in writeSampleImage()
88 target.write(buffer, 0, len); in writeSampleImage()
94 if (target != null) { in writeSampleImage()
95 target.close(); in writeSampleImage()
/cts/tests/tests/view/src/android/view/inputmethod/cts/
DExtractedTextTest.java37 ExtractedText target = ExtractedText.CREATOR.createFromParcel(p); in testWriteToParcel() local
38 assertEquals(extractedText.flags, target.flags); in testWriteToParcel()
39 assertEquals(extractedText.selectionEnd, target.selectionEnd); in testWriteToParcel()
40 assertEquals(extractedText.selectionStart, target.selectionStart); in testWriteToParcel()
41 assertEquals(extractedText.startOffset, target.startOffset); in testWriteToParcel()
42 assertEquals(extractedText.partialStartOffset, target.partialStartOffset); in testWriteToParcel()
43 assertEquals(extractedText.partialEndOffset, target.partialEndOffset); in testWriteToParcel()
44 assertEquals(extractedText.text.toString(), target.text.toString()); in testWriteToParcel()
DExtractedTextRequestTest.java38 ExtractedTextRequest target = ExtractedTextRequest.CREATOR.createFromParcel(p); in testExtractedTextRequest() local
40 assertEquals(request.flags, target.flags); in testExtractedTextRequest()
42 assertEquals(request.hintMaxLines, target.hintMaxLines); in testExtractedTextRequest()
43 assertEquals(request.token, target.token); in testExtractedTextRequest()
DInputBindingTest.java48 InputBinding target = InputBinding.CREATOR.createFromParcel(p); in testInputBinding() local
49 assertEquals(uid, target.getUid()); in testInputBinding()
50 assertEquals(pid, target.getPid()); in testInputBinding()
51 assertSame(binder, target.getConnectionToken()); in testInputBinding()
/cts/libs/deviceutil/src/android/provider/cts/
DFileCopyHelper.java64 OutputStream target = mContext.openFileOutput(fileName, Context.MODE_WORLD_READABLE); in copy() local
65 copyFile(source, target); in copy()
72 OutputStream target = new FileOutputStream(path); in copyToExternalStorage() local
73 copyFile(source, target); in copyToExternalStorage()
76 private void copyFile(InputStream source, OutputStream target) throws IOException { in copyFile() argument
80 target.write(buffer, 0, len); in copyFile()
86 if (target != null) { in copyFile()
87 target.close(); in copyFile()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java56 for (File target : getTargetFiles()) { in testMountAndUnmountObbNormal()
57 target = new File(target, "test1.obb"); in testMountAndUnmountObbNormal()
58 Log.d(TAG, "Testing path " + target); in testMountAndUnmountObbNormal()
59 doMountAndUnmountObbNormal(target); in testMountAndUnmountObbNormal()
77 for (File target : getTargetFiles()) { in testAttemptMountNonObb()
78 target = new File(target, "test1_nosig.obb"); in testAttemptMountNonObb()
79 Log.d(TAG, "Testing path " + target); in testAttemptMountNonObb()
80 doAttemptMountNonObb(target); in testAttemptMountNonObb()
95 for (File target : getTargetFiles()) { in testAttemptMountObbWrongPackage()
96 target = new File(target, "test1_wrongpackage.obb"); in testAttemptMountObbWrongPackage()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java137 final Intent target = new Intent(); in testReadFromParcel() local
138 target.readFromParcel(parcel); in testReadFromParcel()
139 assertEquals(mIntent.getAction(), target.getAction()); in testReadFromParcel()
140 assertEquals(mIntent.getData(), target.getData()); in testReadFromParcel()
141 assertEquals(mIntent.getFlags(), target.getFlags()); in testReadFromParcel()
142 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel()
143 assertEquals(mIntent.getCategories(), target.getCategories()); in testReadFromParcel()
144 assertEquals(mIntent.toURI(), target.toURI()); in testReadFromParcel()
153 final ArrayList<Intent> target = mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME); in testGetParcelableArrayListExtra() local
154 assertEquals(expected.size(), target.size()); in testGetParcelableArrayListExtra()
[all …]
DIntent_FilterComparisonTest.java52 FilterComparison target = new Intent.FilterComparison(mIntent); in testEquals() local
54 assertTrue(mFilterComparison.equals(target)); in testEquals()
55 target = new Intent.FilterComparison(new Intent("test")); in testEquals()
56 assertFalse(mFilterComparison.equals(target)); in testEquals()
DIntent_ShortcutIconResourceTest.java71 ShortcutIconResource target = ShortcutIconResource.CREATOR in testWriteToParcel() local
73 assertEquals(mShortcutIconResource.packageName, target.packageName); in testWriteToParcel()
74 assertEquals(mShortcutIconResource.resourceName, target.resourceName); in testWriteToParcel()
/cts/tests/tests/app/src/android/app/cts/
DPendingIntentTest.java391 PendingIntent target = PendingIntent.getActivity(mContext, 1, mIntent, in testEquals() local
394 assertFalse(mPendingIntent.equals(target)); in testEquals()
395 assertFalse(mPendingIntent.hashCode() == target.hashCode()); in testEquals()
398 target = PendingIntent.getActivity(mContext, 1, mIntent, 1); in testEquals()
399 assertTrue(mPendingIntent.equals(target)); in testEquals()
402 target = PendingIntent.getBroadcast(mContext, 1, mIntent, 1); in testEquals()
403 assertFalse(mPendingIntent.equals(target)); in testEquals()
404 assertFalse(mPendingIntent.hashCode() == target.hashCode()); in testEquals()
407 target = PendingIntent.getActivity(mContext, 1, mIntent, 1); in testEquals()
409 assertTrue(mPendingIntent.equals(target)); in testEquals()
[all …]
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java88 public void printSummaryWithTarget(String message, double target, double value, in printSummaryWithTarget() argument
90 mSummary = message + LOG_ELEM_SEPARATOR + target + LOG_ELEM_SEPARATOR + type.getXmlString() in printSummaryWithTarget()
94 resultOk = value >= target; in printSummaryWithTarget()
96 resultOk = value <= target; in printSummaryWithTarget()
99 Assert.fail("Measured result " + value + " does not meet perf target " + target + in printSummaryWithTarget()
/cts/tests/src/android/os/cts/
DTestThread.java27 public TestThread(Runnable target) { in TestThread() argument
28 mTarget = target; in TestThread()
/cts/tests/tests/media/src/android/media/cts/
DJetPlayerTest.java177 OutputStream target = null; in prepareFile() local
180 target = new FileOutputStream(mJetFile); in prepareFile()
184 target.write(buffer, 0, length); in prepareFile()
190 if (target != null) { in prepareFile()
191 target.close(); in prepareFile()
/cts/tests/tests/widget/src/android/widget/cts/
DVideoViewTest.java117 OutputStream target = null; in prepareSampleVideo() local
121 target = mActivity.openFileOutput(VIDEO_NAME, Context.MODE_WORLD_READABLE); in prepareSampleVideo()
125 target.write(buffer, 0, len); in prepareSampleVideo()
131 if (target != null) { in prepareSampleVideo()
132 target.close(); in prepareSampleVideo()
DImageSwitcherTest.java152 OutputStream target = null; in createSampleImage() local
156 target = new FileOutputStream(imagefile); in createSampleImage()
160 target.write(buffer, 0, len); in createSampleImage()
169 if (target != null) { in createSampleImage()
170 target.close(); in createSampleImage()
DMediaControllerTest.java158 OutputStream target = null; in prepareSampleVideo() local
163 target = mActivity.openFileOutput(VIDEO_NAME, Context.MODE_WORLD_READABLE); in prepareSampleVideo()
167 target.write(buffer, 0, len); in prepareSampleVideo()
176 if (target != null) { in prepareSampleVideo()
177 target.close(); in prepareSampleVideo()
/cts/tests/tests/preference2/src/android/preference2/cts/
DPreferenceWithHeaders.java55 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument
56 loadHeadersFromResource(R.xml.preference_headers, target); in onBuildHeaders()
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Dbootstrap-collapse.js149 , target = $this.attr('data-target')
152 , option = $(target).data('collapse') ? 'toggle' : $this.data()
153 $(target).collapse(option)
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/
DBleButtonActivity.java44 BleButtonActivity(int target) { in BleButtonActivity() argument
45 if (target == DISCOVER_SERVICE) { in BleButtonActivity()
52 } else if (target == DISCONNECT) { in BleButtonActivity()
DBleReadWriteActivity.java47 BleReadWriteActivity(int target) { in BleReadWriteActivity() argument
48 if (target == CHARACTERISTIC) { in BleReadWriteActivity()
55 } else if (target == DESCRIPTOR) { in BleReadWriteActivity()
/cts/tests/tests/os/src/android/os/cts/
DResultReceiverTest.java46 ResultReceiver target = ResultReceiver.CREATOR.createFromParcel(p); in testResultReceiver() local
47 assertNotNull(target); in testResultReceiver()

123