Home
last modified time | relevance | path

Searched refs:typeName (Results 1 – 12 of 12) sorted by relevance

/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/
DCurrentApiHelper.java159 String typeName = ((Element) nodes.item(i)).getAttribute(ATTRIBUTE_TYPE); in getParamTypes() local
160 paramTypes[i] = getClassByName(typeName); in getParamTypes()
168 private static Class getClassByName(String typeName) throws ClassNotFoundException { in getClassByName() argument
171 while (typeName.endsWith("[]")) { in getClassByName()
173 typeName = typeName.substring(0, typeName.length() - 2); in getClassByName()
177 typeName = typeName.replaceAll("([A-Z].*)\\.", "$1\\$"); in getClassByName()
180 typeName = typeName.replaceAll("<.*>$", ""); in getClassByName()
183 if (isPrimitiveTypeName(typeName)) { in getClassByName()
184 return PRIMITIVE_TYPES.get(typeName); in getClassByName()
186 return Class.forName(typeName); in getClassByName()
[all …]
/cts/common/device-side/bedstead/testapisreflection/src/processor/main/java/com/android/bedstead/testapisreflection/processor/
DTypeUtils.java114 static TypeMirror typeForString(String typeName, Types types, Elements elements) { in typeForString() argument
115 if (typeName.equals("void")) { in typeForString()
119 if (typeName.contains("<")) { in typeForString()
120 TypeElement element = elements.getTypeElement(typeName.split("<", 2)[0]); in typeForString()
121 TypeMirror typeArgs = typeForString(typeName.substring( in typeForString()
122 typeName.indexOf("<") + 1, typeName.indexOf(">")), types, elements); in typeForString()
127 if (typeName.endsWith("[]")) { in typeForString()
129 typeForString(typeName.substring(0, typeName.length() - 2), types, elements)); in typeForString()
133 return types.getPrimitiveType(TypeKind.valueOf(typeName.toUpperCase())); in typeForString()
138 TypeElement element = elements.getTypeElement(typeName); in typeForString()
[all …]
/cts/common/device-side/bedstead/remoteframeworkclasses/src/processor/main/java/com/android/bedstead/remoteframeworkclasses/processor/
DMethodSignature.java139 private static TypeMirror typeForString(String typeName, Types types, Elements elements) { in typeForString() argument
140 if (typeName.equals("void")) { in typeForString()
144 if (isTypeAnnotatedWithTestApi(typeName)) { in typeForString()
146 typeName = proxyType(typeName); in typeForString()
149 if (typeName.contains("<")) { in typeForString()
151 return typeForString(typeName.split("<", 2)[0], types, elements); in typeForString()
154 if (typeName.endsWith("[]")) { in typeForString()
156 typeForString(typeName.substring(0, typeName.length() - 2), types, elements)); in typeForString()
160 return types.getPrimitiveType(TypeKind.valueOf(typeName.toUpperCase())); in typeForString()
165 TypeElement element = elements.getTypeElement(typeName); in typeForString()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/audio/audiolib/
DAudioDeviceUtils.java96 String typeName = sDeviceTypeStrings.get(deviceType); in getDeviceTypeName() local
97 return typeName != null ? "TYPE_" + typeName : "invalid type"; in getDeviceTypeName()
105 String typeName = sDeviceTypeStrings.get(deviceType); in getShortDeviceTypeName() local
106 return typeName != null ? typeName : "invalid type"; in getShortDeviceTypeName()
/cts/tests/tests/content/src/android/content/res/cts/
DResourceNameTest.java51 final String typeName = res.getResourceTypeName(R.string.simple); in testGetResourceName() local
52 assertEquals("string", typeName); in testGetResourceName()
DResourcesTest.java908 final String typeName = mResources.getResourceTypeName(R.string.simple); in testGetResourceName() local
909 assertEquals(STRING, typeName); in testGetResourceName()
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/users/
DUserBuilder.java88 public UserBuilder type(String typeName) { in type() argument
89 if (typeName == null) { in type()
94 return type(TestApis.users().supportedType(typeName)); in type()
DUsers.java233 public UserType supportedType(String typeName) { in supportedType() argument
235 return mCachedUserTypes.get(typeName); in supportedType()
/cts/tests/tests/animation/src/android/animation/cts/
DKeyframeTest.java90 String typeName = typeClass.getName(); in testGetType() local
91 assertEquals(typeName, "float"); in testGetType()
/cts/tests/signature/lib/android/src/android/signature/cts/
DXmlApiParser.java378 private static String stripGenericsArgs(String typeName) { in stripGenericsArgs() argument
379 return typeName == null ? null : typeName.replaceFirst("<.*", ""); in stripGenericsArgs()
/cts/common/device-side/bedstead/dpmwrapper/src/main/java/com/android/bedstead/dpmwrapper/
DDataFormatter.java373 private static void logMarshalling(String operation, int index, String typeName, in logMarshalling() argument
376 Log.v(TAG, operation + " on " + index + ": typeName=" + typeName + ", type=" + type in logMarshalling()
/cts/tests/signature/lib/common/src/android/signature/cts/
DReflectionHelper.java442 String typeName = typeToString(((GenericArrayType) type).getGenericComponentType()); in typeToString() local
443 return typeName + "[]"; in typeToString()