Home
last modified time | relevance | path

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

12345678910

/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.java77 OutputStream target = null; in writeSampleImage() local
81 target = new FileOutputStream(imagefile); in writeSampleImage()
86 target.write(buffer, 0, len); in writeSampleImage()
92 if (target != null) { in writeSampleImage()
93 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/cts/util/
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()
DTestThread.java27 public TestThread(Runnable target) { in TestThread() argument
28 mTarget = target; in TestThread()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
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/apps/CameraITS/tools/
Dconfig.py16 import its.target
52 its.target.clear_cached_target_exposure()
53 exposure = its.target.get_target_exposure(cam)
57 its.target.set_hardcoded_exposure(exposure)
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java61 for (File target : getTargetFiles()) { in testMountAndUnmountObbNormal()
62 target = new File(target, "test1.obb"); in testMountAndUnmountObbNormal()
63 Log.d(TAG, "Testing path " + target); in testMountAndUnmountObbNormal()
64 doMountAndUnmountObbNormal(target); in testMountAndUnmountObbNormal()
87 for (File target : getTargetFiles()) { in testAttemptMountNonObb()
88 target = new File(target, "test1_nosig.obb"); in testAttemptMountNonObb()
89 Log.d(TAG, "Testing path " + target); in testAttemptMountNonObb()
90 doAttemptMountNonObb(target); in testAttemptMountNonObb()
105 for (File target : getTargetFiles()) { in testAttemptMountObbWrongPackage()
106 target = new File(target, "test1_wrongpackage.obb"); in testAttemptMountObbWrongPackage()
[all …]
/cts/tests/tests/content/src/android/content/cts/
DIntentTest.java131 final Intent target = new Intent(); in testReadFromParcel() local
132 target.readFromParcel(parcel); in testReadFromParcel()
133 assertEquals(mIntent.getAction(), target.getAction()); in testReadFromParcel()
134 assertEquals(mIntent.getData(), target.getData()); in testReadFromParcel()
135 assertEquals(mIntent.getFlags(), target.getFlags()); in testReadFromParcel()
136 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel()
137 assertEquals(mIntent.getCategories(), target.getCategories()); in testReadFromParcel()
138 assertEquals(mIntent.toURI(), target.toURI()); in testReadFromParcel()
147 final ArrayList<Intent> target = mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME); in testGetParcelableArrayListExtra() local
148 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/transition/src/android/transition/cts/
DTransitionTest.java140 final View[] target = new View[1]; in testAddTargetView() local
144 target[0] = mActivity.findViewById(R.id.hello); in testAddTargetView()
147 mTransition.addTarget(target[0]); in testAddTargetView()
153 target[0].setVisibility(View.GONE); in testAddTargetView()
158 assertEquals(target[0], mTargets.get(0)); in testAddTargetView()
165 final View[] target = new View[3]; in testRemoveTargetView() local
169 target[0] = mActivity.findViewById(R.id.hello); in testRemoveTargetView()
170 target[1] = mActivity.findViewById(R.id.greenSquare); in testRemoveTargetView()
171 target[2] = mActivity.findViewById(R.id.redSquare); in testRemoveTargetView()
175 mTransition.addTarget(target[0]); in testRemoveTargetView()
[all …]
/cts/tests/tests/media/src/android/media/cts/
DCodecUtils.java110 public native static void copyFlexYUVImage(CodecImage target, CodecImage source); in copyFlexYUVImage() argument
112 public static void copyFlexYUVImage(Image target, CodecImage source) { in copyFlexYUVImage() argument
113 copyFlexYUVImage(ImageWrapper.createFromImage(target), source); in copyFlexYUVImage()
115 public static void copyFlexYUVImage(Image target, Image source) { in copyFlexYUVImage() argument
117 ImageWrapper.createFromImage(target), in copyFlexYUVImage()
/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/tools/junit/
DAndroid.mk21 LOCAL_STATIC_JAVA_LIBRARIES := junit4-target
27 $(copy-file-to-target)
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/
DAccessPermissionWithDiffSigTest.java1255 final Uri target = Uri.withAppendedPath(PERM_URI_GRANTING, "foo"); in testGrantPersistableUriPermission() local
1256 final ClipData clip = makeSingleClipData(target); in testGrantPersistableUriPermission()
1264 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
1286 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
1288 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
1292 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in testGrantPersistableUriPermission()
1305 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
1314 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission()
1316 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission()
1320 resolver.takePersistableUriPermission(target, in testGrantPersistableUriPermission()
[all …]
/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/tests/tests/graphics/src/android/graphics/drawable/cts/
DIconTest.java159 OutputStream target = null; in writeSampleImage() local
163 target = new FileOutputStream(imagefile); in writeSampleImage()
167 target.write(buffer, 0, len); in writeSampleImage()
170 if (target != null) { in writeSampleImage()
171 target.close(); in writeSampleImage()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java114 public void printSummaryWithTarget(String message, double target, double value, in printSummaryWithTarget() argument
116 mSummary = message + LOG_ELEM_SEPARATOR + target + LOG_ELEM_SEPARATOR + type.getXmlString() in printSummaryWithTarget()
120 resultOk = value >= target; in printSummaryWithTarget()
122 resultOk = value <= target; in printSummaryWithTarget()
125 Assert.fail("Measured result " + value + " does not meet perf target " + target + in printSummaryWithTarget()
/cts/build/
Dtest_target_java_library.mk26 $(copy-file-to-target)
38 $(hide) echo Generating test description for target library $(PRIVATE_LIBRARY)

12345678910