Home
last modified time | relevance | path

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

12

/aosp12/packages/apps/Car/Settings/src/com/android/car/settings/common/
H A DPreferenceUtil.java25 public static boolean checkPreferenceType(Preference preference, Class expectedType) { in checkPreferenceType() argument
26 return expectedType.isInstance(preference); in checkPreferenceType()
34 public static void requirePreferenceType(Preference preference, Class expectedType) { in requirePreferenceType() argument
35 if (!checkPreferenceType(preference, expectedType)) { in requirePreferenceType()
37 "Preference should be of type " + expectedType.getName()); in requirePreferenceType()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
H A DAccessibilityShortcutPreferenceFragmentTest.java91 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
95 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
105 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
108 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.SOFTWARE in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
121 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
124 assertThat(expectedType).isEqualTo(AccessibilityUtil.UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
189 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in restoreValueFromSavedInstanceState_assignToVariable() local
192 assertThat(expectedType).isEqualTo( in restoreValueFromSavedInstanceState_assignToVariable()
H A DToggleFeaturePreferenceFragmentTest.java112 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
115 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
126 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
128 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
140 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
142 assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
204 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in restoreValueFromSavedInstanceState_assignToVariable() local
206 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in restoreValueFromSavedInstanceState_assignToVariable()
H A DToggleScreenMagnificationPreferenceFragmentTest.java179 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
182 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
192 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
194 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.TRIPLETAP); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
205 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
207 assertThat(expectedType).isEqualTo(UserShortcutType.TRIPLETAP); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
264 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in restoreValueFromSavedInstanceState_assignToVariable() local
267 assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE | UserShortcutType.TRIPLETAP); in restoreValueFromSavedInstanceState_assignToVariable()
/aosp12/frameworks/base/core/java/android/transition/
H A 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()
/aosp12/packages/modules/Connectivity/tests/unit/java/android/net/
H A DMacAddressTest.java47 int expectedType; field in MacAddressTest.AddrTypeTestCase
49 static AddrTypeTestCase of(int expectedType, int... addr) { in of() argument
51 t.expectedType = expectedType; in of()
74 Arrays.toString(t.addr), t.expectedType, got); in testMacAddrTypes()
75 assertEquals(msg, t.expectedType, got); in testMacAddrTypes()
/aosp12/packages/apps/TV/libs/m2/
H A Dauto-common-0.10.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
H A Ddagger-android-processor-2.23.jarjava/dagger/android/processor/META-INF/gradle/incremental.annotation.processors ...
H A Ddagger-spi-2.23.jardagger/spi/package-info.class package-info.java package dagger.spi abstract ...
/aosp12/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
H A DTypedUriMatcherImplTest.java92 private void assertUriTypeMatch(UriType expectedType, String uri) { in assertUriTypeMatch() argument
93 assertEquals(expectedType, mTypedUriMatcherImpl.match(Uri.parse(uri))); in assertUriTypeMatch()
/aosp12/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
H A DBlockingUserLifecycleListenerTest.java287 @UserLifecycleEventType int expectedType) { in assertEvent() argument
290 CarUserManager.lifecycleEventTypeToString(expectedType)).that(event.getEventType()) in assertEvent()
291 .isEqualTo(expectedType); in assertEvent()
303 int expectedType = expectedTypes[i]; in assertEvents() local
305 assertEvent(event, expectedUserId, expectedType); in assertEvents()
/aosp12/frameworks/base/media/java/android/media/
H A 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()
/aosp12/frameworks/base/services/core/java/com/android/server/soundtrigger_middleware/
H A DValidationUtil.java58 static void validateModel(@Nullable SoundModel model, int expectedType) { in validateModel() argument
60 if (model.type != expectedType) { in validateModel()
/aosp12/frameworks/base/core/java/android/view/
H A DVerifiedInputEvent.java71 protected VerifiedInputEvent(@NonNull Parcel in, int expectedType) { in VerifiedInputEvent() argument
73 if (mType != expectedType) { in VerifiedInputEvent()
/aosp12/frameworks/base/core/tests/utiltests/src/android/util/
H A DAtomicFileTest.java279 public static <T extends Throwable> T assertThrows(@NonNull Class<T> expectedType, in assertThrows() argument
284 if (!expectedType.isInstance(t)) { in assertThrows()
291 expectedType.getSimpleName())); in assertThrows()
/aosp12/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/
H A DBatteryHistEntryTest.java52 final int expectedType = 3; in testConstructor_contentValues_returnsExpectedResult() local
63 when(mockBatteryEntry.getPowerComponentId()).thenReturn(expectedType); in testConstructor_contentValues_returnsExpectedResult()
78 /*drainType=*/ expectedType, in testConstructor_contentValues_returnsExpectedResult()
H A DConvertUtilsTest.java72 final int expectedType = 3; in convert_returnsExpectedContentValues() local
83 when(mockBatteryEntry.getPowerComponentId()).thenReturn(expectedType); in convert_returnsExpectedContentValues()
117 assertThat(values.getAsInteger(BatteryHistEntry.KEY_DRAIN_TYPE)).isEqualTo(expectedType); in convert_returnsExpectedContentValues()
/aosp12/packages/services/Car/tools/emulator/
H A Dvhal_emulator_test.py160 def _rxMsgAndValidate(self, expectedType, expectedStatus): argument
163 if rxMsg.msg_type != expectedType:
164 … self._log.error("rxMsg Type expected: 0x%X, received: 0x%X", expectedType, rxMsg.msg_type)
/aosp12/hardware/interfaces/camera/common/1.0/default/
H A DCameraMetadata.cpp173 status_t CameraMetadata::checkType(uint32_t tag, uint8_t expectedType) { in checkType() argument
179 if ( CC_UNLIKELY(tagType != expectedType) ) { in checkType()
183 camera_metadata_type_names[tagType], camera_metadata_type_names[expectedType]); in checkType()
/aosp12/packages/services/Car/service/src/com/android/car/hal/
H A DUserHalService.java596 int expectedType = request.associationTypes.get(i); in getUserAssociation() local
598 if (actualType != expectedType) { in getUserAssociation()
601 + UserIdentificationAssociationType.toString(expectedType) in getUserAssociation()
726 int expectedType = request.associations.get(i).type; in handleOnUserIdentificationAssociation() local
728 if (actualType != expectedType) { in handleOnUserIdentificationAssociation()
731 + UserIdentificationAssociationType.toString(expectedType) in handleOnUserIdentificationAssociation()
/aosp12/packages/apps/TV/tests/unit/src/com/android/tv/data/
H A DChannelImplTest.java239 int expectedType, String inputPackageName, String appLinkText, Intent appLinkIntent) { in assertAppLinkType() argument
254 .isEqualTo(expectedType); in assertAppLinkType()
/aosp12/hardware/interfaces/camera/common/1.0/default/include/
H A DCameraMetadata.h209 status_t checkType(uint32_t tag, uint8_t expectedType);
/aosp12/frameworks/av/camera/include/camera/
H A DCameraMetadata.h257 status_t checkType(uint32_t tag, uint8_t expectedType);
/aosp12/frameworks/base/core/java/android/util/proto/
H A DProtoOutputStream.java2212 final long expectedType = expectedFlags & FIELD_TYPE_MASK; in checkFieldId() local
2217 if (fieldType != expectedType in checkFieldId()
2225 if (expectedType == FIELD_TYPE_MESSAGE) { in checkFieldId()
2231 sb.append(getFieldTypeString(expectedType)); in checkFieldId()
2250 if (expectedType == FIELD_TYPE_MESSAGE) { in checkFieldId()
2256 sb.append(getFieldTypeString(expectedType)); in checkFieldId()
/aosp12/frameworks/layoutlib/bridge/src/android/content/res/
H A DResources_Delegate.java1125 private static void throwException(Resources resources, int id, @Nullable String expectedType) in throwException() argument
1127 throwException(id, getResourceInfo(resources, id), expectedType); in throwException()
1138 @Nullable String expectedType) { in throwException() argument
1148 if (expectedType != null) { in throwException()
1149 message += " Or the resolved value was not of type " + expectedType + " as expected."; in throwException()

12