/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Support/ |
H A D | Parallel.h | 29 : public std::integral_constant< 42 mutable std::mutex Mutex; 43 mutable std::condition_variable Cond; 50 std::lock_guard<std::mutex> lock(Mutex); in inc() 55 std::lock_guard<std::mutex> lock(Mutex); in dec() 61 std::unique_lock<std::mutex> lock(Mutex); in sync() 74 void spawn(std [all...] |
H A D | SourceMgr.h | 58 std::unique_ptr<MemoryBuffer> Buffer; 64 using VariableSizeOffsets = PointerUnion<std::vector<uint8_t> *, 65 std::vector<uint16_t> *, 66 std::vector<uint32_t> *, 67 std::vector<uint64_t> *>; 95 std::vector<SrcBuffer> Buffers; 98 std::vector<std::string> IncludeDirectories; 113 void setIncludeDirs(const std::vector<std [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/PBQP/ |
H A D | Math.h | 31 : Length(Length), Data(std::make_unique<PBQPNum []>(Length)) {} in Vector() 35 : Length(Length), Data(std::make_unique<PBQPNum []>(Length)) { in Vector() 36 std::fill(Data.get(), Data.get() + Length, InitVal); in Vector() 41 : Length(V.Length), Data(std::make_unique<PBQPNum []>(Length)) { in Vector() 42 std::copy(V.Data.get(), V.Data.get() + Length, Data.get()); in Vector() 47 : Length(V.Length), Data(std::move(V.Data)) { in Vector() 56 return std::equal(Data.get(), Data.get() + Length, V.Data.get()); in operator ==() 83 std::transform(Data.get(), Data.get() + Length, V.Data.get(), Data.get(), 84 std::plus<PBQPNum>()); 91 return std [all...] |
/third_party/spirv-tools/test/fuzz/ |
H A D | transformation_inline_function_test.cpp | 28 std::string shader = R"( in TEST() 30 %1 = OpExtInstImport "GLSL.std.450" in TEST() 204 std::string reference_shader = R"( in TEST() 206 %1 = OpExtInstImport "GLSL.std.450" in TEST() 299 std::string variant_shader = R"( in TEST() 301 %1 = OpExtInstImport "GLSL.std.450" in TEST() 389 std::string reference_shader = R"( in TEST() 391 %1 = OpExtInstImport "GLSL.std.450" in TEST() 590 std::string variant_shader = R"( in TEST() 592 %1 = OpExtInstImport "GLSL.std in TEST() [all...] |
/third_party/spirv-tools/test/opt/ |
H A D | iterator_test.cpp | 31 std::vector<std::unique_ptr<int>> data; in TEST() 49 std::vector<std::unique_ptr<int>> data; in TEST() 66 std::vector<std::unique_ptr<int>> data; in TEST() 83 std::vector<std::unique_ptr<int>> data; in TEST() 102 std::vector<std in TEST() [all...] |
/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | lite_graph_to_hdi_model_v2_0.cpp | 32 std::vector<int8_t> ConvertActivation(PrimitivePtr primitive) in ConvertActivation() 49 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertActivation() 54 std::vector<int8_t> ConvertAddFusion(PrimitivePtr primitive) in ConvertAddFusion() 67 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertAddFusion() 72 std::vector<int8_t> ConvertArgMaxFusion(PrimitivePtr primitive) in ConvertArgMaxFusion() 87 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertArgMaxFusion() 92 std::vector<int8_t> ConvertAvgPoolFusion(PrimitivePtr primitive) in ConvertAvgPoolFusion() 112 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertAvgPoolFusion() 117 std::vector<int8_t> ConvertBatchToSpaceND(PrimitivePtr primitive) in ConvertBatchToSpaceND() 130 std in ConvertBatchToSpaceND() [all...] |
H A D | lite_graph_to_hdi_model_v1_0.cpp | 32 std::vector<int8_t> ConvertActivation(PrimitivePtr primitive) in ConvertActivation() 49 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertActivation() 54 std::vector<int8_t> ConvertAddFusion(PrimitivePtr primitive) in ConvertAddFusion() 67 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertAddFusion() 72 std::vector<int8_t> ConvertArgMaxFusion(PrimitivePtr primitive) in ConvertArgMaxFusion() 87 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertArgMaxFusion() 92 std::vector<int8_t> ConvertAvgPoolFusion(PrimitivePtr primitive) in ConvertAvgPoolFusion() 112 std::vector<int8_t> ret(reinterpret_cast<const int8_t *>(data.GetData()), in ConvertAvgPoolFusion() 117 std::vector<int8_t> ConvertBatchToSpaceND(PrimitivePtr primitive) in ConvertBatchToSpaceND() 130 std in ConvertBatchToSpaceND() [all...] |
/foundation/window/window_manager/dmserver/src/ |
H A D | abstract_screen_controller.cpp | 42 const std::string CONTROLLER_THREAD_ID = "AbstractScreenControllerThread";
47 AbstractScreenController::AbstractScreenController(std::recursive_mutex& mutex)
in AbstractScreenController() 51 controllerHandler_ = std::make_shared<AppExecFwk::EventHandler>(runner);
in AbstractScreenController() 77 std::vector<ScreenId> AbstractScreenController::GetAllScreenIds() const
in GetAllScreenIds() 79 std::lock_guard<std::recursive_mutex> lock(mutex_);
in GetAllScreenIds() 80 std::vector<ScreenId> res;
in GetAllScreenIds() 87 std::vector<ScreenId> AbstractScreenController::GetAllValidScreenIds(const std::vector<ScreenId>& screenIds) const
in GetAllValidScreenIds() 89 std in GetAllValidScreenIds() [all...] |
/third_party/skia/src/gpu/v1/ |
H A D | SurfaceDrawContext.cpp | 128 std::unique_ptr<SurfaceDrawContext> SurfaceDrawContext::Make(GrRecordingContext* rContext, in Make() 144 GrSurfaceProxyView writeView(std::move(proxy), origin, writeSwizzle); in Make() 146 return std::make_unique<SurfaceDrawContext>(rContext, in Make() 147 std::move(readView), in Make() 148 std::move(writeView), in Make() 150 std::move(colorSpace), in Make() 155 std::unique_ptr<SurfaceDrawContext> SurfaceDrawContext::Make( in Make() 191 GrSurfaceProxyView writeView(std::move(proxy), origin, writeSwizzle); in Make() 193 auto sdc = std::make_unique<SurfaceDrawContext>(rContext, in Make() 194 std in Make() [all...] |
/drivers/peripheral/distributed_camera/hdi_service/src/dcamera_device/ |
H A D | dcamera_device.cpp | 28 using ErrorCallback = std::function<void (ErrorType, int32_t)>; 29 using ResultCallback = std::function<void (uint64_t, std::shared_ptr<OHOS::Camera::CameraMetadata>)>; 30 DCameraDevice::DCameraDevice(const DHBase &dhBase, const std::string &sinkAbilityInfo, in DCameraDevice() 31 const std::string &sourceCodecInfo) in DCameraDevice() 45 void DCameraDevice::Init(const std::string &sinkAbilityInfo) in Init() 48 dMetadataProcessor_ = std::make_shared<DMetadataProcessor>(); in Init() 56 dCameraStreamOperator_ = sptr<DStreamOperator>(new (std::nothrow) DStreamOperator(dMetadataProcessor_)); in CreateDStreamOperator() 78 [this](uint64_t timestamp, const std::shared_ptr<OHOS::Camera::CameraMetadata> &result) -> void { in CreateDStreamOperator() 81 std in CreateDStreamOperator() [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/mission/ |
H A D | mission_info_mgr.cpp | 42 std::lock_guard<ffrt::mutex> lock(mutex_); in GenerateMissionId() 62 std::lock_guard<ffrt::mutex> lock(mutex_); in Init() 86 std::lock_guard<ffrt::mutex> lock(mutex_); in AddMissionInfo() 119 std::lock_guard<ffrt::mutex> lock(mutex_); in UpdateMissionInfo() 156 std::lock_guard<ffrt::mutex> lock(mutex_); in DeleteMissionInfo() 189 bool MissionInfoMgr::DeleteAllMissionInfos(const std::shared_ptr<MissionListenerController> &listenerController) in DeleteAllMissionInfos() 192 std::lock_guard<ffrt::mutex> lock(mutex_); in DeleteAllMissionInfos() 231 int MissionInfoMgr::GetMissionInfos(int32_t numMax, std::vector<MissionInfo> &missionInfos) in GetMissionInfos() 239 std::lock_guard<ffrt::mutex> lock(mutex_); in GetMissionInfos() 260 std in GetMissionInfoById() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | rosen_render_surface.cpp | 30 const std::string PATTERN_TYPE_WEB = "WEBPATTERN"; 33 const std::string SURFACE_WIDTH = "surface_width"; 34 const std::string SURFACE_HEIGHT = "surface_height"; 67 : buffer_(std::move(buf)), fence_(std::move(fence)), orgin_(orgin) in SurfaceBufferNode() 91 std::lock_guard<std::mutex> lock(surfaceNodeMutex_); in ~RosenRenderSurface() 197 producerSurface_->SetUserData("SURFACE_FORMAT", std::to_string(GRAPHIC_PIXEL_FMT_RGBA_8888)); in UpdateSurfaceConfig() 213 producerSurface_->SetUserData("SURFACE_WIDTH", std::to_string(surfaceWidth)); in ConfigSurface() 214 producerSurface_->SetUserData("SURFACE_HEIGHT", std in ConfigSurface() [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/test/unittest/animation/ |
H A D | rs_animation_test.cpp | 48 auto property = std::make_shared<RSAnimatableProperty<Vector4f>>(ANIMATION_START_BOUNDS);
in HWTEST_F() 49 auto modifier = std::make_shared<RSBoundsModifier>(property);
in HWTEST_F() 67 auto animation = std::static_pointer_cast<RSSpringAnimation>(animations[FIRST_ANIMATION]);
in HWTEST_F() 90 auto property = std::make_shared<RSAnimatableProperty<Vector4f>>(ANIMATION_START_BOUNDS);
in HWTEST_F() 91 auto modifier = std::make_shared<RSBoundsModifier>(property);
in HWTEST_F() 108 auto animation = std::static_pointer_cast<RSCurveAnimation>(animations[FIRST_ANIMATION]);
in HWTEST_F() 148 auto animation = std::static_pointer_cast<RSTransition>(animations[FIRST_ANIMATION]);
in HWTEST_F() 169 auto property = std::make_shared<RSAnimatableProperty<Vector4f>>(ANIMATION_START_BOUNDS);
in HWTEST_F() 170 auto modifier = std::make_shared<RSBoundsModifier>(property);
in HWTEST_F() 177 std in HWTEST_F() [all...] |
/foundation/filemanagement/storage_service/services/storage_manager/kits_impl/src/ |
H A D | volumemanager_n_exporter.cpp | 57 auto volumeInfo = std::make_shared<std::vector<VolumeExternal>>(); in GetAllVolumes() 92 std::string procedureName = "GetAllVolumes"; in GetAllVolumes() 124 std::unique_ptr<char []> volumeId; in Mount() 125 tie(succ, volumeId, std::ignore) = NVal(env, funcArg[(int)NARG_POS::FIRST]).ToUTF8String(); in Mount() 131 std::string volumeIdString(volumeId.get()); in Mount() 146 std::string procedureName = "Mount"; in Mount() 164 std::unique_ptr<char []> volumeId; in Unmount() 165 tie(succ, volumeId, std::ignore) = NVal(env, funcArg[(int)NARG_POS::FIRST]).ToUTF8String(); in Unmount() 171 std in Unmount() [all...] |
/foundation/multimodalinput/input/service/interceptor/test/ |
H A D | event_interceptor_handler_test.cpp | 29 const std::string PROGRAM_NAME = "uds_sesion_test"; 51 std::shared_ptr<KeyEvent> event = KeyEvent::Create(); in HWTEST_F() 65 std::shared_ptr<PointerEvent> pointerEvent = PointerEvent::Create(); in HWTEST_F() 79 std::shared_ptr<PointerEvent> pointerEvent = PointerEvent::Create(); in HWTEST_F() 93 std::shared_ptr<KeyEvent> event = KeyEvent::Create(); in HWTEST_F() 107 std::shared_ptr<PointerEvent> pointerEvent = PointerEvent::Create(); in HWTEST_F() 121 std::shared_ptr<KeyEvent> KeyEvent = KeyEvent::Create(); in HWTEST_F() 136 std::shared_ptr<PointerEvent> pointerEvent = PointerEvent::Create(); in HWTEST_F() 162 std::shared_ptr<PointerEvent> pointerEvent = PointerEvent::Create(); in HWTEST_F() 181 SessionPtr sessionFirst = std in HWTEST_F() [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_net_agent.cpp | 50 netAgentEventHandler_ = std::make_unique<WifiEventHandler>(WIFI_NET_CONN_MGR_WORK_THREAD); in WifiNetAgent() 64 std::string ident = "wifi"; in RegisterNetSupplier() 67 std::set<NetCap> netCaps {NetCap::NET_CAPABILITY_INTERNET}; in RegisterNetSupplier() 86 sptr<NetConnCallback> pNetConnCallback = (std::make_unique<NetConnCallback>()).release(); in RegisterNetSupplierCallback() 128 sptr<NetManagerStandard::NetLinkInfo> netLinkInfo = (std::make_unique<NetManagerStandard::NetLinkInfo>()).release(); in UpdateNetLinkInfo() 134 bool WifiNetAgent::AddRoute(const std::string interface, const std::string ipAddress, int prefixLength) in AddRoute() 139 std::string mask = IpTools::ConvertIpv4Mask(prefixLength); in AddRoute() 141 std::string strLocalRoute = IpTools::ConvertIpv4Address(ipInt & maskInt); in AddRoute() 142 std in AddRoute() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/gaussdb_rd/ |
H A D | rd_single_ver_storage_executor.cpp | 253 int RdSingleVerStorageExecutor::PrepareNotifyForEntries(const std::vector<Entry> &entries, in PrepareNotifyForEntries() 254 SingleVerNaturalStoreCommitNotifyData *committedData, std::vector<NotifyConflictAndObserverData> ¬ifys, in PrepareNotifyForEntries() 281 int RdSingleVerStorageExecutor::Backup(const std::string &filePath, uint8_t *encryptedKey, uint32_t encryptedKeyLen) in Backup() 286 int RdSingleVerStorageExecutor::ClearEntriesAndFreeResultSet(std::vector<Entry> &entries, GRD_ResultSet *resultSet) in ClearEntriesAndFreeResultSet() 298 const std::pair<Key, Key> &pairKey, std::vector<Entry> &entries, GRD_ResultSet **resultSet) in GetEntriesPrepare() 322 int RdSingleVerStorageExecutor::GetEntries(const GRD_KvScanModeE mode, const std::pair<Key, Key> &pairKey, in GetEntries() argument 323 std::vector<Entry> &entries) const in GetEntries() 351 entries.push_back(std::move(tmpEntry)); in GetEntries() 378 std in SaveKvData() 297 GetEntriesPrepare(GRD_DB *db, const GRD_KvScanModeE mode, const std::pair<Key, Key> &pairKey, std::vector<Entry> &entries, GRD_ResultSet **resultSet) GetEntriesPrepare() argument 694 GetSyncDataWithQuery(const QueryObject &query, size_t appendLength, const DataSizeSpecInfo &dataSizeInfo, const std::pair<Timestamp, Timestamp> &timeRange, std::vector<DataItem> &dataItems) const GetSyncDataWithQuery() argument [all...] |
/foundation/filemanagement/app_file_service/interfaces/kits/js/backup/ |
H A D | session_incremental_backup_n_exporter.cpp | 34 using namespace std; 59 std::tuple<uint32_t, std::string> errInfo = std::make_tuple(errCode, "system errno: " + to_string(sysErrno)); in OnFileReady() 60 HILOGI("callback function incremental backup onFileReady cbCompl begin errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 67 HILOGI("callback function incremental backup onFileReady cbCompl errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 72 if (std::get<0>(errInfo) != 0) { in OnFileReady() 89 HILOGI("callback function incremental backup onFileReady end errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 114 std::string errMsg = BError::GetBackupMsgByErrno(errCode) + ", origin errno: " + to_string(err); in onBundleBegin() 115 std in onBundleBegin() [all...] |
H A D | session_backup_n_exporter.cpp | 32 using namespace std; 56 std::string errMsg = "system errno: " + to_string(sysErrno); in OnFileReady() 57 std::tuple<uint32_t, std::string> errInfo = std::make_tuple(errCode, errMsg); in OnFileReady() 58 HILOGI("callback function backup onFileReady begin errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 64 HILOGI("callback function backup onFileReady cbCompl errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 69 if (std::get<0>(errInfo) != 0) { in OnFileReady() 85 HILOGI("callback function backup onFileReady cbCompl end errcode: %{public}d", std::get<0>(errInfo)); in OnFileReady() 110 std in onBundleBegin() [all...] |
/third_party/mesa3d/src/gallium/frontends/clover/api/ |
H A D | program.cpp | 36 std::string 38 auto opts = std::string(p_opts ? p_opts : ""); in build_options() 39 std::string extra_opts = debug_get_option(p_debug, ""); in build_options() 41 return detokenize(std::vector<std::string>{opts, extra_opts}, " "); in build_options() 79 identify_and_validate_il(const std::string &il, in identify_and_validate_il() 87 std::string log; in identify_and_validate_il() 107 std::string source; in clCreateProgramWithSource() 116 std::string(strings[i], strings[i] + lengths[i]) : in clCreateProgramWithSource() 117 std in clCreateProgramWithSource() [all...] |
/third_party/node/deps/v8/src/inspector/ |
H A D | v8-webdriver-serializer.cc | 21 std::unique_ptr<protocol::Value>* result) { in _serializeRecursively() 22 std::unique_ptr<ValueMirror> mirror = ValueMirror::create(context, value); in _serializeRecursively() 23 std::unique_ptr<protocol::Runtime::WebDriverValue> webDriver_value; in _serializeRecursively() 29 std::unique_ptr<protocol::DictionaryValue> result_dict = in _serializeRecursively() 39 (*result) = std::move(result_dict); in _serializeRecursively() 75 std::unique_ptr<protocol::Runtime::WebDriverValue>* result) { in _serializeRegexp() 80 std::unique_ptr<protocol::DictionaryValue> result_value = in _serializeRegexp() 92 (*result)->setValue(std::move(result_value)); in _serializeRegexp() 98 std::unique_ptr<protocol::Runtime::WebDriverValue>* result) { in _serializeDate() 110 std in _serializeArrayValue() [all...] |
/third_party/skia/third_party/externals/angle2/src/libANGLE/renderer/vulkan/ |
H A D | CommandProcessor.h | 46 std::lock_guard<std::mutex> lock(mMutex); in resetSharedFence() 51 std::mutex mMutex; 98 void initFlushAndQueueSubmit(const std::vector<VkSemaphore> &waitSemaphores, 99 const std::vector<VkPipelineStageFlags> &waitSemaphoreStageMasks, 105 std::vector<CommandBuffer> &&commandBuffersToReset, 120 *this = std::move(other); in CommandProcessorTask() 126 std::vector<VkSemaphore> &getWaitSemaphores() { return mWaitSemaphores; } in getWaitSemaphores() 127 std::vector<VkPipelineStageFlags> &getWaitSemaphoreStageMasks() in getWaitSemaphoreStageMasks() 133 std in getGarbage() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_cat_test.cc | 52 std::string answer; in TEST() 108 std::string result; in TEST() 110 std::string strs[] = {"Hello", "Cruel", "World"}; in TEST() 112 std::string stdstrs[] = { in TEST() 113 "std::Hello", in TEST() 114 "std::Cruel", in TEST() 115 "std::World" in TEST() 144 EXPECT_EQ(result, "std::Cruel std::World"); in TEST() 164 std in TEST() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/container/internal/ |
H A D | raw_hash_set_allocator_test.cc | 35 std::set<void*> owned; 62 std::integral_constant<bool, (Spec & kPropagateOnCopy) != 0>; 65 std::integral_constant<bool, (Spec & kPropagateOnMove) != 0>; 68 std::integral_constant<bool, (Spec & kPropagateOnSwap) != 0>; 76 T* ptr = std::allocator<T>().allocate(n); in allocate() 83 return std::allocator<T>().deallocate(ptr, n); in deallocate() 96 using std::swap; in swap() 103 friend std::ostream& operator<<(std::ostream& o, const CheckedAlloc& a) { in operator <<() 120 size_t id_ = std [all...] |
H A D | unordered_map_modifiers_test.h | 36 std::vector<T> values; in TYPED_TEST_P() 37 std::generate_n(std::back_inserter(values), 10, in TYPED_TEST_P() 76 std::vector<T> values; in TYPED_TEST_P() 77 std::generate_n(std::back_inserter(values), 10, in TYPED_TEST_P() 101 std::vector<T> base_values; in TYPED_TEST_P() 102 std::generate_n(std::back_inserter(base_values), 10, in TYPED_TEST_P() 104 std in TYPED_TEST_P() [all...] |