Searched defs:Context (Results 1 - 25 of 29) sorted by path

12

/frameworks/base/core/java/android/content/
H A DContext.java74 public abstract class Context { class
343 * Context whose lifecycle is separate from the current context, that is
357 * <li> <p>If used from the Context returned here, the receiver is being
365 public abstract Context getApplicationContext();
369 * Context, which will be called at the same times as the ComponentCallbacks
480 * before any views are instantiated in the Context (for example before
495 * Return the Theme object associated with this Context.
501 * Retrieve styled attribute information in this Context's theme. See
512 * Retrieve styled attribute information in this Context's theme. See
524 * Retrieve styled attribute information in this Context'
[all...]
/frameworks/base/tools/aapt2/
H A DStringPool.h45 struct Context { struct in class:aapt::StringPool
63 const Context& getContext() const;
86 const Context& getContext() const;
99 Context context;
146 Ref makeRef(const StringPiece16& str, const Context& context);
158 StyleRef makeRef(const StyleString& str, const Context& context);
198 Ref makeRefImpl(const StringPiece16& str, const Context& context, bool unique);
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
H A DBitcodeReader.cpp104 LLVMContext &Context; member in class:__anon1112::BitcodeReaderValueList
106 BitcodeReaderValueList(LLVMContext &C) : Context(C) {}
156 LLVMContext &Context;
159 : NumFwdRefs(0), AnyFwdRefs(false), Context(C) {}
186 LLVMContext &Context;
286 StructType *createIdentifiedStructType(LLVMContext &Context, StringRef Name);
287 StructType *createIdentifiedStructType(LLVMContext &Context);
394 : Context(C), DiagnosticHandler(getDiagHandler(DiagnosticHandler, C)),
542 explicit ConstantPlaceHolder(Type *Ty, LLVMContext& Context) argument
544 Op<0>() = UndefValue::get(Type::getInt32Ty(Context));
782 createIdentifiedStructType(LLVMContext &Context, StringRef Name) argument
789 createIdentifiedStructType(LLVMContext &Context) argument
3491 getLazyBitcodeModuleImpl(std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, bool WillMaterializeAll, DiagnosticHandlerFunction DiagnosticHandler) argument
3513 getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
3523 parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
3541 getBitcodeTargetTriple(MemoryBufferRef Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
[all...]
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
H A DBitcodeReader.cpp87 LLVMContext &Context = LPI->getContext(); local
118 PointerType::getUnqual(Type::getInt8Ty(Context)),
148 LLVMContext &Context = M->getContext();
149 Type *ExnTy = PointerType::getUnqual(Type::getInt8Ty(Context));
150 Type *SelTy = Type::getInt32Ty(Context);
207 BasicBlock *NewBB = BasicBlock::Create(Context, "new.lpad",
224 IRBuilder<> Builder(Context);
252 IRBuilder<> Builder(Context);
277 IRBuilder<> Builder(Context);
347 LLVMContext &Context; member in class:__anon1115::BitcodeReaderValueList
818 ConstantPlaceHolder(Type *Ty, LLVMContext& Context) argument
1058 createIdentifiedStructType(LLVMContext &Context, StringRef Name) argument
1065 createIdentifiedStructType(LLVMContext &Context) argument
3829 getLazyBitcodeModuleImpl(std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, bool WillMaterializeAll, DiagnosticHandlerFunction DiagnosticHandler) argument
3851 getLazyBitcodeModule(std::unique_ptr<MemoryBuffer> &&Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
3861 parseBitcodeFile(MemoryBufferRef Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
3879 getBitcodeTargetTriple(MemoryBufferRef Buffer, LLVMContext &Context, DiagnosticHandlerFunction DiagnosticHandler) argument
[all...]
/frameworks/compile/libbcc/lib/Renderscript/
H A DRSCompilerDriver.cpp281 BCCContext& Context, const char* pOutputFilepath, const char* pRuntimePath,
292 llvm::LLVMContext& context = Context.getLLVMContext();
318 if (!fuseKernels(Context, sourcesToFuse, slots, nameOfFused, &module)) {
334 if (!renameInvoke(Context, source, slot, newName, &module)) {
344 Source::CreateFromModule(Context, pOutputFilepath, module, true));
280 buildScriptGroup( BCCContext& Context, const char* pOutputFilepath, const char* pRuntimePath, const char* pRuntimeRelaxedPath, bool dumpIR, const char* buildChecksum, const std::vector<Source*>& sources, const std::list<std::list<std::pair<int, int>>>& toFuse, const std::list<std::string>& fused, const std::list<std::list<std::pair<int, int>>>& invokes, const std::list<std::string>& invokeBatchNames) argument
H A DRSForEachExpand.cpp91 llvm::LLVMContext *Context; member in class:__anon1130::RSForEachExpandPass
154 llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(*Context);
179 llvm::Type *V2xi64Ty = llvm::VectorType::get(llvm::Type::getInt64Ty(*Context), 2);
180 llvm::Type *Int128Ty = llvm::Type::getIntNTy(*Context, 128);
207 llvm::Type *Int32Ty = llvm::Type::getInt32Ty(*Context);
218 llvm::Type *Int8Ty = llvm::Type::getInt8Ty(*Context);
221 llvm::Type *Int32Ty = llvm::Type::getInt32Ty(*Context);
223 llvm::Type *VoidPtrTy = llvm::Type::getInt8PtrTy(*Context);
299 llvm::FunctionType::get(llvm::Type::getVoidTy(*Context), ParamTypes,
325 llvm::BasicBlock *Begin = llvm::BasicBlock::Create(*Context, "Begi
[all...]
H A DRSScriptGroupFusion.cpp84 // The whitelist of supported signature bits. Context or user data arguments are
140 llvm::FunctionType* getFusedFuncType(bcc::BCCContext& Context, argument
161 llvm::Type* I32Ty = llvm::IntegerType::get(Context.getLLVMContext(), 32);
183 bool fuseKernels(bcc::BCCContext& Context, argument
193 getFusedFuncType(Context, sources, slots, mergedModule, &fusedFunctionSignature);
202 llvm::LLVMContext& ctxt = Context.getLLVMContext();
326 bool renameInvoke(BCCContext& Context, const Source* source, const int slot, argument
343 llvm::BasicBlock* block = llvm::BasicBlock::Create(Context.getLLVMContext(),
/frameworks/compile/libbcc/tools/bcc/
H A DMain.cpp189 bool compileScriptGroup(BCCContext& Context, RSCompilerDriver& RSCD) { argument
193 bcc::Source::CreateFromFile(Context, OptInputFilenames[i]);
214 Context, outputFilepath.c_str(), OptBCLibFilename.c_str(),
/frameworks/compile/libbcc/tools/bcc_strip_attr/
H A Dbcc_strip_attr.cpp98 LLVMContext& Context) {
100 std::unique_ptr<Module> Result = parseIRFile(FN, Err, Context);
115 LLVMContext &Context = getGlobalContext(); local
121 std::unique_ptr<Module> M(LoadFile(argv[0], InputFilenames[0], Context));
96 LoadFile(const char *argv0, const std::string &FN, LLVMContext& Context) argument
/frameworks/compile/slang/
H A Dllvm-rs-as.cpp124 LLVMContext &Context = getGlobalContext(); local
130 std::unique_ptr<Module> M(parseAssemblyFile(InputFilename, Err, Context));
H A Dslang_backend.cpp217 Backend::Backend(RSContext *Context, clang::DiagnosticsEngine *DiagEngine, argument
226 mBufferOutStream(*mpOS), mContext(Context),
232 mASTChecker(Context, Context->getTargetAPI(), IsFilterscript),
H A Dslang_rs_check_ast.h32 slang::RSContext *Context; member in class:slang::RSCheckAST
51 : Context(Con),
H A Dslang_rs_export_element.cpp71 RSExportType *RSExportElement::Create(RSContext *Context, argument
84 if (!RSExportType::NormalizeType(T, TypeName, Context, nullptr))
93 RSExportPrimitiveType::Create(Context,
106 RSExportVectorType::Create(Context,
130 RSExportType *RSExportElement::CreateFromDecl(RSContext *Context, argument
140 return RSExportType::Create(Context, T);
160 return RSExportType::Create(Context, T);
162 return RSExportElement::Create(Context, T, EI);
H A Dslang_rs_export_foreach.cpp99 RSContext *Context, const clang::FunctionDecl *FD) {
100 slangAssert(Context && FD);
105 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) {
108 Context->ReportError(FD->getLocation(),
121 valid |= validateAndConstructKernelParams(Context, FD);
123 valid |= validateAndConstructOldStyleParams(Context, FD);
126 valid |= setSignatureMetadata(Context, FD);
131 RSContext *Context, const clang::FunctionDecl *FD) {
132 slangAssert(Context && FD);
139 clang::ASTContext &C = Context
98 validateAndConstructParams( RSContext *Context, const clang::FunctionDecl *FD) argument
130 validateAndConstructOldStyleParams( RSContext *Context, const clang::FunctionDecl *FD) argument
208 validateAndConstructKernelParams( RSContext *Context, const clang::FunctionDecl *FD) argument
297 processSpecialParameters( RSContext *Context, const clang::FunctionDecl *FD, size_t *IndexOfFirstSpecialParameter) argument
427 setSignatureMetadata(RSContext *Context, const clang::FunctionDecl *FD) argument
468 Create(RSContext *Context, const clang::FunctionDecl *FD) argument
562 CreateDummyRoot(RSContext *Context) argument
596 isRSForEachFunc(unsigned int targetAPI, slang::RSContext* Context, const clang::FunctionDecl *FD) argument
646 validateSpecialFuncDecl(unsigned int targetAPI, slang::RSContext *Context, clang::FunctionDecl const *FD) argument
[all...]
H A Dslang_rs_export_foreach.h71 RSExportForEach(RSContext *Context, const llvm::StringRef &Name) argument
72 : RSExportable(Context, RSExportable::EX_FOREACH),
80 bool validateAndConstructParams(RSContext *Context,
83 bool validateAndConstructOldStyleParams(RSContext *Context,
86 bool validateAndConstructKernelParams(RSContext *Context,
89 bool processSpecialParameters(RSContext *Context,
93 bool setSignatureMetadata(RSContext *Context,
96 static RSExportForEach *Create(RSContext *Context,
99 static RSExportForEach *CreateDummyRoot(RSContext *Context);
193 static bool isRSForEachFunc(unsigned int targetAPI, slang::RSContext *Context,
[all...]
H A Dslang_rs_export_func.cpp35 static bool ValidateFuncDecl(slang::RSContext *Context, argument
37 slangAssert(Context && FD);
40 Context->ReportError(
50 RSExportFunc *RSExportFunc::Create(RSContext *Context, argument
57 if (!ValidateFuncDecl(Context, FD)) {
61 F = new RSExportFunc(Context, Name, FD);
67 clang::ASTContext &Ctx = Context->getASTContext();
108 RSExportType::Create(Context, T.getTypePtr());
H A Dslang_rs_export_func.h53 RSExportFunc(RSContext *Context, const llvm::StringRef &Name, argument
55 : RSExportable(Context, RSExportable::EX_FUNC),
61 mShouldMangle = Context->getMangleContext().shouldMangleDeclName(FD);
65 Context->getMangleContext().mangleName(FD, BufStm);
71 static RSExportFunc *Create(RSContext *Context,
H A Dslang_rs_export_type.cpp171 slang::RSContext *Context,
176 static void ReportTypeError(slang::RSContext *Context, argument
185 Context->ReportError(TopLevelRecord->getLocation(), Message)
188 Context->ReportError(ND->getLocation(), Message) << ND->getName()
198 slang::RSContext *Context,
204 ReportTypeError(Context, VD, TopLevelRecord,
214 ReportTypeError(Context, VD, TopLevelRecord,
220 ReportTypeError(Context, VD, TopLevelRecord,
226 if (TypeExportableHelper(ElementType, SPS, Context, VD,
246 slang::RSContext *Context,
195 ConstantArrayTypeExportableHelper( const clang::ConstantArrayType *CAT, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, slang::RSContext *Context, const clang::VarDecl *VD, const clang::RecordDecl *TopLevelRecord) argument
243 TypeExportableHelper( clang::Type const *T, llvm::SmallPtrSet<clang::Type const *, 8> &SPS, slang::RSContext *Context, clang::VarDecl const *VD, clang::RecordDecl const *TopLevelRecord) argument
401 TypeExportable(const clang::Type *T, slang::RSContext *Context, const clang::VarDecl *VD) argument
410 ValidateRSObjectInVarDecl(slang::RSContext *Context, clang::VarDecl *VD, bool InCompositeType, unsigned int TargetAPI) argument
451 ValidateTypeHelper( slang::RSContext *Context, clang::ASTContext &C, const clang::Type *&T, clang::NamedDecl *ND, clang::SourceLocation Loc, llvm::SmallPtrSet<const clang::Type*, 8>& SPS, bool InCompositeType, clang::RecordDecl *UnionDecl, unsigned int TargetAPI, bool IsFilterscript, bool IsExtern) argument
648 NormalizeType(const clang::Type *&T, llvm::StringRef &TypeName, RSContext *Context, const clang::VarDecl *VD) argument
670 ValidateType(slang::RSContext *Context, clang::ASTContext &C, clang::QualType QT, clang::NamedDecl *ND, clang::SourceLocation Loc, unsigned int TargetAPI, bool IsFilterscript, bool IsExtern) argument
692 ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD, unsigned int TargetAPI, bool IsFilterscript) argument
793 Create(RSContext *Context, const clang::Type *T, const llvm::StringRef &TypeName) argument
884 Create(RSContext *Context, const clang::Type *T) argument
893 CreateFromDecl(RSContext *Context, const clang::VarDecl *VD) argument
906 RSExportType(RSContext *Context, ExportClass Class, const llvm::StringRef &Name) argument
1066 GetDataType(RSContext *Context, const clang::Type *T) argument
1099 Create(RSContext *Context, const clang::Type *T, const llvm::StringRef &TypeName, bool Normalized) argument
1112 Create(RSContext *Context, const clang::Type *T) argument
1211 Create(RSContext *Context, const clang::PointerType *PT, const llvm::StringRef &TypeName) argument
1280 Create(RSContext *Context, const clang::ExtVectorType *EVT, const llvm::StringRef &TypeName, bool Normalized) argument
1311 Create(RSContext *Context, const clang::RecordType *RT, const llvm::StringRef &TypeName, unsigned Dim) argument
1396 Create(RSContext *Context, const clang::ConstantArrayType *CAT) argument
1437 Create(RSContext *Context, const clang::RecordType *RT, const llvm::StringRef &TypeName, bool mIsArtificial) argument
[all...]
H A Dslang_rs_export_type.h192 RSExportType(RSContext *Context,
203 static RSExportType *Create(RSContext *Context,
231 RSContext *Context,
237 static bool ValidateType(slang::RSContext *Context, clang::ASTContext &C,
245 static bool ValidateVarDecl(slang::RSContext *Context, clang::VarDecl *VD,
249 static RSExportType *Create(RSContext *Context, const clang::Type *T);
250 static RSExportType *CreateFromDecl(RSContext *Context,
298 static RSExportPrimitiveType *Create(RSContext *Context,
304 RSExportPrimitiveType(RSContext *Context, argument
310 : RSExportType(Context, Clas
370 RSExportPointerType(RSContext *Context, const llvm::StringRef &Name, const RSExportType *PointeeType) argument
400 RSExportVectorType(RSContext *Context, const llvm::StringRef &Name, DataType DT, bool Normalized, unsigned NumElement) argument
448 RSExportMatrixType(RSContext *Context, const llvm::StringRef &Name, unsigned Dim) argument
476 RSExportConstantArrayType(RSContext *Context, const RSExportType *ElementType, unsigned Size) argument
551 RSExportRecordType(RSContext *Context, const llvm::StringRef &Name, bool IsPacked, bool IsArtificial, size_t StoreSize, size_t AllocSize) argument
[all...]
H A Dslang_rs_export_var.cpp29 RSExportVar::RSExportVar(RSContext *Context, argument
32 : RSExportable(Context, RSExportable::EX_VAR),
45 Initializer->EvaluateAsRValue(mInit, Context->getASTContext());
49 if (Initializer->isNullPointerConstant(Context->getASTContext(),
53 if (!Initializer->EvaluateAsRValue(mInit, Context->getASTContext())) {
54 Context->ReportError(Initializer->getExprLoc(),
64 Context->ReportError(VD->getLocation(),
75 Context->getASTContext())) {
76 Context->ReportError(IList->getInit(i)->getExprLoc(),
85 Context
[all...]
H A Dslang_rs_exportable.h39 RSExportable(RSContext *Context, RSExportable::Kind K) argument
40 : mContext(Context),
42 Context->newExportable(this);
H A Dslang_rs_pragma_handler.cpp43 RSExportTypePragmaHandler(llvm::StringRef Name, RSContext *Context) argument
44 : RSPragmaHandler(Name, Context) { }
55 RSJavaPackageNamePragmaHandler(llvm::StringRef Name, RSContext *Context) argument
56 : RSPragmaHandler(Name, Context) { }
130 RSReflectLicensePragmaHandler(llvm::StringRef Name, RSContext *Context) argument
131 : RSPragmaHandler(Name, Context) { }
160 RSVersionPragmaHandler(llvm::StringRef Name, RSContext *Context) argument
161 : RSPragmaHandler(Name, Context) { }
175 RSPrecisionPragmaHandler(llvm::StringRef Name, RSContext *Context) argument
176 : RSPragmaHandler(Name, Context) {}
[all...]
H A Dslang_rs_pragma_handler.h38 RSPragmaHandler(llvm::StringRef Name, RSContext *Context) argument
40 mContext(Context) {
H A Dslang_rs_reflection.cpp282 RSReflectionJava::RSReflectionJava(const RSContext *Context, argument
288 : mRSContext(Context), mPackageName(Context->getReflectJavaPackageName()),
289 mRSPackageName(Context->getRSPackageName()),
H A Dslang_rs_reflection_cpp.cpp112 RSReflectionCpp::RSReflectionCpp(const RSContext *Context, argument
116 : mRSContext(Context), mRSSourceFilePath(RSSourceFileName),

Completed in 412 milliseconds

12