Home
last modified time | relevance | path

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

12

/cts/tests/tests/content/src/android/content/res/cts/
DPluralResourcesTest.java65 CharSequence cs; in testPlurals() local
68 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testPlurals()
70 Log.d(TAG, "english 0 cs=" + cs); in testPlurals()
72 Assert.assertEquals(cs.toString(), "Some dogs"); in testPlurals()
74 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testPlurals()
76 Log.d(TAG, "english 1 cs=" + cs); in testPlurals()
78 Assert.assertEquals(cs.toString(), "A dog"); in testPlurals()
80 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testPlurals()
81 Assert.assertEquals(cs.toString(), "Some dogs"); in testPlurals()
83 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testPlurals()
[all …]
DResourcesTest.java858 CharSequence cs; in testGetQuantityText() local
861 cs = res.getQuantityText(R.plurals.plurals_test, 0); in testGetQuantityText()
862 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
864 cs = res.getQuantityText(R.plurals.plurals_test, 1); in testGetQuantityText()
865 assertEquals("A Czech dog", cs.toString()); in testGetQuantityText()
867 cs = res.getQuantityText(R.plurals.plurals_test, 2); in testGetQuantityText()
868 assertEquals("Few Czech dogs", cs.toString()); in testGetQuantityText()
870 cs = res.getQuantityText(R.plurals.plurals_test, 5); in testGetQuantityText()
871 assertEquals("Some Czech dogs", cs.toString()); in testGetQuantityText()
873 cs = res.getQuantityText(R.plurals.plurals_test, 500); in testGetQuantityText()
[all …]
/cts/tests/tests/notification/src/android/app/notification/current/cts/
DConversationStatusTest.java49 final ConversationStatus cs = in testCreation() local
58 assertEquals("id", cs.getId()); in testCreation()
59 assertEquals(ACTIVITY_GAME, cs.getActivity()); in testCreation()
60 assertEquals(AVAILABILITY_BUSY, cs.getAvailability()); in testCreation()
61 assertEquals(100, cs.getStartTimeMillis()); in testCreation()
62 assertEquals(1000, cs.getEndTimeMillis()); in testCreation()
63 assertEquals(android.R.drawable.btn_default, cs.getIcon().getResId()); in testCreation()
64 assertEquals("playing chess", cs.getDescription().toString()); in testCreation()
76 ConversationStatus cs = ConversationStatus.CREATOR.createFromParcel(parcel); in testParcelEmpty() local
78 assertEquals("id", cs.getId()); in testParcelEmpty()
[all …]
DPeopleManagerTest.java227 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_GAME) in testAddOrUpdateStatus_withExpiration() local
231 mPeopleManager.addOrUpdateStatus(SHARE_SHORTCUT_ID, cs); in testAddOrUpdateStatus_withExpiration()
235 assertTrue(statuses.contains(cs)); in testAddOrUpdateStatus_withExpiration()
244 ConversationStatus cs = new ConversationStatus.Builder("id", ACTIVITY_GAME) in testAddOrUpdateStatus_add() local
247 mPeopleManager.addOrUpdateStatus(SHARE_SHORTCUT_ID, cs); in testAddOrUpdateStatus_add()
251 assertTrue(statuses.contains(cs)); in testAddOrUpdateStatus_add()
256 ConversationStatus.Builder cs = new ConversationStatus.Builder("id", ACTIVITY_GAME) in testAddOrUpdateStatus_update() local
258 mPeopleManager.addOrUpdateStatus(SHARE_SHORTCUT_ID, cs.build()); in testAddOrUpdateStatus_update()
261 assertTrue(statuses.contains(cs.build())); in testAddOrUpdateStatus_update()
263 cs.setStartTimeMillis(100).setDescription("Playing chess"); in testAddOrUpdateStatus_update()
[all …]
/cts/tests/tests/graphics/src/android/graphics/cts/
DBitmapColorSpaceTest.java95 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
96 assertNotNull(cs); in createWithColorSpace()
97 assertSame(requested, cs); in createWithColorSpace()
108 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
109 assertNotNull(cs); in createWithColorSpace()
111 assertSame(extendedSrgb, cs); in createWithColorSpace()
113 assertSame(sRGB, cs); in createWithColorSpace()
124 ColorSpace cs = b.getColorSpace(); in createWithColorSpace() local
125 assertNotNull(cs); in createWithColorSpace()
127 assertSame(linearExtendedSrgb, cs); in createWithColorSpace()
[all …]
DColorSpaceTest.java121 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testName() local
123 assertEquals("Test", cs.getName()); in testName()
144 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testOETF() local
146 assertEquals(0.5, cs.getOetf().applyAsDouble(0.25), 1e-5); in testOETF()
157 ColorSpace.Rgb cs = new ColorSpace.Rgb("Test", new float[6], new float[2], in testEOTF() local
159 assertEquals(0.0625, cs.getEotf().applyAsDouble(0.25), 1e-5); in testEOTF()
169 ColorSpace cs = ColorSpace.get(ColorSpace.Named.SRGB); in testRanges() local
171 float m1 = cs.getMinValue(0); in testRanges()
172 float m2 = cs.getMinValue(1); in testRanges()
173 float m3 = cs.getMinValue(2); in testRanges()
[all …]
DBitmapTest.java104 ColorSpace cs = ColorSpace.get(e); in getRgbColorSpaces() local
105 if (cs.getModel() != ColorSpace.Model.RGB) { in getRgbColorSpaces()
108 if (((ColorSpace.Rgb) cs).getTransferParameters() == null) { in getRgbColorSpaces()
111 rgbColorSpaces.add(cs); in getRgbColorSpaces()
1044 for (ColorSpace cs : rgbColorSpaces) { in testEraseColorLong()
1045 long longColor = Color.convert(srgbColor, cs); in testEraseColorLong()
1052 } else if (cs.equals(ColorSpace.get(ColorSpace.Named.SMPTE_C))) { in testEraseColorLong()
1056 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
1059 ColorUtils.verifyColor("Config " + config + ", ColorSpace " + cs in testEraseColorLong()
1396 for (ColorSpace cs : getRgbColorSpaces()) { in testSetColorSpace()
[all …]
DImageDecoderTest.java1826 for (ColorSpace cs : BitmapTest.getRgbColorSpaces()) { in testAlphaPlusSetTargetColorSpace()
1830 decoder.setTargetColorSpace(cs); in testAlphaPlusSetTargetColorSpace()
2503 for (ColorSpace cs : BitmapTest.getRgbColorSpaces()) {
2506 if (record.isF16 || isExtended(cs)) {
2511 decoder.setTargetColorSpace(cs);
2513 record.checkColorSpace(cs, bm.getColorSpace());
2515 fail("Failed to decode asset " + record.name + " to " + cs + " with " + e);
2528 for (ColorSpace cs : new ColorSpace[] { EXTENDED_SRGB, LINEAR_EXTENDED_SRGB }) { in testTargetColorSpaceNoF16HARDWARE()
2531 decoder.setTargetColorSpace(cs); in testTargetColorSpaceNoF16HARDWARE()
2537 if (actual != cs) { in testTargetColorSpaceNoF16HARDWARE()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
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()
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 …]
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()
/cts/tests/videocodec/src/android/videocodec/cts/
DVideoEncoderPsnrTest.java125 CompareStreams cs = null; in testPsnr() local
129 cs = new CompareStreams(res, mMediaType, mMuxedOutputFile, true, mIsLoopBack); in testPsnr()
130 final ArrayList<double[]> framesPSNR = cs.getFramesPSNR(); in testPsnr()
142 final double[] avgPSNR = cs.getAvgPSNR(); in testPsnr()
151 if (cs != null) cs.cleanUp(); in testPsnr()
DVideoEncoderMultiResTest.java173 CompareStreams cs = null; in testMultiRes() local
177 cs = new CompareStreams(res, mMediaType, mMuxedOutputFile, true, mIsLoopBack); in testMultiRes()
178 final double[] minPSNR = cs.getMinimumPSNR(); in testMultiRes()
189 if (cs != null) cs.cleanUp(); in testMultiRes()
DVideoEncoderQualityRegressionTestBase.java147 CompareStreams cs = null; in getQualityRegressionForCfgs() local
149 cs = new CompareStreams(res, mediaType, in getQualityRegressionForCfgs()
151 final double[] globalPSNR = cs.getGlobalPSNR(); in getQualityRegressionForCfgs()
156 if (cs != null) cs.cleanUp(); in getQualityRegressionForCfgs()
DVideoEncoderMinMaxTest.java290 CompareStreams cs = null; in testMinMaxSupport() local
294 cs = new CompareStreams(res, mMediaType, mMuxedOutputFile, true, mIsLoopBack); in testMinMaxSupport()
295 final double[] minPSNR = cs.getMinimumPSNR(); in testMinMaxSupport()
306 if (cs != null) cs.cleanUp(); in testMinMaxSupport()
DVideoDecodeEditEncodeTest.java727 CompareStreams cs = null; in testVideoEdit() local
729 cs = new CompareStreams(mMediaType, tmpPathA, mMediaType, tmpPathB, false, false); in testVideoEdit()
730 double[] avgPSNR = cs.getAvgPSNR(); in testVideoEdit()
737 if (cs != null) cs.cleanUp(); in testVideoEdit()
/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/tests/tests/media/drmframework/src/android/media/drmframework/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/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/tests/telecom/SelfManagedCSTestAppOne/
DAndroid.bp25 ":self-managed-cs-app-srcs",
26 ":self-managed-cs-app-aidl",
/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/telephony/current/src/android/telephony/gba/cts/
DUaSecurityProtocolIdentifierTest.java236 Integer id, Integer cs, boolean nullExpected) {
245 if (cs != null) {
246 builder.setTlsCipherSuite(cs);
/cts/tests/media/common/src/android/mediav2/common/cts/
DCodecEncoderTestBase.java181 CompareStreams cs = new CompareStreams(inpMediaType, inpFile, outMediaType, outFile, in validateEncodedPSNR() local
183 validateEncodedPSNR(cs.getFramesPSNR(), perFramePsnrThreshold); in validateEncodedPSNR()
184 cs.cleanUp(); in validateEncodedPSNR()
190 CompareStreams cs = new CompareStreams(inp, outMediaType, outFile, allowInpResize, in validateEncodedPSNR() local
192 validateEncodedPSNR(cs.getFramesPSNR(), perFramePsnrThreshold); in validateEncodedPSNR()
193 cs.cleanUp(); in validateEncodedPSNR()
/cts/tests/sample/
DREADME11 …<https://cs.android.com/android/platform/superproject/+/master:cts/tools/cts-tradefed/tests/src/co…

12