Home
last modified time | relevance | path

Searched refs:originalSize (Results 1 – 6 of 6) sorted by relevance

/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DDisplayMetricsSession.java50 final Size originalSize = mInitialDisplayMetrics.physicalSize; in changeAspectRatio() local
51 final int smaller = Math.min(originalSize.getWidth(), originalSize.getHeight()); in changeAspectRatio()
65 final Size originalSize; in changeDisplayMetrics() local
68 originalSize = mInitialDisplayMetrics.overrideSize; in changeDisplayMetrics()
70 originalSize = mInitialDisplayMetrics.physicalSize; in changeDisplayMetrics()
79 final Size overrideSize = new Size((int)(originalSize.getWidth() * sizeRatio), in changeDisplayMetrics()
80 (int)(originalSize.getHeight() * sizeRatio)); in changeDisplayMetrics()
/cts/tests/framework/base/windowmanager/src/android/server/wm/activity/
DConfigurationCallbacksTest.java170 final Size originalSize = mReportedDisplayMetrics.getSize(); in testDisplayResize() local
172 final int offset = -Math.min(originalSize.getWidth() / 10, originalSize.getHeight() / 10); in testDisplayResize()
173 final int newWidth = originalSize.getWidth() + offset; in testDisplayResize()
174 final int newHeight = originalSize.getHeight() + offset; in testDisplayResize()
201 final Size originalSize = mReportedDisplayMetrics.getSize(); in testDisplayResizeForDisplayBoundsOnly() local
203 final int offset = -Math.min(originalSize.getWidth() / 10, originalSize.getHeight() / 10); in testDisplayResizeForDisplayBoundsOnly()
204 final int newWidth = originalSize.getWidth() + offset; in testDisplayResizeForDisplayBoundsOnly()
205 final int newHeight = originalSize.getHeight() + offset; in testDisplayResizeForDisplayBoundsOnly()
/cts/apps/CtsVerifier/src/com/android/cts/verifier/usb/device/
DUsbDeviceTestActivity.java501 @NonNull UsbEndpoint in, @NonNull UsbEndpoint out, int size, int originalSize, in echoUsbRequestLegacy() argument
520 bufferSent = ByteBuffer.allocateDirect(originalSize); in echoUsbRequestLegacy()
522 bufferSent = ByteBuffer.allocate(originalSize); in echoUsbRequestLegacy()
524 for (int i = 0; i < originalSize; i++) { in echoUsbRequestLegacy()
534 bufferSent.limit(originalSize); in echoUsbRequestLegacy()
538 bufferReceived = ByteBuffer.allocateDirect(originalSize); in echoUsbRequestLegacy()
540 bufferReceived = ByteBuffer.allocate(originalSize); in echoUsbRequestLegacy()
549 bufferReceived.limit(originalSize); in echoUsbRequestLegacy()
637 @NonNull UsbEndpoint out, int originalSize, int sliceStart, int sliceEnd, in echoUsbRequest() argument
656 bufferSent = ByteBuffer.allocateDirect(originalSize); in echoUsbRequest()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapFactoryTest.java430 int originalSize = start.getByteCount(); in testDecodeReuseBasic() local
431 assertEquals(originalSize, start.getAllocationByteCount()); in testDecodeReuseBasic()
438 assertEquals(originalSize, pass.getByteCount()); in testDecodeReuseBasic()
439 assertEquals(originalSize, pass.getAllocationByteCount()); in testDecodeReuseBasic()
572 int originalSize = original.getByteCount(); in testDecodeReuseScaling() local
573 assertEquals(originalSize, original.getAllocationByteCount()); in testDecodeReuseScaling()
580 assertEquals(originalSize, reduced.getAllocationByteCount()); in testDecodeReuseScaling()
581 assertEquals(originalSize, reduced.getByteCount() * 16); in testDecodeReuseScaling()
591 int originalSize = original.getByteCount(); in testDecodeReuseDoubleScaling() local
603 assertEquals(originalSize, doubleScaled.getByteCount()); in testDecodeReuseDoubleScaling()
DImageDecoderTest.java1554 Size originalSize = info.getSize(); in testScaleAndCrop() local
1555 int scaledWidth = originalSize.getWidth() * 2 / 3; in testScaleAndCrop()
1556 int scaledHeight = originalSize.getHeight() * 2 / 3; in testScaleAndCrop()
/cts/tests/camera/src/android/hardware/cts/
DCameraTest.java2472 Size originalSize = parameters.getPreviewSize(); in testInvalidParametersByCamera() local
2481 assertEquals(originalSize, parameters.getPreviewSize()); in testInvalidParametersByCamera()