Home
last modified time | relevance | path

Searched refs:cs (Results 1 – 25 of 97) sorted by relevance

1234

/cts/tests/tests/content/src/android/content/res/cts/
DPluralResourcesTest.java51 CharSequence cs; in testPlurals() local
54 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testPlurals()
56 Log.d(TAG, "english 0 cs=" + cs); in testPlurals()
58 Assert.assertEquals(cs.toString(), "Some dogs"); in testPlurals()
60 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testPlurals()
62 Log.d(TAG, "english 1 cs=" + cs); in testPlurals()
64 Assert.assertEquals(cs.toString(), "A dog"); in testPlurals()
66 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testPlurals()
67 Assert.assertEquals(cs.toString(), "Some dogs"); in testPlurals()
69 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testPlurals()
[all …]
DResourcesTest.java613 CharSequence cs; in testGetQuantityText() local
616 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testGetQuantityText()
617 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
619 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testGetQuantityText()
620 assertEquals("A Czech dog", cs.toString()); in testGetQuantityText()
622 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testGetQuantityText()
623 assertEquals("Few Czech dogs", cs.toString()); in testGetQuantityText()
625 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testGetQuantityText()
626 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
628 cs = res.getQuantityText(R.plurals.plurals_test, 500); in testGetQuantityText()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapColorSpaceTest.java92 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
93 assertNotNull(cs); in createWithColorSpace()
94 assertSame(requested, cs); in createWithColorSpace()
105 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
106 assertNotNull(cs); in createWithColorSpace()
108 assertSame(extendedSrgb, cs); in createWithColorSpace()
110 assertSame(sRGB, cs); in createWithColorSpace()
121 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
122 assertNotNull(cs); in createWithColorSpace()
124 assertSame(linearExtendedSrgb, cs); in createWithColorSpace()
[all …]
DColorSpaceTest.java97 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testName() local
99 assertEquals("Test", cs.getName()); in testName()
120 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testOETF() local
122 assertEquals(0.5, cs.getOetf().applyAsDouble(0.25), 1e-5); in testOETF()
133 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testEOTF() local
135 assertEquals(0.0625, cs.getEotf().applyAsDouble(0.25), 1e-5); in testEOTF()
145 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB); in testRanges() local
147 float m1 = cs.getMinValue(0); in testRanges()
148 float m2 = cs.getMinValue(1); in testRanges()
149 float m3 = cs.getMinValue(2); in testRanges()
[all …]
DBitmapTest.java91 ColorSpace cs = ColorSpace.get(e); in getRgbColorSpaces() local
92 if (cs.getModel() != ColorSpace.Model.RGB) { in getRgbColorSpaces()
95 if (((ColorSpace.Rgb) cs).getTransferParameters() == null) { in getRgbColorSpaces()
98 rgbColorSpaces.add(cs); in getRgbColorSpaces()
779 for (ColorSpace cs : rgbColorSpaces) { in testEraseColorLong()
780 long longColor = Color.convert(srgbColor, cs); in testEraseColorLong()
787 } else if (cs.equals(ColorSpace.get(ColorSpace.Named.SMPTE_C))) { in testEraseColorLong()
791 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
794 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
1131 for (ColorSpace cs : getRgbColorSpaces()) { in testSetColorSpace()
[all …]
DImageDecoderTest.java1624 for (ColorSpace cs : BitmapTest.getRgbColorSpaces()) { in testAlphaPlusSetTargetColorSpace()
1628 decoder.setTargetColorSpace(cs); in testAlphaPlusSetTargetColorSpace()
2202 for (ColorSpace cs : BitmapTest.getRgbColorSpaces()) {
2210 decoder.setTargetColorSpace(cs);
2212 record.checkColorSpace(cs, bm.getColorSpace());
2214 fail("Failed to decode asset " + record.name + " to " + cs + " with " + e);
2239 for (ColorSpace cs : BitmapTest.getRgbColorSpaces()) { in testTargetColorSpaceUpconvert()
2245 decoder.setTargetColorSpace(cs); in testTargetColorSpaceUpconvert()
2254 assertSame(cs, bm.getColorSpace()); in testTargetColorSpaceUpconvert()
2255 if (isExtended(cs)) { in testTargetColorSpaceUpconvert()
[all …]
DPaintTest.java781 ColorSpace cs = ColorSpace.get(e);
787 final long desiredColor = Color.pack(red, green, blue, 1.0f, cs);
2195 ColorSpace cs = ColorSpace.get(e);
2196 if (cs.getModel() != ColorSpace.Model.RGB) {
2199 if (((ColorSpace.Rgb) cs).getTransferParameters() == null) {
2203 final long longColor = Color.convert(srgbColor, cs);
2211 if (cs.equals(ColorSpace.get(ColorSpace.Named.SMPTE_C))) {
2215 ColorUtils.verifyColor("Paint#" + methodName + " mismatch for " + cs, srgbColor,
DColor_ColorLongTest.java429 ColorSpace cs = new ColorSpace.Rgb("mock", primaries, ColorSpace.ILLUMINANT_A, .7); in testConvertFailureUnnamedColorSpace() local
430 Color.convert(Color.BLUE, cs); in testConvertFailureUnnamedColorSpace()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DAnimatedStateListDrawableTest.java83 DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in testAddState() local
84 assertEquals(0, cs.getChildCount()); in testAddState()
95 assertEquals(1, cs.getChildCount()); in testAddState()
99 assertEquals(2, cs.getChildCount()); in testAddState()
105 DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in testAddTransition() local
121 assertEquals(3, cs.getChildCount()); in testAddTransition()
125 assertEquals(4, cs.getChildCount()); in testAddTransition()
129 assertEquals(5, cs.getChildCount()); in testAddTransition()
191 final DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in runPreloadDensityTestForDrawableInner() local
192 final int count = cs.getChildCount(); in runPreloadDensityTestForDrawableInner()
[all …]
DDrawable_ConstantStateTest.java47 ConstantState cs = mock; in testNewDrawable() local
49 assertEquals(null, cs.newDrawable()); in testNewDrawable()
53 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable()
57 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
64 ConstantState cs = new MockConstantState(); in testCanApplyTheme() local
65 assertFalse(cs.canApplyTheme()); in testCanApplyTheme()
DDrawableContainerStateTest.java279 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testCanConstantState() local
280 assertTrue(cs.canConstantState()); in testCanConstantState()
284 cs.addChild(child); in testCanConstantState()
285 assertFalse(cs.canConstantState()); in testCanConstantState()
291 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testGrowArray() local
294 cs.growArray(0, 0); in testGrowArray()
296 cs.getChild(10); in testGrowArray()
302 cs.growArray(0, 10); in testGrowArray()
303 cs.getChild(9); in testGrowArray()
DDrawableContainerTest.java128 DrawableContainerState cs = ((DrawableContainerState) container.getConstantState()); in verifySetEnterFadeDuration() local
130 assertEquals(enterFadeDuration, cs.getEnterFadeDuration()); in verifySetEnterFadeDuration()
141 DrawableContainerState cs = ((DrawableContainerState) container.getConstantState()); in verifySetExitFadeDuration() local
143 assertEquals(exitFadeDuration, cs.getExitFadeDuration()); in verifySetExitFadeDuration()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java522 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSession() local
523 assertFalse(cs == null); in testCryptoSession()
536 CryptoSession cs = md.getCryptoSession(sessionId, "bad", "bad"); in testBadCryptoSession() local
551 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionEncrypt() local
552 assertFalse(cs == null); in testCryptoSessionEncrypt()
561 byte[] output = cs.encrypt(keyId, input, iv); in testCryptoSessionEncrypt()
577 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionDecrypt() local
578 assertFalse(cs == null); in testCryptoSessionDecrypt()
587 byte[] output = cs.decrypt(keyId, input, iv); in testCryptoSessionDecrypt()
603 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionSign() local
[all …]
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java49 ColorSpace cs = ColorSpace.get(ColorSpace.Named.DISPLAY_P3); in testSnapshot() local
50 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Bitmap.Config.ARGB_8888, true, cs); in testSnapshot()
75 assertSame(cs, finalBitmap.getColorSpace()); in testSnapshot()
/cts/libs/vogar-expect/src/vogar/expect/util/
DStrings.java116 private static String escapeCodePoint(CharSequence cs) { in escapeCodePoint() argument
118 for (int i = 0; i < cs.length(); ++i) { in escapeCodePoint()
119 result.append(String.format("U+%04X", (int) cs.charAt(i))); in escapeCodePoint()
/cts/tests/vr/jni/
DVrExtensionsJni.cpp310 static inline float SrgbChannelToLinear(float cs) { in SrgbChannelToLinear() argument
311 if (cs <= 0.04045) in SrgbChannelToLinear()
312 return cs / 12.92f; in SrgbChannelToLinear()
314 return std::pow((cs + 0.055f) / 1.055f, 2.4f); in SrgbChannelToLinear()
317 static inline float LinearChannelToSrgb(float cs) { in LinearChannelToSrgb() argument
318 if (cs <= 0.0f) in LinearChannelToSrgb()
320 else if (cs < 0.0031308f) in LinearChannelToSrgb()
321 return 12.92f * cs; in LinearChannelToSrgb()
322 else if (cs < 1.0f) in LinearChannelToSrgb()
323 return 1.055f * std::pow(cs, 0.41666f) - 0.055f; in LinearChannelToSrgb()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java155 final ColorSpace cs = a.getColorSpace(); in plus() local
156 Assert.assertSame(cs, b.getColorSpace()); in plus()
165 return Color.valueOf(result, cs); in plus()
/cts/tests/tests/text/src/android/text/cts/
DPrecomputedTextTest.java641 private static Bitmap drawToBitmap(@NonNull CharSequence cs, in drawToBitmap() argument
647 paint.getTextBounds(cs.toString(), start, end, rect); in drawToBitmap()
653 c.drawTextRun(cs, start, end, ctxStart, ctxEnd, 0, 0, false /* isRtl */, paint); in drawToBitmap()
658 private static void assertSameOutput(@NonNull CharSequence cs, in assertSameOutput() argument
663 final PrecomputedText pt = PrecomputedText.create(cs, params); in assertSameOutput()
667 final PrecomputedText rtlPt = PrecomputedText.create(cs, rtlParams); in assertSameOutput()
673 final Bitmap originalDrawOutput = drawToBitmap(cs, start, end, ctxStart, ctxEnd, paint); in assertSameOutput()
/cts/tests/ProcessTest/
DAndroid.bp23 "cs",
/cts/tests/tests/content/
DAndroid.bp51 "-c cs",
/cts/tests/tests/location/src/android/location/cts/asn1/base/
DAsn1IA5String.java281 public boolean contains(Charset cs) { in contains() argument
/cts/tests/tests/media/assets/hls_variant/165340/
D13.ts338 ��P��J�ԗ��!��V�4pa��mڨ�"82V�ؠ��������ǯ�&cs�#�~���� �-�O�r ���~�G�8(��������������������…
D14.ts34 …�g��S�qR�}+H�q�͢H��� ��eÌ�Wo����&�"������H�#S�]/§&[G�t�<�7K��*'�!cs&G�5Q���������������…
D03.ts126 …�D�t\c՗�w �(�=%u��=V��#��=T�2ì2,)���J�[�7QpP�Ϻ�V�0{�}����xl�XE���Mcs�����M �Z�:���`H$�Ӫ…
/cts/tests/tests/media/assets/hls_variant/344388/
D13.ts248 …ɰ�1����K��m��cs"|NP�D���#�D����%Oy��>x����� �6n�q�z�Z�s R�c� q���~�: o\��&!�~~��ӱ^o���� E%v^…
830 …v�� ��nϩ� ���XՕe|����P�oWZ�CN!d�i�����߿A0��?oD�)��-�PTS��ټ�0G���5�x��cs|2u�9�����,h\���\…

1234