Home
last modified time | relevance | path

Searched refs:valueOf (Results 1 – 25 of 188) sorted by relevance

12345678

/cts/tests/tests/util/src/android/util/cts/
DHalfTest.java271 assertNotEquals(Half.valueOf(0.0f), Float.valueOf(0.0f)); in equals()
272 assertEquals(Half.valueOf(NaN), Half.valueOf((short) 0x7c01)); // NaN, NaN in equals()
273 assertEquals(Half.valueOf(NaN), Half.valueOf((short) 0xfc98)); // NaN, NaN in equals()
275 assertEquals(Half.valueOf(POSITIVE_INFINITY), Half.valueOf(POSITIVE_INFINITY)); in equals()
276 assertEquals(Half.valueOf(NEGATIVE_INFINITY), Half.valueOf(NEGATIVE_INFINITY)); in equals()
277 assertEquals(Half.valueOf(POSITIVE_ZERO), Half.valueOf(POSITIVE_ZERO)); in equals()
278 assertEquals(Half.valueOf(NEGATIVE_ZERO), Half.valueOf(NEGATIVE_ZERO)); in equals()
279 assertNotEquals(Half.valueOf(POSITIVE_ZERO), Half.valueOf(NEGATIVE_ZERO)); in equals()
280 assertNotEquals(Half.valueOf(NaN), Half.valueOf(12.4f)); in equals()
281 assertNotEquals(Half.valueOf(12.4f), Half.valueOf(NaN)); in equals()
[all …]
/cts/tests/tests/location/src/android/location/cts/
DTestMeasurementUtil.java147 String.valueOf(timeInNs), in assertGnssClockFields()
158 String.valueOf(gpsTimeInNs), in assertGnssClockFields()
197 String.valueOf(fullBiasNanosList.get(i) - fullBiasNanos), in assertGnssClockHasConsistentFullBiasNanos()
224 String.valueOf(state), in assertAllGnssMeasurementMandatoryFields()
232 String.valueOf(measurement.getReceivedSvTimeUncertaintyNanos()), in assertAllGnssMeasurementMandatoryFields()
240 String.valueOf(measurement.getTimeOffsetNanos()), in assertAllGnssMeasurementMandatoryFields()
246 String.valueOf(measurement.getCn0DbHz()), in assertAllGnssMeasurementMandatoryFields()
254 String.valueOf( in assertAllGnssMeasurementMandatoryFields()
267 String.valueOf(measurement.getCarrierPhase()), in assertAllGnssMeasurementMandatoryFields()
277 String.valueOf(measurement.getCarrierPhaseUncertainty()), in assertAllGnssMeasurementMandatoryFields()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DNetworkInfo_DetailedStateTest.java26 assertEquals(DetailedState.AUTHENTICATING, DetailedState.valueOf("AUTHENTICATING")); in testValueOf()
27 assertEquals(DetailedState.CONNECTED, DetailedState.valueOf("CONNECTED")); in testValueOf()
28 assertEquals(DetailedState.CONNECTING, DetailedState.valueOf("CONNECTING")); in testValueOf()
29 assertEquals(DetailedState.DISCONNECTED, DetailedState.valueOf("DISCONNECTED")); in testValueOf()
30 assertEquals(DetailedState.DISCONNECTING, DetailedState.valueOf("DISCONNECTING")); in testValueOf()
31 assertEquals(DetailedState.FAILED, DetailedState.valueOf("FAILED")); in testValueOf()
32 assertEquals(DetailedState.IDLE, DetailedState.valueOf("IDLE")); in testValueOf()
33 assertEquals(DetailedState.OBTAINING_IPADDR, DetailedState.valueOf("OBTAINING_IPADDR")); in testValueOf()
34 assertEquals(DetailedState.SCANNING, DetailedState.valueOf("SCANNING")); in testValueOf()
35 assertEquals(DetailedState.SUSPENDED, DetailedState.valueOf("SUSPENDED")); in testValueOf()
DNetworkInfo_StateTest.java25 assertEquals(State.CONNECTED, State.valueOf("CONNECTED")); in testValueOf()
26 assertEquals(State.CONNECTING, State.valueOf("CONNECTING")); in testValueOf()
27 assertEquals(State.DISCONNECTED, State.valueOf("DISCONNECTED")); in testValueOf()
28 assertEquals(State.DISCONNECTING, State.valueOf("DISCONNECTING")); in testValueOf()
29 assertEquals(State.SUSPENDED, State.valueOf("SUSPENDED")); in testValueOf()
30 assertEquals(State.UNKNOWN, State.valueOf("UNKNOWN")); in testValueOf()
DLocalSocketAddress_NamespaceTest.java25 assertEquals(Namespace.ABSTRACT, Namespace.valueOf("ABSTRACT")); in testValueOf()
26 assertEquals(Namespace.RESERVED, Namespace.valueOf("RESERVED")); in testValueOf()
27 assertEquals(Namespace.FILESYSTEM, Namespace.valueOf("FILESYSTEM")); in testValueOf()
/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrix_ScaleToFitTest.java43 assertEquals(ScaleToFit.FILL,ScaleToFit.valueOf("FILL")); in testValueOf()
44 assertEquals(ScaleToFit.START,ScaleToFit.valueOf("START")); in testValueOf()
45 assertEquals(ScaleToFit.CENTER,ScaleToFit.valueOf("CENTER")); in testValueOf()
46 assertEquals(ScaleToFit.END,ScaleToFit.valueOf("END") ); in testValueOf()
51 assertEquals(ScaleToFit.FILL, ScaleToFit.valueOf(ScaleToFit.class, "FILL")); in testValueOf2()
52 assertEquals(ScaleToFit.START, ScaleToFit.valueOf(ScaleToFit.class, "START")); in testValueOf2()
53 assertEquals(ScaleToFit.CENTER, ScaleToFit.valueOf(ScaleToFit.class, "CENTER")); in testValueOf2()
54 assertEquals(ScaleToFit.END, ScaleToFit.valueOf(ScaleToFit.class, "END")); in testValueOf2()
DColor_ColorLongTest.java27 import static android.graphics.Color.valueOf;
107 assertTrue(Color.valueOf(0.5f, 0.7f, 1.0f).isSrgb()); in testIsSrgb()
108 assertFalse(Color.valueOf(0.5f, 0.7f, 1.0f, 1.0f, p3).isSrgb()); in testIsSrgb()
118 assertFalse(Color.valueOf(0.5f, 0.7f, 1.0f).isWideGamut()); in testIsWideGamut()
119 assertTrue(Color.valueOf(0.5f, 0.7f, 1.0f, 1.0f, p3).isWideGamut()); in testIsWideGamut()
134 Color color1 = valueOf(0x7fff00ff); in testValueOf()
141 Color color2 = valueOf(0.5f, 0.7f, 1.0f); in testValueOf()
148 Color color3 = valueOf(0.5f, 0.5f, 1.0f, 0.25f); in testValueOf()
155 Color color4 = valueOf(0.5f, 0.5f, 1.0f, 0.25f, p3); in testValueOf()
163 Color color5 = valueOf(pack(0.5f, 0.5f, 1.0f, 0.25f, p3)); in testValueOf()
[all …]
DRegion_OpTest.java34 assertEquals(Op.DIFFERENCE, Op.valueOf("DIFFERENCE")); in testValueOf()
35 assertEquals(Op.INTERSECT, Op.valueOf("INTERSECT")); in testValueOf()
36 assertEquals(Op.UNION, Op.valueOf("UNION")); in testValueOf()
37 assertEquals(Op.XOR, Op.valueOf("XOR")); in testValueOf()
38 assertEquals(Op.REVERSE_DIFFERENCE, Op.valueOf("REVERSE_DIFFERENCE")); in testValueOf()
39 assertEquals(Op.REPLACE, Op.valueOf("REPLACE")); in testValueOf()
DBitmap_ConfigTest.java36 assertEquals(Config.ALPHA_8, Config.valueOf("ALPHA_8")); in testValueOf()
37 assertEquals(Config.RGB_565, Config.valueOf("RGB_565")); in testValueOf()
38 assertEquals(Config.ARGB_4444, Config.valueOf("ARGB_4444")); in testValueOf()
39 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888")); in testValueOf()
40 assertEquals(Config.RGBA_F16, Config.valueOf("RGBA_F16")); in testValueOf()
DPath_FillTypeTest.java34 assertEquals(FillType.WINDING, FillType.valueOf("WINDING")); in testValueOf()
35 assertEquals(FillType.EVEN_ODD, FillType.valueOf("EVEN_ODD")); in testValueOf()
36 assertEquals(FillType.INVERSE_WINDING, FillType.valueOf("INVERSE_WINDING")); in testValueOf()
37 assertEquals(FillType.INVERSE_EVEN_ODD, FillType.valueOf("INVERSE_EVEN_ODD")); in testValueOf()
DBlurMaskFilter_BlurTest.java35 assertEquals(Blur.NORMAL, Blur.valueOf("NORMAL")); in testValueOf()
36 assertEquals(Blur.SOLID, Blur.valueOf("SOLID")); in testValueOf()
37 assertEquals(Blur.OUTER, Blur.valueOf("OUTER")); in testValueOf()
38 assertEquals(Blur.INNER, Blur.valueOf("INNER")); in testValueOf()
DInterpolator_ResultTest.java34 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); in testValueOf()
35 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); in testValueOf()
36 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); in testValueOf()
DShader_TileModeTest.java34 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); in testValueOf()
35 assertEquals(TileMode.MIRROR, TileMode.valueOf("MIRROR")); in testValueOf()
36 assertEquals(TileMode.REPEAT, TileMode.valueOf("REPEAT")); in testValueOf()
DPathDashPathEffect_StyleTest.java34 assertEquals(Style.TRANSLATE, Style.valueOf("TRANSLATE")); in testValueOf()
35 assertEquals(Style.ROTATE, Style.valueOf("ROTATE")); in testValueOf()
36 assertEquals(Style.MORPH, Style.valueOf("MORPH")); in testValueOf()
DPaint_AlignTest.java35 assertEquals(Align.LEFT, Align.valueOf("LEFT")); in testValueOf()
36 assertEquals(Align.CENTER, Align.valueOf("CENTER")); in testValueOf()
37 assertEquals(Align.RIGHT, Align.valueOf("RIGHT")); in testValueOf()
DPaint_JoinTest.java35 assertEquals(Join.BEVEL, Join.valueOf("BEVEL")); in testValueOf()
36 assertEquals(Join.MITER, Join.valueOf("MITER")); in testValueOf()
37 assertEquals(Join.ROUND, Join.valueOf("ROUND")); in testValueOf()
DPaint_CapTest.java35 assertEquals(Cap.BUTT, Cap.valueOf("BUTT")); in testValueOf()
36 assertEquals(Cap.ROUND, Cap.valueOf("ROUND")); in testValueOf()
37 assertEquals(Cap.SQUARE, Cap.valueOf("SQUARE")); in testValueOf()
DPaint_StyleTest.java35 assertEquals(Style.FILL, Style.valueOf("FILL")); in testValueOf()
36 assertEquals(Style.STROKE, Style.valueOf("STROKE")); in testValueOf()
37 assertEquals(Style.FILL_AND_STROKE, Style.valueOf("FILL_AND_STROKE")); in testValueOf()
/cts/tests/tests/content/src/android/content/cts/
DIntentFilter_AuthorityEntryTest.java34 mAuthorityEntry = new AuthorityEntry(mHost, String.valueOf(mPort)); in setUp()
38 mAuthorityEntry = new AuthorityEntry(mHost, String.valueOf(mPort)); in testConstructor()
43 mAuthorityEntry = new AuthorityEntry(mWildHost, String.valueOf(mPort)); in testConstructor()
46 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testConstructor()
50 assertEquals(Integer.valueOf(mPort).intValue(), mAuthorityEntry.getPort()); in testAuthorityEntryProperties()
60 mAuthorityEntry = new IntentFilter.AuthorityEntry(mWildHost, String.valueOf(-1)); in testMatch()
63 mAuthorityEntry = new IntentFilter.AuthorityEntry(mHost, String.valueOf(-1)); in testMatch()
67 mAuthorityEntry = new AuthorityEntry(mHost, String.valueOf(-1)); in testMatch()
71 mAuthorityEntry = new AuthorityEntry(mHost, String.valueOf(mPort)); in testMatch()
75 mAuthorityEntry = new AuthorityEntry(mHost, String.valueOf(-1)); in testMatch()
/cts/tests/app/src/android/app/cts/
DWallpaperColorsTest.java43 colorList.add(Color.valueOf(Color.WHITE)); in getWallpaperColorsTest()
44 colorList.add(Color.valueOf(Color.BLACK)); in getWallpaperColorsTest()
45 colorList.add(Color.valueOf(Color.GREEN)); in getWallpaperColorsTest()
56 WallpaperColors colors1 = new WallpaperColors(Color.valueOf(Color.BLACK), null, null); in equalsTest()
57 WallpaperColors colors2 = new WallpaperColors(Color.valueOf(Color.WHITE), null, null); in equalsTest()
63 WallpaperColors colors3 = new WallpaperColors(Color.valueOf(Color.BLACK), null, null); in equalsTest()
69 WallpaperColors wallpaperColors = new WallpaperColors(Color.valueOf(Color.WHITE), in parcelTest()
70 Color.valueOf(Color.BLACK), Color.valueOf(Color.GREEN)); in parcelTest()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DElementTest.java436 assertEquals(DataType.FLOAT_16, DataType.valueOf("FLOAT_16")); in testDataType()
437 assertEquals(DataType.FLOAT_32, DataType.valueOf("FLOAT_32")); in testDataType()
438 assertEquals(DataType.FLOAT_64, DataType.valueOf("FLOAT_64")); in testDataType()
439 assertEquals(DataType.SIGNED_8, DataType.valueOf("SIGNED_8")); in testDataType()
440 assertEquals(DataType.SIGNED_16, DataType.valueOf("SIGNED_16")); in testDataType()
441 assertEquals(DataType.SIGNED_32, DataType.valueOf("SIGNED_32")); in testDataType()
442 assertEquals(DataType.SIGNED_64, DataType.valueOf("SIGNED_64")); in testDataType()
443 assertEquals(DataType.UNSIGNED_8, DataType.valueOf("UNSIGNED_8")); in testDataType()
444 assertEquals(DataType.UNSIGNED_16, DataType.valueOf("UNSIGNED_16")); in testDataType()
445 assertEquals(DataType.UNSIGNED_32, DataType.valueOf("UNSIGNED_32")); in testDataType()
[all …]
DSamplerTest.java124 assertEquals(Value.NEAREST, Value.valueOf("NEAREST")); in testSamplerValue()
125 assertEquals(Value.LINEAR, Value.valueOf("LINEAR")); in testSamplerValue()
126 assertEquals(Value.LINEAR_MIP_LINEAR, Value.valueOf("LINEAR_MIP_LINEAR")); in testSamplerValue()
127 assertEquals(Value.LINEAR_MIP_NEAREST, Value.valueOf("LINEAR_MIP_NEAREST")); in testSamplerValue()
128 assertEquals(Value.WRAP, Value.valueOf("WRAP")); in testSamplerValue()
129 assertEquals(Value.CLAMP, Value.valueOf("CLAMP")); in testSamplerValue()
130 assertEquals(Value.MIRRORED_REPEAT, Value.valueOf("MIRRORED_REPEAT")); in testSamplerValue()
DTypeTest.java177 assertEquals(Type.CubemapFace.NEGATIVE_X, Type.CubemapFace.valueOf("NEGATIVE_X")); in testTypeCubemapFace()
178 assertEquals(Type.CubemapFace.NEGATIVE_Y, Type.CubemapFace.valueOf("NEGATIVE_Y")); in testTypeCubemapFace()
179 assertEquals(Type.CubemapFace.NEGATIVE_Z, Type.CubemapFace.valueOf("NEGATIVE_Z")); in testTypeCubemapFace()
180 assertEquals(Type.CubemapFace.POSITIVE_X, Type.CubemapFace.valueOf("POSITIVE_X")); in testTypeCubemapFace()
181 assertEquals(Type.CubemapFace.POSITIVE_Y, Type.CubemapFace.valueOf("POSITIVE_Y")); in testTypeCubemapFace()
182 assertEquals(Type.CubemapFace.POSITIVE_Z, Type.CubemapFace.valueOf("POSITIVE_Z")); in testTypeCubemapFace()
184 assertEquals(Type.CubemapFace.POSITVE_X, Type.CubemapFace.valueOf("POSITVE_X")); in testTypeCubemapFace()
185 assertEquals(Type.CubemapFace.POSITVE_Y, Type.CubemapFace.valueOf("POSITVE_Y")); in testTypeCubemapFace()
186 assertEquals(Type.CubemapFace.POSITVE_Z, Type.CubemapFace.valueOf("POSITVE_Z")); in testTypeCubemapFace()
/cts/tests/tests/uirendering/src/android/uirendering/cts/testclasses/
DWideColorGamutTests.java66 Color.valueOf(0.937f, 0.000f, 0.000f, 1.0f, DISPLAY_P3).convert(SCRGB),
67 Color.valueOf(1.000f, 0.000f, 0.000f, 1.0f, DISPLAY_P3).convert(SCRGB),
68 Color.valueOf(0.918f, 0.200f, 0.137f, 1.0f, DISPLAY_P3).convert(SCRGB)
143 final Color greenP3 = Color.valueOf(0, 1.0f, 0, 1.0f, DISPLAY_P3); in testCanvasDrawColorLong()
165 return Color.valueOf(result, cs); in plus()
170 final Color greenP3 = Color.valueOf(0, 1.0f, 0, 1.0f, DISPLAY_P3); in testCanvasDrawColorLongBlendMode()
171 final Color redP3 = Color.valueOf(1.0f, 0, 0, 1.0f, DISPLAY_P3); in testCanvasDrawColorLongBlendMode()
199 Color blueProPhoto = Color.valueOf(0, 0, 1, 1, in testProPhoto()
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DRippleDrawableTest.java59 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testConstructor()
65 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testAccessRadius()
95 ColorStateList.valueOf(Color.BLACK), null, null); in verifyPreloadDensityInner()
130 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testSetColor()
133 dr.setColor(ColorStateList.valueOf(Color.BLACK)); in testSetColor()

12345678