/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 | 42 Bitmap target = Bitmap.createBitmap(WIDTH, HEIGHT, Config.ARGB_8888); in testPorterDuffXfermode() local 43 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode() 49 Canvas canvas = new Canvas(target); in testPorterDuffXfermode() 54 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 55 assertEquals(Color.BLUE, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 56 assertEquals(Color.BLUE, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 58 target.eraseColor(Color.TRANSPARENT); in testPorterDuffXfermode() 63 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT / 4)); in testPorterDuffXfermode() 64 assertEquals(Color.RED, target.getPixel(WIDTH / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() 65 assertEquals(Color.TRANSPARENT, target.getPixel(WIDTH * 3 / 4, HEIGHT * 3 / 4)); in testPorterDuffXfermode() [all …]
|
D | PorterDuffColorFilterTest.java | 48 Bitmap target = Bitmap.createBitmap(width, height, Config.ARGB_8888); in testPorterDuffColorFilter() local 49 target.eraseColor(Color.TRANSPARENT); in testPorterDuffColorFilter() 50 Canvas canvas = new Canvas(target); in testPorterDuffColorFilter() 58 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 59 int lowerLeft = target.getPixel(width / 4, height * 3 / 4); in testPorterDuffColorFilter() 62 int lowerRight = target.getPixel(width * 3 / 4, height * 3 / 4); in testPorterDuffColorFilter() 65 target.eraseColor(Color.BLACK); in testPorterDuffColorFilter() 71 assertEquals(Color.RED, target.getPixel(width / 4, height / 4)); in testPorterDuffColorFilter() 72 assertEquals(Color.BLUE, target.getPixel(width / 4, height * 3 / 4)); in testPorterDuffColorFilter() 73 assertEquals(Color.BLUE, target.getPixel(width * 3 / 4, height * 3 / 4)); in testPorterDuffColorFilter() [all …]
|
/cts/tools/release-parser/tests/resources/ |
D | boot-framework.oat.pb.txt | 42 …target/product/sailfish/dex_bootjars/system/framework/arm64/boot.art:/system/framework/out/target/… 66 …target/product/sailfish/dex_bootjars/system/framework/boot.prof --dex-file=out/target/common/obj/J…
|
D | android.test.runner.odex.pb.txt | 38 …target/product/sailfish/dex_bootjars/system/framework/arm64/boot.art:out/target/product/sailfish/d… 70 …target/product/sailfish/dex_bootjars/system/framework/boot.art --dex-file=out/target/common/obj/JA…
|
/cts/tests/tests/text/src/android/text/cts/ |
D | GetCharsTest.java | 50 final char[] target = new char[getChars.length()]; in testGetChars() local 51 getChars.getChars(0, getChars.length(), target, 0); in testGetChars() 52 assertEquals('\uD83D', target[0]); in testGetChars() 53 assertEquals('\uDE00', target[1]); in testGetChars() 56 getChars.getChars(-1, getChars.length(), target, 0); in testGetChars() 62 getChars.getChars(1, 0, target, 0); in testGetChars() 68 getChars.getChars(0, getChars.length() + 1, target, 0); in testGetChars() 74 getChars.getChars(0, getChars.length(), target, -1); in testGetChars() 80 getChars.getChars(0, getChars.length(), target, 1); in testGetChars()
|
/cts/tests/inputmethod/src/android/view/inputmethod/cts/ |
D | ExtractedTextTest.java | 53 ExtractedText target = ExtractedText.CREATOR.createFromParcel(p); in testWriteToParcel() local 54 assertEquals(extractedText.flags, target.flags); in testWriteToParcel() 55 assertEquals(extractedText.selectionEnd, target.selectionEnd); in testWriteToParcel() 56 assertEquals(extractedText.selectionStart, target.selectionStart); in testWriteToParcel() 57 assertEquals(extractedText.startOffset, target.startOffset); in testWriteToParcel() 58 assertEquals(extractedText.partialStartOffset, target.partialStartOffset); in testWriteToParcel() 59 assertEquals(extractedText.partialEndOffset, target.partialEndOffset); in testWriteToParcel() 60 assertEquals(extractedText.text.toString(), target.text.toString()); in testWriteToParcel() 61 assertEquals(extractedText.hint.toString(), target.hint.toString()); in testWriteToParcel()
|
D | ExtractedTextRequestTest.java | 46 ExtractedTextRequest target = ExtractedTextRequest.CREATOR.createFromParcel(p); in testExtractedTextRequest() local 48 assertEquals(request.flags, target.flags); in testExtractedTextRequest() 50 assertEquals(request.hintMaxLines, target.hintMaxLines); in testExtractedTextRequest() 51 assertEquals(request.token, target.token); in testExtractedTextRequest()
|
D | InputBindingTest.java | 59 InputBinding target = InputBinding.CREATOR.createFromParcel(p); in testInputBinding() local 60 assertEquals(uid, target.getUid()); in testInputBinding() 61 assertEquals(pid, target.getPid()); in testInputBinding() 62 assertSame(binder, target.getConnectionToken()); in testInputBinding()
|
/cts/common/device-side/util-axt/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()
|
/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()
|
/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 | 137 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.getIdentifier(), target.getIdentifier()); in testReadFromParcel() 142 assertEquals(mIntent.getFlags(), target.getFlags()); in testReadFromParcel() 143 assertEquals(mIntent.getComponent(), target.getComponent()); in testReadFromParcel() 144 assertEquals(mIntent.getCategories(), target.getCategories()); in testReadFromParcel() 145 assertEquals(mIntent.toURI(), target.toURI()); in testReadFromParcel() 154 final ArrayList<Intent> target = mIntent.getParcelableArrayListExtra(TEST_EXTRA_NAME); in testGetParcelableArrayListExtra() local [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/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/tests/tests/view/src/android/view/cts/ |
D | TooltipTest.java | 147 private void injectKeyPress(View target, int keyCode, int duration) throws Throwable { in injectKeyPress() argument 148 if (target != null) { in injectKeyPress() 150 target.setFocusableInTouchMode(true); in injectKeyPress() 151 target.requestFocus(); in injectKeyPress() 154 assertTrue(target.isFocused()); in injectKeyPress() 165 private void injectLongKeyPress(View target, int keyCode) throws Throwable { in injectLongKeyPress() argument 166 injectKeyPress(target, keyCode, ViewConfiguration.getLongPressTimeout()); in injectLongKeyPress() 169 private void injectLongEnter(View target) throws Throwable { in injectLongEnter() argument 170 injectLongKeyPress(target, KeyEvent.KEYCODE_ENTER); in injectLongEnter() 173 private void injectShortClick(View target) { in injectShortClick() argument [all …]
|
/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/camera/src/android/hardware/camera2/cts/ |
D | RobustnessTest.java | 241 SurfaceTexture target = new SurfaceTexture(/*random int*/1); in setupConfigurationTargets() local 242 target.setDefaultBufferSize(targetSize.getWidth(), targetSize.getHeight()); in setupConfigurationTargets() 243 OutputConfiguration config = new OutputConfiguration(new Surface(target)); in setupConfigurationTargets() 248 privTargets.add(target); in setupConfigurationTargets() 252 ImageReader target = ImageReader.newInstance(targetSize.getWidth(), in setupConfigurationTargets() local 254 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets() 255 OutputConfiguration config = new OutputConfiguration(target.getSurface()); in setupConfigurationTargets() 260 jpegTargets.add(target); in setupConfigurationTargets() 264 ImageReader target = ImageReader.newInstance(targetSize.getWidth(), in setupConfigurationTargets() local 266 target.setOnImageAvailableListener(imageDropperListener, mHandler); in setupConfigurationTargets() [all …]
|
/cts/hostsidetests/appsecurity/test-apps/UsePermissionDiffCert/src/com/android/cts/usespermissiondiffcertapp/ |
D | AccessPermissionWithDiffSigTest.java | 1268 final Uri target = Uri.withAppendedPath(PERM_URI_GRANTING, "foo"); in testGrantPersistableUriPermission() local 1269 final ClipData clip = makeSingleClipData(target); in testGrantPersistableUriPermission() 1277 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1299 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1301 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1305 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_WRITE_URI_PERMISSION); in testGrantPersistableUriPermission() 1318 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1327 resolver.takePersistableUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION); in testGrantPersistableUriPermission() 1329 assertPersistedUriPermission(target, Intent.FLAG_GRANT_READ_URI_PERMISSION, before, after); in testGrantPersistableUriPermission() 1333 resolver.takePersistableUriPermission(target, in testGrantPersistableUriPermission() [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/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/preference/src/android/preference/cts/ |
D | PreferenceWithHeaders.java | 64 public void onBuildHeaders(List<Header> target) { in onBuildHeaders() argument 65 loadedHeaders = target; in onBuildHeaders() 66 loadHeadersFromResource(R.xml.preference_headers, target); in onBuildHeaders()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecUtils.java | 123 public native static void copyFlexYUVImage(CodecImage target, CodecImage source); in copyFlexYUVImage() argument 125 public static void copyFlexYUVImage(Image target, CodecImage source) { in copyFlexYUVImage() argument 126 copyFlexYUVImage(ImageWrapper.createFromImage(target), source); in copyFlexYUVImage() 128 public static void copyFlexYUVImage(Image target, Image source) { in copyFlexYUVImage() argument 130 ImageWrapper.createFromImage(target), in copyFlexYUVImage()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/generated/ |
D | TestNativeExpm1.java | 88 … Target target = new Target(Target.FunctionType.NATIVE, Target.ReturnType.FLOAT, relaxed); in verifyResultsNativeExpm1FloatFloat() local 89 CoreMathVerifier.computeNativeExpm1(args, target); in verifyResultsNativeExpm1FloatFloat() 160 … Target target = new Target(Target.FunctionType.NATIVE, Target.ReturnType.FLOAT, relaxed); in verifyResultsNativeExpm1Float2Float2() local 161 CoreMathVerifier.computeNativeExpm1(args, target); in verifyResultsNativeExpm1Float2Float2() 232 … Target target = new Target(Target.FunctionType.NATIVE, Target.ReturnType.FLOAT, relaxed); in verifyResultsNativeExpm1Float3Float3() local 233 CoreMathVerifier.computeNativeExpm1(args, target); in verifyResultsNativeExpm1Float3Float3() 304 … Target target = new Target(Target.FunctionType.NATIVE, Target.ReturnType.FLOAT, relaxed); in verifyResultsNativeExpm1Float4Float4() local 305 CoreMathVerifier.computeNativeExpm1(args, target); in verifyResultsNativeExpm1Float4Float4() 387 … Target target = new Target(Target.FunctionType.NATIVE, Target.ReturnType.HALF, relaxed); in verifyResultsNativeExpm1HalfHalf() local 388 String errorMessage = CoreMathVerifier.verifyNativeExpm1(args, target); in verifyResultsNativeExpm1HalfHalf() [all …]
|