/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | AImageDecoderTest.java | 346 Bitmap bm = null; in testDecode10BitHeif() local 350 bm = decode(resId, unpremul); in testDecode10BitHeif() 353 bm = decode(resId, Bitmap.Config.RGB_565); in testDecode10BitHeif() 359 bm = BitmapFactory.decodeStream(getResources().openRawResource(resId), null, opt); in testDecode10BitHeif() 364 assertNotNull(bm); in testDecode10BitHeif() 368 nTestDecode(aimagedecoder, bitmapFormat, unpremul, bm); in testDecode10BitHeif() 383 Bitmap bm = null; in testDecode10BitAvif() local 387 bm = decode(resId, unpremul); in testDecode10BitAvif() 390 bm = decode(resId, Bitmap.Config.RGB_565); in testDecode10BitAvif() 396 bm = BitmapFactory.decodeStream(getResources().openRawResource(resId), null, opt); in testDecode10BitAvif() [all …]
|
D | ImageDecoderTest.java | 268 Bitmap bm = ImageDecoder.decodeBitmap(src, (decoder, info, source) -> { in testDecode10BitHeif() local 271 assertNotNull(bm); in testDecode10BitHeif() 272 assertEquals(4096, bm.getWidth()); in testDecode10BitHeif() 273 assertEquals(3072, bm.getHeight()); in testDecode10BitHeif() 274 assertEquals(expectedConfig, bm.getConfig()); in testDecode10BitHeif() 288 Bitmap bm = decodeUnscaledBitmap(R.raw.avif_yuv_420_10bit, (decoder, info, source) -> { in testDecode10BitAvif() local 291 assertNotNull(bm); in testDecode10BitAvif() 292 assertEquals(120, bm.getWidth()); in testDecode10BitAvif() 293 assertEquals(160, bm.getHeight()); in testDecode10BitAvif() 294 assertEquals(Bitmap.Config.RGBA_1010102, bm.getConfig()); in testDecode10BitAvif() [all …]
|
D | CanvasTest.java | 36 Bitmap bm = Bitmap.createBitmap(100, 100, Bitmap.Config.ARGB_8888); in setup() local 37 mCanvas = new Canvas(bm); in setup()
|
D | BitmapTest.java | 2499 Bitmap bm = Bitmap.createBitmap(10, 10, pair.config); in testNdkFormats() local 2500 assertNotNull(bm); in testNdkFormats() 2501 int nativeFormat = nGetFormat(bm); in testNdkFormats() 2509 Bitmap bm = Bitmap.createBitmap(10, 10, pair.config); in testNdkFormatsHardware() local 2510 bm = bm.copy(Bitmap.Config.HARDWARE, false); in testNdkFormatsHardware() 2513 if (bm == null) { in testNdkFormatsHardware() 2518 int nativeFormat = nGetFormat(bm); in testNdkFormatsHardware() 2551 Bitmap bm = Bitmap.createBitmap(width, height, config, hasAlpha); in testNdkInfo() local 2552 bm.setPremultiplied(premultiplied); in testNdkInfo() 2553 nTestInfo(bm, expectedFormat, width, height, bm.hasAlpha(), in testNdkInfo() [all …]
|
D | BitmapFactoryTest.java | 816 Bitmap bm = BitmapFactory.decodeResource(mRes, R.raw.b78329453, options); in testJpegInfiniteLoop() local 817 assertNotNull(bm); in testJpegInfiniteLoop() 839 Bitmap bm = BitmapFactory.decodeByteArray(bytes, 0, bytes.length, mOpt1); in testDng() local 840 assertNotNull(bm); in testDng() 841 assertEquals(dng.width, bm.getWidth()); in testDng() 842 assertEquals(dng.height, bm.getHeight()); in testDng() 1031 Bitmap bm = BitmapFactory.decodeStream(obtainInputStream(R.raw.heifimage_10bit), null, opt); in testDecode10BitHEIF10BitBitmap() local 1032 assertNotNull(bm); in testDecode10BitHEIF10BitBitmap() 1033 assertEquals(4096, bm.getWidth()); in testDecode10BitHEIF10BitBitmap() 1034 assertEquals(3072, bm.getHeight()); in testDecode10BitHEIF10BitBitmap() [all …]
|
D | BitmapColorSpaceTest.java | 1187 Bitmap bm = ImageDecoder.decodeBitmap(source, (decoder, info, s) -> { in testGrayscaleProfile() local 1190 ColorSpace cs = bm.getColorSpace(); in testGrayscaleProfile() 1219 Bitmap scaledBm = Bitmap.createScaledBitmap(bm, bm.getWidth() / 4, bm.getHeight() / 4, in testGrayscaleProfile()
|
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-1988/ |
D | poc.cpp | 38 SkBitmap bm; in decode() local 39 if (!bm.tryAllocPixels(info)) { in decode() 46 codec->getAndroidPixels(bm.info(), bm.getPixels(), bm.rowBytes(), &options); in decode()
|
/cts/tests/tests/batterysaving/src/android/os/cts/batterysaving/ |
D | ActionChargingTest.java | 96 (bm) -> bm.setChargingStateUpdateDelayMillis(-1)); in resetSetting() 120 (bm) -> bm.setChargingStateUpdateDelayMillis((int) CHARGING_DELAY_MILLIS)); in testActionChargingDeferred_withApi() 130 (bm) -> bm.setChargingStateUpdateDelayMillis((int) CHARGING_DELAY_MILLIS * 100)); in testActionChargingDeferred_withApiThenReset() 132 (bm) -> bm.setChargingStateUpdateDelayMillis(-1)); in testActionChargingDeferred_withApiThenReset()
|
/cts/tests/tests/text/src/android/text/cts/ |
D | BoringLayout_MetricsTest.java | 34 BoringLayout.Metrics bm = new BoringLayout.Metrics(); in testMetrics() local 35 assertNotNull(bm.toString()); in testMetrics()
|
/cts/tests/pdf/module/src/android/graphics/pdf/cts/module/ |
D | Utils.java | 191 Bitmap bm = Bitmap.createBitmap(bmWidth, bmHeight, Bitmap.Config.ARGB_8888); in renderWithTransform() local 197 page.render(bm, clipping, transformation, new RenderParams.Builder( in renderWithTransform() 200 return bm; in renderWithTransform() 206 page.render(bm, clipping, transformation, renderMode); in renderWithTransform() 208 return bm; in renderWithTransform() 491 Bitmap bm = Bitmap.createBitmap(bmWidth, bmHeight, Bitmap.Config.ARGB_8888); in renderPreV() local 492 page.render(bm, destClip, transformation, new RenderParams.Builder( in renderPreV() 494 return bm; in renderPreV() 554 static int[] getColorProbes(@NonNull Bitmap bm) { in getColorProbes() argument 559 probes[row * 4 + column] = bm.getPixel((int) (bm.getWidth() * (column + 0.5) / 4), in getColorProbes() [all …]
|
/cts/tests/ServiceKillTest/src/com/android/cts/servicekilltest/ |
D | ServiceKillTests.java | 198 final BatteryManager bm = in setChargingAndCheck() local 200 logDebug("isCharging " + bm.isCharging() + " target " + charging); in setChargingAndCheck() 202 if (charging != bm.isCharging()) { in setChargingAndCheck() 205 () -> charging == bm.isCharging(), "Setting charging timeout"); in setChargingAndCheck()
|
/cts/common/device-side/device-info/src/com/android/compatibility/common/deviceinfo/ |
D | BiometricsDeviceInfo.java | 120 final BiometricManager bm = getContext().getSystemService(BiometricManager.class); in collectDeviceInfo() local 123 () -> bm != null ? bm.getSensorProperties() : null, TEST_BIOMETRIC in collectDeviceInfo()
|
/cts/tests/AlarmManager/src/android/alarmmanager/cts/ |
D | AppStandbyTests.java | 293 final BatteryManager bm = sContext.getSystemService(BatteryManager.class); in setBatteryCharging() local 300 assertTrue("Battery could not be unplugged", waitUntil(() -> !bm.isCharging(), 5_000)); in setBatteryCharging()
|
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/ |
D | CanvasTests.java | 232 Bitmap bm = getMutableBitmap(); in drawRotatedBitmap() local 233 bm.eraseColor(Color.BLACK); in drawRotatedBitmap() 237 bm.setDensity(canvas.getDensity()); in drawRotatedBitmap() 245 canvas.drawBitmap(bm, 0, 0, aaPaint); in drawRotatedBitmap()
|
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/ |
D | BitmapDrawableTest.java | 570 Bitmap bm = Bitmap.createBitmap(100, 100, Config.ARGB_8888); in testSetBitmap() local 571 bitmapDrawable.setBitmap(bm); in testSetBitmap() 572 assertSame(bm, bitmapDrawable.getBitmap()); in testSetBitmap()
|
D | AnimatedImageDrawableTest.java | 304 Bitmap bm = Bitmap.createBitmap(drawable.getIntrinsicWidth(), drawable.getIntrinsicHeight(), in testLifeCycleSoftware() local 306 Canvas canvas = new Canvas(bm); in testLifeCycleSoftware()
|
/cts/tests/tests/print/src/android/print/cts/ |
D | PrintServicesTest.java | 408 Bitmap bm = BitmapFactory.decodeResource(getActivity().getResources(), 411 mIcon = Icon.createWithBitmap(bm);
|
/cts/tests/camera/src/android/hardware/camera2/cts/ |
D | StillCaptureTest.java | 1070 Bitmap bm[] = new Bitmap[MAX_ALLOCATED_BITMAPS]; in takePictureTestByCamera() local 1072 bm[i] = Bitmap.createBitmap( in takePictureTestByCamera() 1074 assertNotNull("Created bitmap #" + i + " shouldn't be null", bm[i]); in takePictureTestByCamera()
|
/cts/tests/mediapc/src/android/mediapc/cts/ |
D | VideoCodecRequirementsTest.java | 100 Bitmap bm = ImageDecoder.decodeBitmap(src); in decodeAVIF() local
|
/cts/tests/tests/security/res/raw/ |
D | cve_2018_13925.ts | 219 …%Jҥ? ��bI4�����,�`���X!��UqWBJ�]y��L�<��Jk�"���tRy�?�"L2�"�^�6�o�Ǟ���&bm��]�M ��{�mЖ��6��DM[… 4402 …���}&�Mܐ*\���H�G1TKjqHqԿ7�2Z��n����Pi�^- �M&'%�;ޢ[&�4飬&�`a�@�ZN�bm���QD�,k���1�%)Ԏ… 9975 `h�ǹ�T'���M�E�\UCp�g�T��۫bm7z��ژ���ZB��B5֓�rj�{��G����1TG1*�zW-�6��ڦq��n&�hQYbd,M�…
|
D | cve_2019_2244.ts | 218 …%Jҥ? ��bI4�����,�`���X!��UqWBJ�]y��L�<��Jk�"���tRy�?�"L2�"�^�6�o�Ǟ���&bm��]�M ��{�mЖ��6��DM[… 4404 …���}&�Mܐ*\���H�G1TKjqHqԿ7�2Z��n����Pi�^- �M&'%�;ޢ[&�4飬&�`a�@�ZN�bm���QD�,k���1�%)Ԏ… 9981 `h�ǹ�T'���M�E�\UCp�g�T��۫bm7z��ژ���ZB��B5֓�rj�{��G����1TG1*�zW-�6��ڦq��n&�hQYbd,M�…
|
D | cve_2019_2245.ts | 218 …%Jҥ? ��bI4�����,�`���X!��UqWBJ�]y��L�<��Jk�"���tRy�?�"L2�"�^�6�o�Ǟ���&bm��]�M ��{�mЖ��6��DM[… 9875 `h�ǹ�T'���M�E�\UCp�g�T��۫bm7z��ژ���ZB��B5֓�rj�{��G����1TG1*�zW-�6��ڦq��n&�hQYbd,M�…
|