OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:expectedType
(Results
1 - 25
of
372
) sorted by null
1
2
3
4
5
6
7
8
9
10
11
>>
/external/hamcrest/hamcrest-core/src/main/java/org/hamcrest/
TypeSafeDiagnosingMatcher.java
19
private final Class<?>
expectedType
;
30
* @param
expectedType
The
expectedType
of the actual value.
32
protected TypeSafeDiagnosingMatcher(Class<?>
expectedType
) {
33
this.
expectedType
=
expectedType
;
42
this.
expectedType
= typeFinder.findExpectedType(getClass());
56
&&
expectedType
.isInstance(item)
63
if (item == null || !
expectedType
.isInstance(item)) {
TypeSafeMatcher.java
16
final private Class<?>
expectedType
;
28
* @param
expectedType
The
expectedType
of the actual value.
30
protected TypeSafeMatcher(Class<?>
expectedType
) {
31
this.
expectedType
=
expectedType
;
40
this.
expectedType
= typeFinder.findExpectedType(getClass());
66
&&
expectedType
.isInstance(item)
75
} else if (!
expectedType
.isInstance(item)) {
/external/junit/src/main/java/org/junit/internal/matchers/
TypeSafeMatcher.java
18
private Class<?>
expectedType
;
27
expectedType
= findExpectedType(getClass());
48
protected TypeSafeMatcher(Class<T>
expectedType
) {
49
this.
expectedType
=
expectedType
;
60
&&
expectedType
.isInstance(item)
/external/guice/core/src/com/google/inject/internal/
ConstructionContext.java
63
Class<?>
expectedType
) throws ErrorsException {
65
throw errors.circularProxiesDisabled(
expectedType
).toException();
67
if (!
expectedType
.isInterface()) {
68
throw errors.cannotSatisfyCircularDependency(
expectedType
).toException();
81
ClassLoader classLoader = BytecodeGen.getClassLoader(
expectedType
);
82
return
expectedType
.cast(Proxy.newProxyInstance(classLoader,
83
new Class[] {
expectedType
, CircularDependencyProxy.class }, invocationHandler));
ProviderInternalFactory.java
49
Class<?>
expectedType
= dependency.getKey().getTypeLiteral().getRawType();
53
errors, context.getInjectorOptions(),
expectedType
);
ConstructorInjector.java
62
Class<?>
expectedType
,
71
errors, context.getInjectorOptions(),
expectedType
);
/external/icu/icu4c/source/test/intltest/
dcfmtest.h
42
const UnicodeString &
expectedType
,
regiontst.cpp
399
URegionType
expectedType
;
444
if ( type != data.
expectedType
) {
445
dataerrln("Unexpected region type for Region::getInstance(\"%s\"); Expected: %d Got: %d",data.inputID,data.
expectedType
,type);
454
URegionType
expectedType
;
488
if ( data.
expectedType
!= type) {
489
dataerrln("Unexpected region type for Region.getInstance(%d)); Expected: %d Got: %d",data.inputID,data.
expectedType
,type);
[
all
...]
/packages/providers/ContactsProvider/tests/src/com/android/providers/contacts/util/
TypedUriMatcherImplTest.java
91
private void assertUriTypeMatch(UriType
expectedType
, String uri) {
92
assertEquals(
expectedType
, mTypedUriMatcherImpl.match(Uri.parse(uri)));
/libcore/luni/src/test/java/libcore/java/lang/reflect/
GenericExceptionsTest.java
91
private <T> T getOnlyValue(Object[] array, Class<T>
expectedType
) {
92
assertEquals("Expected a " +
expectedType
.getName() + " but was " + Arrays.toString(array),
94
assertTrue("Expected a " +
expectedType
.getName() + " but was " + array[0],
95
expectedType
.isInstance(array[0]));
96
return
expectedType
.cast(array[0]);
/external/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
RegionTest.java
395
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
400
if ( !
expectedType
.equals(r.getType())) {
401
errln("Unexpected region type for Region.getInstance(\"" + inputID + "\"); Expected: " +
expectedType
+ " Got: " + r.getType());
426
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
431
if ( !
expectedType
.equals(r.getType())) {
432
errln("Unexpected region type for Region.getInstance(" + inputID + "); Expected: " +
expectedType
+ " Got: " + r.getType());
/external/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/util/
RegionTest.java
394
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
399
if ( !
expectedType
.equals(r.getType())) {
400
errln("Unexpected region type for Region.getInstance(\"" + inputID + "\"); Expected: " +
expectedType
+ " Got: " + r.getType());
425
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
430
if ( !
expectedType
.equals(r.getType())) {
431
errln("Unexpected region type for Region.getInstance(" + inputID + "); Expected: " +
expectedType
+ " Got: " + r.getType());
/frameworks/base/core/java/android/transition/
TransitionInflater.java
199
private Object createCustom(AttributeSet attrs, Class
expectedType
, String tag) {
211
.asSubclass(
expectedType
);
221
throw new InflateException("Could not instantiate " +
expectedType
+ " class " +
224
throw new InflateException("Could not instantiate " +
expectedType
+ " class " +
227
throw new InflateException("Could not instantiate " +
expectedType
+ " class " +
230
throw new InflateException("Could not instantiate " +
expectedType
+ " class " +
233
throw new InflateException("Could not instantiate " +
expectedType
+ " class " +
/libcore/dalvik/src/main/java/dalvik/system/
EmulatedStackFrame.java
354
final Class<?>
expectedType
= (argumentIdx == RETURN_VALUE_IDX) ?
357
if (
expectedType
!= type) {
359
", expected: " +
expectedType
);
458
public void putNextReference(Object value, Class<?>
expectedType
) {
459
checkType(
expectedType
);
518
public <T> T nextReference(Class<T>
expectedType
) {
519
checkType(
expectedType
);
/prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.3/
auto-common-0.3.jar
/external/skia/tests/
SkDOMTest.cpp
17
SkDOM::Type
expectedType
) {
21
REPORTER_ASSERT(r, dom.getType(node) ==
expectedType
);
/prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.6/
auto-common-0.6.jar
/frameworks/support/lifecycle/compiler/src/main/kotlin/android/arch/lifecycle/
input_collector.kt
66
expectedType
: Class<*>, errorMsg: String): Boolean {
67
if (!MoreTypes.isTypeOf(
expectedType
, param.asType())) {
/prebuilts/tools/common/fest/
fest-reflect-1.2.jar
/external/libmojo/mojo/public/java/bindings/src/org/chromium/mojo/bindings/
MessageHeader.java
171
public boolean validateHeader(int
expectedType
, int expectedFlags) {
172
return getType() ==
expectedType
&& validateHeader(expectedFlags);
/frameworks/base/media/java/android/media/
Metadata.java
543
private void checkType(final int key, final int
expectedType
) {
549
if (type !=
expectedType
) {
550
throw new IllegalStateException("Wrong type " +
expectedType
+ " but got " + type);
/external/dagger2/lib/
auto-common-1.0-20151022.071545-39.jar
/prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.4/
auto-common-0.4.jar
/prebuilts/tools/common/m2/repository/com/google/auto/auto-common/0.7/
auto-common-0.7.jar
/external/mockito/src/main/java/org/mockito/internal/exceptions/
Reporter.java
475
public static MockitoException wrongTypeOfReturnValue(String
expectedType
, String actualType, String methodName) {
478
methodName + "() should return " +
expectedType
,
490
public static MockitoException wrongTypeReturnedByDefaultAnswer(Object mock, String
expectedType
, String actualType, String methodName) {
494
methodName + "() should return " +
expectedType
,
[
all
...]
Completed in 1232 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>