/cts/hostsidetests/devicepolicy/app/ManagedProfile/src/com/android/cts/managedprofile/ |
D | CurrentApiHelper.java | 159 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/ |
D | TypeUtils.java | 114 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/ |
D | MethodSignature.java | 139 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/ |
D | AudioDeviceUtils.java | 96 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/ |
D | ResourceNameTest.java | 51 final String typeName = res.getResourceTypeName(R.string.simple); in testGetResourceName() local 52 assertEquals("string", typeName); in testGetResourceName()
|
D | ResourcesTest.java | 908 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/ |
D | UserBuilder.java | 88 public UserBuilder type(String typeName) { in type() argument 89 if (typeName == null) { in type() 94 return type(TestApis.users().supportedType(typeName)); in type()
|
D | Users.java | 233 public UserType supportedType(String typeName) { in supportedType() argument 235 return mCachedUserTypes.get(typeName); in supportedType()
|
/cts/tests/tests/animation/src/android/animation/cts/ |
D | KeyframeTest.java | 90 String typeName = typeClass.getName(); in testGetType() local 91 assertEquals(typeName, "float"); in testGetType()
|
/cts/tests/signature/lib/android/src/android/signature/cts/ |
D | XmlApiParser.java | 378 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/ |
D | DataFormatter.java | 373 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/ |
D | ReflectionHelper.java | 442 String typeName = typeToString(((GenericArrayType) type).getGenericComponentType()); in typeToString() local 443 return typeName + "[]"; in typeToString()
|