Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 289) sorted by relevance

12345678910>>...12

/cts/tools/signature-tools/src/signature/io/html/
DExecutableMemberComparator.java72 private String getTypeName(ITypeReference type) { in getTypeName() argument
73 if (type instanceof IClassReference) { in getTypeName()
74 return getTypeName(((IClassReference) type).getClassDefinition()); in getTypeName()
76 if (type instanceof ITypeVariableReference) { in getTypeName()
77 return getTypeName(((ITypeVariableReference) type) in getTypeName()
80 if (type instanceof IParameterizedType) { in getTypeName()
81 return getTypeName(((IParameterizedType) type).getRawType()); in getTypeName()
83 if (type instanceof IArrayType) { in getTypeName()
84 return getTypeName(((IArrayType) type).getComponentType()); in getTypeName()
86 if (type instanceof IPrimitiveType) { in getTypeName()
[all …]
/cts/tests/tests/graphics/src/android/graphics/drawable/cts/
DDrawableTestUtils.java36 int type; in skipCurrentTag() local
37 while ((type=parser.next()) != XmlPullParser.END_DOCUMENT in skipCurrentTag()
38 && (type != XmlPullParser.END_TAG in skipCurrentTag()
55 int type; in getAttributeSet() local
56 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
57 && type != XmlPullParser.START_TAG) { in getAttributeSet()
64 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
65 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttributeSet()
66 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttributeSet()
72 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttributeSet()
[all …]
/cts/tests/tests/drm/src/android/drm/cts/
DDrmEventTest.java149 int type = DrmInfoEvent.TYPE_RIGHTS_INSTALLED; in createDrmEvent() local
151 return new DrmInfoEvent(id, type, msg); in createDrmEvent()
153 return new DrmInfoEvent(id, type, msg, attributes); in createDrmEvent()
156 int type = DrmErrorEvent.TYPE_NOT_SUPPORTED; in createDrmEvent() local
158 return new DrmErrorEvent(id, type, msg); in createDrmEvent()
160 return new DrmErrorEvent(id, type, msg, attributes); in createDrmEvent()
194 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument
195 DrmInfoEvent infoEvent = new DrmInfoEvent(0, type, ""); in checkValidInfoType()
196 assertEquals(infoEvent.getType(), type); in checkValidInfoType() local
199 private static void checkValidErrorType(int type) throws Exception { in checkValidErrorType() argument
[all …]
DDrmInfoRequestTest.java113 private static void checkGetInfoType(int type) throws Exception { in checkGetInfoType() argument
114 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkGetInfoType()
115 assertEquals(request.getInfoType(), type); in checkGetInfoType() local
118 private static void checkInvalidInfoType(int type) throws Exception { in checkInvalidInfoType() argument
120 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkInvalidInfoType()
121 fail("Info type " + type + " was accepted for DrmInfoRequest"); in checkInvalidInfoType()
127 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument
128 DrmInfoRequest request = new DrmInfoRequest(type, DEFAULT_MIME); in checkValidInfoType()
DDrmInfoTest.java137 private static void checkGetInfoType(int type) throws Exception { in checkGetInfoType() argument
138 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkGetInfoType()
139 assertEquals(info.getInfoType(), type); in checkGetInfoType() local
142 private static void checkInvalidInfoType(int type) throws Exception { in checkInvalidInfoType() argument
144 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkInvalidInfoType()
145 fail("Info type " + type + " was accepted for DrmInfo"); in checkInvalidInfoType()
151 private static void checkValidInfoType(int type) throws Exception { in checkValidInfoType() argument
152 DrmInfo info = new DrmInfo(type, DEFAULT_DATA, DEFAULT_MIME); in checkValidInfoType()
/cts/common/util/src/com/android/compatibility/common/util/
DReportLog.java56 private Result(String message, double[] values, ResultType type, in Result() argument
65 mType = type; in Result()
93 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
94 mDetails.add(new Result(message, values, type, unit, 0)); in addValues()
100 public void addValues(String message, double[] values, ResultType type, in addValues() argument
102 mDetails.add(new Result(message, values, type, unit, depth)); in addValues()
108 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument
109 mDetails.add(new Result(message, new double[] {value}, type, unit, 0)); in addValue()
115 public void addValue(String message, double value, ResultType type, in addValue() argument
117 mDetails.add(new Result(message, new double[] {value}, type, unit, depth)); in addValue()
[all …]
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java77 mNetworks.put(n.type, n); in setUp()
133 for (int type = -1; type <= ConnectivityManager.MAX_NETWORK_TYPE+1; type++) { in testGetNetworkInfo()
134 if (isSupported(type)) { in testGetNetworkInfo()
135 NetworkInfo ni = mCm.getNetworkInfo(type); in testGetNetworkInfo()
136 assertTrue("Info shouldn't be null for " + type, ni != null); in testGetNetworkInfo()
138 assertTrue("Bad state for " + type, State.UNKNOWN.ordinal() >= state.ordinal() in testGetNetworkInfo()
141 assertTrue("Bad detailed state for " + type, in testGetNetworkInfo()
145 assertNull("Info should be null for " + type, mCm.getNetworkInfo(type)); in testGetNetworkInfo()
153 for (int type = 0; type <= ConnectivityManager.MAX_NETWORK_TYPE; type++) { in testGetAllNetworkInfo()
154 int desiredFoundCount = (isSupported(type) ? 1 : 0); in testGetAllNetworkInfo()
[all …]
/cts/tools/signature-tools/src/signature/compare/model/subst/
DViewpointAdapter.java85 ITypeReference type = original; in substitutedTypeReference() local
86 if (type instanceof IClassReference) { in substitutedTypeReference()
89 } else if (type instanceof IPrimitiveType) { in substitutedTypeReference()
90 return type; in substitutedTypeReference()
91 } else if (type instanceof IArrayType) { in substitutedTypeReference()
92 return new ArrayTypeProjection((IArrayType) type, mappings); in substitutedTypeReference()
93 } else if (type instanceof IParameterizedType) { in substitutedTypeReference()
94 return new ParameterizedTypeProjection((IParameterizedType) type, in substitutedTypeReference()
96 } else if (type instanceof IWildcardType) { in substitutedTypeReference()
97 return new WildcardTypeProjection((IWildcardType) type, mappings); in substitutedTypeReference()
[all …]
/cts/tests/tests/net/src/android/net/rtp/cts/
DAudioCodecTest.java23 private void assertEquals(AudioCodec codec, int type, String rtpmap, String fmtp) { in assertEquals() argument
24 if (type >= 0) { in assertEquals()
25 assertEquals(codec.type, type); in assertEquals()
27 assertTrue(codec.type >= 96 && codec.type <= 127); in assertEquals()
40 assertFalse(AudioCodec.AMR.type == AudioCodec.GSM_EFR.type); in testConstants()
69 assertFalse(types[codec.type]); in testGetCodecs()
70 types[codec.type] = true; in testGetCodecs()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java46 public void printArray(String message, double[] values, ResultType type, ResultUnit unit) { in printArray() argument
47 doPrintArray(message, values, type, unit); in printArray()
53 public void printValue(String message, double value, ResultType type, ResultUnit unit) { in printValue() argument
55 doPrintArray(message, vals, type, unit); in printValue()
58 private void doPrintArray(String message, double[] values, ResultType type, ResultUnit unit) { in doPrintArray() argument
63 LOG_ELEM_SEPARATOR + type.getXmlString() + LOG_ELEM_SEPARATOR + in doPrintArray()
86 ResultType type, ResultUnit unit) { in printSummaryWithTarget() argument
87 mSummary = message + LOG_ELEM_SEPARATOR + target + LOG_ELEM_SEPARATOR + type.getXmlString() in printSummaryWithTarget()
90 if (type == ResultType.HIGHER_BETTER) { in printSummaryWithTarget()
92 } else if (type == ResultType.LOWER_BETTER) { in printSummaryWithTarget()
[all …]
/cts/tools/signature-tools/src/signature/model/impl/
DSigParameter.java28 private ITypeReference type; field in SigParameter
30 public SigParameter(ITypeReference type) { in SigParameter() argument
31 this.type = type; in SigParameter()
35 return type; in getType()
DSigParameterizedType.java65 public static int hashCode(IParameterizedType type) { in hashCode() argument
68 result = prime * type.getRawType().hashCode(); in hashCode()
69 result = prime * result + type.getTypeArguments().hashCode(); in hashCode()
109 public static String toString(IParameterizedType type) { in toString() argument
111 if (type.getOwnerType() != null) { in toString()
112 builder.append(type.getOwnerType().toString()); in toString()
115 builder.append(type.getRawType()); in toString()
117 builder.append(ModelUtil.separate(type.getTypeArguments(), ", ")); in toString()
DSigAnnotation.java31 private IClassReference type; field in SigAnnotation
38 return type; in getType()
41 public void setType(IClassReference type) { in setType() argument
42 this.type = type; in setType()
DSigField.java32 private ITypeReference type = Uninitialized.unset(); field in SigField
53 return type; in getType()
56 public void setType(ITypeReference type) { in setType() argument
57 this.type = type; in setType()
/cts/suite/audio_quality/lib/src/
DGenericFactory.cpp26 TaskGeneric* GenericFactory::createTask(TaskGeneric::TaskType type) in createTask() argument
29 switch(type) { in createTask()
57 task = new TaskGeneric(type); in createTask()
66 LOGE("GenericFactory::createTask unsupported type %d", type); in createTask()
69 LOGD("GenericFactory::createTask 0x%x, type %d", task, type); in createTask()
DSettings.cpp37 void Settings::addSetting(SettingType type, const android::String8 setting) in addSetting() argument
39 mSettings[type] = setting; in addSetting()
41 const android::String8& Settings::getSetting(SettingType type) in getSetting() argument
43 return mSettings[type]; in getSetting()
DSignalProcessingImpl.cpp180 int32_t type; in run() local
181 if (!read((char*)&type, sizeof(type))) { in run()
193 *buffer = new Buffer(dataLen, dataLen, (type == EAudioStereo) ? true: false); in run()
201 if (((type == EAudioStereo) && isStereo) || ((type == EAudioMono) && !isStereo)) { in run()
204 LOGE("%d-th output wrong type %d stereo: %d", i, type, isStereo); in run()
222 if ((type == EValue64Int) || (type == EValueDouble)) { in run()
227 if (type == EValue64Int) { in run()
233 LOGE("wrong type %d", type); in run()
/cts/tests/tests/opengl/src/android/opengl/cts/
DOpenGLES20ActivityTwo.java50 public void setView(int type, int i, float[] vertexColors ) { in setView() argument
51 view = new OpenGLES20View(this,type,i, vertexColors, mLatch); in setView()
55 public void setView(int type, int i) { in setView() argument
57 view = new OpenGLES20View(this, type, i, f, mLatch) ; in setView()
91 public OpenGLES20View(Context context, int type, int index, float[] rgba, in OpenGLES20View() argument
95 if(type == Constants.COLOR) { in OpenGLES20View()
/cts/tools/signature-tools/templates/
DCommon_meta.st3 <link type="text/css" rel="stylesheet" href="../styles.css" title="Stylesheet"/>
4 <link type="text/css" rel="stylesheet" href="styles.css" title="Stylesheet"/>
6 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/codesite/codesit…
7 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/codesite/semanti…
8 <link rel="stylesheet" type="text/css" href="http://code.google.com/android/assets/style.css"/>
/cts/tests/tests/provider/src/android/provider/cts/
DContactsContract_CommonDataKinds_ImTest.java55 private void assertGetProtocolLabel(int type) { in assertGetProtocolLabel() argument
56 int res = Im.getProtocolLabelResource(type); in assertGetProtocolLabel()
60 assertEquals(label, Im.getProtocolLabel(mResources, type, "")); in assertGetProtocolLabel()
69 private void assertGetTypeLabel(int type) { in assertGetTypeLabel() argument
70 int res = Im.getTypeLabelResource(type); in assertGetTypeLabel()
74 assertEquals(label, Im.getTypeLabel(mResources, type, "")); in assertGetTypeLabel()
/cts/suite/cts/deviceTests/browserbench/assets/octane/js/
Djquery.js479 return jQuery.type(obj) === "function";
483 return jQuery.type(obj) === "array";
495 type: function( obj ) {
505 if ( !obj || jQuery.type(obj) !== "object" || obj.nodeType || jQuery.isWindow( obj ) ) {
676 var type = jQuery.type( array );
678 …if ( array.length == null || type === "string" || type === "function" || type === "regexp" || jQue…
1007 type,
1011 type = jQuery.type( elem );
1012 if ( type === "array" ) {
1015 } else if ( type === "function" ) {
[all …]
/cts/tests/tests/hardware/src/android/hardware/camera2/cts/rs/
DAllocationCache.java77 public Allocation getOrCreateTyped(Type type, int usage) { in getOrCreateTyped() argument
79 checkNotNull("type", type); in getOrCreateTyped()
82 AllocationKey key = new AllocationKey(type, usage); in getOrCreateTyped()
90 "Cache HIT (%d): type = '%s', usage = '%x'", sDebugHits, type, usage)); in getOrCreateTyped()
97 "Cache MISS (%d): type = '%s', usage = '%x'", sDebugMisses, type, usage)); in getOrCreateTyped()
100 return Allocation.createTyped(mRS, type, usage); in getOrCreateTyped()
211 public AllocationKey(Type type, int usage) { in AllocationKey() argument
212 mType = type; in AllocationKey()
/cts/tools/dasm/src/dasm/
DDasmCatchBuilder.java24 import com.android.dx.rop.type.Type;
83 CstType type; in add() local
85 type = CstType.OBJECT; in add()
87 type = CstType.intern(Type.internClassName(exception)); in add()
89 String s = type_branch.get(type); in add()
95 type_branch.put(type, branch); in add()
195 CstType type = keys.nextElement(); in build() local
196 String branch = uc.type_branch.get(type); in build()
201 CatchHandlerList.Entry chle = new CatchHandlerList.Entry(type, in build()
204 if (type.equals(CstType.OBJECT)) { in build()
/cts/tests/tests/widget/src/android/widget/cts/
DTableLayout_LayoutParamsTest.java144 int type; in getAttrs() local
145 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
146 && type != XmlPullParser.START_TAG) { in getAttrs()
153 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
154 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
155 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
161 while ((type = parser.next()) != XmlPullParser.END_DOCUMENT in getAttrs()
162 && (type != XmlPullParser.END_TAG || parser.getDepth() > outerDepth)) { in getAttrs()
163 if (type == XmlPullParser.END_TAG || type == XmlPullParser.TEXT) { in getAttrs()
/cts/tools/tradefed-host/src/com/android/cts/tradefed/result/
DTestLog.java55 for (TestLogType type : values()) { in fromDataName()
56 if (dataName.startsWith(type.dataNamePrefix)) { in fromDataName()
57 return type; in fromDataName()
98 String type = parser.getAttributeValue(null, TYPE_ATTR); in fromXml() local
99 if (type == null) { in fromXml()
109 TestLogType logType = TestLogType.valueOf(type.toUpperCase()); in fromXml()

12345678910>>...12