/third_party/skia/third_party/externals/swiftshader/tests/VulkanUnitTests/ |
H A D | ComputeTests.cpp | 40 friend std::ostream &operator<<(std::ostream &os, const ComputeParams ¶ms) in operator <<() 68 std::vector<uint32_t> compileSpirv(const char *assembly) in compileSpirv() 76 std::vector<uint32_t> spirv; in compileSpirv() 83 std::string disassembled; in compileSpirv() 89 auto splitLines = [](const std::string &str) -> std::vector<std::string> { in compileSpirv() 90 std::stringstream ss(str); in compileSpirv() 91 std in compileSpirv() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/ |
H A D | copy_prop_array_test.cpp | 29 const std::string before = in TEST_F() 108 const std::string before = in TEST_F() 190 const std::string text = in TEST_F() 279 const std::string text = in TEST_F() 365 const std::string text = in TEST_F() 450 const std::string text = in TEST_F() 537 const std::string before = in TEST_F() 624 const std::string before = in TEST_F() 640 %1 = OpExtInstImport "GLSL.std.450" in TEST_F() 693 const std in TEST_F() [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-subzero/lib/Support/ |
H A D | MemoryBuffer.cpp | 104 static ErrorOr<std::unique_ptr<MemoryBuffer>> 108 std::unique_ptr<MemoryBuffer> 113 return std::unique_ptr<MemoryBuffer>(Ret); in getMemBuffer() 116 std::unique_ptr<MemoryBuffer> 118 return std::unique_ptr<MemoryBuffer>(getMemBuffer( in getMemBuffer() 122 std::unique_ptr<MemoryBuffer> 124 std::unique_ptr<MemoryBuffer> Buf = in getMemBufferCopy() 133 std::unique_ptr<MemoryBuffer> 144 char *Mem = static_cast<char*>(operator new(RealLen, std::nothrow)); in getNewUninitMemBuffer() 156 return std in getNewUninitMemBuffer() [all...] |
/third_party/skia/third_party/externals/abseil-cpp/absl/strings/ |
H A D | str_cat.h | 44 // the default for "std::cout <<" or printf "%g" (the same as "%.6g"). 75 std::array<char, max_size> data; 142 typename std::enable_if<sizeof(Int) == 1 && in Hex() 143 !std::is_pointer<Int>::value>::type* = nullptr) in Hex() 148 typename std::enable_if<sizeof(Int) == 2 && in Hex() 149 !std::is_pointer<Int>::value>::type* = nullptr) in Hex() 154 typename std::enable_if<sizeof(Int) == 4 && in Hex() 155 !std::is_pointer<Int>::value>::type* = nullptr) in Hex() 160 typename std::enable_if<sizeof(Int) == 8 && in Hex() 161 !std in Hex() 252 AlphaNum( const std::basic_string<char, std::char_traits<char>, Allocator>& str) AlphaNum() argument [all...] |
/third_party/spirv-tools/source/opt/ |
H A D | ir_loader.cpp | 110 std::unique_ptr<Instruction> spv_inst( in AddInstruction() 111 new Instruction(module()->context(), *inst, std::move(dbg_line_info_))); in AddInstruction() 115 last_line_inst_ = std::unique_ptr<Instruction>( in AddInstruction() 124 last_line_inst_ = std::unique_ptr<Instruction>( in AddInstruction() 140 function_ = MakeUnique<Function>(std::move(spv_inst)); in AddInstruction() 151 function_->SetFunctionEnd(std::move(spv_inst)); in AddInstruction() 152 module_->AddFunction(std::move(function_)); in AddInstruction() 163 block_ = MakeUnique<BasicBlock>(std::move(spv_inst)); in AddInstruction() 175 block_->AddInstruction(std::move(spv_inst)); in AddInstruction() 176 function_->AddBasicBlock(std in AddInstruction() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/sparse_resources/ |
H A D | vktSparseResourcesShaderIntrinsicsStorage.cpp | 40 const deUint32 xWorkGroupSize = std::min(std::min(gridSize.x(), maxComputeWorkGroupSize.x()), maxComputeWorkGroupInvocations); in computeWorkGroupSize() 41 const deUint32 yWorkGroupSize = std::min(std::min(gridSize.y(), maxComputeWorkGroupSize.y()), maxComputeWorkGroupInvocations / xWorkGroupSize); in computeWorkGroupSize() 42 const deUint32 zWorkGroupSize = std::min(std::min(gridSize.z(), maxComputeWorkGroupSize.z()), maxComputeWorkGroupInvocations / (xWorkGroupSize*yWorkGroupSize)); in computeWorkGroupSize() 50 const std::string imageTypeStr = getShaderImageType(formatDescription, m_imageType); in initPrograms() 51 const std::string formatDataStr = getShaderImageDataType(formatDescription); in initPrograms() 52 const std::string formatQualStr = getShaderImageFormatQualifier(m_format); in initPrograms() 53 const std in initPrograms() [all...] |
/base/hiviewdfx/hisysevent/interfaces/js/kits/napi/src/ |
H A D | napi_hisysevent_util.cpp | 59 using I64ParseResult = std::pair<bool, int64_t>; 60 using U64ParseResult = std::pair<bool, uint64_t>; 61 using ParsedItem = std::variant<uint64_t, int64_t, double>; 74 const std::string INVALID_KEY_TYPE_ARR[] = { 82 void AppendParamsToEventInfo(std::vector<ParsedItem>& src, in AppendParamsToEventInfo() 83 HiSysEventInfo& info, const std::string& key) in AppendParamsToEventInfo() 85 std::vector<std::decay_t<T>> dest; in AppendParamsToEventInfo() 88 dest.emplace_back(static_cast<std::decay_t<T>>(std in AppendParamsToEventInfo() [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | free_install_manager.cpp | 31 const std::u16string DMS_FREE_INSTALL_CALLBACK_TOKEN = u"ohos.DistributedSchedule.IDmsFreeInstallCallback"; 32 const std::string DMS_MISSION_ID = "dmsMissionId"; 33 const std::string PARAM_FREEINSTALL_APPID = "ohos.freeinstall.params.callingAppId"; 34 const std::string PARAM_FREEINSTALL_BUNDLENAMES = "ohos.freeinstall.params.callingBundleNames"; 35 const std::string PARAM_FREEINSTALL_UID = "ohos.freeinstall.params.callingUid"; 40 FreeInstallManager::FreeInstallManager(const std::weak_ptr<AbilityManagerService> &server) in FreeInstallManager() 68 std::string callerBundleName = callerElementName.GetBundleName(); in IsTopAbility() 69 std::string callerAbilityName = callerElementName.GetAbilityName(); in IsTopAbility() 70 std::string callerModuleName = callerElementName.GetModuleName(); in IsTopAbility() 83 std in StartFreeInstall() [all...] |
/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/ |
H A D | xcomponent_test_ng.cpp | 50 std::optional<std::string> xcId = std::nullopt; 51 std::optional<XComponentType> xcType = std::nullopt; 52 std::optional<std::string> libraryName = std::nullopt; 53 std::optional<std [all...] |
/third_party/spirv-tools/test/opt/ |
H A D | type_manager_test.cpp | 33 bool Validate(const std::vector<uint32_t>& bin) { in Validate() 45 void Match(const std::string& original, IRContext* context, in Match() 47 std::vector<uint32_t> bin; in Match() 52 std::string assembly; in Match() 57 << assembly << std::endl; in Match() 64 std::vector<std::unique_ptr<Type>> GenerateAllTypes() { in GenerateAllTypes() 66 std::vector<std::unique_ptr<Type>> types; in GenerateAllTypes() 135 types.emplace_back(new Struct(std in GenerateAllTypes() [all...] |
/base/theme/wallpaper_mgr/services/src/ |
H A D | wallpaper_service.cpp | 131 std::mutex WallpaperService::instanceLock_; 135 std::shared_ptr<AppExecFwk::EventHandler> WallpaperService::serviceHandler_; 180 auto cmd = std::make_shared<Command>(std::vector<std::string>({ "-all" }), "Show all", in OnStart() 181 [this](const std::vector<std::string> &input, std::string &output) -> bool { in OnStart() 183 "WallpaperExtensionAbility\t: ExtensionInfo{" + std::string(OHOS_WALLPAPER_BUNDLE_NAME) + "}\n"); in OnStart() 195 void WallpaperService::OnAddSystemAbility(int32_t systemAbilityId, const std [all...] |
/foundation/ability/ability_runtime/frameworks/native/ability/native/ |
H A D | js_service_extension_context.cpp | 60 std::shared_ptr<CallerCallBack> callerCallBack = nullptr; 61 std::mutex mutexlock; 62 std::condition_variable condition; 65 static std::mutex g_connectsMutex; 66 static std::map<ConnectionKey, sptr<JSServiceExtensionConnection>, key_compare> g_connects; 72 std::lock_guard guard(g_connectsMutex); in RemoveConnection() 73 auto item = std::find_if(g_connects.begin(), g_connects.end(), in RemoveConnection() 90 explicit JsServiceExtensionContext(const std::shared_ptr<ServiceExtensionContext>& context) : context_(context) {} in JsServiceExtensionContext() 96 std::unique_ptr<JsServiceExtensionContext>(static_cast<JsServiceExtensionContext*>(data)); in Finalizer() 185 std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/syncer/ |
H A D | distributeddb_single_ver_p2p_subscribe_sync_test.cpp | 37 using namespace std; 42 const std::string DEVICE_A = "deviceA"; 43 const std::string DEVICE_B = "deviceB"; 44 const std::string DEVICE_C = "deviceC"; 57 placeholders::_1, placeholders::_2, std::ref(g_schemaKvDelegateStatus), std::ref(g_schemaKvDelegatePtr)); 75 const std::string SCHEMA_VALUE1 = 87 const std::string SCHEMA_VALUE2 = 126 g_communicatorAggregator = new (std::nothrow) VirtualCommunicatorAggregator(); in SetUpTestCase() 148 g_deviceB = new (std in SetUp() [all...] |
/foundation/multimedia/media_library/frameworks/innerkitsimpl/test/unittest/medialibrary_backup_test/src/ |
H A D | medialibrary_backup_test.cpp | 41 using namespace std; 48 const std::string TEST_BACKUP_PATH = "/data/test/backup/db"; 49 const std::string TEST_UPGRADE_FILE_DIR = "/data/test/backup/file"; 50 const std::string GALLERY_APP_NAME = "gallery"; 51 const std::string MEDIA_APP_NAME = "external"; 52 const std::string MEDIA_LIBRARY_APP_NAME = "medialibrary"; 53 const std::string TEST_PATH_PREFIX = "/TestPrefix"; 54 const std::string TEST_RELATIVE_PATH = "/Pictures/Test/test.jpg"; 55 const std::string TEST_CLOUD_PATH_PREFIX = "/storage/cloud/files/Photo/1/"; 74 const std [all...] |
/base/hiviewdfx/hiview/core/platform_config/ |
H A D | hiview_platform_config.cpp | 38 HiviewPlatformConfig::HiviewPlatformConfig(const std::string& configPath) in HiviewPlatformConfig() 49 RegexList_.push_back(std::regex("DEFAULT_PLUGIN_CONFIG_NAME\\s*=\\s*\"(.*)\".*")); in InitData() 50 RegexList_.push_back(std::regex("PLUGIN_CONFIG_FILE_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 51 RegexList_.push_back(std::regex("DYNAMIC_LIB_SEARCH_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 52 RegexList_.push_back(std::regex("DYNAMIC_LIB64_SEARCH_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 53 RegexList_.push_back(std::regex("WORK_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 54 RegexList_.push_back(std::regex("COMMERCIAL_WORK_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 55 RegexList_.push_back(std::regex("PERSIST_DIR\\s*=\\s*\"(.*)\".*")); in InitData() 64 std::ifstream in; in ParsesConfig() 73 std in ParsesConfig() [all...] |
/base/hiviewdfx/hidumper/frameworks/native/src/util/ |
H A D | zip_utils.cpp | 22 bool ZipUtils::ZipFolder(const std::string &srcPath, const std::string &dstFile, const ZipTickNotify notify) in ZipFolder() 27 std::string srcFolder = IncludeTrailingPathDelimiter(srcPath); in ZipFolder() 38 std::vector<std::string> allFiles; in ZipFolder() 51 std::vector<std::pair<std::string, std::string>> zipItems; in ZipFolder() 52 std in ZipFolder() [all...] |
/base/inputmethod/imf/test/unittest/cpp_test/mock/ |
H A D | datashare_helper.cpp | 20 std::shared_ptr<DataShareHelper> DataShareHelper::instance_; 21 DataSharePredicates *DataSharePredicates::EqualTo(const std::string &field, const std::string &value) in EqualTo() 42 int32_t DataShareResultSet::GetColumnIndex(const std::string &columnName, int32_t &columnIndex) in GetColumnIndex() 48 int32_t DataShareResultSet::GetString(int columnIndex, std::string &value) const in GetString() 54 std::shared_ptr<DataShareHelper> DataShareHelper::Creator( in Creator() 55 const sptr<IRemoteObject> &token, const std::string &strUri, const std::string &extUri) in Creator() 60 instance_ = std::make_shared<DataShareHelper>(); in Creator() 64 std [all...] |
H A D | datashare_helper.h | 32 DataSharePredicates *EqualTo(const std::string &field, const std::string &value); 42 static int32_t GetColumnIndex(const std::string &columnName, int32_t &columnIndex); 43 int32_t GetString(int columnIndex, std::string &value) const; 46 std::string strValue_; 53 static std::shared_ptr<DataShareHelper> Creator( 54 const sptr<IRemoteObject> &token, const std::string &strUri, const std::string &extUri); 55 std::shared_ptr<DataShareResultSet> Query(Uri &uri, const DataSharePredicates &predicates, 56 std [all...] |
/base/hiviewdfx/hiview/framework/native/unified_collection/decorator/include/ |
H A D | memory_decorator.h | 27 MemoryDecorator(std::shared_ptr<MemoryCollector> collector) : memoryCollector_(collector) {};
in MemoryDecorator() 33 virtual CollectResult<std::string> CollectRawMemInfo() override;
34 virtual CollectResult<std::string> ExportMemView() override;
35 virtual CollectResult<std::vector<ProcessMemory>> CollectAllProcessMemory() override;
36 virtual CollectResult<std::string> ExportAllProcessMemory() override;
37 virtual CollectResult<std::string> CollectRawSlabInfo() override;
38 virtual CollectResult<std::string> CollectRawPageTypeInfo() override;
39 virtual CollectResult<std::string> CollectRawDMA() override;
40 virtual CollectResult<std::vector<AIProcessMem>> CollectAllAIProcess() override;
41 virtual CollectResult<std [all...] |
/base/inputmethod/imf/common/include/ |
H A D | inputmethod_sysevent.h | 52 void ServiceFaultReporter(const std::string &componentName, int32_t errCode); 53 void InputmethodFaultReporter(int32_t errCode, const std::string &name, const std::string &info); 56 void ReportImeState(ImeState state, pid_t pid, const std::string &bundleName); 63 using TimerCallback = std::function<void()>; 65 const std::string GetOperateInfo(int32_t infoCode); 66 std::string GetOperateAction(int32_t infoCode); 71 static const std::unordered_map<int32_t, std::string> operateInfo_; 72 static std [all...] |
/base/location/interfaces/inner_api/include/ |
H A D | locating_required_data.h | 29 wifiData_ = std::make_shared<WifiScanInfo>(); in LocatingRequiredData() 30 blueToothData_ = std::make_shared<BluetoothScanInfo>(); in LocatingRequiredData() 45 inline std::shared_ptr<WifiScanInfo> GetWifiScanInfo() const in GetWifiScanInfo() 50 inline void SetWifiScanInfo(std::shared_ptr<WifiScanInfo> wifiData) in SetWifiScanInfo() 55 inline std::shared_ptr<BluetoothScanInfo> GetBluetoothScanInfo() const in GetBluetoothScanInfo() 60 inline void SetBluetoothScanInfo(std::shared_ptr<BluetoothScanInfo> blueToothData) in SetBluetoothScanInfo() 79 static std::shared_ptr<LocatingRequiredData> Unmarshalling(Parcel& parcel) in Unmarshalling() 81 auto locatingRequiredData = std::make_shared<LocatingRequiredData>(); in Unmarshalling() 86 std::string ToString() in ToString() 88 std in ToString() [all...] |
/base/global/i18n/frameworks/intl/entity_recognition/date_time_recognition/src/ |
H A D | date_time_sequence.cpp | 27 const std::unordered_map<std::string, std::string> DateTimeSequence::DATE_ORDER_MAP = { 36 std::string DateTimeSequence::GetDateOrder(const std::string &locale) in GetDateOrder() 49 std::string languageTag = language; in GetDateOrder() 51 std::string dateOrder = DATE_ORDER_MAP.find(languageTag)->second; in GetDateOrder() 60 std::string tempValue; in GetDateOrder() 63 unistr.toUTF8String<std::string>(tempValue); in GetDateOrder() 64 std in GetDateOrder() [all...] |
/base/customization/enterprise_device_management/services/edm_plugin/include/ |
H A D | usb_read_only_plugin.h | 29 ErrCode OnHandlePolicy(std::uint32_t funcCode, MessageParcel &data, MessageParcel &reply, 31 void OnHandlePolicyDone(std::uint32_t funcCode, const std::string &adminName, bool isGlobalChanged, 33 ErrCode OnAdminRemove(const std::string &adminName, const std::string &policyData, int32_t userId) override; 34 void OnAdminRemoveDone(const std::string &adminName, const std::string ¤tJsonData, int32_t userId) override{}; 35 ErrCode OnGetPolicy(std::string &policyData, MessageParcel &data, MessageParcel &reply, int32_t userId) override; 39 bool HasConflictPolicy(int32_t accessPolicy, const std::string &allowUsbDevice); 40 void GetDisallowedUsbDeviceTypes(std [all...] |
/base/account/os_account/frameworks/ohosaccount/native/include/ |
H A D | account_proxy.h | 32 const std::string &accountName, const std::string &uid, const std::string &eventStr) override; 34 const int32_t userId, const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override; 35 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std::string &eventStr) override; 38 ErrCode GetOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &ohosAccountInfo) override; 39 ErrCode QueryOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &info) override; 40 std::int32_t QueryDeviceAccountId(std [all...] |
/base/account/os_account/services/accountmgr/test/mock/include/ |
H A D | mock_account_mgr_service.h | 26 constexpr std::int32_t MAX_SUPPORTED_ACCOUNT_NUMBER = 4; 33 void HandleNotificationEvents(const std::string &eventStr) override; 34 std::int32_t QueryDeviceAccountId(std::int32_t &accountId) override; 36 const std::string &accountName, const std::string &uid, const std::string &eventStr) override; 38 ErrCode QueryOhosAccountInfoByUserId(std::int32_t userId, OhosAccountInfo &accountInfo) override; 46 std::int32_t SetOhosAccountInfo(const OhosAccountInfo &ohosAccountInfo, const std [all...] |