Home
last modified time | relevance | path

Searched refs:SubClass (Results 1 – 25 of 44) sorted by relevance

12

/external/dexmaker/dexmaker-mockito-inline-extended-tests/src/main/java/com/android/dx/mockito/inline/extended/tests/
DMockStatic.java66 private static final class SubClass extends SuperClass { class in MockStatic
160 MockitoSession session = mockitoSession().mockStatic(SubClass.class).startMocking(); in mockOverriddenStaticMethod()
163 assertNull(SubClass.returnB()); in mockOverriddenStaticMethod()
164 assertNull(SubClass.returnC()); in mockOverriddenStaticMethod()
170 when(SubClass.returnB()).thenReturn("fakeB"); in mockOverriddenStaticMethod()
171 when(SubClass.returnC()).thenReturn("fakeC"); in mockOverriddenStaticMethod()
174 assertEquals("fakeB", SubClass.returnB()); in mockOverriddenStaticMethod()
175 assertEquals("fakeC", SubClass.returnC()); in mockOverriddenStaticMethod()
185 assertEquals("superB", SubClass.returnB()); in mockOverriddenStaticMethod()
186 assertEquals("subC", SubClass.returnC()); in mockOverriddenStaticMethod()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DOperandTraits.h30 template <typename SubClass, unsigned ARITY>
32 static Use *op_begin(SubClass* U) { in op_begin()
34 !std::is_polymorphic<SubClass>::value, in op_begin()
38 static Use *op_end(SubClass* U) { in op_end()
53 template <typename SubClass, unsigned ARITY = 1>
54 struct OptionalOperandTraits : public FixedNumOperandTraits<SubClass, ARITY> {
68 template <typename SubClass, unsigned MINARITY = 0>
70 static Use *op_begin(SubClass* U) { in op_begin()
72 !std::is_polymorphic<SubClass>::value, in op_begin()
76 static Use *op_end(SubClass* U) { in op_end()
DInstVisitor.h31 return static_cast<SubClass*>(this)-> \
80 template<typename SubClass, typename RetTy=void>
92 static_cast<SubClass*>(this)->visit(*Start++); in visit()
98 static_cast<SubClass*>(this)->visitModule(M); in visit()
102 static_cast<SubClass*>(this)->visitFunction(F); in visit()
106 static_cast<SubClass*>(this)->visitBasicBlock(BB); in visit()
119 static_assert(std::is_base_of<InstVisitor, SubClass>::value, in visit()
127 static_cast<SubClass*>(this)-> \ in visit()
231 return static_cast<SubClass*>(this)->visitCallSite(&I); in visitCallInst()
234 return static_cast<SubClass*>(this)->visitCallSite(&I); in visitInvokeInst()
/external/llvm/include/llvm/Support/
DRecycler.h81 template<class SubClass, class AllocatorType>
82 SubClass *Allocate(AllocatorType &Allocator) { in Allocate()
83 static_assert(AlignOf<SubClass>::Alignment <= Align, in Allocate()
85 static_assert(sizeof(SubClass) <= Size, in Allocate()
87 return FreeList ? reinterpret_cast<SubClass *>(pop_val()) in Allocate()
88 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
96 template<class SubClass, class AllocatorType>
97 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) { in Deallocate()
DRecyclingAllocator.h43 template<class SubClass>
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate()
51 template<class SubClass>
52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/Support/
DRecycler.h83 template<class SubClass, class AllocatorType>
84 SubClass *Allocate(AllocatorType &Allocator) { in Allocate()
85 static_assert(alignof(SubClass) <= Align, in Allocate()
87 static_assert(sizeof(SubClass) <= Size, in Allocate()
89 return FreeList ? reinterpret_cast<SubClass *>(pop_val()) in Allocate()
90 : static_cast<SubClass *>(Allocator.Allocate(Size, Align)); in Allocate()
98 template<class SubClass, class AllocatorType>
99 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) { in Deallocate()
DRecyclingAllocator.h43 template<class SubClass>
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate()
51 template<class SubClass>
52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate()
/external/guava/guava-tests/test/com/google/common/eventbus/outside/
DAnnotatedSubscriberFinderTests.java96 AbstractEventBusTest<AnnotatedAndAbstractInSuperclassTest.SubClass> {
105 static class SubClass extends SuperClass { class in AnnotatedSubscriberFinderTests.AnnotatedAndAbstractInSuperclassTest
130 SubClass createSubscriber() { in createSubscriber()
131 return new SubClass(); in createSubscriber()
136 AbstractEventBusTest<AnnotatedNotAbstractInSuperclassTest.SubClass> {
173 static class SubClass extends SuperClass { class in AnnotatedSubscriberFinderTests.AnnotatedNotAbstractInSuperclassTest
226 SubClass createSubscriber() { in createSubscriber()
227 return new SubClass(); in createSubscriber()
232 AbstractEventBusTest<AbstractNotAnnotatedInSuperclassTest.SubClass> {
239 static class SubClass extends SuperClass { class in AnnotatedSubscriberFinderTests.AbstractNotAnnotatedInSuperclassTest
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DRecycler.h89 template<class SubClass, class AllocatorType>
90 SubClass *Allocate(AllocatorType &Allocator) {
91 assert(sizeof(SubClass) <= Size &&
93 assert(AlignOf<SubClass>::Alignment <= Align &&
96 reinterpret_cast<SubClass *>(FreeList.remove(FreeList.begin())) :
97 static_cast<SubClass *>(Allocator.Allocate(Size, Align));
105 template<class SubClass, class AllocatorType>
106 void Deallocate(AllocatorType & /*Allocator*/, SubClass* Element) {
DRecyclingAllocator.h43 template<class SubClass>
44 SubClass *Allocate() { return Base.template Allocate<SubClass>(Allocator); } in Allocate()
51 template<class SubClass>
52 void Deallocate(SubClass* E) { return Base.Deallocate(Allocator, E); } in Deallocate()
DInstVisitor.h28 return static_cast<SubClass*>(this)-> \
77 template<typename SubClass, typename RetTy=void>
89 static_cast<SubClass*>(this)->visit(*Start++); in visit()
95 static_cast<SubClass*>(this)->visitModule(M); in visit()
99 static_cast<SubClass*>(this)->visitFunction(F); in visit()
103 static_cast<SubClass*>(this)->visitBasicBlock(BB); in visit()
121 static_cast<SubClass*>(this)-> \ in visit()
/external/swiftshader/third_party/LLVM/include/llvm/
DOperandTraits.h30 template <typename SubClass, unsigned ARITY>
32 static Use *op_begin(SubClass* U) { in op_begin()
35 static Use *op_end(SubClass* U) { in op_end()
50 template <typename SubClass, unsigned ARITY = 1>
51 struct OptionalOperandTraits : public FixedNumOperandTraits<SubClass, ARITY> {
65 template <typename SubClass, unsigned MINARITY = 0>
67 static Use *op_begin(SubClass* U) { in op_begin()
70 static Use *op_end(SubClass* U) { in op_end()
/external/llvm/include/llvm/IR/
DOperandTraits.h30 template <typename SubClass, unsigned ARITY>
32 static Use *op_begin(SubClass* U) { in op_begin()
35 static Use *op_end(SubClass* U) { in op_end()
50 template <typename SubClass, unsigned ARITY = 1>
51 struct OptionalOperandTraits : public FixedNumOperandTraits<SubClass, ARITY> {
65 template <typename SubClass, unsigned MINARITY = 0>
67 static Use *op_begin(SubClass* U) { in op_begin()
70 static Use *op_end(SubClass* U) { in op_end()
DInstVisitor.h31 return static_cast<SubClass*>(this)-> \
80 template<typename SubClass, typename RetTy=void>
92 static_cast<SubClass*>(this)->visit(*Start++); in visit()
98 static_cast<SubClass*>(this)->visitModule(M); in visit()
102 static_cast<SubClass*>(this)->visitFunction(F); in visit()
106 static_cast<SubClass*>(this)->visitBasicBlock(BB); in visit()
124 static_cast<SubClass*>(this)-> \ in visit()
227 return static_cast<SubClass*>(this)->visitCallSite(&I); in visitCallInst()
230 return static_cast<SubClass*>(this)->visitCallSite(&I); in visitInvokeInst()
/external/swiftshader/third_party/llvm-subzero/include/llvm/IR/
DOperandTraits.h30 template <typename SubClass, unsigned ARITY>
32 static Use *op_begin(SubClass* U) { in op_begin()
35 static Use *op_end(SubClass* U) { in op_end()
50 template <typename SubClass, unsigned ARITY = 1>
51 struct OptionalOperandTraits : public FixedNumOperandTraits<SubClass, ARITY> {
65 template <typename SubClass, unsigned MINARITY = 0>
67 static Use *op_begin(SubClass* U) { in op_begin()
70 static Use *op_end(SubClass* U) { in op_end()
/external/dexmaker/dexmaker-mockito-inline-tests/src/main/java/com/android/dx/mockito/inline/tests/
DMockFinal.java124 private static final class SubClass extends SuperClass { class in MockFinal
133 SubClass mocked = mock(SubClass.class); in mockSubClass()
135 SubClass nonMocked = new SubClass(); in mockSubClass()
182 SubClass spied = spy(SubClass.class); in spySubClass()
184 SubClass nonSpied = new SubClass(); in spySubClass()
/external/clang/test/CodeGenObjC/
Dnewproperty-nested-synthesis-1.m38 @interface SubClass : Tester interface
55 @implementation SubClass implementation
72 SubClass *f = [SubClass new];
Dprotocol-property-synth.m22 @interface SubClass : BaseClass <SubProtocol, AnotherProtocol> { interface
29 @implementation SubClass implementation
/external/mockito/src/test/java/org/mockitousage/annotation/
DSpyAnnotationInitializedInBaseClassTest.java29 class SubClass extends BaseClass { class in SpyAnnotationInitializedInBaseClassTest
36 SubClass subClass = new SubClass(); in shouldInitSpiesInBaseClass()
/external/clang/test/SemaObjC/
Dduplicate-ivar-in-class-extension.m11 @interface SubClass : SuperClass { interface
28 @implementation SubClass implementation
Dproperty-2.m34 @interface SubClass : Tester interface
51 @implementation SubClass implementation
Dsuper-class-protocol-conformance.m16 @interface SubClass : TopClass <SubProtocol> {} interface
27 @implementation SubClass // Test3 - No Warning implementation
/external/swiftshader/third_party/LLVM/lib/TableGen/
DTGParser.cpp146 bool TGParser::AddSubClass(Record *CurRec, SubClassReference &SubClass) { in AddSubClass() argument
147 Record *SC = SubClass.Rec; in AddSubClass()
151 if (AddValue(CurRec, SubClass.RefLoc, Vals[i])) in AddSubClass()
157 if (TArgs.size() < SubClass.TemplateArgs.size()) in AddSubClass()
158 return Error(SubClass.RefLoc, "More template args specified than expected"); in AddSubClass()
163 if (i < SubClass.TemplateArgs.size()) { in AddSubClass()
165 if (SetValue(CurRec, SubClass.RefLoc, TArgs[i], std::vector<unsigned>(), in AddSubClass()
166 SubClass.TemplateArgs[i])) in AddSubClass()
176 return Error(SubClass.RefLoc,"Value not specified for template argument #" in AddSubClass()
187 return Error(SubClass.RefLoc, in AddSubClass()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/TableGen/
DTGParser.cpp229 bool TGParser::AddSubClass(Record *CurRec, SubClassReference &SubClass) { in AddSubClass() argument
230 Record *SC = SubClass.Rec; in AddSubClass()
233 if (AddValue(CurRec, SubClass.RefRange.Start, Val)) in AddSubClass()
239 if (TArgs.size() < SubClass.TemplateArgs.size()) in AddSubClass()
240 return Error(SubClass.RefRange.Start, in AddSubClass()
248 if (i < SubClass.TemplateArgs.size()) { in AddSubClass()
250 if (SetValue(CurRec, SubClass.RefRange.Start, TArgs[i], in AddSubClass()
251 None, SubClass.TemplateArgs[i])) in AddSubClass()
254 return Error(SubClass.RefRange.Start, in AddSubClass()
280 return Error(SubClass.RefRange.Start, in AddSubClass()
[all …]
/external/clang/test/Index/
Dsubclass-comment.mm23 @interface SubClass : SuperClass interface
30 @interface SubSubClass : SubClass

12