Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 4100) sorted by relevance

12345678910>>...164

/external/swiftshader/third_party/llvm-7.0/llvm/unittests/IR/
DTypeBuilderTest.cpp19 LLVMContext Context; in TEST() local
20 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, true>::get(Context))); in TEST()
21 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, false>::get(Context))); in TEST()
23 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
24 (TypeBuilder<void *, false>::get(Context))); in TEST()
25 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
26 (TypeBuilder<const void *, false>::get(Context))); in TEST()
27 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
28 (TypeBuilder<volatile void *, false>::get(Context))); in TEST()
29 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
[all …]
DDebugTypeODRUniquingTest.cpp18 LLVMContext Context; in TEST() local
19 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
20 Context.enableDebugTypeODRUniquing(); in TEST()
21 EXPECT_TRUE(Context.isODRUniquingDebugTypes()); in TEST()
22 Context.disableDebugTypeODRUniquing(); in TEST()
23 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
27 LLVMContext Context; in TEST() local
28 MDString &UUID = *MDString::get(Context, "string"); in TEST()
32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
36 Context.enableDebugTypeODRUniquing(); in TEST()
[all …]
DMetadataTest.cpp29 LLVMContext Context; in TEST() local
30 ContextAndReplaceableUses CRU(Context); in TEST()
31 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
37 LLVMContext Context; in TEST() local
38 ContextAndReplaceableUses CRU(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
39 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
45 LLVMContext Context; in TEST() local
46 ContextAndReplaceableUses CRU(Context); in TEST()
47 CRU.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
48 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
[all …]
/external/llvm/unittests/IR/
DTypeBuilderTest.cpp19 LLVMContext Context; in TEST() local
20 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, true>::get(Context))); in TEST()
21 EXPECT_EQ(Type::getVoidTy(Context), (TypeBuilder<void, false>::get(Context))); in TEST()
23 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
24 (TypeBuilder<void *, false>::get(Context))); in TEST()
25 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
26 (TypeBuilder<const void *, false>::get(Context))); in TEST()
27 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
28 (TypeBuilder<volatile void *, false>::get(Context))); in TEST()
29 EXPECT_EQ(Type::getInt8PtrTy(Context), in TEST()
[all …]
DDebugTypeODRUniquingTest.cpp18 LLVMContext Context; in TEST() local
19 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
20 Context.enableDebugTypeODRUniquing(); in TEST()
21 EXPECT_TRUE(Context.isODRUniquingDebugTypes()); in TEST()
22 Context.disableDebugTypeODRUniquing(); in TEST()
23 EXPECT_FALSE(Context.isODRUniquingDebugTypes()); in TEST()
27 LLVMContext Context; in TEST() local
28 MDString &UUID = *MDString::get(Context, "string"); in TEST()
32 Context, UUID, dwarf::DW_TAG_class_type, nullptr, nullptr, 0, nullptr, in TEST()
36 Context.enableDebugTypeODRUniquing(); in TEST()
[all …]
DMetadataTest.cpp29 LLVMContext Context; in TEST() local
30 ContextAndReplaceableUses CRU(Context); in TEST()
31 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
37 LLVMContext Context; in TEST() local
38 ContextAndReplaceableUses CRU(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
39 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
45 LLVMContext Context; in TEST() local
46 ContextAndReplaceableUses CRU(Context); in TEST()
47 CRU.makeReplaceable(make_unique<ReplaceableMetadataImpl>(Context)); in TEST()
48 EXPECT_EQ(&Context, &CRU.getContext()); in TEST()
[all …]
/external/grpc-grpc-java/context/src/test/java/io/grpc/
DContextTest.java19 import static io.grpc.Context.cancellableAncestor;
66 private static final Context.Key<String> PET = Context.key("pet");
67 private static final Context.Key<String> FOOD = Context.keyWithDefault("food", "lasagna");
68 private static final Context.Key<String> COLOR = Context.key("color");
69 private static final Context.Key<Object> FAVORITE = Context.key("favorite");
70 private static final Context.Key<Integer> LUCKY = Context.key("lucky");
72 private Context listenerNotifedContext;
74 private Context.CancellationListener cancellationListener = new Context.CancellationListener() {
76 public void cancelled(Context context) {
82 private Context observed;
[all …]
/external/swiftshader/src/Renderer/
DContext.cpp47 Context::Context() in Context() function in sw::Context
52 Context::~Context() in ~Context()
56 void *Context::operator new(size_t bytes) in operator new()
61 void Context::operator delete(void *pointer, size_t bytes) in operator delete()
66 bool Context::isDrawPoint(bool fillModeAware) const in isDrawPoint()
110 bool Context::isDrawLine(bool fillModeAware) const in isDrawLine()
154 bool Context::isDrawTriangle(bool fillModeAware) const in isDrawTriangle()
199 void Context::init() in init()
323 const float &Context::exp2Bias() in exp2Bias()
328 const Point &Context::getLightPosition(int light) in getLightPosition()
[all …]
/external/swiftshader/src/Device/
DContext.cpp46 Context::Context() in Context() function in sw::Context
51 Context::~Context() in ~Context()
55 void *Context::operator new(size_t bytes) in operator new()
60 void Context::operator delete(void *pointer, size_t bytes) in operator delete()
65 bool Context::isDrawPoint() const in isDrawPoint()
97 bool Context::isDrawLine() const in isDrawLine()
129 bool Context::isDrawTriangle() const in isDrawTriangle()
161 void Context::init() in init()
243 bool Context::setDepthBufferEnable(bool depthBufferEnable) in setDepthBufferEnable()
245 bool modified = (Context::depthBufferEnable != depthBufferEnable); in setDepthBufferEnable()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/lib/CodeGen/
DValueTypes.cpp18 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
19 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
24 EVT IntTy = getIntegerVT(Context, getScalarSizeInBits()); in changeExtendedVectorElementTypeToInteger()
25 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
28 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
35 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
202 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
[all …]
/external/llvm/lib/IR/
DValueTypes.cpp23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedTypeToInteger() local
24 return getIntegerVT(Context, getSizeInBits()); in changeExtendedTypeToInteger()
28 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
29 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
30 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
33 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
35 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
40 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
43 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
204 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
[all …]
/external/clang/unittests/Tooling/
DFixItTest.cpp24 OnCall(Expr, Context); in VisitCallExpr()
28 std::function<void(CallExpr *, ASTContext *Context)> OnCall;
31 std::string LocationToString(SourceLocation Loc, ASTContext *Context) { in LocationToString() argument
32 return Loc.printToString(Context->getSourceManager()); in LocationToString()
38 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
39 EXPECT_EQ("foo(x, y)", getText(*CE, *Context)); in TEST()
40 EXPECT_EQ("foo(x, y)", getText(CE->getSourceRange(), *Context)); in TEST()
44 EXPECT_EQ("x", getText(*P0, *Context)); in TEST()
45 EXPECT_EQ("y", getText(*P1, *Context)); in TEST()
49 Visitor.OnCall = [](CallExpr *CE, ASTContext *Context) { in TEST() argument
[all …]
DRefactoringTest.cpp39 return Replacement(Context.Sources, Start, Length, ReplacementText); in createReplacement()
42 RewriterTestContext Context; member in clang::tooling::ReplacementTest
46 FileID ID = Context.createInMemoryFile("input.cpp", "text"); in TEST_F()
47 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
49 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
50 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F()
54 FileID ID = Context.createInMemoryFile("input.cpp", "line1\nline2\nline3"); in TEST_F()
55 SourceLocation Location = Context.getLocation(ID, 1, 1); in TEST_F()
57 EXPECT_TRUE(Replace.apply(Context.Rewrite)); in TEST_F()
58 EXPECT_EQ("", Context.getRewrittenText(ID)); in TEST_F()
[all …]
DRewriterTest.cpp19 RewriterTestContext Context; in TEST() local
20 FileID ID = Context.createOnDiskFile("t.cpp", "line1\nline2\nline3\nline4"); in TEST()
21 Context.Rewrite.ReplaceText(Context.getLocation(ID, 2, 1), 5, "replaced"); in TEST()
22 EXPECT_FALSE(Context.Rewrite.overwriteChangedFiles()); in TEST()
24 Context.getFileContentFromDisk("t.cpp")); in TEST()
28 RewriterTestContext Context; in TEST() local
29 FileID FailingID = Context.createInMemoryFile("invalid/failing.cpp", "test"); in TEST()
30 Context.Rewrite.ReplaceText(Context.getLocation(FailingID, 1, 2), 1, "other"); in TEST()
31 FileID WorkingID = Context.createOnDiskFile( in TEST()
33 Context.Rewrite.ReplaceText(Context.getLocation(WorkingID, 2, 1), 5, in TEST()
[all …]
/external/swiftshader/third_party/subzero/src/
DIceInstrumentation.cpp36 LoweringContext Context; in instrumentFunc() local
37 Context.init(Func->getNodes().front()); in instrumentFunc()
39 Context.init(Node); in instrumentFunc()
40 while (!Context.atEnd()) { in instrumentFunc()
42 instrumentFuncStart(Context); in instrumentFunc()
45 instrumentInst(Context); in instrumentFunc()
47 Context.advanceCur(); in instrumentFunc()
48 Context.advanceNext(); in instrumentFunc()
59 void Instrumentation::instrumentInst(LoweringContext &Context) { in instrumentInst() argument
60 assert(!Context.atEnd()); in instrumentInst()
[all …]
DIceTargetLoweringMIPS32.h167 Context.insert<InstMIPS32Add>(Dest, Src0, Src1); in _add()
171 Context.insert<InstMIPS32Addu>(Dest, Src0, Src1); in _addu()
175 Context.insert<InstMIPS32And>(Dest, Src0, Src1); in _and()
179 Context.insert<InstMIPS32Andi>(Dest, Src, Imm); in _andi()
182 void _br(CfgNode *Target) { Context.insert<InstMIPS32Br>(Target); } in _br()
185 Context.insert<InstMIPS32Br>(Target, Label); in _br()
190 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Src1, in _br()
196 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Condition); in _br()
202 Context.insert<InstMIPS32Br>(TargetTrue, TargetFalse, Src0, Src1, Label, in _br()
207 Context.insert<InstMIPS32Ret>(RA, Src0);
[all …]
/external/swiftshader/third_party/LLVM/lib/VMCore/
DValueTypes.cpp23 LLVMContext &Context = LLVMTy->getContext(); in changeExtendedVectorElementTypeToInteger() local
24 EVT IntTy = getIntegerVT(Context, getVectorElementType().getSizeInBits()); in changeExtendedVectorElementTypeToInteger()
25 return getVectorVT(Context, IntTy, getVectorNumElements()); in changeExtendedVectorElementTypeToInteger()
28 EVT EVT::getExtendedIntegerVT(LLVMContext &Context, unsigned BitWidth) { in getExtendedIntegerVT() argument
30 VT.LLVMTy = IntegerType::get(Context, BitWidth); in getExtendedIntegerVT()
35 EVT EVT::getExtendedVectorVT(LLVMContext &Context, EVT VT, in getExtendedVectorVT() argument
38 ResultVT.LLVMTy = VectorType::get(VT.getTypeForEVT(Context), NumElements); in getExtendedVectorVT()
149 Type *EVT::getTypeForEVT(LLVMContext &Context) const { in getTypeForEVT()
154 case MVT::isVoid: return Type::getVoidTy(Context); in getTypeForEVT()
155 case MVT::i1: return Type::getInt1Ty(Context); in getTypeForEVT()
[all …]
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/IR/
DTypeBuilder.h114 static PointerType *get(LLVMContext &Context) { in get() argument
115 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
125 static ArrayType *get(LLVMContext &Context) { in get() argument
126 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
132 static ArrayType *get(LLVMContext &Context) { in get() argument
133 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
162 static IntegerType *get(LLVMContext &Context) { \
163 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
257 static FunctionType *get(LLVMContext &Context) { in get() argument
258 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
/external/swiftshader/third_party/LLVM/include/llvm/Support/
DTypeBuilder.h106 static PointerType *get(LLVMContext &Context) { in get() argument
107 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
117 static ArrayType *get(LLVMContext &Context) { in get() argument
118 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
124 static ArrayType *get(LLVMContext &Context) { in get() argument
125 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
154 static IntegerType *get(LLVMContext &Context) { \
155 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
249 static FunctionType *get(LLVMContext &Context) { in get() argument
250 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
/external/llvm/include/llvm/IR/
DTypeBuilder.h114 static PointerType *get(LLVMContext &Context) { in get() argument
115 return PointerType::getUnqual(TypeBuilder<T,cross>::get(Context)); in get()
125 static ArrayType *get(LLVMContext &Context) { in get() argument
126 return ArrayType::get(TypeBuilder<T, cross>::get(Context), N); in get()
132 static ArrayType *get(LLVMContext &Context) { in get() argument
133 return ArrayType::get(TypeBuilder<T, cross>::get(Context), 0); in get()
162 static IntegerType *get(LLVMContext &Context) { \
163 return IntegerType::get(Context, sizeof(T) * CHAR_BIT); \
257 static FunctionType *get(LLVMContext &Context) { in get() argument
258 return FunctionType::get(TypeBuilder<R, cross>::get(Context), false); in get()
[all …]
/external/v8/src/
Dcontexts-inl.h36 Handle<Context> ScriptContextTable::GetContext(Isolate* isolate, in GetContext()
40 return Handle<Context>::cast( in GetContext()
45 Context* Context::cast(Object* context) { in cast()
47 return reinterpret_cast<Context*>(context); in cast()
55 void Context::set_scope_info(ScopeInfo* scope_info) { in set_scope_info()
59 Context* Context::previous() { in previous()
62 return reinterpret_cast<Context*>(result); in previous()
64 void Context::set_previous(Context* context) { set(PREVIOUS_INDEX, context); } in set_previous()
66 Object* Context::next_context_link() { return get(Context::NEXT_CONTEXT_LINK); } in next_context_link()
68 bool Context::has_extension() { return !extension()->IsTheHole(); } in has_extension()
[all …]
/external/grpc-grpc-java/context/src/main/java/io/grpc/
DContext.java19 import io.grpc.Context.CheckReturnValue;
98 public class Context { class
100 private static final Logger log = Logger.getLogger(Context.class.getName());
117 public static final Context ROOT = new Context(null, EMPTY_ENTRIES);
180 public static Context current() { in current()
181 Context current = storage().current(); in current()
198 private Context(PersistentHashArrayMappedTrie<Key<?>, Object> keyValueEntries, int generation) { in Context() method in Context
209 private Context(Context parent, PersistentHashArrayMappedTrie<Key<?>, Object> keyValueEntries) { in Context() method in Context
320 public <V> Context withValue(Key<V> k1, V v1) { in withValue()
322 return new Context(this, newKeyValueEntries); in withValue()
[all …]
/external/oj-libjdwp/make/src/classes/build/tools/jdwpgen/
DContext.java30 class Context { class
42 Context() { in Context() method in Context
47 private Context(String whereJava, String whereC) { in Context() method in Context
52 Context subcontext(String level) { in subcontext()
53 Context ctx; in subcontext()
55 ctx = new Context(level, level); in subcontext()
57 ctx = new Context(whereJava + "." + level, whereC + "_" + level); in subcontext()
64 private Context cloneContext() { in cloneContext()
65 Context ctx = new Context(whereJava, whereC); in cloneContext()
71 Context replyReadingSubcontext() { in replyReadingSubcontext()
[all …]
/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DSharedPrefUtil.java31 import android.content.Context;
41 public static boolean isInitDone(Context context) { in isInitDone()
43 EAB_SHARED_PREF, Context.MODE_PRIVATE); in isInitDone()
47 public static void setInitDone(Context context, boolean initDone){ in setInitDone()
49 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in setInitDone()
53 public static long getLastContactChangedTimestamp(Context context, long time) { in getLastContactChangedTimestamp()
56 Context.MODE_PRIVATE); in getLastContactChangedTimestamp()
61 public static void saveLastContactChangedTimestamp(Context context, long time) { in saveLastContactChangedTimestamp()
63 EAB_SHARED_PREF, Context.MODE_PRIVATE).edit(); in saveLastContactChangedTimestamp()
67 public static long getLastProfileContactChangedTimestamp(Context context, long time) { in getLastProfileContactChangedTimestamp()
[all …]
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowServiceManager.java23 import android.content.Context;
78 Context.CLIPBOARD_SERVICE, createBinder(IClipboard.class, "android.content.IClipboard")); in map.put()
80 Context.WIFI_P2P_SERVICE, in map.put()
83 Context.ACCOUNT_SERVICE, in map.put()
86 Context.USB_SERVICE, createBinder(IUsbManager.class, "android.hardware.usb.IUsbManager")); in map.put()
88 Context.LOCATION_SERVICE, in map.put()
91 Context.INPUT_METHOD_SERVICE, in map.put()
93 map.put(Context.ALARM_SERVICE, createBinder(IAlarmManager.class, "android.app.IAlarmManager")); in map.put()
94 map.put(Context.POWER_SERVICE, createBinder(IPowerManager.class, "android.os.IPowerManager")); in map.put()
99 Context.DROPBOX_SERVICE, in map.put()
[all …]

12345678910>>...164