Home
last modified time | relevance | path

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

12345

/cts/tests/tests/graphics/src/android/graphics/cts/
DMatrix_ScaleToFitTest.java34 assertEquals(ScaleToFit.FILL,ScaleToFit.valueOf("FILL")); in testValueOf()
35 assertEquals( ScaleToFit.START,ScaleToFit.valueOf("START")); in testValueOf()
36 assertEquals( ScaleToFit.CENTER,ScaleToFit.valueOf("CENTER")); in testValueOf()
37 assertEquals(ScaleToFit.END,ScaleToFit.valueOf("END") ); in testValueOf()
41 assertEquals(ScaleToFit.FILL, ScaleToFit.valueOf(ScaleToFit.class, in testValueOf2()
43 assertEquals(ScaleToFit.START, ScaleToFit.valueOf(ScaleToFit.class, in testValueOf2()
45 assertEquals(ScaleToFit.CENTER, ScaleToFit.valueOf(ScaleToFit.class, in testValueOf2()
48 .valueOf(ScaleToFit.class, "END")); in testValueOf2()
DRegion_OpTest.java26 assertEquals(Op.DIFFERENCE, Op.valueOf("DIFFERENCE")); in testValueOf()
27 assertEquals(Op.INTERSECT, Op.valueOf("INTERSECT")); in testValueOf()
28 assertEquals(Op.UNION, Op.valueOf("UNION")); in testValueOf()
29 assertEquals(Op.XOR, Op.valueOf("XOR")); in testValueOf()
30 assertEquals(Op.REVERSE_DIFFERENCE, Op.valueOf("REVERSE_DIFFERENCE")); in testValueOf()
31 assertEquals(Op.REPLACE, Op.valueOf("REPLACE")); in testValueOf()
DPath_FillTypeTest.java26 assertEquals(FillType.WINDING, FillType.valueOf("WINDING")); in testValueOf()
27 assertEquals(FillType.EVEN_ODD, FillType.valueOf("EVEN_ODD")); in testValueOf()
28 assertEquals(FillType.INVERSE_WINDING, FillType.valueOf("INVERSE_WINDING")); in testValueOf()
29 assertEquals(FillType.INVERSE_EVEN_ODD, FillType.valueOf("INVERSE_EVEN_ODD")); in testValueOf()
DBlurMaskFilter_BlurTest.java25 assertEquals(Blur.NORMAL, Blur.valueOf("NORMAL")); in testValueOf()
26 assertEquals(Blur.SOLID, Blur.valueOf("SOLID")); in testValueOf()
27 assertEquals(Blur.OUTER, Blur.valueOf("OUTER")); in testValueOf()
28 assertEquals(Blur.INNER, Blur.valueOf("INNER")); in testValueOf()
DBitmap_ConfigTest.java25 assertEquals(Config.ALPHA_8, Config.valueOf("ALPHA_8")); in testValueOf()
26 assertEquals(Config.RGB_565, Config.valueOf("RGB_565")); in testValueOf()
27 assertEquals(Config.ARGB_4444, Config.valueOf("ARGB_4444")); in testValueOf()
28 assertEquals(Config.ARGB_8888, Config.valueOf("ARGB_8888")); in testValueOf()
DShader_TileModeTest.java26 assertEquals(TileMode.CLAMP, TileMode.valueOf("CLAMP")); in testValueOf()
27 assertEquals(TileMode.MIRROR, TileMode.valueOf("MIRROR")); in testValueOf()
28 assertEquals(TileMode.REPEAT, TileMode.valueOf("REPEAT")); in testValueOf()
DInterpolator_ResultTest.java27 assertEquals(Result.FREEZE_START, Result.valueOf("FREEZE_START")); in testValueOf()
28 assertEquals(Result.FREEZE_END, Result.valueOf("FREEZE_END")); in testValueOf()
29 assertEquals(Result.NORMAL, Result.valueOf("NORMAL")); in testValueOf()
DPathDashPathEffect_StyleTest.java27 assertEquals(Style.TRANSLATE, Style.valueOf("TRANSLATE")); in testValueOf()
28 assertEquals(Style.ROTATE, Style.valueOf("ROTATE")); in testValueOf()
29 assertEquals(Style.MORPH, Style.valueOf("MORPH")); in testValueOf()
DPaint_CapTest.java27 assertEquals(Cap.BUTT, Cap.valueOf("BUTT")); in testValueOf()
28 assertEquals(Cap.ROUND, Cap.valueOf("ROUND")); in testValueOf()
29 assertEquals(Cap.SQUARE, Cap.valueOf("SQUARE")); in testValueOf()
DPaint_AlignTest.java26 assertEquals(Align.LEFT, Align.valueOf("LEFT")); in testValueOf()
27 assertEquals(Align.CENTER, Align.valueOf("CENTER")); in testValueOf()
28 assertEquals(Align.RIGHT, Align.valueOf("RIGHT")); in testValueOf()
DPaint_JoinTest.java26 assertEquals(Join.BEVEL, Join.valueOf("BEVEL")); in testValueOf()
27 assertEquals(Join.MITER, Join.valueOf("MITER")); in testValueOf()
28 assertEquals(Join.ROUND, Join.valueOf("ROUND")); in testValueOf()
DPaint_StyleTest.java26 assertEquals(Style.FILL, Style.valueOf("FILL")); in testValueOf()
27 assertEquals(Style.STROKE, Style.valueOf("STROKE")); in testValueOf()
28 assertEquals(Style.FILL_AND_STROKE, Style.valueOf("FILL_AND_STROKE")); in testValueOf()
DBitmap_CompressFormatTest.java28 assertEquals(CompressFormat.JPEG, CompressFormat.valueOf("JPEG")); in testValueOf()
29 assertEquals(CompressFormat.PNG, CompressFormat.valueOf("PNG")); in testValueOf()
30 assertEquals(CompressFormat.WEBP, CompressFormat.valueOf("WEBP")); in testValueOf()
DCanvas_VertexModeTest.java28 assertEquals(VertexMode.TRIANGLES, VertexMode.valueOf("TRIANGLES")); in testValueOf()
29 assertEquals(VertexMode.TRIANGLE_STRIP, VertexMode.valueOf("TRIANGLE_STRIP")); in testValueOf()
30 assertEquals(VertexMode.TRIANGLE_FAN, VertexMode.valueOf("TRIANGLE_FAN")); in testValueOf()
/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/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/tests/widget/src/android/widget/cts/
DTimePickerTest.java105 mTimePicker.setCurrentHour(Integer.valueOf(initialHour)); in testSetOnTimeChangedListener()
106 mTimePicker.setCurrentMinute(Integer.valueOf(initialMinute)); in testSetOnTimeChangedListener()
112 mTimePicker.setCurrentHour(Integer.valueOf(initialHour)); in testSetOnTimeChangedListener()
115 mTimePicker.setCurrentHour(Integer.valueOf(initialHour + 1)); in testSetOnTimeChangedListener()
146 assertEquals(Integer.valueOf(0), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
149 assertEquals(Integer.valueOf(12), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
152 assertEquals(Integer.valueOf(13), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
155 assertEquals(Integer.valueOf(23), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
161 assertEquals(Integer.valueOf(0), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
164 assertEquals(Integer.valueOf(13), mTimePicker.getCurrentHour()); in testAccessCurrentHour()
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/
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()
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 …]
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/text/src/android/text/cts/
DSpannedStringTest.java35 SpannedString spanned = SpannedString.valueOf(text); in testValueOf()
39 assertSame(spanned, SpannedString.valueOf(spanned)); in testValueOf()
42 SpannedString.valueOf(null); in testValueOf()
/cts/tests/tests/net/src/android/net/wifi/cts/
DNsdManagerTest.java151 if (DBG) Log.d(TAG, callbackName + " failed with " + String.valueOf(errorCode)); in setEvent()
186 if (DBG) Log.d(TAG, "Waiting for " + callbackName + ", id=" + String.valueOf(mWaitId)); in waitForCallback()
197 if (DBG) Log.d(TAG, "exiting wait id=" + String.valueOf(mWaitId)); in waitForCallback()
207 if (DBG) Log.d(TAG, "timed out waiting id=" + String.valueOf(mWaitId)); in waitForCallback()
216 if (DBG) Log.d(TAG, "Waiting for a bit, id=" + String.valueOf(mWaitId)); in waitForNewEvents()
248 mServiceName = mServiceName + String.valueOf(rand.nextInt(10)); in setUp()
279 if (DBG) Log.d(TAG, "Port = " + String.valueOf(localPort)); in runTest()
323 if (DBG) Log.d(TAG, "id = " + String.valueOf(mWaitId) + ": ServiceName = " + in runTest()
353 if (DBG) Log.d(TAG, "id = " + String.valueOf(mWaitId) + ": Port = " + in runTest()
354 String.valueOf(lastEvent.mInfo.getPort())); in runTest()
[all …]
/cts/tests/tests/text/src/android/text/method/cts/
DTextMethodUtils.java36 Assert.assertEquals(String.valueOf(expected), String.valueOf(actual)); in assertEquals()

12345