Lines Matching refs:std
52 const std::string& GetPath() const { in GetPath()
57 std::string path_;
66 explicit ScratchFile(const std::string& filename);
78 const std::string& GetFilename() const { in GetFilename()
92 std::string filename_;
93 std::unique_ptr<File> file_;
99 static std::unique_ptr<FakeDex> Create( in Create()
100 const std::string& location, in Create()
105 return std::unique_ptr<FakeDex>(fake_dex); in Create()
108 static std::unique_ptr<const DexFile> CreateFakeDex( in CreateFakeDex()
109 const std::string& location, in CreateFakeDex()
112 std::vector<uint8_t>* storage) { in CreateFakeDex()
123 std::string error_msg; in CreateFakeDex()
124 std::unique_ptr<const DexFile> dex(dex_file_loader.Open(storage->data(), in CreateFakeDex()
136 std::unique_ptr<const DexFile>& Dex() { in Dex()
141 std::vector<uint8_t> storage;
142 std::unique_ptr<const DexFile> dex;
150 const std::string& location, in AddFakeDex()
158 std::vector<std::unique_ptr<FakeDex>> fake_dex_files;
174 static void SetUpAndroidDataDir(std::string& android_data);
176 static void TearDownAndroidDataDir(const std::string& android_data, bool fail_on_error);
179 virtual std::vector<std::string> GetLibCoreModuleNames() const;
182 std::vector<std::string> GetLibCoreDexFileNames(const std::vector<std::string>& modules) const;
185 std::vector<std::string> GetLibCoreDexFileNames() const;
188 std::vector<std::string> GetLibCoreDexLocations(const std::vector<std::string>& modules) const;
191 std::vector<std::string> GetLibCoreDexLocations() const;
193 static std::string GetClassPathOption(const char* option,
194 const std::vector<std::string>& class_path);
197 static std::string GetAndroidHostToolsDir();
200 std::string GetTestDexFileName(const char* name) const;
203 bool MutateDexFile(File* output_dex, const std::string& input_jar, const Mutator& mutator) { in MutateDexFile()
204 std::vector<std::unique_ptr<const DexFile>> dex_files; in MutateDexFile()
205 std::string error_msg; in MutateDexFile()
214 const std::unique_ptr<const DexFile>& dex = dex_files[0]; in MutateDexFile()
242 using OutputHandlerFn = std::function<void(char*, size_t)>;
243 using PostForkFn = std::function<bool()>;
244 static ForkAndExecResult ForkAndExec(const std::vector<std::string>& argv,
247 static ForkAndExecResult ForkAndExec(const std::vector<std::string>& argv,
249 std::string* output);
258 static std::string GetAndroidToolsDir(const std::string& subdir1,
259 const std::string& subdir2,
260 const std::string& subdir3);
263 static std::string GetCoreArtLocation();
266 static std::string GetCoreOatLocation();
268 std::unique_ptr<const DexFile> LoadExpectSingleDexFile(const char* location);
273 std::vector<std::unique_ptr<const DexFile>> OpenDexFiles(const char* filename);
276 std::unique_ptr<const DexFile> OpenDexFile(const char* filename);
279 std::vector<std::unique_ptr<const DexFile>> OpenTestDexFiles(const char* name);
281 std::unique_ptr<const DexFile> OpenTestDexFile(const char* name);
284 std::string android_data_;
285 std::string dalvik_cache_;
293 std::string CreateClassPath(const std::vector<std::unique_ptr<const DexFile>>& dex_files);
296 std::string CreateClassPathWithChecksums(
297 const std::vector<std::unique_ptr<const DexFile>>& dex_files);
299 static std::string GetCoreFileLocation(const char* suffix);
301 std::vector<std::unique_ptr<const DexFile>> loaded_dex_files_;