Home
last modified time | relevance | path

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

123

/tools/dexter/slicer/export/slicer/
Ddex_ir.h55 using own = std::unique_ptr<T>;
156 std::vector<EncodedValue*> values;
180 std::string Decl() const;
187 std::vector<Type*> types;
197 std::string Signature() const;
219 std::vector<String*> param_names;
265 std::vector<AnnotationElement*> elements;
272 std::vector<Annotation*> annotations;
278 std::vector<AnnotationSet*> annotations;
306 std::vector<FieldAnnotation*> field_annotations;
[all …]
Dcode_ir.h47 using own = std::unique_ptr<T>;
168 std::vector<dex::u4> registers;
302 std::vector<Operand*> operands;
314 std::vector<Label*> targets;
325 std::vector<SwitchCase> switch_cases;
359 std::vector<CatchHandler> handlers;
366 std::vector<ir::String*> param_names;
383 std::vector<Operand*> operands;
401 std::shared_ptr<ir::DexFile> dex_ir;
404 CodeIr(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir) in CodeIr()
[all …]
Dbuffer.h47 std::swap(buff_, b.buff_); in Buffer()
48 std::swap(size_, b.size_); in Buffer()
49 std::swap(capacity_, b.capacity_); in Buffer()
54 std::swap(buff_, b.buff_);
55 std::swap(size_, b.size_);
56 std::swap(capacity_, b.capacity_);
92 std::memset(buff_ + offset, 0, size); in Alloc()
99 std::memcpy(buff_ + offset, ptr, size); in Push()
113 size_t Push(const std::vector<T>& v) { in Push()
164 capacity_ = std::max(size_t(capacity_ * 1.5), size_ + size); in Expand()
Dinstrumentation.h167 const std::set<dex::u4>& ScratchRegs() const { in ScratchRegs()
181 std::set<dex::u4> scratch_regs_;
201 explicit MethodInstrumenter(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in MethodInstrumenter()
211 T* transformation = new T(std::forward<Args>(args)...); in AddTransformation()
221 std::shared_ptr<ir::DexFile> dex_ir_;
222 std::vector<std::unique_ptr<Transformation>> transformations_;
Dreader.h59 std::shared_ptr<ir::DexFile> GetIr() const { return dex_ir_; } in GetIr()
142 std::shared_ptr<ir::DexFile> dex_ir_;
145 std::map<dex::u4, ir::TypeList*> type_lists_;
146 std::map<dex::u4, ir::Annotation*> annotations_;
147 std::map<dex::u4, ir::AnnotationSet*> annotation_sets_;
148 std::map<dex::u4, ir::AnnotationsDirectory*> annotations_directories_;
149 std::map<dex::u4, ir::EncodedArray*> encoded_arrays_;
Dhash_table.h73 std::vector<Bucket> buckets_;
102 std::unique_ptr<Partition> full_table_;
103 std::unique_ptr<Partition> insertion_table_;
178 std::unique_ptr<Partition> new_hash_table( in Insert()
184 full_table_ = std::move(insertion_table_); in Insert()
185 insertion_table_ = std::move(new_hash_table); in Insert()
218 max_chain_length = std::max(max_chain_length, chain_length); in PrintStats()
Dwriter.h122 std::unique_ptr<T[]> values_;
179 explicit Writer(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in Writer()
210 dex::u4 WriteTypeList(const std::vector<ir::Type*>& types);
236 std::shared_ptr<ir::DexFile> dex_ir_;
237 std::unique_ptr<DexImage> dex_;
241 std::map<const ir::Node*, dex::u4> node_offset_;
Dbytecode_encoder.h38 void Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir);
71 std::vector<LabelFixup> fixups_;
81 std::map<dex::u4, const PackedSwitchPayload*> packed_switches_;
82 std::map<dex::u4, const SparseSwitchPayload*> sparse_switches_;
Dchronometer.h25 using Clock = std::chrono::high_resolution_clock;
36 std::chrono::duration<double, std::milli> ms = end_time - start_time_; in ~Chronometer()
Ddex_ir_builder.h49 explicit Builder(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in Builder()
62 TypeList* GetTypeList(const std::vector<Type*>& types);
83 std::shared_ptr<ir::DexFile> dex_ir_;
/tools/test/graphicsbenchmark/functional_tests/native/
DglExtensions_test.cpp92 std::vector<std::string> neededExts {"GL_EXT_color_buffer_half_float", in TEST()
97 std::string extString(reinterpret_cast<const char*>(glGetString(GL_EXTENSIONS))); in TEST()
99 std::istringstream iss(extString); in TEST()
101 std::vector<std::string> availableExts(std::istream_iterator<std::string>{iss}, in TEST()
102 std::istream_iterator<std::string>()); in TEST()
105 if (std::find(availableExts.begin(), availableExts.end(), ext) == availableExts.end()) in TEST()
121 std::vector<std::string> neededExts {"EGL_ANDROID_get_frame_timestamps", in TEST()
127 std::string extString(eglQueryString(eglDisp, EGL_EXTENSIONS)); in TEST()
129 std::istringstream iss(extString); in TEST()
131 std::vector<std::string> availableExts(std::istream_iterator<std::string>{iss}, in TEST()
[all …]
Dmain.cpp48 std::istringstream(optarg) >> std::boolalpha >> isGameCoreCertified; in main()
51 std::istringstream(optarg) >> std::boolalpha >> doFeatureCheck; in main()
/tools/dexter/dexter/
Dexperimental.cc33 void FullRewrite(std::shared_ptr<ir::DexFile> dex_ir) { in FullRewrite()
49 void StressWrapInvoke(std::shared_ptr<ir::DexFile> dex_ir) { in StressWrapInvoke()
90 std::vector<ir::Type*> param_types; in StressWrapInvoke()
139 void StressEntryHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressEntryHook()
149 std::vector<ir::Type*> param_types; in StressEntryHook()
198 void StressExitHook(std::shared_ptr<ir::DexFile> dex_ir) { in StressExitHook()
212 std::vector<ir::Type*> param_types; in StressExitHook()
292 void TestMethodInstrumenter(std::shared_ptr<ir::DexFile> dex_ir) { in TestMethodInstrumenter()
315 void StressScratchRegs(std::shared_ptr<ir::DexFile> dex_ir) { in StressScratchRegs()
341 void CodeCoverage(std::shared_ptr<ir::DexFile> dex_ir) { in CodeCoverage()
[all …]
Ddexter.cc34 static std::string ClassNameToDescriptor(const char* class_name) { in ClassNameToDescriptor()
35 std::stringstream ss; in ClassNameToDescriptor()
61 const std::map<std::string, DexDissasembler::CfgType> cfg_type_names = { in Run()
201 static void PrintDexIrStats(std::shared_ptr<const ir::DexFile> dex_ir) { in PrintDexIrStats()
263 bool Dexter::CreateNewImage(std::shared_ptr<ir::DexFile> dex_ir) { in CreateNewImage()
336 std::unique_ptr<dex::u1[]> in_buff(new dex::u1[in_size]); in ProcessDex()
361 std::string descriptor = ClassNameToDescriptor(extract_class_); in ProcessDex()
Ddissasembler.cc26 static std::string MethodDeclaration(const ir::Proto* proto) { in MethodDeclaration()
27 std::stringstream ss; in MethodDeclaration()
115 if (std::isnan(const32->u.float_value)) { in Visit()
125 if (std::isnan(const64->u.double_value)) { in Visit()
328 std::unique_ptr<lir::ControlFlowGraph> cfg; in Dissasemble()
Ddissasembler.h29 PrintCodeIrVisitor(std::shared_ptr<ir::DexFile> dex_ir, lir::ControlFlowGraph* cfg) in PrintCodeIrVisitor()
59 std::shared_ptr<ir::DexFile> dex_ir_;
74 explicit DexDissasembler(std::shared_ptr<ir::DexFile> dex_ir, CfgType cfg_type = CfgType::None)
87 std::shared_ptr<ir::DexFile> dex_ir_;
/tools/dexter/slicer/
Ddex_ir.cc49 uint32_t ProtosHasher::Hash(const std::string& proto_key) const { in Hash()
53 bool ProtosHasher::Compare(const std::string& proto_key, const Proto* proto) const { in Compare()
66 return static_cast<uint32_t>(std::hash<void*>{}(method_key.class_descriptor) ^ in Hash()
67 std::hash<void*>{}(method_key.method_name) ^ in Hash()
68 std::hash<void*>{}(method_key.prototype)); in Hash()
78 std::string Type::Decl() const { in Decl()
99 std::string Proto::Signature() const { in Signature()
100 std::stringstream ss; in Signature()
115 static void IndexItems(std::vector<T>& items, C comp) { in IndexItems()
116 std::sort(items.begin(), items.end(), comp); in IndexItems()
[all …]
Dinstrumentation.cc70 std::vector<ir::Type*> param_types; in BoxValue()
118 std::vector<ir::Type*> param_types; in Apply()
166 std::vector<ir::Type*> param_types; in GenerateShiftParamsCode()
213 …auto param_types = param_types_list != nullptr ? param_types_list->types : std::vector<ir::Type*>(… in InjectArrayParamsHook()
262 std::vector<ir::Type*> types; in InjectArrayParamsHook()
299 std::vector<ir::Type*> hook_param_types; in InjectArrayParamsHook()
349 std::vector<ir::Type*> param_types; in Apply()
462 std::vector<ir::Type*> param_types; in Apply()
571 int delta = std::min(left_to_allocate_, in RegsRenumbering()
Dwriter.cc54 if (std::is_signed<T>::value) { in WriteIntValue()
382 static void AddMapItem(const T& section, std::vector<dex::MapItem>& items) { in AddMapItem()
399 std::vector<dex::MapItem> map_items; in CreateMapSection()
425 std::sort(map_items.begin(), map_items.end(), in CreateMapSection()
631 dex::u4 Writer::WriteTypeList(const std::vector<ir::Type*>& types) { in WriteTypeList()
701 std::vector<dex::FieldAnnotationsItem> dex_field_annotations; in WriteClassAnnotations()
702 std::vector<dex::MethodAnnotationsItem> dex_method_annotations; in WriteClassAnnotations()
703 std::vector<dex::ParameterAnnotationsItem> dex_param_annotations; in WriteClassAnnotations()
910 std::map<dex::u2, dex::u2> handlers_offset_map; in WriteTryBlocks()
923 for (int catch_index = 0; catch_index < std::abs(catch_count); ++catch_index) { in WriteTryBlocks()
Ddex_ir_builder.cc86 dex_ir_->AttachBuffer(std::move(buff)); in GetAsciiString()
116 TypeList* Builder::GetTypeList(const std::vector<Type*>& types) { in GetTypeList()
135 static std::string CreateShorty(Type* return_type, TypeList* param_types) { in CreateShorty()
136 std::stringstream ss; in CreateShorty()
Dcommon.cc34 thread_local std::set<std::pair<int, const char*>> weak_failures;
41 auto failure_id = std::make_pair(line, file); in _weakCheckFailed()
/tools/security/fuzzing/orphans/libskia/
Dlibskia_image_processor_fuzzer.cpp33 static int getAndroidPixels(std::string& contents, bool requestPremul) { in getAndroidPixels()
35std::unique_ptr<SkMemoryStream> stream = SkMemoryStream::MakeDirect(contents.data(), contents.size… in getAndroidPixels()
40 std::unique_ptr<SkCodec> c = SkCodec::MakeFromStream(std::move(stream), in getAndroidPixels()
46 std::unique_ptr<SkAndroidCodec> codec; in getAndroidPixels()
47 codec = SkAndroidCodec::MakeFromCodec(std::move(c)); in getAndroidPixels()
78 std::string sdata1(data, size); in LLVMFuzzerTestOneInput()
80 std::string sdata2(data, size); in LLVMFuzzerTestOneInput()
/tools/test/graphicsbenchmark/apps/sample_app/src/cpp/
Dmain.cpp42 using namespace std::chrono_literals;
103 std::srand(0); in android_main()
107 std::unique_ptr<Renderer> renderer(new Renderer(1)); in android_main()
143 static auto last_timestamp = std::chrono::steady_clock::now(); in android_main()
144 auto now = std::chrono::steady_clock::now(); in android_main()
145 if (now - last_timestamp >= std::chrono::seconds(5)) { in android_main()
Dvecmath.h197 if (std::isnan(x_) || std::isnan(y_)) return false; in Validate()
394 if (std::isnan(x_) || std::isnan(y_) || std::isnan(z_)) return false; in Validate()
612 if (std::isnan(x_) || std::isnan(y_) || in Validate()
613 std::isnan(z_) || std::isnan(w_)) in Validate()
/tools/security/fuzzing/orphans/libffi/
Dfuzz_ffi.cc119 std::vector<uint8_t> bytes = dataProvider->ConsumeBytes<uint8_t>(type_size); in genArg()
171 std::vector<uint8_t> data_vector = in runMainFunctions()
209 std::vector<uint8_t> data_vector = in runRawFunctions()
254 std::vector<uint8_t> data_vector = in runJavaFunctions()

123