Home
last modified time | relevance | path

Searched refs:std (Results 1 – 25 of 483) sorted by relevance

12345678910>>...20

/frameworks/ml/bordeaux/learning/multiclass_pa/native/
Dmulticlass_pa.h49 float Score(const std::vector<float>& inputs,
50 const std::vector<float>& parameters) const;
51 float SparseScore(const std::vector<std::pair<int, float> >& inputs,
52 const std::vector<float>& parameters) const;
55 float L2NormSquare(const std::vector<float>& inputs) const;
56 float SparseL2NormSquare(const std::vector<std::pair<int, float> >& inputs) const;
61 virtual float TrainOneExample(const std::vector<float>& inputs, int target);
63 const std::vector<std::pair<int, float> >& inputs, int target);
66 float Train(const std::vector<std::pair<std::vector<float>, int> >& data,
69 const std::vector<std::pair<std::vector<std::pair<int, float> >, int> >& data,
[all …]
/frameworks/compile/slang/
Dslang_rs_reflection.h46 std::string mPackageName;
50 std::string mRSPackageName;
54 std::string mOutputBaseDirectory;
58 std::string mOutputDirectory;
61 std::string mRSSourceFileName;
63 std::string mBitCodeFileName;
67 std::string mResourceId;
70 std::string mScriptClassName;
74 std::string mClassName;
77 std::string mItemSizeof;
[all …]
Dslang_rs_reflect_utils.h45 const std::string *licenseNote;
54 static std::string GetFileNameStem(const char *fileName);
59 static std::string ComputePackagedPath(const char *prefixPath,
67 static std::string JavaClassNameFromRSFileName(const char *rsFileName);
78 static std::string BCFileNameFromRSFileName(const char *rsFileName);
85 static std::string JavaBitcodeClassNameFromRSFileName(const char *rsFileName);
95 std::string JoinPath(const std::string &path1, const std::string &path2);
102 std::string RootNameFromRSFileName(const std::string &rsFileName);
107 class GeneratedFile : public std::ofstream {
116 bool startFile(const std::string &outPath, const std::string &outFileName,
[all …]
Dslang.h65 static void LLVMErrorHandler(void *UserData, const std::string &Message,
84 std::unique_ptr<clang::Diagnostic> mDiag;
94 std::shared_ptr<clang::TargetOptions> mTargetOpts;
95 std::unique_ptr<clang::TargetInfo> mTarget;
100 std::unique_ptr<clang::FileManager> mFileMgr;
101 std::unique_ptr<clang::FileSystemOptions> mFileSysOpt;
106 std::unique_ptr<clang::SourceManager> mSourceMgr;
111 std::unique_ptr<clang::Preprocessor> mPP;
116 std::unique_ptr<clang::ASTContext> mASTContext;
121 std::unique_ptr<clang::ASTConsumer> mBackend;
[all …]
Dslang_rs_reflection_cpp.h31 RSReflectionCpp(const RSContext *Context, const std::string &OutputDirectory,
32 const std::string &RSSourceFileName,
33 const std::string &BitCodeFileName);
40 typedef std::vector<std::pair<std::string, std::string> > ArgumentList;
46 std::string mRSSourceFilePath;
48 std::string mBitCodeFilePath;
50 std::string mOutputDirectory;
53 std::string mCleanedRSFileName;
55 std::string mClassName;
63 std::set<std::string> mTypesToCheck;
[all …]
Dllvm-rs-cc.cpp48 static inline const char *SaveStringInSet(std::set<std::string> &SavedStrings, in SaveStringInSet()
54 std::set<std::string> &SavedStrings);
57 std::set<std::string> &SavedStrings);
59 static const char *DetermineOutputFile(const std::string &OutputDir, in DetermineOutputFile()
60 const std::string &PathSuffix, in DetermineOutputFile()
63 std::set<std::string> &SavedStrings) { in DetermineOutputFile()
67 std::string OutputFile(OutputDir); in DetermineOutputFile()
118 typedef std::list<std::pair<const char*, const char*> > NamePairList;
142 std::set<std::string> *SavedStrings) { in compileFiles()
144 std::string PathSuffix = ""; in compileFiles()
[all …]
Dslang_rs.h56 std::vector<std::string> mGeneratedFileNames;
64 typedef std::pair<RSExportRecordType*, const char*> ReflectedDefinitionTy;
68 bool generateJavaBitcodeAccessor(const std::string &OutputPathBase,
69 const std::string &PackageName,
70 const std::string *LicenseNote);
110 bool compile(const std::list<std::pair<const char*, const char*> > &IOFiles64,
111 const std::list<std::pair<const char*, const char*> > &IOFiles32,
112 const std::list<std::pair<const char*, const char*> > &DepFiles,
Dslang_rs_reflect_utils.cpp32 using std::string;
97 std::string
102 std::string RootNameFromRSFileName(const std::string &rsFileName) { in RootNameFromRSFileName()
106 std::string
111 std::string RSSlangReflectUtils::JavaBitcodeClassNameFromRSFileName( in JavaBitcodeClassNameFromRSFileName()
113 std::string tmp(InternalFileNameConvert(rsFileName, false)); in JavaBitcodeClassNameFromRSFileName()
150 out << std::setw(4) << static_cast<int>(buff[written]) << ","; in GenerateSegmentMethod()
166 std::string filename(context.bc32FileName); in GenerateJavaCodeAccessorMethodForBitwidth()
288 std::string JoinPath(const std::string &path1, const std::string &path2) { in JoinPath()
295 std::string fullPath = path1; in JoinPath()
[all …]
Dslang_rs_context.h59 typedef std::list<RSExportable*> ExportableList;
60 typedef std::list<RSExportVar*> ExportVarList;
61 typedef std::list<RSExportFunc*> ExportFuncList;
62 typedef std::list<RSExportForEach*> ExportForEachList;
71 std::string mPrecision;
82 std::string *mLicenseNote;
83 std::string mReflectJavaPackageName;
84 std::string mReflectJavaPathName;
86 std::string mRSPackageName;
90 std::unique_ptr<clang::MangleContext> mMangleCtx;
[all …]
Drs_cc_options.h42 std::vector<std::string> mIncludePaths;
46 std::string mBitcodeOutputDir;
59 std::string mJavaReflectionPathBase;
63 std::string mJavaReflectionPackageName;
67 std::string mRSPackageName;
77 std::string mDependencyOutputDir;
81 std::vector<std::string> mAdditionalDepTargets;
Dslang_rs_reflection.cpp86 void genAddElement(const RSExportType *ET, const std::string &VarName,
89 void genAddStatementEnd(const std::string &VarName, unsigned ArraySize);
93 std::string createPaddingField() { in createPaddingField()
101 std::string mPaddingPrefix;
176 static std::string GetTypeName(const RSExportType *ET, bool Brackets = true) { in GetTypeName()
193 std::stringstream VecName; in GetTypeName()
204 std::string ElementTypeName = GetTypeName(CAT->getElementType()); in GetTypeName()
245 static std::string GetBuiltinElementConstruct(const RSExportType *ET) { in GetBuiltinElementConstruct()
247 return std::string("Element.") + ET->getElementName(); in GetBuiltinElementConstruct()
284 std::vector<std::string> *GeneratedFileNames, in RSReflectionJava()
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_3_0/
DBitcodeReader.h41 std::vector<WeakVH> ValuePtrs;
50 typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy;
100 std::vector<WeakVH> MDValuePtrs;
134 std::unique_ptr<BitstreamReader> StreamFile;
140 std::vector<Type*> TypeList;
145 std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInits;
146 std::vector<std::pair<GlobalAlias*, unsigned> > AliasInits;
151 std::vector<AttributeSet> MAttributes;
154 std::map<unsigned, AttributeSet> MAttributeGroups;
158 std::vector<BasicBlock*> FunctionBBs;
[all …]
/frameworks/compile/libbcc/bcinfo/BitReader_2_7/
DBitcodeReader.h41 std::vector<WeakVH> ValuePtrs;
50 typedef std::vector<std::pair<Constant*, unsigned> > ResolveConstantsTy;
100 std::vector<WeakVH> MDValuePtrs;
134 std::unique_ptr<BitstreamReader> StreamFile;
140 std::vector<Type*> TypeList;
145 std::vector<std::pair<GlobalVariable*, unsigned> > GlobalInits;
146 std::vector<std::pair<GlobalAlias*, unsigned> > AliasInits;
151 std::vector<AttributeSet> MAttributes;
154 std::map<unsigned, AttributeSet> MAttributeGroups;
158 std::vector<BasicBlock*> FunctionBBs;
[all …]
/frameworks/base/media/mca/filterfw/native/core/
Dshader_program.h80 explicit ShaderProgram(GLEnv* gl_env, const std::string& fragment_shader);
89 const std::string& vertex_shader,
90 const std::string& fragment_shader);
97 bool Process(const std::vector<const GLFrame*>& inputs, GLFrame* output);
102 bool Process(const std::vector<const GLTextureHandle*>& input,
175 ProgramVar GetUniform(const std::string& name) const;
195 bool SetUniformValue(ProgramVar var, const std::vector<int>& values);
199 bool SetUniformValue(ProgramVar var, const std::vector<float>& values);
204 bool SetUniformValue(const std::string& name, const Value& value);
208 Value GetUniformValue(const std::string& name);
[all …]
Dnative_program.h44 bool OpenLibrary(const std::string& lib_name);
46 bool BindInitFunction(const std::string& func_name);
47 bool BindSetValueFunction(const std::string& func_name);
48 bool BindGetValueFunction(const std::string& func_name);
49 bool BindProcessFunction(const std::string& func_name);
50 bool BindResetFunction(const std::string& func_name);
51 bool BindTeardownFunction(const std::string& func_name);
54 bool CallSetValue(const std::string& key, const std::string& value);
55 std::string CallGetValue(const std::string& key);
56 bool CallProcess(const std::vector<const char*>& inputs,
[all …]
Dnative_program.cpp45 bool NativeProgram::OpenLibrary(const std::string& lib_name) { in OpenLibrary()
57 bool NativeProgram::BindProcessFunction(const std::string& func_name) { in BindProcessFunction()
68 bool NativeProgram::BindInitFunction(const std::string& func_name) { in BindInitFunction()
75 bool NativeProgram::BindSetValueFunction(const std::string& func_name) { in BindSetValueFunction()
82 bool NativeProgram::BindGetValueFunction(const std::string& func_name) { in BindGetValueFunction()
89 bool NativeProgram::BindResetFunction(const std::string& func_name) { in BindResetFunction()
96 bool NativeProgram::BindTeardownFunction(const std::string& func_name) { in BindTeardownFunction()
103 bool NativeProgram::CallProcess(const std::vector<const char*>& inputs, in CallProcess()
104 const std::vector<int>& input_sizes, in CallProcess()
126 bool NativeProgram::CallSetValue(const std::string& key, const std::string& value) { in CallSetValue()
[all …]
/frameworks/compile/mclinker/include/mcld/
DTargetOptions.h34 TargetOptions(const std::string& pTriple);
40 void setTriple(const std::string& pTriple);
44 const std::string& getArch() const { return m_ArchName; } in getArch()
46 void setArch(const std::string& pArchName);
48 const std::string& getTargetCPU() const { return m_TargetCPU; } in getTargetCPU()
50 void setTargetCPU(const std::string& pCPU);
52 const std::string& getTargetFeatureString() const { return m_TargetFS; } in getTargetFeatureString()
54 void setTargetFeatureString(const std::string& pFS);
72 std::string m_ArchName;
73 std::string m_TargetCPU;
[all …]
DLinkerScript.h40 typedef std::vector<std::pair<LDSymbol*, Assignment> > Assignments;
42 typedef std::vector<AssertCmd> Assertions;
76 const std::string& entry() const;
78 void setEntry(const std::string& pEntry);
83 const std::string& outputFile() const;
85 void setOutputFile(const std::string& pOutputFile);
96 std::string m_Entry;
97 std::string m_OutputFile;
/frameworks/compile/mclinker/include/mcld/Object/
DSectionMap.h32 typedef std::vector<std::pair<Fragment*, Assignment> > DotAssignments;
36 Input(const std::string& pName, InputSectDesc::KeepPolicy pPolicy);
63 typedef std::vector<Input*> InputList;
69 typedef std::vector<Assignment> DotAssignments;
73 Output(const std::string& pName);
76 const std::string& name() const { return m_Name; } in name()
128 std::string m_Name;
144 typedef std::pair<const Output*, const Input*> const_mapping;
145 typedef std::pair<Output*, Input*> mapping;
147 typedef std::vector<Output*> OutputDescList;
[all …]
/frameworks/compile/mclinker/include/mcld/Script/
DScriptFile.h46 typedef std::vector<ScriptCommand*> CommandQueue;
76 const std::string& name() const { return m_Name; } in name()
77 std::string& name() { return m_Name; } in name()
83 void addEntryPoint(const std::string& pSymbol);
87 void addOutputFormatCmd(const std::string& pFormat);
88 void addOutputFormatCmd(const std::string& pDefault,
89 const std::string& pBig,
90 const std::string& pLittle);
99 void addOutputCmd(const std::string& pFileName);
102 void addSearchDirCmd(const std::string& pPath);
[all …]
/frameworks/compile/libbcc/tools/bcc_compat/
DMain.cpp50 llvm::cl::list<std::string>
54 llvm::cl::opt<std::string>
58 llvm::cl::opt<std::string>
62 llvm::cl::opt<std::string>
94 llvm::cl::opt<std::string>
119 const llvm::cl::list<std::string> &pBitcodeFiles) { in PrepareRSScript()
123 const std::string &input_bitcode = pBitcodeFiles[i]; in PrepareRSScript()
139 result = new (std::nothrow) RSScript(*source); in PrepareRSScript()
157 config = new (std::nothrow) CompilerConfig(OptTargetTriple); in ConfigCompiler()
164 if (config->getTriple().find("arm") != std::string::npos) { in ConfigCompiler()
[all …]
/frameworks/compile/libbcc/include/bcc/Support/
DCompilerConfig.h40 std::string mTriple;
43 std::string mCPU;
58 std::string mFeatureString;
73 inline const std::string &getTriple() const in getTriple()
76 inline const std::string &getCPU() const in getCPU()
78 inline void setCPU(const std::string &pCPU) in setCPU()
116 inline const std::string &getFeatureString() const in getFeatureString()
118 void setFeatureString(const std::vector<std::string> &pAttrs);
120 CompilerConfig(const std::string &pTriple);
/frameworks/compile/mclinker/include/mcld/ADT/
DStringHash.h39 struct StringHash : public std::unary_function<const llvm::StringRef&, uint32_t>
52 struct StringHash<RS> : public std::unary_function<const llvm::StringRef&, uint32_t>
72 struct StringHash<JS> : public std::unary_function<const llvm::StringRef&, uint32_t>
89 struct StringHash<PJW> : public std::unary_function<const llvm::StringRef&, uint32_t>
115 struct StringHash<ELF> : public std::unary_function<const llvm::StringRef&, uint32_t>
136 struct StringHash<BKDR> : public std::unary_function<const llvm::StringRef&, uint32_t>
155 struct StringHash<SDBM> : public std::unary_function<const llvm::StringRef&, uint32_t>
172 struct StringHash<DJB> : public std::unary_function<const llvm::StringRef&, uint32_t>
190 struct StringHash<DEK> : public std::unary_function<const llvm::StringRef&, uint32_t>
208 struct StringHash<BP> : public std::unary_function<const llvm::StringRef&, uint32_t>
[all …]
/frameworks/av/media/libeffects/loudness/dsp/core/
Ddynamic_range_compression.cpp63 alpha_attack_ = std::exp(-1.0f / taufs); in Initialize()
69 alpha_release_ = std::exp(-1.0f / taufs); in Initialize()
79 const float max_abs_x = std::max(std::fabs(x), kMinLogAbsValue); in Compress()
84 const float rect = std::max(overshoot, 0.0f); in Compress()
107 const float max_abs_x = std::max(std::fabs(*x1), in Compress()
108 std::max(std::fabs(*x2), kMinLogAbsValue)); in Compress()
113 const float rect = std::max(overshoot, 0.0f); in Compress()
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp57 llvm::cl::opt<std::string>
61 llvm::cl::opt<std::string>
66 llvm::cl::opt<std::string>
70 llvm::cl::opt<std::string>
79 llvm::cl::opt<std::string>
122 config = new (std::nothrow) CompilerConfig(OptTargetTriple); in ConfigCompiler()
130 if ((config->getTriple().find("i686") != std::string::npos) || in ConfigCompiler()
131 (config->getTriple().find("x86_64") != std::string::npos)) { in ConfigCompiler()
132 std::vector<std::string> fv; in ConfigCompiler()
182 std::string commandLine = bcc::getCommandLine(argc, argv); in main()
[all …]

12345678910>>...20