Home
last modified time | relevance | path

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

/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.java604 CharSequence cs; in testGetQuantityText() local
607 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testGetQuantityText()
608 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
610 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testGetQuantityText()
611 assertEquals("A Czech dog", cs.toString()); in testGetQuantityText()
613 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testGetQuantityText()
614 assertEquals("Few Czech dogs", cs.toString()); in testGetQuantityText()
616 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testGetQuantityText()
617 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
619 cs = res.getQuantityText(R.plurals.plurals_test, 500); in testGetQuantityText()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapColorSpaceTest.java69 ColorSpace cs; in createWithColorSpace() local
75 cs = b.getColorSpace(); in createWithColorSpace()
76 assertNotNull(cs); in createWithColorSpace()
77 assertSame(sRGB, cs); in createWithColorSpace()
81 cs = b.getColorSpace(); in createWithColorSpace()
82 assertNotNull(cs); in createWithColorSpace()
83 assertSame(ColorSpace.get(ColorSpace.Named.ADOBE_RGB), cs); in createWithColorSpace() local
86 cs = b.getColorSpace(); in createWithColorSpace()
87 assertNotNull(cs); in createWithColorSpace()
88 assertSame(ColorSpace.get(ColorSpace.Named.LINEAR_EXTENDED_SRGB), cs); in createWithColorSpace() local
[all …]
DColorSpaceTest.java96 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testName() local
98 assertEquals("Test", cs.getName()); in testName()
119 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testOETF() local
121 assertEquals(0.5, cs.getOetf().applyAsDouble(0.25), 1e-5); in testOETF()
132 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testEOTF() local
134 assertEquals(0.0625, cs.getEotf().applyAsDouble(0.25), 1e-5); in testEOTF()
144 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB); in testRanges() local
146 float m1 = cs.getMinValue(0); in testRanges()
147 float m2 = cs.getMinValue(1); in testRanges()
148 float m3 = cs.getMinValue(2); in testRanges()
[all …]
DImageDecoderTest.java2090 for (ColorSpace cs : new ColorSpace[] {
2113 decoder.setTargetColorSpace(cs);
2115 record.checkColorSpace(cs, bm.getColorSpace());
2117 fail("Failed to decode asset " + record.name + " to " + cs + " with " + e);
2126 for (ColorSpace cs : new ColorSpace[] { in testTargetColorSpaceNonRGB()
2133 decoder.setTargetColorSpace(cs); in testTargetColorSpaceNonRGB()
2136 + cs + ")!"); in testTargetColorSpaceNonRGB()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawable_ConstantStateTest.java46 ConstantState cs = mock; in testNewDrawable() local
48 assertEquals(null, cs.newDrawable()); in testNewDrawable()
52 assertEquals(null, cs.newDrawable(resources)); in testNewDrawable()
56 assertEquals(null, cs.newDrawable(resources, context.getTheme())); in testNewDrawable()
63 ConstantState cs = new MockConstantState(); in testCanApplyTheme() local
64 assertFalse(cs.canApplyTheme()); in testCanApplyTheme()
DAnimatedStateListDrawableTest.java82 DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in testAddState() local
83 assertEquals(0, cs.getChildCount()); in testAddState()
94 assertEquals(1, cs.getChildCount()); in testAddState()
98 assertEquals(2, cs.getChildCount()); in testAddState()
104 DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in testAddTransition() local
120 assertEquals(3, cs.getChildCount()); in testAddTransition()
124 assertEquals(4, cs.getChildCount()); in testAddTransition()
128 assertEquals(5, cs.getChildCount()); in testAddTransition()
190 final DrawableContainerState cs = (DrawableContainerState) asld.getConstantState(); in runPreloadDensityTestForDrawableInner() local
191 final int count = cs.getChildCount(); in runPreloadDensityTestForDrawableInner()
[all …]
DDrawableContainerStateTest.java278 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testCanConstantState() local
279 assertTrue(cs.canConstantState()); in testCanConstantState()
283 cs.addChild(child); in testCanConstantState()
284 assertFalse(cs.canConstantState()); in testCanConstantState()
290 DrawableContainerState cs = (DrawableContainerState) dr.getConstantState(); in testGrowArray() local
293 cs.growArray(0, 0); in testGrowArray()
295 cs.getChild(10); in testGrowArray()
301 cs.growArray(0, 10); in testGrowArray()
302 cs.getChild(9); in testGrowArray()
DDrawableContainerTest.java124 DrawableContainerState cs = ((DrawableContainerState) container.getConstantState()); in verifySetEnterFadeDuration() local
126 assertEquals(enterFadeDuration, cs.getEnterFadeDuration()); in verifySetEnterFadeDuration()
137 DrawableContainerState cs = ((DrawableContainerState) container.getConstantState()); in verifySetExitFadeDuration() local
139 assertEquals(exitFadeDuration, cs.getExitFadeDuration()); in verifySetExitFadeDuration()
/cts/tests/tests/media/src/android/media/cts/
DMediaDrmMockTest.java516 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSession() local
517 assertFalse(cs == null); in testCryptoSession()
530 CryptoSession cs = md.getCryptoSession(sessionId, "bad", "bad"); in testBadCryptoSession() local
545 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionEncrypt() local
546 assertFalse(cs == null); in testCryptoSessionEncrypt()
555 byte[] output = cs.encrypt(keyId, input, iv); in testCryptoSessionEncrypt()
571 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionDecrypt() local
572 assertFalse(cs == null); in testCryptoSessionDecrypt()
581 byte[] output = cs.decrypt(keyId, input, iv); in testCryptoSessionDecrypt()
597 CryptoSession cs = md.getCryptoSession(sessionId, "AES/CBC/NoPadding", "HmacSHA256"); in testCryptoSessionSign() local
[all …]
/cts/libs/vogar-expect/src/vogar/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/ProcessTest/
DAndroid.mk23 LOCAL_AAPT_FLAGS = -c xx_YY -c cs
/cts/tests/vr/jni/
DVrExtensionsJni.cpp296 static inline float SrgbChannelToLinear(float cs) { in SrgbChannelToLinear() argument
297 if (cs <= 0.04045) in SrgbChannelToLinear()
298 return cs / 12.92f; in SrgbChannelToLinear()
300 return std::pow((cs + 0.055f) / 1.055f, 2.4f); in SrgbChannelToLinear()
303 static inline float LinearChannelToSrgb(float cs) { in LinearChannelToSrgb() argument
304 if (cs <= 0.0f) in LinearChannelToSrgb()
306 else if (cs < 0.0031308f) in LinearChannelToSrgb()
307 return 12.92f * cs; in LinearChannelToSrgb()
308 else if (cs < 1.0f) in LinearChannelToSrgb()
309 return 1.055f * std::pow(cs, 0.41666f) - 0.055f; in LinearChannelToSrgb()
/cts/tests/tests/content/
DAndroid.mk50 -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/
DfileSequence1.ts128 …�����D$�f�vl E�Lj�T·R`�8��\@(�,7��[ E�q�X$B ��k� ��\�Nu*�:�C��h��e89G� ��cs[��fm� �8�(X
Dsegment000000.ts2799 �N2�y���âP KI��X�a�dQ�A�3.P[���塄ߎi��R0%H��.1�x�/�a�T3�����C�Ԃk�l����$^�i�G�cs]�ޝ��j…
/cts/tests/libcore/javautilcollections/libs/
Dguava-20.0.jarMETA-INF/MANIFEST.MF META-INF/ META-INF/maven/ META- ...