Home
last modified time | relevance | path

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

12

/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 …]
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.h108 const std::set<dex::u4>& ScratchRegs() const { in ScratchRegs()
122 std::set<dex::u4> scratch_regs_;
142 explicit MethodInstrumenter(std::shared_ptr<ir::DexFile> dex_ir) : dex_ir_(dex_ir) {} in MethodInstrumenter()
152 T* transformation = new T(std::forward<Args>(args)...); in AddTransformation()
162 std::shared_ptr<ir::DexFile> dex_ir_;
163 std::vector<std::unique_ptr<Transformation>> transformations_;
Dchronometer.h25 using Clock = std::chrono::high_resolution_clock;
36 std::chrono::duration<double, std::milli> ms = end_time - start_time_; in ~Chronometer()
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_;
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_;
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_;
Dcontrol_flow_graph.h52 std::vector<BasicBlock> Finish();
83 std::vector<BasicBlock> basic_blocks_;
91 std::vector<BasicBlock> basic_blocks;
Ddebuginfo_encoder.h42 void Encode(ir::EncodedMethod* ir_method, std::shared_ptr<ir::DexFile> dex_ir);
45 std::vector<ir::String*>* param_names_ = nullptr;
Dscopeguard.h41 closure_(std::move(closure)) in ScopeGuard()
64 return ScopeGuard<T>(std::move(closure));
Dwriter.h122 std::unique_ptr<T[]> values_;
179 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_;
Dindex_map.h47 std::vector<bool> indexes_map_;
/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 …]
Dcommon.cc34 thread_local std::set<std::pair<int, const char*>> weak_failures;
41 auto failure_id = std::make_pair(line, file); in _weakCheckFailed()
Dtryblocks_encoder.cc58 void TryBlocksEncoder::Encode(ir::Code* ir_code, std::shared_ptr<ir::DexFile> dex_ir) { in Encode()
105 dex_ir->AttachBuffer(std::move(tries_)); in Encode()
106 dex_ir->AttachBuffer(std::move(handlers_)); in Encode()
Ddex_format.cc56 std::string DescriptorToDecl(const char* descriptor) { in DescriptorToDecl()
57 std::stringstream ss; in DescriptorToDecl()
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()
Dcontrol_flow_graph.cc22 std::vector<BasicBlock> BasicBlocksVisitor::Finish() { in Finish()
37 return std::move(basic_blocks_); in Finish()
/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()
309 void StressScratchRegs(std::shared_ptr<ir::DexFile> dex_ir) { in StressScratchRegs()
335 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.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_;
Ddexter.h43 bool CreateNewImage(std::shared_ptr<ir::DexFile> dex_ir);
59 std::vector<const char*> experiments_;
Dexperimental.h25 void Run(const char* experiment, std::shared_ptr<ir::DexFile> dex_ir);
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()
/tools/tradefederation/core/src/com/android/tradefed/util/
DSimpleStats.java167 Double std = stdev(); in meanOverOneStandardDeviationRange() local
168 Double upper = avg + std; in meanOverOneStandardDeviationRange()
169 Double lower = avg - std; in meanOverOneStandardDeviationRange()

12