/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() 114 WallpaperColors wallpaperColors = new WallpaperColors(Color.valueOf(Color.WHITE), in wallpaperColorsHints_default() 115 Color.valueOf(Color.BLACK), Color.valueOf(Color.GREEN)); in wallpaperColorsHints_default() [all …]
|
/cts/tests/location/common/src/android/location/cts/common/ |
D | TestMeasurementUtil.java | 156 String.valueOf(timeInNs), in assertGnssClockFields() 167 String.valueOf(gpsTimeInNs), in assertGnssClockFields() 206 String.valueOf(fullBiasNanosList.get(i) - fullBiasNanos), in assertGnssClockHasConsistentFullBiasNanos() 233 String.valueOf(state), in assertAllGnssMeasurementMandatoryFields() 241 String.valueOf(measurement.getReceivedSvTimeUncertaintyNanos()), in assertAllGnssMeasurementMandatoryFields() 249 String.valueOf(measurement.getTimeOffsetNanos()), in assertAllGnssMeasurementMandatoryFields() 255 String.valueOf(measurement.getCn0DbHz()), in assertAllGnssMeasurementMandatoryFields() 263 String.valueOf( in assertAllGnssMeasurementMandatoryFields() 276 String.valueOf(measurement.getCarrierPhase()), in assertAllGnssMeasurementMandatoryFields() 286 String.valueOf(measurement.getCarrierPhaseUncertainty()), in assertAllGnssMeasurementMandatoryFields() [all …]
|
/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_CompressFormatTest.java | 38 assertEquals(CompressFormat.JPEG, CompressFormat.valueOf("JPEG")); in testValueOf() 39 assertEquals(CompressFormat.PNG, CompressFormat.valueOf("PNG")); in testValueOf() 40 assertEquals(CompressFormat.WEBP, CompressFormat.valueOf("WEBP")); in testValueOf() 41 assertEquals(CompressFormat.WEBP_LOSSY, CompressFormat.valueOf("WEBP_LOSSY")); in testValueOf() 42 assertEquals(CompressFormat.WEBP_LOSSLESS, CompressFormat.valueOf("WEBP_LOSSLESS")); 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 | 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() 37 assertEquals(TileMode.DECAL, TileMode.valueOf("DECAL")); 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 | 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_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_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()
|
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_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 | Canvas_VertexModeTest.java | 37 assertEquals(VertexMode.TRIANGLES, VertexMode.valueOf("TRIANGLES")); in testValueOf() 38 assertEquals(VertexMode.TRIANGLE_STRIP, VertexMode.valueOf("TRIANGLE_STRIP")); in testValueOf() 39 assertEquals(VertexMode.TRIANGLE_FAN, VertexMode.valueOf("TRIANGLE_FAN")); in testValueOf()
|
/cts/tests/tests/util/src/android/util/cts/ |
D | HalfTest.java | 294 assertNotEquals(Half.valueOf(0.0f), Float.valueOf(0.0f)); in equals() 295 assertEquals(Half.valueOf(NaN), Half.valueOf((short) 0x7c01)); // NaN, NaN in equals() 296 assertEquals(Half.valueOf(NaN), Half.valueOf((short) 0xfc98)); // NaN, NaN in equals() 298 assertEquals(Half.valueOf(POSITIVE_INFINITY), Half.valueOf(POSITIVE_INFINITY)); in equals() 299 assertEquals(Half.valueOf(NEGATIVE_INFINITY), Half.valueOf(NEGATIVE_INFINITY)); in equals() 300 assertEquals(Half.valueOf(POSITIVE_ZERO), Half.valueOf(POSITIVE_ZERO)); in equals() 301 assertEquals(Half.valueOf(NEGATIVE_ZERO), Half.valueOf(NEGATIVE_ZERO)); in equals() 302 assertNotEquals(Half.valueOf(POSITIVE_ZERO), Half.valueOf(NEGATIVE_ZERO)); in equals() 303 assertNotEquals(Half.valueOf(NaN), Half.valueOf(12.4f)); in equals() 304 assertNotEquals(Half.valueOf(12.4f), Half.valueOf(NaN)); in equals() [all …]
|
/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/tests/graphics/src/android/graphics/drawable/cts/ |
D | RippleDrawableTest.java | 50 private static final ColorStateList DEFAULT_EFFECT_COLOR = ColorStateList.valueOf(0x8dffffff); 60 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testConstructor() 66 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testAccessRadius() 93 new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testEffectColor() 95 drawable.setEffectColor(ColorStateList.valueOf(Color.BLUE)); in testEffectColor() 96 assertEquals(ColorStateList.valueOf(Color.BLUE), drawable.getEffectColor()); in testEffectColor() 103 assertEquals(ColorStateList.valueOf(Color.YELLOW), drawable.getEffectColor()); in testEffectColorInflation() 112 ColorStateList.valueOf(Color.BLACK), null, null); in verifyPreloadDensityInner() 147 RippleDrawable dr = new RippleDrawable(ColorStateList.valueOf(Color.RED), null, null); in testSetColor() 150 dr.setColor(ColorStateList.valueOf(Color.BLACK)); in testSetColor()
|
/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
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 | 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 | 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/contactsprovider/src/android/provider/cts/contacts/ |
D | CallLogProviderTest.java | 54 values.put(CallLog.Calls.DATE, Long.valueOf(0 /*start time*/)); in testNoSubqueries() 55 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testNoSubqueries() 76 values.put(CallLog.Calls.DATE, Long.valueOf(0 /*start time*/)); in testUpdate() 77 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testUpdate() 95 values.put(CallLog.Calls.DURATION, Long.valueOf(6 /*call duration*/)); in testUpdate() 126 values.put(CallLog.Calls.DATE, Long.valueOf(0 /*start time*/)); in testDelete() 127 values.put(CallLog.Calls.DURATION, Long.valueOf(5 /*call duration*/)); in testDelete()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | CodecUtils.java | 184 Color left_top = Color.valueOf(bitmap.getPixel(10, 10)); in VerifyFrameRotationFromBitmap() 185 Color right_top = Color.valueOf(bitmap.getPixel(310, 10)); in VerifyFrameRotationFromBitmap() 186 Color left_bottom = Color.valueOf(bitmap.getPixel(10, 230)); in VerifyFrameRotationFromBitmap() 187 Color right_bottom = Color.valueOf(bitmap.getPixel(310, 230)); in VerifyFrameRotationFromBitmap() 203 Color left_top = Color.valueOf(bitmap.getPixel(10, 10)); in VerifyFrameRotationFromBitmap() 204 Color right_top = Color.valueOf(bitmap.getPixel(230, 10)); in VerifyFrameRotationFromBitmap() 205 Color left_bottom = Color.valueOf(bitmap.getPixel(10, 310)); in VerifyFrameRotationFromBitmap() 206 Color right_bottom = Color.valueOf(bitmap.getPixel(230, 310)); in VerifyFrameRotationFromBitmap()
|