/cts/tests/tests/jni/src/android/jni/cts/ |
D | JniInstanceTest.java | 27 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/ |
D | PorterDuffXfermodeTest.java | 41 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() local 42 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode() 48 Canvas canvas = new Canvas(target); in testPorterDuffXfermode() 53 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 54 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 55 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 57 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode() 62 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 64 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() [all …]
|
D | PorterDuffColorFilterTest.java | 47 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter() local 48 target.eraseColor(Color.TRANSPARENT); in testPorterDuffColorFilter() 49 Canvas canvas = new Canvas(target); in testPorterDuffColorFilter() 57 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 58 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter() 61 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter() 64 target.eraseColor(Color.BLACK); in testPorterDuffColorFilter() 70 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 71 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 72 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter() [all …]
|
/cts/tests/tests/text/src/android/text/cts/ |
D | GetCharsTest.java | 49 final char[] target = new char[getChars.length()]; in testGetChars() local 50 getChars.getChars(0, getChars.length(), target, 0); in testGetChars() 51 assertEquals('\uD83D', target[0]); in testGetChars() 52 assertEquals('\uDE00', target[1]); in testGetChars() 55 getChars.getChars(-1, getChars.length(), target, 0); in testGetChars() 61 getChars.getChars(1, 0, target, 0); in testGetChars() 67 getChars.getChars(0, getChars.length() + 1, target, 0); in testGetChars() 73 getChars.getChars(0, getChars.length(), target, -1); in testGetChars() 79 getChars.getChars(0, getChars.length(), target, 1); in testGetChars()
|
/cts/common/device-side/util/src/com/android/compatibility/common/util/ |
D | FileCopyHelper.java | 64 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()
|
D | TestThread.java | 27 public TestThread(Runnable target) { in TestThread() argument 28 mTarget = target; in TestThread()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextTest.java | 52 ExtractedText target = ExtractedText.CREATOR.createFromParcel(p); in testWriteToParcel() local 53 assertEquals(extractedText.flags, target.flags); in testWriteToParcel() 54 assertEquals(extractedText.selectionEnd, target.selectionEnd); in testWriteToParcel() 55 assertEquals(extractedText.selectionStart, target.selectionStart); in testWriteToParcel() 56 assertEquals(extractedText.startOffset, target.startOffset); in testWriteToParcel() 57 assertEquals(extractedText.partialStartOffset, target.partialStartOffset); in testWriteToParcel() 58 assertEquals(extractedText.partialEndOffset, target.partialEndOffset); in testWriteToParcel() 59 assertEquals(extractedText.text.toString(), target.text.toString()); in testWriteToParcel() 60 assertEquals(extractedText.hint.toString(), target.hint.toString()); in testWriteToParcel()
|
D | ExtractedTextRequestTest.java | 45 ExtractedTextRequest target = ExtractedTextRequest.CREATOR.createFromParcel(p); in testExtractedTextRequest() local 47 assertEquals(request.flags, target.flags); in testExtractedTextRequest() 49 assertEquals(request.hintMaxLines, target.hintMaxLines); in testExtractedTextRequest() 50 assertEquals(request.token, target.token); in testExtractedTextRequest()
|
D | InputBindingTest.java | 58 InputBinding target = InputBinding.CREATOR.createFromParcel(p); in testInputBinding() local 59 assertEquals(uid, target.getUid()); in testInputBinding() 60 assertEquals(pid, target.getPid()); in testInputBinding() 61 assertSame(binder, target.getConnectionToken()); in testInputBinding()
|
/cts/apps/CameraITS/tools/ |
D | config.py | 16 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/hostsidetests/jvmti/redefining/app/src/android/jvmti/cts/ |
D | JvmtiRedefineClassesTest.java | 56 public Class<?> target; field in JvmtiRedefineClassesTest.RedefineError 59 public RedefineError(int err, Class<?> target, String base64string) { in RedefineError() argument 60 this(err, target, Base64.getDecoder().decode(base64string)); in RedefineError() 65 this.target = klass; in RedefineError() 87 assertEquals(err.expectedError, redefineClass(err.target, err.dexData)); in checkRedefinition() 290 pushTransformationResult(GOOD_TRANSFORM.target, GOOD_TRANSFORM.dexData); in testSucessfulRetransform() 648 pushTransformationResult(e.target, e.dexData); in checkRetransformation() 649 assertEquals(e.expectedError, retransformClass(e.target)); in checkRetransformation() 737 private void checkClassHasMethods(Class<?> target, ExpectedMethod[] methods) throws Exception { in checkClassHasMethods() argument 739 m.ensureHasMethod(target); in checkClassHasMethods() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | IntentTest.java | 133 final Intent target = new Intent(); in testReadFromParcel() local 134 target.readFromParcel(parcel); in testReadFromParcel() 135 assertEquals(mIntent.getAction(), target.getAction()); in testReadFromParcel() 136 assertEquals(mIntent.getData(), target.getData()); in testReadFromParcel() 137 assertEquals(mIntent.getFlags(), target.getFlags()); in testReadFromParcel() 138 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel() 139 assertEquals(mIntent.getCategories(), target.getCategories()); in testReadFromParcel() 140 assertEquals(mIntent.toURI(), target.toURI()); in testReadFromParcel() 149 final ArrayList<Intent> target = mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME); in testGetParcelableArrayListExtra() local 150 assertEquals(expected.size(), target.size()); in testGetParcelableArrayListExtra() [all …]
|
D | Intent_FilterComparisonTest.java | 52 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()
|
D | Intent_ShortcutIconResourceTest.java | 71 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/view/src/android/view/cts/ |
D | TooltipTest.java | 146 private void injectKeyPress(View target, int keyCode, int duration) throws Throwable { in injectKeyPress() argument 147 if (target != null) { in injectKeyPress() 149 target.setFocusableInTouchMode(true); in injectKeyPress() 150 target.requestFocus(); in injectKeyPress() 153 assertTrue(target.isFocused()); in injectKeyPress() 164 private void injectLongKeyPress(View target, int keyCode) throws Throwable { in injectLongKeyPress() argument 165 injectKeyPress(target, keyCode, ViewConfiguration.getLongPressTimeout()); in injectLongKeyPress() 168 private void injectLongEnter(View target) throws Throwable { in injectLongEnter() argument 169 injectLongKeyPress(target, KeyEvent.KEYCODE_ENTER); in injectLongEnter() 172 private void injectShortClick(View target) { in injectShortClick() argument [all …]
|
/cts/hostsidetests/appsecurity/test-apps/StorageApp/src/com/android/cts/storageapp/ |
D | UtilsReceiver.java | 75 final File target; in doAllocation() local 77 target = (i++ % 2) == 0 ? intDir : extDir; in doAllocation() 79 target = intDir; in doAllocation() 82 final File f = makeUniqueFile(target); in doAllocation() 84 if (target == intDir) { in doAllocation()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | ObjectAnimatorTest.java | 339 Object target = colorAnimator.getTarget(); in testGetTarget() local 340 assertEquals(object, target); in testGetTarget() 381 Object target = new Object() { in testOfFloat_Path() local 389 final ObjectAnimator anim = ObjectAnimator.ofFloat(target, "x", "y", path); in testOfFloat_Path() 435 Object target = new Object() { in testOfInt_Path() local 443 final ObjectAnimator anim = ObjectAnimator.ofInt(target, "x", "y", path); in testOfInt_Path() 494 Object target = new Object() { in testOfMultiFloat_Path() local 499 final ObjectAnimator anim = ObjectAnimator.ofMultiFloat(target, "position", path); in testOfMultiFloat_Path() 554 Object target = new Object() { in testOfMultiFloat() local 559 final ObjectAnimator anim = ObjectAnimator.ofMultiFloat(target, "position", data); in testOfMultiFloat() [all …]
|
/cts/tests/tests/preference2/src/android/preference2/cts/ |
D | PreferenceWithHeaders.java | 65 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument 66 loadedHeaders = target; in onBuildHeaders() 67 loadHeadersFromResource(R.xml.preference_headers, target); in onBuildHeaders()
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | AccessPermissionWithDiffSigTest.java | 1228 final Uri target = Uri.withAppendedPath(PERM_URI_GRANTING, "foo"); in testGrantPersistableUriPermission() local 1229 final ClipData clip = makeSingleClipData(target); in testGrantPersistableUriPermission() 1237 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1259 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1261 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1265 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in testGrantPersistableUriPermission() 1278 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1287 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1289 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1293 resolver.takePersistableUriPermission(target, in testGrantPersistableUriPermission() [all …]
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecUtils.java | 121 public native static void copyFlexYUVImage(CodecImage target, CodecImage source); in copyFlexYUVImage() argument 123 public static void copyFlexYUVImage(Image target, CodecImage source) { in copyFlexYUVImage() argument 124 copyFlexYUVImage(ImageWrapper.createFromImage(target), source); in copyFlexYUVImage() 126 public static void copyFlexYUVImage(Image target, Image source) { in copyFlexYUVImage() argument 128 ImageWrapper.createFromImage(target), in copyFlexYUVImage()
|
/cts/tests/app/src/android/app/cts/ |
D | PendingIntentTest.java | 566 PendingIntent target = PendingIntent.getActivity(mContext, 1, mIntent, in testEquals() local 569 assertFalse(mPendingIntent.equals(target)); in testEquals() 570 assertFalse(mPendingIntent.hashCode() == target.hashCode()); in testEquals() 573 target = PendingIntent.getActivity(mContext, 1, mIntent, 1); in testEquals() 574 assertTrue(mPendingIntent.equals(target)); in testEquals() 577 target = PendingIntent.getBroadcast(mContext, 1, mIntent, 1); in testEquals() 578 assertFalse(mPendingIntent.equals(target)); in testEquals() 579 assertFalse(mPendingIntent.hashCode() == target.hashCode()); in testEquals() 582 target = PendingIntent.getActivity(mContext, 1, mIntent, 1); in testEquals() 584 assertTrue(mPendingIntent.equals(target)); in testEquals() [all …]
|
/cts/tests/tests/shortcutmanager/packages/launchermanifest/ |
D | Android.mk | 32 mockito-target-minus-junit4 \ 62 mockito-target-minus-junit4 \ 92 mockito-target-minus-junit4 \
|
/cts/tests/tests/shortcutmanager/packages/packagemanifest/ |
D | Android.mk | 31 mockito-target-minus-junit4 \ 61 mockito-target-minus-junit4 \ 91 mockito-target-minus-junit4 \
|
/cts/hostsidetests/appsecurity/test-apps/ExternalStorageApp/src/com/android/cts/externalstorageapp/ |
D | ExternalStorageTest.java | 108 final File target = new File( in testDownloadManager() local 110 dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManager() 127 final File target = new File( in testDownloadManagerPackage() local 130 final long id = dm.enqueue(new Request(source).setDestinationUri(Uri.fromFile(target))); in testDownloadManagerPackage() 133 assertSuccessfulDownload(id, target); in testDownloadManagerPackage()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/bluetooth/ |
D | BleButtonActivity.java | 44 BleButtonActivity(int target) { in BleButtonActivity() argument 45 if (target == DISCOVER_SERVICE) { in BleButtonActivity() 52 } else if (target == DISCONNECT) { in BleButtonActivity()
|