Home
last modified time | relevance | path

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

12345678910>>...13

/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()
/cts/libs/commonutil/src/com/android/cts/util/
DReportLog.java47 public void printArray(String message, double[] values, ResultType type, ResultUnit unit) { in printArray() argument
48 doPrintArray(message, values, type, unit); in printArray()
55 double[] values, ResultType type, ResultUnit unit) { in printArray() argument
56 doPrintArray(testId, message, values, type, unit); in printArray()
63 public void printValue(String message, double value, ResultType type, ResultUnit unit) { in printValue() argument
65 doPrintArray(message, vals, type, unit); in printValue()
72 double value, ResultType type, ResultUnit unit) { in printValue() argument
74 doPrintArray(testId, message, vals, type, unit); in printValue()
77 private void doPrintArray(String message, double[] values, ResultType type, ResultUnit unit) { in doPrintArray() argument
78 doPrintArray(getClassMethodNames(mDepth + 1, true), message, values, type, unit); in doPrintArray()
[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/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/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()
DSigArrayType.java41 public static int hashCode(IArrayType type) { in hashCode() argument
42 return type.getComponentType().hashCode(); in hashCode()
63 public static String toString(IArrayType type) { in toString() argument
65 builder.append(type.getComponentType().toString()); in toString()
/cts/common/util/src/com/android/compatibility/common/util/
DReportLog.java47 ResultType type, ResultUnit unit) { in Result() argument
48 this(location, message, values, null /*target*/, type, unit); in Result()
64 Double target, ResultType type, ResultUnit unit) { in Result() argument
68 mType = type; in Result()
144 public void addValues(String message, double[] values, ResultType type, ResultUnit unit) { in addValues() argument
146 message, values, type, unit)); in addValues()
153 String message, double[] values, ResultType type, ResultUnit unit, String location) { in addValues() argument
154 mDetails.add(new Result(location, message, values, type, unit)); in addValues()
160 public void addValue(String message, double value, ResultType type, ResultUnit unit) { in addValue() argument
162 new double[] {value}, type, unit)); in addValue()
[all …]
/cts/tests/tests/netlegacy22/api/src/android/net/cts/legacy/api22/
DConnectivityManagerLegacyTest.java88 private void checkSourceAddress(String addrString, int type) throws Exception { in checkSourceAddress() argument
96 if (ni != null && ni.getType() == type) { in checkSourceAddress()
105 fail("Local address " + localAddress + " not assigned to any network of type " + type); in checkSourceAddress()
179 private void expectNetworkBroadcast(final int type, final NetworkInfo.State state, in expectNetworkBroadcast() argument
184 Log.d(TAG, "Waiting for " + state + " broadcast for type " + type); in expectNetworkBroadcast()
190 if (ni.getType() == type && ni.getState().equals(state)) { in expectNetworkBroadcast()
191 Log.d(TAG, "Received expected " + state + " broadcast for type " + type); in expectNetworkBroadcast()
202 final String msg = "Did not receive expected " + state + " broadcast for type " + type + in expectNetworkBroadcast()
241 for (int type = -1 ; type <= MAX_NETWORK_TYPE; type++) { in testRequestRouteToHost()
242 NetworkInfo ni = mCm.getNetworkInfo(type); in testRequestRouteToHost()
[all …]
/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()
/cts/tests/tests/net/src/android/net/cts/
DConnectivityManagerTest.java86 if (wifiOnly && ConnectivityManager.isNetworkTypeMobile(n.type)) { in setUp()
89 mNetworks.put(n.type, n); in setUp()
150 for (int type = -1; type <= ConnectivityManager.MAX_NETWORK_TYPE+1; type++) { in testGetNetworkInfo()
151 if (isSupported(type)) { in testGetNetworkInfo()
152 NetworkInfo ni = mCm.getNetworkInfo(type); in testGetNetworkInfo()
153 assertTrue("Info shouldn't be null for " + type, ni != null); in testGetNetworkInfo()
155 assertTrue("Bad state for " + type, State.UNKNOWN.ordinal() >= state.ordinal() in testGetNetworkInfo()
158 assertTrue("Bad detailed state for " + type, in testGetNetworkInfo()
162 assertNull("Info should be null for " + type, mCm.getNetworkInfo(type)); in testGetNetworkInfo()
170 for (int type = 0; type <= ConnectivityManager.MAX_NETWORK_TYPE; type++) { in testGetAllNetworkInfo()
[all …]
/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/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/cts-api-coverage/src/com/android/cts/apicoverage/
DApiClass.java215 private static boolean isGenericType(String type) { in isGenericType() argument
216 return type.length() == 1 && in isGenericType()
217 type.charAt(0) >= 'A' && in isGenericType()
218 type.charAt(0) <= 'Z'; in isGenericType()
224 private static boolean isArrayType(String type) { in isArrayType() argument
225 return type.endsWith("[]"); in isArrayType()
231 private static boolean isGenericArrayType(String type) { in isGenericArrayType() argument
232 return type.length() == 3 && isGenericType(type.substring(0, 1)) && isArrayType(type); in isGenericArrayType()
/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/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/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()
/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/tools/dex-tools/src/dex/structure/
DDexEncodedValueType.java187 for (DexEncodedValueType type : values()) { in get()
188 if (type.value == (value & 0x1F)) { in get()
189 return type; in get()

12345678910>>...13