/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 271 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/ |
D | TestMeasurementUtil.java | 147 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/ |
D | NetworkInfo_DetailedStateTest.java | 26 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()
|
D | NetworkInfo_StateTest.java | 25 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()
|
D | LocalSocketAddress_NamespaceTest.java | 25 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/ |
D | Matrix_ScaleToFitTest.java | 43 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()
|
D | Color_ColorLongTest.java | 27 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 …]
|
D | Region_OpTest.java | 34 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()
|
D | Bitmap_ConfigTest.java | 36 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()
|
D | Path_FillTypeTest.java | 34 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()
|
D | BlurMaskFilter_BlurTest.java | 35 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()
|
D | Interpolator_ResultTest.java | 34 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()
|
D | Shader_TileModeTest.java | 34 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()
|
D | PathDashPathEffect_StyleTest.java | 34 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()
|
D | Paint_AlignTest.java | 35 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()
|
D | Paint_JoinTest.java | 35 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()
|
D | Paint_CapTest.java | 35 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()
|
D | Paint_StyleTest.java | 35 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/ |
D | IntentFilter_AuthorityEntryTest.java | 34 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/ |
D | WallpaperColorsTest.java | 43 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/ |
D | ElementTest.java | 436 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 …]
|
D | SamplerTest.java | 124 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()
|
D | TypeTest.java | 177 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/ |
D | WideColorGamutTests.java | 66 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/ |
D | RippleDrawableTest.java | 59 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()
|