Home
last modified time | relevance | path

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

/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/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
DTypedUriMatcherImplTest.java92 private void assertUriTypeMatch(UriType expectedType, String uri) { in assertUriTypeMatch() argument
93 assertEquals(expectedType, mTypedUriMatcherImpl.match(Uri.parse(uri))); in assertUriTypeMatch()
/packages/services/Car/tools/emulator/
Dvhal_emulator_test.py154 def _rxMsgAndValidate(self, expectedType, expectedStatus): argument
157 if rxMsg.msg_type != expectedType:
158 … self._log.error("rxMsg Type expected: 0x%X, received: 0x%X", expectedType, rxMsg.msg_type)
/packages/apps/Settings/tests/unit/src/com/android/settings/wifi/tether/
DTetherServiceTest.java305 private boolean waitForProvisionRequest(int expectedType) { in waitForProvisionRequest() argument
308 if (mLastTetherRequestType == expectedType) { in waitForProvisionRequest()
315 expectedType, mLastTetherRequestType)); in waitForProvisionRequest()
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DChannelImplTest.java235 int expectedType, String inputPackageName, String appLinkText, Intent appLinkIntent) { in assertAppLinkType() argument
250 .isEqualTo(expectedType); in assertAppLinkType()
/packages/apps/Contacts/tests/src/com/android/contacts/model/
DRawContactDeltaListTests.java192 final String expectedType = getTypeString(expected); in assertDiffPattern() local
194 assertEquals("Unexpected type", expectedType, foundType); in assertDiffPattern()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
DContactsProvider2.java3526 private String getResourceName(Resources resources, String expectedType, Integer resourceId) { in getResourceName() argument
3535 if (!expectedType.equals(resourceTypeName)) { in getResourceName()
3537 resourceTypeName + " but " + expectedType + " is required."); in getResourceName()