Home
last modified time | relevance | path

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

/frameworks/base/core/java/android/transition/
DTransitionInflater.java199 private Object createCustom(AttributeSet attrs, Class expectedType, String tag) { in createCustom() argument
211 .asSubclass(expectedType); in createCustom()
221 throw new InflateException("Could not instantiate " + expectedType + " class " + in createCustom()
224 throw new InflateException("Could not instantiate " + expectedType + " class " + in createCustom()
227 throw new InflateException("Could not instantiate " + expectedType + " class " + in createCustom()
230 throw new InflateException("Could not instantiate " + expectedType + " class " + in createCustom()
233 throw new InflateException("Could not instantiate " + expectedType + " class " + in createCustom()
/frameworks/base/media/java/android/media/
DMetadata.java559 private void checkType(final int key, final int expectedType) { in checkType() argument
565 if (type != expectedType) { in checkType()
566 throw new IllegalStateException("Wrong type " + expectedType + " but got " + type); in checkType()
/frameworks/base/services/voiceinteraction/java/com/android/server/soundtrigger_middleware/
DValidationUtil.java55 static void validateModel(@Nullable SoundModel model, int expectedType) { in validateModel() argument
57 if (model.type != expectedType) { in validateModel()
/frameworks/base/core/java/android/view/
DVerifiedInputEvent.java71 protected VerifiedInputEvent(@NonNull Parcel in, int expectedType) { in VerifiedInputEvent() argument
73 if (mType != expectedType) { in VerifiedInputEvent()
/frameworks/base/core/tests/utiltests/src/android/util/
DAtomicFileTest.java326 public static <T extends Throwable> T assertThrows(@NonNull Class<T> expectedType, in assertThrows() argument
331 if (!expectedType.isInstance(t)) { in assertThrows()
338 expectedType.getSimpleName())); in assertThrows()
/frameworks/base/core/tests/coretests/src/android/view/
DViewDebugTest.java372 private static void expectDeserializedArgument(Class<?> expectedType, Object expectedValue, in expectDeserializedArgument() argument
374 expectDeserializedArguments(new Class[]{expectedType}, new Object[]{expectedValue}, in expectDeserializedArgument()
/frameworks/av/camera/include/camera/
DCameraMetadata.h257 status_t checkType(uint32_t tag, uint8_t expectedType);
/frameworks/av/camera/
DCameraMetadata.cpp186 status_t CameraMetadata::checkType(uint32_t tag, uint8_t expectedType) { in checkType() argument
192 if ( CC_UNLIKELY(tagType != expectedType) ) { in checkType()
197 camera_metadata_type_names[expectedType]); in checkType()
/frameworks/layoutlib/bridge/src/android/content/res/
DResources_Delegate.java1130 private static void throwException(Resources resources, int id, @Nullable String expectedType) in throwException() argument
1132 throwException(id, getResourceInfo(resources, id), expectedType); in throwException()
1143 @Nullable String expectedType) { in throwException() argument
1153 if (expectedType != null) { in throwException()
1154 message += " Or the resolved value was not of type " + expectedType + " as expected."; in throwException()
/frameworks/base/core/java/android/util/proto/
DProtoOutputStream.java2213 final long expectedType = expectedFlags & FIELD_TYPE_MASK; in checkFieldId() local
2218 if (fieldType != expectedType in checkFieldId()
2226 if (expectedType == FIELD_TYPE_MESSAGE) { in checkFieldId()
2232 sb.append(getFieldTypeString(expectedType)); in checkFieldId()
2251 if (expectedType == FIELD_TYPE_MESSAGE) { in checkFieldId()
2257 sb.append(getFieldTypeString(expectedType)); in checkFieldId()
/frameworks/base/services/tests/servicestests/src/com/android/server/devicepolicy/
DSystemUpdatePolicyTest.java401 private void assertInstallationOption(int expectedType, long expectedTime, long now, in assertInstallationOption() argument
403 assertThat(p.getInstallationOptionAt(now).getType()).isEqualTo(expectedType); in assertInstallationOption()
/frameworks/native/services/inputflinger/tests/
DPointerChoreographer_test.cpp144 ControllerType expectedType) { in assertPointerControllerCreated() argument
147 EXPECT_EQ(expectedType, type); in assertPointerControllerCreated()