Home
last modified time | relevance | path

Searched refs:copy (Results 1 – 25 of 2628) sorted by relevance

12345678910>>...106

/cts/tests/tests/widget/src/android/widget/cts/
DFrameLayout_LayoutParamsTest.java92 FrameLayout.LayoutParams copy; in testCopyConstructor() local
102 copy = new FrameLayout.LayoutParams(fllp); in testCopyConstructor()
103 assertEquals("Width", fllp.width, copy.width); in testCopyConstructor()
104 assertEquals("Height", fllp.height, copy.height); in testCopyConstructor()
105 assertEquals("Gravity", fllp.gravity, copy.gravity); in testCopyConstructor()
106 assertEquals("Left margin", fllp.leftMargin, copy.leftMargin); in testCopyConstructor()
107 assertEquals("Top margin", fllp.topMargin, copy.topMargin); in testCopyConstructor()
108 assertEquals("Right margin", fllp.rightMargin, copy.rightMargin); in testCopyConstructor()
109 assertEquals("Bottom margin", fllp.bottomMargin, copy.bottomMargin); in testCopyConstructor()
118 copy = new FrameLayout.LayoutParams(mlp); in testCopyConstructor()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapRGBAF16Test.java87 Bitmap copy = Bitmap.createBitmap(mOpaqueBitmap); in testCopy() local
88 assertNotNull(copy); in testCopy()
89 assertEquals(Config.RGBA_F16, copy.getConfig()); in testCopy()
90 assertFalse(copy.hasAlpha()); in testCopy()
92 copy = Bitmap.createBitmap(mTransparentBitmap); in testCopy()
93 assertNotNull(copy); in testCopy()
94 assertEquals(Config.RGBA_F16, copy.getConfig()); in testCopy()
95 assertTrue(copy.hasAlpha()); in testCopy()
152 Bitmap b = mask.copy(Config.RGBA_F16, false); in testCopyFromA8()
DOutlineTest.java53 Outline copy = new Outline(orig);
54 assertEquals(0.5f, copy.getAlpha(), 0.0f);
57 copy.getRect(copyRect);
87 Outline copy = new Outline();
88 copy.set(orig);
89 assertEquals(0.5f, copy.getAlpha(), 0.0f);
92 copy.getRect(copyRect);
DBitmapColorSpaceTest.java909 Bitmap copy = b.copy(Bitmap.Config.RGBA_F16, mutable); in copyF16() local
910 assertSame(dstCS[i], copy.getColorSpace()); in copyF16()
922 Bitmap copy = b.copy(config, mutable); in copyF16() local
923 assertSame(srcCS[i], copy.getColorSpace()); in copyF16()
945 Bitmap copy = b.copy(Bitmap.Config.ALPHA_8, false); in copyAlpha8() local
946 assertNotNull(copy); in copyAlpha8()
947 assertNull(copy.getColorSpace()); in copyAlpha8()
949 Bitmap copy2 = copy.copy(srcConfig, false); in copyAlpha8()
973 Bitmap copy = b.copy(Bitmap.Config.ALPHA_8, false); in copyHardwareToAlpha8() local
974 assertNull(copy.getColorSpace()); in copyHardwareToAlpha8()
[all …]
DPictureTest.java60 Picture copy = new Picture(original); in testSaveRestoreBalance() local
61 verifyBalance(copy); in testSaveRestoreBalance()
DVulkanPreTransformTest.java150 SynchronousPixelCopy copy = new SynchronousPixelCopy(); in takeScreenshot() local
154 copy.request((SurfaceView) sActivity.findViewById(R.id.surfaceview), srcRect, dest); in takeScreenshot()
/cts/tools/dasm/src/java_cup/
Dterminal_set.java172 BitSet copy = (BitSet)_elements.clone(); in add() local
178 return !_elements.equals(copy); in add()
192 BitSet copy = (BitSet)other._elements.clone(); in intersects() local
195 copy.xor(this._elements); in intersects()
198 return !copy.equals(other._elements); in intersects()
/cts/hostsidetests/devicepolicy/app/DeviceOwner/src/com/android/cts/deviceowner/
DSystemUpdatePolicyTest.java312 final ValidationFailedException copy = in testWriteValidationFailedExceptionToParcel()
315 assertThat(copy).isNotNull(); in testWriteValidationFailedExceptionToParcel()
316 assertThat(e.getErrorCode()).isEqualTo(copy.getErrorCode()); in testWriteValidationFailedExceptionToParcel()
317 assertThat(e.getMessage()).isEqualTo(copy.getMessage()); in testWriteValidationFailedExceptionToParcel()
322 SystemUpdatePolicy copy) { in assertSystemUpdatePoliciesEqual() argument
323 assertThat(policy.getInstallWindowStart()).isEqualTo(copy.getInstallWindowStart()); in assertSystemUpdatePoliciesEqual()
324 assertThat(policy.getInstallWindowEnd()).isEqualTo(copy.getInstallWindowEnd()); in assertSystemUpdatePoliciesEqual()
325 assertFreezePeriodListsEqual(policy.getFreezePeriods(), copy.getFreezePeriods()); in assertSystemUpdatePoliciesEqual()
326 assertThat(policy.getPolicyType()).isEqualTo(copy.getPolicyType()); in assertSystemUpdatePoliciesEqual()
330 List<FreezePeriod> copy) { in assertFreezePeriodListsEqual() argument
[all …]
/cts/tests/tests/view/src/android/view/cts/
DMotionEventTest.java744 PointerCoords copy = new PointerCoords(coords); in testPointerCoordsCopyConstructor() local
745 assertEquals(1f, copy.x, 0.0f); in testPointerCoordsCopyConstructor()
746 assertEquals(2f, copy.y, 0.0f); in testPointerCoordsCopyConstructor()
747 assertEquals(3f, copy.pressure, 0.0f); in testPointerCoordsCopyConstructor()
748 assertEquals(4f, copy.size, 0.0f); in testPointerCoordsCopyConstructor()
749 assertEquals(5f, copy.touchMajor, 0.0f); in testPointerCoordsCopyConstructor()
750 assertEquals(6f, copy.touchMinor, 0.0f); in testPointerCoordsCopyConstructor()
751 assertEquals(7f, copy.toolMajor, 0.0f); in testPointerCoordsCopyConstructor()
752 assertEquals(8f, copy.toolMinor, 0.0f); in testPointerCoordsCopyConstructor()
753 assertEquals(9f, copy.orientation, 0.0f); in testPointerCoordsCopyConstructor()
[all …]
/cts/tests/tests/os/src/android/os/cts/
DFileUtilsTest.java67 FileUtils.copy(in, out); in testCopyByteStream()
75 FileUtils.copy(in, out); in testCopyFileStream()
85 FileUtils.copy(in, out, null, executor, (progress) -> { in testCopyFileStreamListener()
96 FileUtils.copy(in.getFD(), out.getFD()); in testCopyFileDescriptor()
106 FileUtils.copy(in.getFD(), out.getFD(), null, executor, (progress) -> { in testCopyFileDescriptorListener()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dget_allocation.rs8 int __attribute__((kernel)) copy(int in) {
14 rsForEach(copy, alloc_in, alloc_out);
/cts/tests/tests/bionic/
DAndroid.mk56 include $(LOCAL_PATH)/Android.build.copy.libs.mk
60 include $(LOCAL_PATH)/Android.build.copy.libs.mk
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DHardwareBitmapTests.java194 assertNull(b.copy(Bitmap.Config.HARDWARE, false)); in testBitmapConfigFromA8()
305 Bitmap hwBitmap = bitmap.copy(Bitmap.Config.HARDWARE, false); in testHardwareExtractAlpha()
324 Bitmap copy = bitmap.copy(to, false); in testBitmapCopy() local
325 assertNotNull(copy); in testBitmapCopy()
326 assertEquals(to, copy.getConfig()); in testBitmapCopy()
327 canvas.drawBitmap(copy, 0, 0, null); in testBitmapCopy()
/cts/tests/openglperf2/jni/reference/scene/flocking/
DBoid.cpp37 Vector2D tmp = mPosition.copy(); in flock()
70 Vector2D desired = cohesion.copy(); in flock()
/cts/tests/autofillservice/src/android/autofillservice/cts/
DAbstractAutoFillActivity.java100 final SynchronousPixelCopy copy = new SynchronousPixelCopy(); in takeScreenshot() local
101 final int copyResult = copy.request(getWindow(), srcRect, dest); in takeScreenshot()
/cts/tests/openglperf2/jni/graphics/
DVector2D.h21 Vector2D copy();
DVector2D.cpp26 Vector2D Vector2D::copy() { in copy() function in Vector2D
/cts/tests/signature/api-check/
DAndroid.mk26 $(eval $(call copy-one-file,$(INTERNAL_PLATFORM_HIDDENAPI_FLAGS),$(LOCAL_BUILT_MODULE)))
/cts/tests/tests/media/src/android/media/cts/
DAudioHelper.java531 ByteBuffer copy = audioBuffer.duplicate(); in read() local
532 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read()
533 Assert.assertEquals(bytes, mTrack.write(copy, bytes, AudioTrack.WRITE_BLOCKING)); in read()
548 ByteBuffer copy = audioBuffer.duplicate(); in read() local
549 copy.position(0).limit(bytes); // read places data at the start of the buffer. in read()
550 Assert.assertEquals(bytes, mTrack.write(copy, bytes, AudioTrack.WRITE_BLOCKING)); in read()
/cts/tests/tests/view/surfacevalidator/src/android/view/cts/surfacevalidator/
DSurfacePixelValidator2.java84 .copy(Bitmap.Config.ARGB_8888, false);
95 Bitmap swBitmap = hwBitmap.copy(Bitmap.Config.ARGB_8888, false); in getPixels()
/cts/tests/tests/transition/src/android/transition/cts/
DFadeTest.java152 Bitmap copy = bitmap.copy(Bitmap.Config.ARGB_8888, false); in testFadeOutTransition()
153 Bitmap expected = redSquareBitmap.copy(Bitmap.Config.ARGB_8888, false); in testFadeOutTransition()
154 verifySimilar(expected, copy, 0.95); in testFadeOutTransition()
/cts/tests/tests/print/src/android/print/cts/
DPageRangeAdjustAndVerify.java201 File copy = File.createTempFile("tmp", ".pdf", getActivity().getFilesDir()); in adjustPageRangeAndVerifyPages()
202 Log.i(LOG_TAG, "File is " + copy); in adjustPageRangeAndVerifyPages()
205 FileOutputStream out = new FileOutputStream(copy)) { in adjustPageRangeAndVerifyPages()
222 try (PdfRenderer renderer = new PdfRenderer(ParcelFileDescriptor.open(copy, in adjustPageRangeAndVerifyPages()
/cts/apps/CameraITS/pymodules/its/
Dcv2image.py63 return cv2.resize(img.copy(), dim, interpolation=cv2.INTER_AREA)
69 img_gray = img.copy()
72 img_gray = img[:, :, 0].copy()
274 img = numpy.array(input_img, copy=True)
/cts/tests/tests/provider/src/android/provider/cts/
DMediaStore_DownloadsTest.java130 FileUtils.copy(in, out); in testScannedMediaDownload()
235 android.os.FileUtils.copy(in, out); in testUpdateDownload()
271 android.os.FileUtils.copy(in, out); in testDeleteDownload()
311 android.os.FileUtils.copy(in, out); in testNotifyChange()
341 FileUtils.copy(in, out); in insertImage()
/cts/build/
Dcompatibility_test_suite.mk52 $(eval $(call copy-one-file,$(LOCAL_PATH)/DynamicConfig.xml,$(dynamic_config_local)))

12345678910>>...106