Home
last modified time | relevance | path

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

12345678910>>...27

/frameworks/rs/api/
DSpecification.h61 std::string type;
62 std::string name;
70 std::string testOption;
71 std::string documentation;
79 std::string rsType; // The Renderscript type, e.g. "uint3"
80 std::string rsBaseType; // As above but without the number, e.g. "uint"
81 std::string javaBaseType; // The type we need to declare in Java, e.g. "unsigned int"
82 std::string specType; // The type found in the spec, e.g. "f16"
87 std::string mVectorSize;
91 std::string vectorWidth;
[all …]
DUtilities.h25 std::string capitalize(const std::string& source);
28 void trimSpaces(std::string* s);
31 std::string stringReplace(std::string s, std::string match, std::string rep);
34 bool charRemoved(char c, std::string* s);
37 std::string stripHtml(const std::string& html);
40 std::string hashString(const std::string& s);
43 bool testAndSet(const std::string& flag, std::set<std::string>* set);
53 std::string makeAttributeTag(const std::string& userAttribute,
54 const std::string& additionalAttribute, int deprecatedApiLevel,
55 const std::string& deprecatedMessage);
[all …]
/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.h102 std::shared_ptr<clang::TargetOptions> mTargetOpts;
103 std::unique_ptr<clang::TargetInfo> mTarget;
107 std::unique_ptr<clang::FileManager> mFileMgr;
108 std::unique_ptr<clang::FileSystemOptions> mFileSysOpt;
112 std::unique_ptr<clang::SourceManager> mSourceMgr;
116 std::unique_ptr<clang::Preprocessor> mPP;
120 std::unique_ptr<clang::ASTContext> mASTContext;
124 std::unique_ptr<clang::ASTConsumer> mBackend;
127 std::string mInputFileName;
128 std::string mOutputFileName;
[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 …]
/frameworks/base/tools/aapt2/
DFlag.cpp14 std::string name;
15 std::string description;
16 std::function<bool(const StringPiece&, std::string*)> action;
23 static std::vector<Flag> sFlags;
24 static std::vector<std::string> sArgs;
26 static std::function<bool(const StringPiece&, std::string*)> wrap( in wrap()
27 const std::function<void(const StringPiece&)>& action) { in wrap()
28 return [action](const StringPiece& arg, std::string*) -> bool { in wrap()
35 std::function<void(const StringPiece&)> action) { in optionalFlag()
42 std::function<void(const StringPiece&)> action) { in requiredFlag()
[all …]
DDebug.cpp34 std::cout << "(attr) type="; in visit()
35 attr.printMask(std::cout); in visit()
40 std::cout << "\n " in visit()
48 std::cout << "(style)"; in visit()
50 std::cout << " parent="; in visit()
52 std::cout << style.parent.name << " "; in visit()
56 std::cout << style.parent.id; in visit()
61 std::cout << "\n "; in visit()
63 std::cout << entry.key.name.package << ":" << entry.key.name.entry; in visit()
67 std::cout << "(" << entry.key.id << ")"; in visit()
[all …]
DMain.cpp71 std::unique_ptr<ZipFile> apk;
79 std::vector<Source>* outEntries) { in walkTree()
82 for (const std::string& dirName : listFiles(root.path)) { in walkTree()
83 std::string dir = root.path; in walkTree()
95 for (const std::string& fileName : listFiles(dir)) { in walkTree()
96 std::string file(dir); in walkTree()
105 Logger::error(Source{ file }) << "not a regular file." << std::endl; in walkTree()
115 void versionStylesForCompat(const std::shared_ptr<ResourceTable>& table) { in versionStylesForCompat()
132 std::stack<ResourceConfigValue> addStack; in versionStylesForCompat()
138 size_t minSdkStripped = std::numeric_limits<size_t>::max(); in versionStylesForCompat()
[all …]
DLogger.h30 Log(std::ostream& out, std::ostream& err);
33 std::ostream& out;
34 std::ostream& err;
39 static void setLog(const std::shared_ptr<Log>& log);
41 static std::ostream& error();
42 static std::ostream& error(const Source& source);
43 static std::ostream& error(const SourceLine& sourceLine);
45 static std::ostream& warn();
46 static std::ostream& warn(const Source& source);
47 static std::ostream& warn(const SourceLine& sourceLine);
[all …]
DBindingXmlPullParser.h30 BindingXmlPullParser(const std::shared_ptr<XmlPullParser>& parser);
34 const std::string& getLastError() const override;
37 const std::u16string& getComment() const override;
41 const std::u16string& getText() const override;
43 const std::u16string& getNamespacePrefix() const override;
44 const std::u16string& getNamespaceUri() const override;
45 bool applyPackageAlias(std::u16string* package, const std::u16string& defaultPackage)
48 const std::u16string& getElementNamespace() const override;
49 const std::u16string& getElementName() const override;
55 bool writeToFile(std::ostream& out) const;
[all …]
DSourceXmlPullParser.h33 SourceXmlPullParser(std::istream& in);
38 const std::string& getLastError() const override ;
41 const std::u16string& getComment() const override;
45 const std::u16string& getText() const override;
47 const std::u16string& getNamespacePrefix() const override;
48 const std::u16string& getNamespaceUri() const override;
49 bool applyPackageAlias(std::u16string* package,
50 const std::u16string& defaultPackage) const override;
53 const std::u16string& getElementNamespace() const override;
54 const std::u16string& getElementName() const override;
[all …]
DJavaClassGenerator.cpp35 JavaClassGenerator::JavaClassGenerator(const std::shared_ptr<const ResourceTable>& table, in JavaClassGenerator()
40 static void generateHeader(std::ostream& out, const StringPiece16& package) { in generateHeader()
48 << std::endl in generateHeader()
49 << std::endl; in generateHeader()
52 static const std::set<StringPiece16> sJavaIdentifiers = {
73 static std::u16string transform(const StringPiece16& symbol) { in transform()
74 std::u16string output = symbol.toString(); in transform()
84 GenArgs(std::ostream* o, const std::u16string* p, std::u16string* e) : in GenArgs()
88 std::ostream* out;
89 const std::u16string* package;
[all …]
DLogger.cpp24 Log::Log(std::ostream& _out, std::ostream& _err) : out(_out), err(_err) { in Log()
27 std::shared_ptr<Log> Logger::sLog(std::make_shared<Log>(std::cerr, std::cerr));
29 void Logger::setLog(const std::shared_ptr<Log>& log) { in setLog()
33 std::ostream& Logger::error() { in error()
37 std::ostream& Logger::error(const Source& source) { in error()
41 std::ostream& Logger::error(const SourceLine& source) { in error()
45 std::ostream& Logger::warn() { in warn()
49 std::ostream& Logger::warn(const Source& source) { in warn()
53 std::ostream& Logger::warn(const SourceLine& source) { in warn()
57 std::ostream& Logger::note() { in note()
[all …]
DResourceTable.cpp36 static bool lessThanType(const std::unique_ptr<ResourceTableType>& lhs, ResourceType rhs) { in lessThanType()
40 static bool lessThanEntry(const std::unique_ptr<ResourceEntry>& lhs, const StringPiece16& rhs) { in lessThanEntry()
49 std::unique_ptr<ResourceTableType>& ResourceTable::findOrCreateType(ResourceType type) { in findOrCreateType()
51 auto iter = std::lower_bound(mTypes.begin(), last, type, lessThanType); in findOrCreateType()
60 std::unique_ptr<ResourceEntry>& ResourceTable::findOrCreateEntry( in findOrCreateEntry()
61 std::unique_ptr<ResourceTableType>& type, const StringPiece16& name) { in findOrCreateEntry()
63 auto iter = std::lower_bound(type->entries.begin(), last, name, lessThanEntry); in findOrCreateEntry()
150 const SourceLine& source, std::unique_ptr<Value> value) { in addResource()
151 return addResourceImpl(name, ResourceId{}, config, source, std::move(value), kValidNameChars); in addResource()
156 std::unique_ptr<Value> value) { in addResource()
[all …]
DJavaClassGenerator_test.cpp33 mTable = std::make_shared<ResourceTable>(); in SetUp()
43 std::shared_ptr<ResourceTable> mTable;
52 std::stringstream out; in TEST_F()
63 std::unique_ptr<Styleable> styleable = util::make_unique<Styleable>(); in TEST_F()
70 SourceLine{ "test.xml", 21 }, std::move(styleable))); in TEST_F()
74 std::stringstream out; in TEST_F()
76 std::string output = out.str(); in TEST_F()
78 EXPECT_NE(std::string::npos, in TEST_F()
81 EXPECT_NE(std::string::npos, in TEST_F()
84 EXPECT_NE(std::string::npos, in TEST_F()
[all …]
DMaybe_test.cpp28 std::cerr << "Construct Dummy{0x" << (void *) this in Dummy()
30 << std::endl; in Dummy()
39 std::cerr << "CopyConstruct Dummy{0x" << (void *) this in Dummy()
41 << "}" << std::endl; in Dummy()
47 std::cerr << "MoveConstruct Dummy{0x" << (void *) this in Dummy()
49 << "}" << std::endl; in Dummy()
60 std::cerr << "CopyAssign Dummy{0x" << (void *) this in operator =()
62 << "}" << std::endl; in operator =()
70 std::cerr << "MoveAssign Dummy{0x" << (void *) this in operator =()
72 << "}" << std::endl; in operator =()
[all …]
DScopedXmlPullParser_test.cpp27 std::stringstream input; in TEST()
28 input << "<?xml version=\"1.0\" encoding=\"utf-8\"?>" << std::endl in TEST()
29 << "<resources><string></string></resources>" << std::endl; in TEST()
33 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST()
36 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST()
41 EXPECT_EQ(std::u16string(u"string"), sourceParser.getElementName()); in TEST()
47 EXPECT_EQ(std::u16string(u"resources"), sourceParser.getElementName()); in TEST()
53 std::stringstream input; in TEST()
54 input << "<?xml version=\"1.0\" encoding=\"utf-8\"?>" << std::endl in TEST()
55 << "<resources><string></string></resources>" << std::endl; in TEST()
[all …]
DXmlDom.h52 std::u16string comment;
53 std::vector<std::unique_ptr<Node>> children;
56 void addChild(std::unique_ptr<Node> child);
57 virtual std::unique_ptr<Node> clone() const = 0;
76 std::u16string namespacePrefix;
77 std::u16string namespaceUri;
80 virtual std::unique_ptr<Node> clone() const override;
87 std::u16string namespaceUri;
88 std::u16string name;
89 std::u16string value;
[all …]
DUtil.h34 std::vector<std::string> split(const StringPiece& str, char sep);
35 std::vector<std::string> splitAndLowercase(const StringPiece& str, char sep);
93 Maybe<std::u16string> getFullyQualifiedClassName(const StringPiece16& package,
102 std::unique_ptr<T> make_unique(Args&&... args) { in make_unique()
103 return std::unique_ptr<T>(new T{std::forward<Args>(args)...}); in make_unique()
111 ::std::function<::std::ostream&(::std::ostream&)> joiner(Iterator begin, Iterator end, in joiner()
113 return [begin, end, sep](::std::ostream& out) -> ::std::ostream& { in joiner()
124 inline ::std::function<::std::ostream&(::std::ostream&)> formatSize(size_t size) { in formatSize()
125 return [size](::std::ostream& out) -> ::std::ostream& { in formatSize()
157 const std::u16string& str() const;
[all …]
/frameworks/av/services/audiopolicy/utilities/convert/
Dconvert.h108 static inline bool fromString(const std::string &str, T &result)
115 if (str.find_first_of(std::string("\r\n\t\v ")) != std::string::npos) {
122 if (str.find("-") != std::string::npos
123 && !std::numeric_limits<T>::is_signed) {
127 std::stringstream ss(str);
132 if (std::numeric_limits<T>::is_integer) {
133 ss >> std::hex >> result;
146 static inline bool toString(const T &value, std::string &str)
153 std::stringstream oss;
164 class Converter<std::string, dstType>
[all …]
/frameworks/compile/libbcc/tools/bcc/
DMain.cpp60 llvm::cl::list<std::string>
64 llvm::cl::list<std::string>
69 llvm::cl::list<std::string>
73 llvm::cl::opt<std::string>
78 llvm::cl::opt<std::string>
82 llvm::cl::opt<std::string>
88 llvm::cl::opt<std::string>
97 llvm::cl::opt<std::string>
121 llvm::cl::opt<std::string>
159 void extractSourcesAndSlots(const llvm::cl::list<std::string>& optList, in extractSourcesAndSlots()
[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 …]
/frameworks/av/services/audiopolicy/engineconfigurable/wrapper/include/
DParameterManagerWrapper.h43 typedef std::pair<int, const char *> CriterionTypeValuePair;
45 typedef std::map<std::string, ISelectionCriterionInterface *> CriterionCollection;
46 typedef std::map<std::string, ISelectionCriterionTypeInterface *> CriterionTypeCollection;
147 void addCriterionType(const std::string &typeName, bool isInclusive);
156 void addCriterionTypeValuePair(const std::string &typeName, uint32_t numeric,
157 const std::string &literal);
166 void addCriterion(const std::string &name,
167 const std::string &typeName,
168 const std::string &defaultLiteralValue);
219 void parseChildren(cnode *root, std::string &defaultValue, std::string &type);
[all …]
/frameworks/av/services/camera/libcameraservice/utils/
DClientManager.h48 const std::set<KEY>& conflictingKeys, int32_t priority, int32_t ownerId);
49 ClientDescriptor(KEY&& key, VALUE&& value, int32_t cost, std::set<KEY>&& conflictingKeys,
87 std::set<KEY> getConflicting() const;
102 std::set<KEY> mConflicting;
114 const std::set<KEY>& conflictingKeys, int32_t priority, int32_t ownerId) : mKey{key}, in ClientDescriptor()
120 std::set<KEY>&& conflictingKeys, int32_t priority, int32_t ownerId) : in ClientDescriptor()
121 mKey{std::forward<KEY>(key)}, mValue{std::forward<VALUE>(value)}, mCost{cost}, in ClientDescriptor()
122 mConflicting{std::forward<std::set<KEY>>(conflictingKeys)}, mPriority{priority},
163 std::set<KEY> ClientDescriptor<KEY, VALUE>::getConflicting() const { in getConflicting()
227 std::vector<std::shared_ptr<ClientDescriptor<KEY, VALUE>>> addAndEvict(
[all …]

12345678910>>...27