/test/xts/hats/useriam/userauth/src/ |
H A D | user_auth_hdi.cpp | 19 using namespace std; 187 std::vector<uint8_t> extraInfo; in FillTestScheduleInfo() 213 const std::string deviceUdid = std::string(64, '0'); in HWTEST_F() 231 std::vector<uint8_t> publicKey; in HWTEST_F() 233 std::vector<uint64_t> templateIds; in HWTEST_F() 252 std::vector<CredentialInfo> infos; in HWTEST_F() 272 std::vector<EnrolledInfo> infos; in HWTEST_F() 290 std::vector<uint8_t> authToken; in HWTEST_F() 292 std in HWTEST_F() [all...] |
/third_party/gn/src/gn/ |
H A D | builder.cc | 36 std::vector<const BuilderRecord*>* path) { in RecursiveFindCycle() 39 std::vector<const BuilderRecord*>::iterator found = in RecursiveFindCycle() 40 std::find(path->begin(), path->end(), cur); in RecursiveFindCycle() 62 void Builder::ItemDefined(std::unique_ptr<Item> item) { in ItemDefined() 90 record->set_item(std::move(item)); in ItemDefined() 136 std::vector<const BuilderRecord*> Builder::GetAllRecords() const { in GetAllRecords() 137 std::vector<const BuilderRecord*> result; in GetAllRecords() 142 std::sort(result.begin(), result.end(), BuilderRecord::LabelCompare); in GetAllRecords() 146 std::vector<const Item*> Builder::GetAllResolvedItems() const { in GetAllResolvedItems() 147 std in GetAllResolvedItems() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/subzero/src/ |
H A D | IceASanInstrumentation.cpp | 49 using StringMap = std::unordered_map<std::string, std::string>; 50 using StringSet = std::unordered_set<std::string>; 71 ICE_TLS_DEFINE_FIELD(std::vector<InstStore *> *, ASanInstrumentation, 77 std::string FuncName = Func->getFunctionName().toStringOrEmpty(); in isInstrumentable() 86 std::unique_lock<std::mutex> _(GlobalsMutex); in instrumentGlobals() 102 using PrototypeMap = std in instrumentGlobals() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/lib/Target/Hexagon/MCTargetDesc/ |
H A D | HexagonMCChecker.cpp | 419 if (std::get<0>(Producer) == nullptr) { in checkNewValues() 425 if (std::get<2>(Producer).isPredicated() && in checkNewValues() 429 std::get<0>(Producer)->getLoc(), in checkNewValues() 435 if (std::get<2>(Producer).Register != Hexagon::NoRegister && in checkNewValues() 436 std::get<2>(Producer).Register != Consumer.Register) { in checkNewValues() 437 reportNote(std::get<0>(Producer)->getLoc(), in checkNewValues() 445 if (std::get<2>(Producer).Register == Consumer.Register && in checkNewValues() 446 Consumer.PredicatedTrue != std::get<2>(Producer).PredicatedTrue) { in checkNewValues() 448 std::get<0>(Producer)->getLoc(), in checkNewValues() 455 HexagonMCInstrInfo::getDesc(MCII, *std in checkNewValues() [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | unknown_field_set_unittest.cc | 73 const UnknownField* GetField(const std::string& name) { in GetField() 87 std::string GetBizarroData() { in GetBizarroData() 100 std::string data; in GetBizarroData() 107 std::string all_fields_data_; 133 std::unordered_set<uint32> unknown_tags; in TEST_F() 198 std::string slow_buffer; in TEST_F() 199 std::string fast_buffer; in TEST_F() 223 std::string data; in TEST_F() 248 std::string data; in TEST_F() 277 const std in TEST_F() [all...] |
/third_party/skia/experimental/wasm-skp-debugger/ |
H A D | debugger_bindings.cpp | 87 std::string loadSkp(uintptr_t cptr, int length) { in loadSkp() 216 std::string jsonCommandList(sk_sp<SkSurface> surface) { in jsonCommandList() 225 std::string_view data_view(reinterpret_cast<const char*>(skdata->data()), skdata->size()); in jsonCommandList() 227 return std::string(data_view); in jsonCommandList() 231 std::string lastCommandInfo() { in lastCommandInfo() 248 std::string_view data_view(reinterpret_cast<const char*>(skdata->data()), skdata->size()); in lastCommandInfo() 250 return std::string(data_view); in lastCommandInfo() 261 std::string getImageResource(int index) { in getImageResource() 268 return std::string(dst.c_str()); in getImageResource() 296 result.set(std in imageUseInfo() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/ray_query/ |
H A D | vktRayQueryDirectionTests.cpp | 61 using GeometryData = std::vector<tcu::Vec3>; 129 std::pair<float, float> calcTminTmax (RayOriginType rayOriginType, RayEndType rayEndType, float distanceToEdge) in calcTminTmax() 131 std::pair<float, float> result; in calcTminTmax() 137 result = std::make_pair(de::max(distanceToEdge - margin, 0.0f), distanceToEdge + margin); in calcTminTmax() 170 const float cosA = std::cos(rotationX); in getRotationMatrix() 171 const float sinA = std::sin(rotationX); in getRotationMatrix() 173 const float cosB = std::cos(rotationY); in getRotationMatrix() 174 const float sinB = std::sin(rotationY); in getRotationMatrix() 224 DirectionTestCase (tcu::TestContext& testCtx, const std::string& name, const std [all...] |
/third_party/vk-gl-cts/modules/egl/ |
H A D | teglChooseConfigReference.cpp | 100 TCU_THROW(TestError, (std::string("Unknown config caveat: ") + eglu::getConfigCaveatStr(caveat).toString()).c_str()); in getCaveatRank() 112 TCU_THROW(TestError, (std::string("Unknown color buffer type: ") + eglu::getColorBufferTypeStr(type).toString()).c_str()); in getColorBufferTypeRank() 129 TCU_THROW(TestError, (std::string("Unknown YUV order: ") + eglu::getYuvOrderStr(order).toString()).c_str()); in getYuvOrderRank() 141 TCU_THROW(TestError, (std::string("Unknown YUV plane BPP: ") + eglu::getYuvPlaneBppStr(bpp).toString()).c_str()); in getYuvPlaneBppValue() 152 TCU_THROW(TestError, (std::string("Unknown color component type: ") + eglu::getColorComponentTypeStr(compType).toString()).c_str()); in getColorComponentTypeRank() 231 const std::map<EGLenum, AttribRule> defaultRules = getDefaultRules(); in operator ==() 233 for (std::map<EGLenum, AttribRule>::const_iterator iter = defaultRules.begin(); iter != defaultRules.end(); iter++) in operator ==() 261 return false; // std::sort() can compare object to itself. in compareTo() 284 static std::map<EGLenum, AttribRule> getDefaultRules (void) in getDefaultRules() 287 std in getDefaultRules() 511 chooseConfigReference(const Library& egl, EGLDisplay display, std::vector<EGLConfig>& dst, const std::vector<std::pair<EGLenum, EGLint> >& attributes) chooseConfigReference() argument [all...] |
/test/xts/acts/ai/mindspore/mindsporectest/src/ |
H A D | ohos_c_api_test_mslite.cpp | 43 std::cout << "Before forwarding " << kernel_Info.node_name << " " << kernel_Info.node_type << std::endl; in PrintBeforeCallback() 50 std::cout << "After forwarding " << kernel_Info.node_name << " " << kernel_Info.node_type << std::endl; in PrintAfterCallback() 85 const std::string npu_name_prefix = "NPU_"; in IsNPU() 100 std::cout << "found " << num << " nnrt devices" << std::endl; in AddContextDeviceNNRT() 107 std::cout << "NNRT device: id = " << id << ", name: " << name << ", type:" << type << std::endl; in AddContextDeviceNNRT() 137 std in AddContextDeviceNNRTWithCache() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/binding_model/ |
H A D | vktBindingMutableTests.cpp | 183 std::string toHex (deUint32 val) in toHex() 185 std::ostringstream s; in toHex() 186 s << "0x" << std::hex << val << "u"; in toHex() 191 std::vector<VkDescriptorType> getForbiddenMutableTypes () in getForbiddenMutableTypes() 193 return std::vector<VkDescriptorType> in getForbiddenMutableTypes() 203 std::vector<VkDescriptorType> getMandatoryMutableTypes () in getMandatoryMutableTypes() 205 return std::vector<VkDescriptorType> in getMandatoryMutableTypes() 267 DescriptorTypeFlags toDescriptorTypeFlags (const std::vector<VkDescriptorType>& types) in toDescriptorTypeFlags() 276 std::vector<VkDescriptorType> toDescriptorTypeVector (DescriptorTypeFlags bitfield) in toDescriptorTypeVector() 278 std in toDescriptorTypeVector() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/ray_query/ |
H A D | vktRayQueryBuiltinTests.cpp | 127 typedef const std::string(*ShaderBodyTextFunc)(const TestParams& testParams); 166 std::vector<de::SharedPtr<BottomLevelAccelerationStructure>> m_bottomAccelerationStructures; 168 std::vector<deInt32> m_expected; 286 static const std::string getMissPassthrough(void) in getMissPassthrough() 288 const std::string missPassthrough = in getMissPassthrough() 300 static const std::string getHitPassthrough(void) in getHitPassthrough() 302 const std::string hitPassthrough = in getHitPassthrough() 315 static const std::string getGraphicsPassthrough(void) in getGraphicsPassthrough() 317 std::ostringstream src; in getGraphicsPassthrough() 328 static const std [all...] |
/foundation/ability/ability_runtime/test/unittest/ability_cache_manager_test/ |
H A D | ability_cache_manager_test.cpp | 77 auto abilityRecord_ = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 79 std::shared_ptr<AbilityRecord> rec = OHOS::AAFwk::AbilityCacheManager::GetInstance().Put(abilityRecord_); in HWTEST_F() 125 auto abilityRecord_ = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 127 std::shared_ptr<AbilityRecord> rec = OHOS::AAFwk::AbilityCacheManager::GetInstance().Put(abilityRecord_); in HWTEST_F() 131 auto removeRec = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 165 auto abilityRecord_ = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 167 std::shared_ptr<AbilityRecord> rec = OHOS::AAFwk::AbilityCacheManager::GetInstance().Put(abilityRecord_); in HWTEST_F() 171 auto removeRec = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 205 auto abilityRecord_ = std::make_shared<AbilityRecord>(want, abilityInfo, applicationInfo); in HWTEST_F() 207 std in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/ |
H A D | js_navigation.cpp | 43 std::unique_ptr<NavigationModel> NavigationModel::instance_ = nullptr; 44 std::mutex NavigationModel::mutex_; 50 std::lock_guard<std::mutex> lock(mutex_); in GetInstance() 91 void JSNavigation::ParseToolBarItems(const JSCallbackInfo& info, std::list<RefPtr<AceType>>& items) in ParseToolBarItems() 109 std::string icon; in ParseToolBarItems() 118 EventMarker([func = std::move(onClickFunc), node = targetNode, execCtx = info.GetExecutionContext()]() { in ParseToolBarItems() 126 EventMarker([func = std::move(onClickWithParamFunc), node = targetNode, in ParseToolBarItems() 142 std::string mainTitle; in ParseCommonTitle() 143 std in ParseCommonTitle() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 159 activeMainOffset = std::min(activeMainOffset, barRegionSize_ - activeRect_.Height()); in UpdateActiveRectOffset() 164 activeMainOffset = std::min(activeMainOffset, barRegionSize_ - activeRect_.Width()); in UpdateActiveRectOffset() 175 std::max(size.Height() - NormalizeToPx(startReservedHeight_) - NormalizeToPx(endReservedHeight_), 0.0); in SetBarRegion() 183 std::max(size.Width() - NormalizeToPx(startReservedHeight_) - NormalizeToPx(endReservedHeight_), 0.0); in SetBarRegion() 195 barRegionSize_ = std::max(mainSize - NormalizeToPx(endReservedHeight_) - NormalizeToPx(startReservedHeight_), 0.0); in SetRectTrickRegion() 203 std::max(std::max(activeSize, NormalizeToPx(minHeight_) - outBoundary_), NormalizeToPx(minDynamicHeight_)); in SetRectTrickRegion() 205 activeSize = std::max(activeSize, NormalizeToPx(minHeight_)); in SetRectTrickRegion() 216 std::max(positionMode_ == PositionMode::BOTTOM ? lastOffset.GetX() : lastOffset.GetY(), 0.0); in SetRectTrickRegion() 224 std in SetRectTrickRegion() [all...] |
/foundation/multimedia/camera_framework/frameworks/js/camera_napi/src/output/ |
H A D | video_output_napi.cpp | 41 std::unique_ptr<JSAsyncContextOutput> jsContext = std::make_unique<JSAsyncContextOutput>(); in AsyncCompleteCallback() 76 uv_work_t* work = new(std::nothrow) uv_work_t; in UpdateJSCallbackAsync() 81 std::unique_ptr<VideoOutputCallbackInfo> callbackInfo = in UpdateJSCallbackAsync() 82 std::make_unique<VideoOutputCallbackInfo>(eventType, info, shared_from_this()); in UpdateJSCallbackAsync() 178 std::string eventName = VideoOutputEventTypeHelper.GetKeyString(eventType); in UpdateJSCallback() 268 std::unique_ptr<VideoOutputNapi> obj = std::make_unique<VideoOutputNapi>(); in VideoOutputNapiConstructor() 325 static napi_value CreateJSArray(napi_env env, napi_status status, std::vector<VideoMetaType> nativeArray) in CreateJSArray() 364 std in GetSupportedVideoMetaTypes() [all...] |
/foundation/window/window_manager/wm/src/ |
H A D | window_adapter.cpp | 70 std::shared_ptr<RSSurfaceNode> surfaceNode, uint32_t& windowId, const sptr<IRemoteObject>& token) in CreateWindow() 124 std::lock_guard<std::mutex> lock(mutex_); in RegisterWindowManagerAgent() 126 windowManagerAgentMap_[type] = std::set<sptr<IWindowManagerAgent>>(); in RegisterWindowManagerAgent() 143 std::lock_guard<std::mutex> lock(mutex_); in UnregisterWindowManagerAgent() 150 auto agent = std::find(agentSet.begin(), agentSet.end(), windowManagerAgent); in UnregisterWindowManagerAgent() 169 WMError WindowAdapter::GetAccessibilityWindowInfo(std::vector<sptr<AccessibilityWindowInfo>>& infos) in GetAccessibilityWindowInfo() 179 std::vector<sptr<UnreliableWindowInfo>>& infos) in GetUnreliableWindowInfo() 188 WMError WindowAdapter::GetVisibilityWindowInfo(std [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/draw/ |
H A D | vktDrawCreateInfoUtil.cpp | 151 m_queueFamilyIndices = std::vector<deUint32>( in BufferCreateInfo() 226 m_queueFamilyIndices = std::vector<deUint32>(_pQueueFamilyIndices, _pQueueFamilyIndices + _queueFamilyIndexCount); in ImageCreateInfo() 255 const std::vector<vk::VkImageView>& atachments, in FramebufferCreateInfo() 277 RenderPassCreateInfo::RenderPassCreateInfo (const std::vector<vk::VkAttachmentDescription>& attachments, in RenderPassCreateInfo() 278 const std::vector<vk::VkSubpassDescription>& subpasses, in RenderPassCreateInfo() 279 const std::vector<vk::VkSubpassDependency>& dependiences) in RenderPassCreateInfo() 308 m_attachments = std::vector<AttachmentDescription>(_pAttachments, _pAttachments + _attachmentCount); in RenderPassCreateInfo() 309 m_subpasses = std::vector<SubpassDescription>(_pSubpasses, _pSubpasses + _subpassCount); in RenderPassCreateInfo() 310 m_dependiences = std::vector<SubpassDependency>(_pDependiences, _pDependiences + _dependencyCount); in RenderPassCreateInfo() 312 m_attachmentsStructs = std in RenderPassCreateInfo() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/draw/ |
H A D | vktDrawCreateInfoUtil.cpp | 151 m_queueFamilyIndices = std::vector<deUint32>( in BufferCreateInfo() 226 m_queueFamilyIndices = std::vector<deUint32>(_pQueueFamilyIndices, _pQueueFamilyIndices + _queueFamilyIndexCount); in ImageCreateInfo() 255 const std::vector<vk::VkImageView>& atachments, in FramebufferCreateInfo() 277 RenderPassCreateInfo::RenderPassCreateInfo (const std::vector<vk::VkAttachmentDescription>& attachments, in RenderPassCreateInfo() 278 const std::vector<vk::VkSubpassDescription>& subpasses, in RenderPassCreateInfo() 279 const std::vector<vk::VkSubpassDependency>& dependiences) in RenderPassCreateInfo() 308 m_attachments = std::vector<AttachmentDescription>(_pAttachments, _pAttachments + _attachmentCount); in RenderPassCreateInfo() 309 m_subpasses = std::vector<SubpassDescription>(_pSubpasses, _pSubpasses + _subpassCount); in RenderPassCreateInfo() 310 m_dependiences = std::vector<SubpassDependency>(_pDependiences, _pDependiences + _dependencyCount); in RenderPassCreateInfo() 312 m_attachmentsStructs = std in RenderPassCreateInfo() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/ |
H A D | ext_inst.cldebug100_test.cpp | 145 std::string name; 146 std::string operands; 147 std::vector<uint32_t> expected_operands; 155 const std::string input = in TEST_P() 160 std::cout << input << std::endl; in TEST_P() 569 ::testing::ValuesIn(std::vector<InstructionCase>({ 576 ::testing::ValuesIn(std::vector<InstructionCase>({ 582 ::testing::ValuesIn(std::vector<InstructionCase>({ 592 ::testing::ValuesIn(std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/ |
H A D | ext_inst.cldebug100_test.cpp | 145 std::string name; 146 std::string operands; 147 std::vector<uint32_t> expected_operands; 155 const std::string input = in TEST_P() 160 std::cout << input << std::endl; in TEST_P() 569 ::testing::ValuesIn(std::vector<InstructionCase>({ 576 ::testing::ValuesIn(std::vector<InstructionCase>({ 582 ::testing::ValuesIn(std::vector<InstructionCase>({ 592 ::testing::ValuesIn(std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | YAMLTraits.h | 188 // static StringRef inputTag(T &Val, std::string Tag) 283 /// typedef std::unique_ptr<MyBase> MyPoly; 482 template <typename T, bool Enabled = std::is_class<T>::value> 509 struct has_SequenceTraits : public std::integral_constant<bool, 541 std::min(Input.find_first_not_of("0123456789"), Input.size())); in isNumeric() 579 (S.size() > 1 && std::strchr("0123456789", S[1]) == nullptr))) in isNumeric() 722 : public std::integral_constant<bool, in needsQuotes() 736 : public std::integral_constant< in needsQuotes() 742 : public std::integral_constant< in needsQuotes() 770 virtual std in needsQuotes() [all...] |
/third_party/spirv-tools/test/ |
H A D | ext_inst.cldebug100_test.cpp | 144 std::string name; 145 std::string operands; 146 std::vector<uint32_t> expected_operands; 154 const std::string input = in TEST_P() 159 std::cout << input << std::endl; in TEST_P() 569 ::testing::ValuesIn(std::vector<InstructionCase>({ 576 ::testing::ValuesIn(std::vector<InstructionCase>({ 582 ::testing::ValuesIn(std::vector<InstructionCase>({ 592 ::testing::ValuesIn(std [all...] |
/foundation/arkui/ace_engine/test/unittest/core/manager/ |
H A D | drag_drop_manager_test_ng_property_config.cpp | 153 std::vector<RefPtr<FrameNode>> hitFrameNodes; in HWTEST_F() 183 std::vector<RefPtr<FrameNode>> hitFrameNodes; in HWTEST_F() 213 std::vector<RefPtr<FrameNode>> hitFrameNodes; in HWTEST_F() 237 std::list<RefPtr<UINode>> child = { customNode1, customNode2, customNode2, nullptr }; in HWTEST_F() 249 std::vector<RefPtr<FrameNode>> hitFrameNodes = { frameNode, frameNode2 }; in HWTEST_F() 273 std::list<RefPtr<UINode>> child = { customNode1, customNode2, customNode2, nullptr }; in HWTEST_F() 288 std::string onDropInfo; in HWTEST_F() 289 auto onDrop = [&onDropInfo](const RefPtr<OHOS::Ace::DragEvent>& /* dragEvent */, const std::string& /* info */) { in HWTEST_F() 292 eventHub->SetOnDrop(std::move(onDrop)); in HWTEST_F() 296 std in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/image/ |
H A D | image_test_ng.cpp | 112 std::vector<ObscuredReasons> reasons; in HWTEST_F() 416 imagePattern->altDstRect_ = std::make_unique<RectF>(RectF()); in HWTEST_F() 418 imagePattern->altSrcRect_ = std::make_unique<RectF>(RectF()); in HWTEST_F() 421 imagePattern->altDstRect_ = std::make_unique<RectF>(RectF()); in HWTEST_F() 499 std::vector<ObscuredReasons> reasons; in HWTEST_F() 575 imageInfoConfig.src = std::make_shared<std::string>(""); in HWTEST_F() 594 imageInfoConfig.src = std::make_shared<std::string>(""); in HWTEST_F() 604 EXPECT_EQ(imageLayoutProperty->GetImageFit(), std in HWTEST_F() [all...] |
/foundation/multimedia/av_codec/test/unittest/hcodec_test/unittest/ |
H A D | hencoder_unit_test.cpp | 25 using namespace std; 39 void HEncoderCallback::OnInputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) in OnInputBufferAvailable() 43 void HEncoderCallback::OnOutputBufferAvailable(uint32_t index, std::shared_ptr<AVBuffer> buffer) in OnOutputBufferAvailable() 96 const std::string &targetMimeType) in GetEncoderCapabilityForMime() 104 auto it = std::find_if(caps.begin(), caps.end(), [&](const CapabilityData& one) { in GetEncoderCapabilityForMime() 116 std::shared_ptr<HCodec> testObj = HCodec::Create(GetCodecName(true, "video/avc")); in HWTEST_F() 125 std::shared_ptr<HCodec> testObj = HCodec::Create(GetCodecName(true, "video/hevc")); in HWTEST_F() 134 std::shared_ptr<HCodec> testObj = HCodec::Create(""); in HWTEST_F() 141 std::shared_ptr<HCodec> testObj = HCodec::Create(GetCodecName(true, "video/hevc")); in HWTEST_F() 152 std in HWTEST_F() [all...] |