/base/update/updateservice/services/firmware/check/include/ |
H A D | firmware_icheck.h | 52 const std::string DEFAULT_SERVER_IP = "127.0.0.1"; 53 const std::string PARAM_NAME_FOR_SEARCH = "update.serverip.search"; 54 using CheckCallback = std::function<void(CheckStatus status, const Duration &duration, 55 const std::vector<FirmwareComponent> &firmwareCheckResultList, const CheckAndAuthInfo &checkAndAuthInfo)>; 57 using cJSONPtr = std::unique_ptr<cJSON, decltype(&cJSON_Delete)>; 82 std::string serverIp = OHOS::system::GetParameter(PARAM_NAME_FOR_SEARCH, DEFAULT_SERVER_IP); in DoAction() 121 int32_t ParseJsonFile(const std::vector<char> &buffer, NetworkResponse &response) in ParseJsonFile() 139 std::string errMsg = "Couldn't connect to server"; in ReadDataFromSSL() 140 std::vector<char> buffer(JSON_MAX_SIZE); in ReadDataFromSSL() 177 std [all...] |
/base/update/updater/test/unittest/updater_binary/ |
H A D | updater_binary_unittest.cpp | 30 using namespace std; 45 std::string path = TEST_PATH_TO + testPackageName; in TestUpdater() 71 int32_t BuildFileDigest(uint8_t &digest, size_t size, const std::string &packagePath) const in BuildFileDigest() 157 std::string packagePath = TEST_PATH_TO; in CreatePackageBin() 182 std::vector<std::string> testFileNames_ = { 191 std::string testPackageName = "test_package.bin"; 192 void BuildCompnentInfo(ComponentInfoExt &comp, const std::string &cmpName, in BuildCompnentInfo() 193 const std::string &scriptPath = "loadScript.us", uint8_t componentType = 0) const in BuildCompnentInfo() 195 std in BuildCompnentInfo() [all...] |
/base/update/updater/services/ui/ |
H A D | updater_ui_facade.cpp | 46 [[nodiscard]] bool UpdaterUiFacade::SetMode(std::string mode) in SetMode() 56 std::string UpdaterUiFacade::GetMode() const in GetMode() 61 std::pair<bool, UpdaterUiFacade::StrategyMap::const_iterator> UpdaterUiFacade::CheckMode() const in CheckMode() 71 void UpdaterUiFacade::ShowLog(const std::string &tag, bool isClear) const in ShowLog() 78 void UpdaterUiFacade::ShowLogRes(const std::string &tag, bool isClear) const in ShowLogRes() 85 void UpdaterUiFacade::ShowUpdInfo(const std::string &tag, bool isClear) const in ShowUpdInfo() 228 void UpdaterUiFacade::ShowMsg(const ComInfo &id, const std::string &tag, bool isClear) const in ShowMsg() 237 void UpdaterUiFacade::ShowMsg(const ComInfo &id, const std::string &tag) const in ShowMsg() 263 std::this_thread::sleep_for(std in Sleep() [all...] |
/third_party/cups-filters/filter/pdftopdf/ |
H A D | qpdf_pdftopdf.cc | 39 throw std::runtime_error("Unexpected /Rotation value: "+QUtil::double_to_string(rot)); in getRotate() 66 throw std::invalid_argument("Bad rotation"); in makeRotate() 90 throw std::runtime_error("Not a ctm matrix"); in Matrix() 104 std::swap(ctm[0],ctm[2]); in rotate() 105 std::swap(ctm[1],ctm[3]); in rotate() 114 std::swap(ctm[0],ctm[2]); in rotate() 115 std::swap(ctm[1],ctm[3]); in rotate() 181 std::copy(ctm,ctm+6,tmp); in operator *=() 209 std::string Matrix::get_string() const // {{{ in get_string() 211 std in get_string() [all...] |
/third_party/googletest/googletest/test/ |
H A D | googletest-listener-test.cc | 51 std::vector<std::string>* g_events = nullptr; 125 std::string GetFullMethodName(const char* name) { return name_ + "." + name; } in GetFullMethodName() 127 std::string name_; 197 std::string GetFullMethodName(const char* name) { return name_ + "." + name; } in GetFullMethodName() 199 std::string name_; 244 void VerifyResults(const std::vector<std::string>& data, in VerifyResults() 268 std::vector<std in main() [all...] |
/third_party/gptfdisk/ |
H A D | gpt.h | 68 std::string device; // device filename 94 GPTData(std::string deviceFilename); 112 int SetDisk(const std::string & deviceFilename); 114 int LoadMBR(const std::string & f) {return protectiveMBR.ReadMBRData(f);} in LoadMBR() 117 int LoadPartitions(const std::string & deviceFilename); 122 int SaveGPTBackup(const std::string & filename); 123 int LoadGPTBackup(const std::string & filename); 207 int ManageAttributes(int partNum, const std::string & command, const std::string & bits); 209 void GetAttribute(const uint32_t partNum, const std [all...] |
/third_party/nghttp2/src/ |
H A D | base64.h | 49 template <typename InputIt> std::string encode(InputIt first, InputIt last) { in encode() 50 std::string res; in encode() 58 auto p = std::begin(res); in encode() 157 assert(std::distance(first, last) % 4 == 0); in decode() 193 template <typename InputIt> std::string decode(InputIt first, InputIt last) { in decode() 194 auto len = std::distance(first, last); in decode() 198 std::string res; in decode() 201 res.erase(decode(first, last, std::begin(res)), std::end(res)); in decode() 208 auto len = std in decode() [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | string-16.h | 33 explicit String16(const std::basic_string<UChar>& impl); 34 explicit String16(std::basic_string<UChar>&& impl); 69 std::swap(hash_code, other.hash_code); in swap() 73 V8_EXPORT std::string utf8() const; 81 std::size_t hash() const { in hash() 113 std::basic_string<UChar> m_impl; 114 mutable std::size_t hash_code = 0; 145 std::vector<UChar> m_buffer; 159 namespace std { namespace 162 std [all...] |
/third_party/node/deps/v8/src/runtime/ |
H A D | runtime-trace.cc | 41 void PrintRegisterRange(UnoptimizedFrame* frame, std::ostream& os, in PrintRegisterRange() 48 os << " [ " << std::setw(reg_field_width) in PrintRegisterRange() 51 os << " ]" << std::endl; in PrintRegisterRange() 55 void PrintRegisters(UnoptimizedFrame* frame, std::ostream& os, bool is_input, in PrintRegisters() 75 os << " ]" << std::endl; in PrintRegisters() 145 os << static_cast<const void*>(bytecode_address) << " @ " << std::setw(4) in RUNTIME_FUNCTION() 148 os << std::endl; in RUNTIME_FUNCTION() 152 os << std::flush; in RUNTIME_FUNCTION() 192 os << std::flush; in RUNTIME_FUNCTION() 227 os << "]" << std in RUNTIME_FUNCTION() [all...] |
H A D | runtime-typedarray.cc | 71 } else if (!std::is_integral<T>::value) { in CompareNum() 75 return std::signbit(_x) && !std::signbit(_y); in CompareNum() 76 } else if (!std::isnan(_x) && std::isnan(_y)) { in CompareNum() 97 // Sorting is meaningless with the mock allocator, and std::sort in RUNTIME_FUNCTION() 107 // std::sort might crash in case the underlying data is concurrently in RUNTIME_FUNCTION() 114 std::vector<uint8_t> offheap_copy; in RUNTIME_FUNCTION() 142 std::sort(UnalignedSlot<ctype>(data), \ in RUNTIME_FUNCTION() 145 std in RUNTIME_FUNCTION() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/DebugInfo/GSYM/ |
H A D | InlineInfo.cpp | 40 std::vector<const InlineInfo *> &InlineStack) { in getInlineStackHelper() 139 Err = createStringError(std::errc::invalid_argument, in lookup() 179 return createStringError(std::errc::io_error, in decode() 185 return createStringError(std::errc::io_error, in decode() 190 return createStringError(std::errc::io_error, in decode() 194 return createStringError(std::errc::io_error, in decode() 198 return createStringError(std::errc::io_error, in decode() 212 Inline.Children.emplace_back(std::move(*Child)); in decode() 229 return createStringError(std::errc::invalid_argument, in encode() 247 return createStringError(std in encode() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/MC/ |
H A D | MCSectionMachO.cpp | 182 std::string MCSectionMachO::ParseSectionSpecifier(StringRef Spec, // In. in ParseSectionSpecifier() 223 auto TypeDescriptor = std::find_if( in ParseSectionSpecifier() 224 std::begin(SectionTypeDescriptors), std::end(SectionTypeDescriptors), in ParseSectionSpecifier() 230 if (TypeDescriptor == std::end(SectionTypeDescriptors)) in ParseSectionSpecifier() 234 TAA = TypeDescriptor - std::begin(SectionTypeDescriptors); in ParseSectionSpecifier() 251 auto AttrDescriptorI = std::find_if( in ParseSectionSpecifier() 252 std::begin(SectionAttrDescriptors), std::end(SectionAttrDescriptors), in ParseSectionSpecifier() 256 if (AttrDescriptorI == std in ParseSectionSpecifier() [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/glesext/tessellation_shader/ |
H A D | esextcTessellationShaderTessellation.hpp | 121 typedef std::vector<_run> _runs; 125 std::string getTCCode(); 126 std::string getTECode(_tessellation_primitive_mode primitive_mode); 224 typedef std::vector<_run> _runs; 228 std::string getTCCode(glw::GLuint n_patch_vertices); 229 std::string getTECode(_tessellation_primitive_mode primitive_mode); 278 static std::string getTypeName(_tessellation_test_type test_type); 330 typedef std::vector<_test_descriptor> _tests; 334 std::string getTCCode(glw::GLint n_patch_vertices); 336 std [all...] |
/third_party/vk-gl-cts/external/openglcts/modules/gl/ |
H A D | gl3cTextureSwizzleTests.hpp | 66 std::string& string); 232 std::string getFragmentShader(const testCase& test_case, size_t output_format_index, bool is_tested_stage); 234 std::string getVertexShader(const testCase& test_case, bool is_tested_stage); 247 std::string prepareArguments(const testCase& test_case); 248 std::string prepareCoordinates(const testCase& test_case); 250 std::string prepareDerivatives(const testCase& test_case, size_t index); 252 std::string prepareOffsets(const testCase& test_case); 255 std::string prepareSample(); 326 std::string prepareValues(size_t format_idx); 334 class wrongResults : public std [all...] |
/third_party/vk-gl-cts/execserver/tools/ |
H A D | xsClient.cpp | 37 using std::string; 38 using std::vector; 141 std::string program; 142 std::string params; 143 std::string workingDir; 144 std::string caseList; 145 std::string dstFileName; 178 std::fstream out(m_cmdLine.dstFileName.c_str(), std::fstream::out|std in run() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/ |
H A D | transformation_replace_irrelevant_id_test.cpp | 26 const std::string shader = R"( 28 %1 = OpExtInstImport "GLSL.std.450" 147 std::string after_transformation = R"( in TEST() 149 %1 = OpExtInstImport "GLSL.std.450" in TEST() 194 const std::string reference_shader = R"( in TEST() 196 %1 = OpExtInstImport "GLSL.std.450" in TEST() 243 const std::string reference_shader = R"( in TEST() 245 %1 = OpExtInstImport "GLSL.std.450" in TEST() 290 const std::string reference_shader = R"( in TEST() 292 %1 = OpExtInstImport "GLSL.std in TEST() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/ |
H A D | text_to_binary.image_test.cpp | 34 std::string image_operands; 36 std::vector<uint32_t> expected_mask_and_operands; 45 const std::string input = in TEST_P() 55 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 74 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 111 const std::string input = "%2 = OpImage %1 %3\n"; in TEST_F() 153 const std::string input = "%2 = OpImageSparseRead %1 %3 %4\n"; in TEST_F() 166 const std::string input = in TEST_P() 178 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 195 ::testing::ValuesIn(std [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/egl_tests/ |
H A D | EGLFeatureControlTest.cpp | 133 std::vector<const char *> enabled = std::vector<const char *>(); in TEST_P() 134 std::vector<const char *> disabled = std::vector<const char *>(); in TEST_P() 135 std::vector<bool> shouldBe = std::vector<bool>(); in TEST_P() 136 std::vector<std::string> testedFeatures = { in TEST_P() 147 bool toggle = std::find(testedFeatures.begin(), testedFeatures.end(), in TEST_P() 148 std in TEST_P() [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/compiler_tests/ |
H A D | ShaderImage_test.cpp | 75 void CheckExportedImageUniform(const std::vector<sh::ShaderVariable> &uniforms, in CheckExportedImageUniform() 137 const std::string &shaderString = in TEST_F() 157 const std::string &shaderString = in TEST_F() 177 const std::string &shaderString = in TEST_F() 192 std::string mangledName2D = "imageLoad("; in TEST_F() 198 std::string mangledName3D = "imageLoad("; in TEST_F() 207 const std::string &shaderString = in TEST_F() 222 std::string mangledName2D = "imageStore("; in TEST_F() 229 std::string mangledName2DArray = "imageStore("; in TEST_F() 239 const std in TEST_F() [all...] |
/third_party/skia/src/gpu/d3d/ |
H A D | GrD3DRenderTarget.cpp | 30 , GrD3DTextureResource(info, std::move(state)) in GrD3DRenderTarget() 33 , fMSAATextureResource(new GrD3DTextureResource(msaaInfo, std::move(msaaState))) in GrD3DRenderTarget() 52 , GrD3DTextureResource(info, std::move(state)) in GrD3DRenderTarget() 55 , fMSAATextureResource(new GrD3DTextureResource(msaaInfo, std::move(msaaState))) in GrD3DRenderTarget() 71 , GrD3DTextureResource(info, std::move(state)) in GrD3DRenderTarget() 86 , GrD3DTextureResource(info, std::move(state)) in GrD3DRenderTarget() 113 std::tie(msInfo, msState) = in MakeWrappedRenderTarget() 119 d3dRT = new GrD3DRenderTarget(gpu, dimensions, info, std::move(state), msInfo, in MakeWrappedRenderTarget() 120 std::move(msState), msaaRenderTargetView, renderTargetView, in MakeWrappedRenderTarget() 123 d3dRT = new GrD3DRenderTarget(gpu, dimensions, info, std in MakeWrappedRenderTarget() [all...] |
/third_party/skia/src/core/ |
H A D | SkFontMgr.cpp | 66 sk_sp<SkTypeface> onMakeFromStreamIndex(std::unique_ptr<SkStreamAsset>, int) const override { 69 sk_sp<SkTypeface> onMakeFromStreamArgs(std::unique_ptr<SkStreamAsset>, 119 return this->onMakeFromData(std::move(data), ttcIndex); in makeFromData() 122 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream() 127 return this->onMakeFromStreamIndex(std::move(stream), ttcIndex); in makeFromStream() 130 sk_sp<SkTypeface> SkFontMgr::makeFromStream(std::unique_ptr<SkStreamAsset> stream, in makeFromStream() 135 return this->onMakeFromStreamArgs(std::move(stream), args); in makeFromStream() 150 std::vector<sk_sp<SkTypeface>> SkFontMgr::getSystemFonts() in getSystemFonts() 155 std::vector<sk_sp<SkTypeface>> SkFontMgr::onGetSystemFonts() const in onGetSystemFonts() 176 singleton = fm ? std in RefDefault() [all...] |
/third_party/skia/src/gpu/ |
H A D | GrRecordingContext.cpp | 30 GrRecordingContext::ProgramData::ProgramData(std::unique_ptr<const GrProgramDesc> desc, in ProgramData() 32 : fDesc(std::move(desc)) in ProgramData() 37 : fDesc(std::move(other.fDesc)) in ProgramData() 44 : INHERITED(std::move(proxy)) in GrRecordingContext() 47 fProxyProvider = std::make_unique<GrProxyProvider>(this); in GrRecordingContext() 118 // Must be defined here so that std::unique_ptr can see the sizes of the various pools, otherwise 125 fRecordTimeAllocator = std::move(a.fRecordTimeAllocator); in operator =() 126 fRecordTimeSubRunAllocator = std::move(a.fRecordTimeSubRunAllocator); in operator =() 133 fRecordTimeAllocator = std::make_unique<SkArenaAlloc>(1024); in get() 137 fRecordTimeSubRunAllocator = std in get() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/ |
H A D | transformation_replace_irrelevant_id_test.cpp | 26 const std::string shader = R"( 28 %1 = OpExtInstImport "GLSL.std.450" 147 std::string after_transformation = R"( in TEST() 149 %1 = OpExtInstImport "GLSL.std.450" in TEST() 194 const std::string reference_shader = R"( in TEST() 196 %1 = OpExtInstImport "GLSL.std.450" in TEST() 243 const std::string reference_shader = R"( in TEST() 245 %1 = OpExtInstImport "GLSL.std.450" in TEST() 290 const std::string reference_shader = R"( in TEST() 292 %1 = OpExtInstImport "GLSL.std in TEST() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
H A D | text_to_binary.image_test.cpp | 34 std::string image_operands; 36 std::vector<uint32_t> expected_mask_and_operands; 45 const std::string input = in TEST_P() 55 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 74 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 111 const std::string input = "%2 = OpImage %1 %3\n"; in TEST_F() 153 const std::string input = "%2 = OpImageSparseRead %1 %3 %4\n"; in TEST_F() 166 const std::string input = in TEST_P() 178 ::testing::ValuesIn(std::vector<ImageOperandsCase>{ 195 ::testing::ValuesIn(std [all...] |
/third_party/skia/third_party/externals/angle2/src/tests/test_utils/ |
H A D | MultiviewTest.cpp | 19 std::string ext; in CreateSimplePassthroughProgram() 33 const std::string vsSource = in CreateSimplePassthroughProgram() 48 const std::string fsSource = in CreateSimplePassthroughProgram() 66 std::vector<GLuint> colorTextures, in CreateMultiviewBackingTextures() 71 std::vector<GLubyte> textureData; in CreateMultiviewBackingTextures() 173 std::vector<GLuint> colorTextures(1, colorTexture); in CreateMultiviewBackingTextures() 182 std::vector<GLuint> colorTextures, in AttachMultiviewTextures() 214 std::vector<GLuint> colorTextures(1, colorTexture); in AttachMultiviewTextures() 219 std::ostream &operator<<(std [all...] |