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
435
) 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/robolectric-shadows/robolectric/src/test/java/org/robolectric/
ParameterizedRobolectricTestRunnerConfigTest.java
23
private final int
expectedType
;
25
public ParameterizedRobolectricTestRunnerConfigTest(int
expectedType
) {
26
this.
expectedType
=
expectedType
;
32
assertThat(new CursorWrapper(null).getType(
expectedType
)).isEqualTo(1);
38
assertThat(new CursorWrapper(null).getType(
expectedType
)).isEqualTo(
expectedType
);
/external/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/resolution/
ConstructorResolutionLogic.java
69
ResolvedType
expectedType
= constructor.getLastParam().getType();
71
if (!
expectedType
.isAssignableBy(actualType)) {
73
expectedType
= MethodResolutionLogic.replaceTypeParam(
expectedType
, tp, typeSolver);
75
if (!
expectedType
.isAssignableBy(actualType)) {
77
&&
expectedType
.isAssignableBy(actualType.asArrayType().getComponentType())) {
100
ResolvedType
expectedType
= constructor.getParam(i).getType();
102
if ((
expectedType
.isTypeVariable() && !(
expectedType
.isWildcard()))
103
&&
expectedType
.asTypeParameter().declaredOnMethod())
[
all
...]
MethodResolutionLogic.java
80
ResolvedType
expectedType
= method.getLastParam().getType();
82
if (!
expectedType
.isAssignableBy(actualType)) {
84
expectedType
= replaceTypeParam(
expectedType
, tp, typeSolver);
86
if (!
expectedType
.isAssignableBy(actualType)) {
87
if (actualType.isArray() &&
expectedType
.isAssignableBy(actualType.asArrayType().getComponentType())) {
108
ResolvedType
expectedType
= method.getParam(i).getType();
110
if ((
expectedType
.isTypeVariable() && !(
expectedType
.isWildcard())) &&
expectedType
.asTypeParameter().declaredOnMethod())
[
all
...]
/cts/tests/signature/tests/src/android/signature/cts/tests/
AbstractApiCheckerTest.java
103
private FailureType
expectedType
;
107
ExpectFailure(FailureType
expectedType
) {
108
this.
expectedType
=
expectedType
;
113
if (type ==
expectedType
) {
/external/icu/icu4c/source/test/intltest/
dcfmtest.h
42
const UnicodeString &
expectedType
,
/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/javaparser/javaparser-symbol-solver-core/src/main/java/com/github/javaparser/symbolsolver/javaparsermodel/contexts/
MethodCallExprContext.java
304
ResolvedType
expectedType
=
311
if (!
expectedType
.isAssignableBy(actualType)) {
313
expectedType
= MethodResolutionLogic.replaceTypeParam(
expectedType
, tp, typeSolver);
316
if (!
expectedType
.isAssignableBy(actualType)) {
320
expectedType
,
326
matchTypeParameters(
expectedType
, actualType, matchedTypeParameters);
337
ResolvedType
expectedType
= methodUsage.getParamType(i);
339
matchTypeParameters(
expectedType
, actualType, matchedTypeParameters);
347
private void matchTypeParameters(ResolvedType
expectedType
, ResolvedType actualType, Map<ResolvedTypeParameterDeclaration, ResolvedType> matchedTypeParameter (…)
[
all
...]
/external/annotation-tools/asmx/src/org/objectweb/asm/tree/analysis/
SimpleVerifier.java
144
Type
expectedType
= ((BasicValue) expected).getType();
146
if (
expectedType
== null) {
149
switch (
expectedType
.getSort()) {
154
return type ==
expectedType
;
157
if (
expectedType
.getDescriptor().equals("Lnull;")) {
166
return isAssignableFrom(
expectedType
, type);
/frameworks/base/tests/net/java/android/net/
MacAddressTest.java
39
int
expectedType
;
41
static AddrTypeTestCase of(int
expectedType
, int... addr) {
43
t.
expectedType
=
expectedType
;
66
Arrays.toString(t.addr), t.
expectedType
, got);
67
assertEquals(msg, t.
expectedType
, got);
/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/icu/android_icu4j/src/main/tests/android/icu/dev/test/util/
RegionTest.java
400
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
405
if ( !
expectedType
.equals(r.getType())) {
406
errln("Unexpected region type for Region.getInstance(\"" + inputID + "\"); Expected: " +
expectedType
+ " Got: " + r.getType());
431
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
436
if ( !
expectedType
.equals(r.getType())) {
437
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
397
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
402
if ( !
expectedType
.equals(r.getType())) {
403
errln("Unexpected region type for Region.getInstance(\"" + inputID + "\"); Expected: " +
expectedType
+ " Got: " + r.getType());
428
Region.RegionType
expectedType
= Region.RegionType.valueOf(data[2]);
433
if ( !
expectedType
.equals(r.getType())) {
434
errln("Unexpected region type for Region.getInstance(" + inputID + "); Expected: " +
expectedType
+ " Got: " + r.getType());
/external/skia/tests/
SkDOMTest.cpp
17
SkDOM::Type
expectedType
) {
21
REPORTER_ASSERT(r, dom.getType(node) ==
expectedType
);
/external/skqp/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
/prebuilts/tools/common/fest/
fest-reflect-1.2.jar
Completed in 1444 milliseconds
1
2
3
4
5
6
7
8
9
10
11
>>