Home
last modified time | relevance | path

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

12

/packages/apps/Car/Settings/src/com/android/car/settings/common/
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()
/packages/modules/Connectivity/tests/unit/java/android/net/
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()
/packages/apps/Settings/tests/robotests/src/com/android/settings/accessibility/
DAccessibilityShortcutPreferenceFragmentTest.java128 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
131 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
141 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
143 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
154 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
156 assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
219 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in restoreValueFromSavedInstanceState_assignShortcutTypeToVariable() local
221 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in restoreValueFromSavedInstanceState_assignShortcutTypeToVariable()
DToggleFeaturePreferenceFragmentTest.java204 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
207 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
220 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
222 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
234 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
236 assertThat(expectedType).isEqualTo(UserShortcutType.HARDWARE); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
317 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in restoreValueFromSavedInstanceState_assignShortcutTypeToVariable() local
319 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.HARDWARE); in restoreValueFromSavedInstanceState_assignShortcutTypeToVariable()
DToggleScreenMagnificationPreferenceFragmentTest.java636 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_assignDefaultValueToVariable() local
639 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE); in updateShortcutPreferenceData_assignDefaultValueToVariable()
650 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSettings_assignToVariable() local
652 assertThat(expectedType).isEqualTo(UserShortcutType.SOFTWARE | UserShortcutType.TRIPLETAP); in updateShortcutPreferenceData_hasValueInSettings_assignToVariable()
664 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable() local
666 assertThat(expectedType).isEqualTo(UserShortcutType.TRIPLETAP); in updateShortcutPreferenceData_hasValueInSharedPreference_assignToVariable()
678 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasTwoFingerTripleTapInSettings_assignToVariable() local
680 assertThat(expectedType).isEqualTo(UserShortcutType.TWOFINGER_DOUBLETAP); in updateShortcutPreferenceData_hasTwoFingerTripleTapInSettings_assignToVariable()
693 final int expectedType = PreferredShortcuts.retrieveUserShortcutType(mContext, in updateShortcutPreferenceData_hasTwoFingerTripleTapInSharedPref_assignToVariable() local
695 assertThat(expectedType).isEqualTo(UserShortcutType.TWOFINGER_DOUBLETAP); in updateShortcutPreferenceData_hasTwoFingerTripleTapInSharedPref_assignToVariable()
[all …]
/packages/apps/TV/libs/m2/
Dauto-common-0.10.jarMETA-INF/MANIFEST.MF META-INF/ com/ com/google/ com/ ...
Ddagger-android-processor-2.23.jarjava/dagger/android/processor/META-INF/gradle/incremental.annotation.processors ...
Ddagger-spi-2.23.jardagger/spi/package-info.class package-info.java package dagger.spi abstract ...
Ddagger-compiler-2.23.jarjava/dagger/internal/codegen/META-INF/gradle/incremental.annotation.processors ...
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/testapi/
DBlockingUserLifecycleListenerTest.java303 @UserLifecycleEventType int expectedType) { in assertEvent() argument
306 CarUserManager.lifecycleEventTypeToString(expectedType)).that(event.getEventType()) in assertEvent()
307 .isEqualTo(expectedType); in assertEvent()
319 int expectedType = expectedTypes[i]; in assertEvents() local
321 assertEvent(event, expectedUserId, expectedType); in assertEvents()
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DTypedUriMatcherImplTest.java93 private void assertUriTypeMatch(UriType expectedType, String uri) { in assertUriTypeMatch() argument
94 assertEquals(expectedType, mTypedUriMatcherImpl.match(Uri.parse(uri))); in assertUriTypeMatch()
/packages/modules/Uwb/service/tests/src/com/android/server/uwb/discovery/info/
DFiraConnectorMessageTest.java78 byte header, MessageType expectedType, InstructionCode expectedCode) { in testHeaderFromBytes() argument
84 assertThat(message.messageType).isEqualTo(expectedType); in testHeaderFromBytes()
/packages/apps/Settings/tests/robotests/src/com/android/settings/fuelgauge/batteryusage/
DBatteryHistEntryTest.java54 final int expectedType = 3; in testConstructor_contentValues_returnsExpectedResult() local
70 when(mMockBatteryEntry.getPowerComponentId()).thenReturn(expectedType); in testConstructor_contentValues_returnsExpectedResult()
86 /* drainType= */ expectedType, in testConstructor_contentValues_returnsExpectedResult()
DConvertUtilsTest.java300 final int expectedType = 3; in convertToBatteryHistEntry_returnsExpectedResult() local
315 when(mMockBatteryEntry.getPowerComponentId()).thenReturn(expectedType); in convertToBatteryHistEntry_returnsExpectedResult()
340 assertThat(batteryHistEntry.mDrainType).isEqualTo(expectedType); in convertToBatteryHistEntry_returnsExpectedResult()
/packages/services/Car/tools/emulator/
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)
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/types/
DParceledArray.kt66 expectedType = elementType in validate()
/packages/services/Car/service/src/com/android/car/hal/
DUserHalService.java610 int expectedType = request.associationTypes[i]; in getUserAssociation() local
612 if (actualType != expectedType) { in getUserAssociation()
616 UserIdentificationAssociationType.class, expectedType) in getUserAssociation()
743 int expectedType = request.associations[i].type; in handleOnUserIdentificationAssociation() local
745 if (actualType != expectedType) { in handleOnUserIdentificationAssociation()
749 expectedType) in handleOnUserIdentificationAssociation()
/packages/modules/IntentResolver/java/src/com/android/intentresolver/validation/
DFindings.kt82 val expectedType: KClass<*> constant in com.android.intentresolver.validation.WrongElementType
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelImplTest.java239 int expectedType, String inputPackageName, String appLinkText, Intent appLinkIntent) { in assertAppLinkType() argument
254 .isEqualTo(expectedType); in assertAppLinkType()
/packages/modules/IntentResolver/tests/unit/src/com/android/intentresolver/validation/types/
DParceledArrayTest.kt65 expectedType = Intent::class in wrongElementType()
/packages/services/Car/service/src/com/android/car/
DCarServiceUtils.java246 @UserLifecycleEventType int expectedType) { in isEventOfType() argument
247 if (event.getEventType() == expectedType) { in isEventOfType()
251 lifecycleEventTypeToString(expectedType)); in isEventOfType()
/packages/modules/Media/apex/framework/java/android/media/
DMediaParser.java1104 Class expectedType = EXPECTED_TYPE_BY_PARAMETER_NAME.get(parameterName); in setParameter() local
1107 if (expectedType != null && !expectedType.isInstance(value)) { in setParameter()
1111 + expectedType.getSimpleName() in setParameter()
/packages/services/Car/tests/carservice_unit_test/src/com/android/car/hal/
DUserHalHelperTest.java1452 int expectedType, int expectedValue) { in assertAssociation() argument
1454 if (actualAssociation.type != expectedType) { in assertAssociation()
1457 UserIdentificationAssociationType.class, expectedType) in assertAssociation()
1462 if (actualAssociation.type != expectedType) { in assertAssociation()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java199 final String expectedType = getTypeString(expected); in assertDiffPattern() local
201 assertEquals("Unexpected type", expectedType, foundType); in assertDiffPattern()
/packages/modules/Connectivity/tests/cts/net/src/android/net/cts/
DDscpPolicyTest.kt416 val expectedType = if (sendV6) ETHER_TYPE_IPV6 else ETHER_TYPE_IPV4 in <lambda>() constant
417 if (etherHdr.etherType != expectedType) { in <lambda>()

12