/foundation/arkui/ace_engine/test/unittest/core/pattern/xcomponent/ |
H A D | xcomponent_testtwo_ng.cpp | 52 std::optional<std::string> xcId = std::nullopt; 53 std::optional<XComponentType> xcType = std::nullopt; 54 std::optional<std::string> libraryName = std::nullopt; 55 std::optional<std [all...] |
/foundation/bundlemanager/bundle_framework/services/bundlemgr/test/unittest/bms_bundle_app_control_test/ |
H A D | bms_bundle_mock_app_control.cpp | 40 const std::string BUNDLE_TEST = "app_bundleName"; 41 const std::string APPID = "com.third.hiworld.example1_BNtg4JBClbl92Rgc3jm/" 43 const std::string CALLER_BUNDLE_NAME = "callerBundleName"; 44 const std::string TARGET_BUNDLE_NAME = "targetBundleName"; 57 const std::shared_ptr<BundleDataMgr> GetBundleDataMgr() const; 62 static std::shared_ptr<BundleMgrService> bundleMgrService_; 65 std::shared_ptr<BundleMgrService> BmsBundleMockAppControlTest::bundleMgrService_ = 84 DelayedSingleton<BundleMgrService>::GetInstance()->dataMgr_ = std::make_shared<BundleDataMgr>(); in SetUp() 98 bundleMgrService_->dataMgr_ = std::make_shared<BundleDataMgr>(); in ResetDataMgr() 102 const std [all...] |
/foundation/multimedia/av_codec/test/nativedemo/audio_demo/ |
H A D | avcodec_audio_avbuffer_decoder_demo.cpp | 38 using namespace std; 103 inputFile_.open(INPUT_AAC_FILE_PATH, std::ios::binary); in InitFile() 104 pcmOutputFile_.open(OUTPUT_AAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 106 inputFile_.open(INPUT_FLAC_FILE_PATH, std::ios::binary); in InitFile() 107 pcmOutputFile_.open(OUTPUT_FLAC_PCM_FILE_PATH.data(), std::ios::out | std::ios::binary); in InitFile() 109 inputFile_.open(INPUT_MP3_FILE_PATH, std::ios::binary); in InitFile() 110 pcmOutputFile_.open(OUTPUT_MP3_PCM_FILE_PATH.data(), std::ios::out | std in InitFile() [all...] |
/foundation/multimedia/media_library/frameworks/services/media_thumbnail/src/ |
H A D | thumbnail_source_loading.cpp | 31 using namespace std;
36 const std::string LOCAL_MEDIA_PATH = "/storage/media/local/files/";
38 const std::unordered_map<SourceState, SourceState> SourceLoader::LOCAL_SOURCE_LOADING_STATES = {
43 const std::unordered_map<SourceState, SourceState> SourceLoader::CLOUD_SOURCE_LOADING_STATES = {
50 const std::unordered_map<SourceState, SourceState> SourceLoader::ALL_SOURCE_LOADING_STATES = {
60 const std::unordered_map<SourceState, SourceState> SourceLoader::ALL_SOURCE_LOADING_CLOUD_VIDEO_STATES = {
68 const std::unordered_map<SourceState, SourceState> SourceLoader::CLOUD_LCD_SOURCE_LOADING_STATES = {
74 const std::unordered_map<SourceState, SourceState> SourceLoader::LOCAL_LCD_SOURCE_LOADING_STATES = {
80 const std::unordered_map<SourceState, SourceState> SourceLoader::UPGRADE_SOURCE_LOADING_STATES = {
86 const std [all...] |
/foundation/window/window_manager/utils/test/unittest/ |
H A D | window_transition_info_test.cpp | 72 sptr<AAFwk::AbilityTransitionInfo> info = new(std::nothrow) AAFwk::AbilityTransitionInfo(); in HWTEST_F() 75 sptr<WindowTransitionInfo> winTransitionInfo1 = new(std::nothrow) WindowTransitionInfo(info); in HWTEST_F() 85 sptr<WindowTransitionInfo> winTransitionInfo2 = new(std::nothrow) WindowTransitionInfo(info); in HWTEST_F() 98 sptr<AAFwk::AbilityTransitionInfo> info = new(std::nothrow) AAFwk::AbilityTransitionInfo(); in HWTEST_F() 102 sptr<WindowTransitionInfo> winTransitionInfo = new(std::nothrow) WindowTransitionInfo(info); in HWTEST_F() 111 sptr<IRemoteObject> remote = new(std::nothrow) RemoteMocker(); in HWTEST_F() 124 sptr<AAFwk::AbilityTransitionInfo> info = new(std::nothrow) AAFwk::AbilityTransitionInfo(); in HWTEST_F() 128 sptr<WindowTransitionInfo> winTransitionInfo = new(std::nothrow) WindowTransitionInfo(info); in HWTEST_F() 134 sptr<IRemoteObject> remote = new(std::nothrow) RemoteMocker(); in HWTEST_F() 153 sptr<AAFwk::AbilityTransitionInfo> info = new(std in HWTEST_F() [all...] |
/foundation/communication/netmanager_base/test/netstatsmanager/unittest/net_stats_manager_test/ |
H A D | net_stats_service_test.cpp | 35 #define DTEST_LOG std::cout << __func__ << ":" << __LINE__ << ":" 40 void GetIfaceNamesFromManager(std::list<std::string> &ifaceNames) in GetIfaceNamesFromManager() 59 callback_ = new (std::nothrow) NetStatsCallbackTest(); in SetUpTestCase() 137 DTEST_LOG << "Ret" << ret << std::endl; in HWTEST_F() 150 DTEST_LOG << "Ret" << ret << std::endl; in HWTEST_F() 160 std::list<std::string> ifaceNames; in HWTEST_F() 178 std::list<std in HWTEST_F() [all...] |
/foundation/communication/dsoftbus/core/bus_center/ipc/standard/src/ |
H A D | lnn_bus_center_ipc.cpp | 60 static std::mutex g_lock; 61 static std::vector<JoinLnnRequestInfo *> g_joinLNNRequestInfo; 62 static std::vector<LeaveLnnRequestInfo *> g_leaveLNNRequestInfo; 63 static std::vector<RefreshLnnRequestInfo *> g_refreshLnnRequestInfo; 64 static std::vector<DataLevelChangeReqInfo *> g_dataLevelChangeRequestInfo; 94 JoinLnnRequestInfo *info = new (std::nothrow) JoinLnnRequestInfo(); in AddJoinLNNInfo() 124 LeaveLnnRequestInfo *info = new (std::nothrow) LeaveLnnRequestInfo(); in AddLeaveLNNInfo() 157 std::lock_guard<std::mutex> autoLock(g_lock); in OnRefreshDeviceFound() 170 std [all...] |
/foundation/communication/wifi/wifi/test/wifi_standard/wifi_framework/wifi_manage/idl_client/unittest/ |
H A D | wifi_p2p_hal_interface_test.cpp | 38 void onDeviceLost(const std::string &address) in onDeviceLost() 43 void onGoNegotiationRequest(const std::string &srcAddr, short passId) in onGoNegotiationRequest() 63 void onInvitationResult(const std::string &bssid, int status) in onInvitationResult() 73 void onGroupFormationFailure(const std::string &reason) in onGroupFormationFailure() 83 void onGroupRemoved(const std::string &groupIfName, bool isGo) in onGroupRemoved() 88 void onProvisionDiscoveryPbcRequest(const std::string &address) in onProvisionDiscoveryPbcRequest() 93 void onProvisionDiscoveryPbcResponse(const std::string &address) in onProvisionDiscoveryPbcResponse() 98 void onProvisionDiscoveryEnterPin(const std::string &address) in onProvisionDiscoveryEnterPin() 103 void onProvisionDiscoveryShowPin(const std::string &address, const std [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/ |
H A D | distributeddb_interfaces_transaction_optimization_test.cpp | 27 using namespace std; 47 placeholders::_2, std::ref(g_kvDelegateStatus), std::ref(g_kvNbDelegatePtr)); 100 std::string storeId("SyncAndLocalBatchOperations001"); in HWTEST_F() 130 std::vector<Entry> getSyncEntries; in HWTEST_F() 134 std::vector<Entry> getLocalEntries; in HWTEST_F() 178 std::string storeId("SyncAndLocalSingleOperations001"); in HWTEST_F() 245 std::string storeId("DeleteInTransaction001"); in HWTEST_F() 308 std::string storeId("DeleteBatchInTransaction001"); in HWTEST_F() 355 std in HWTEST_F() [all...] |
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/sqlite/ |
H A D | sqlite_utils_extend.cpp | 43 const std::string CIPHER_CONFIG_SQL = "PRAGMA codec_cipher="; 44 const std::string KDF_ITER_CONFIG_SQL = "PRAGMA codec_kdf_iter="; 45 const std::string USER_VERSION_SQL = "PRAGMA user_version;"; 46 const std::string WAL_MODE_SQL = "PRAGMA journal_mode=WAL;"; 47 const std::string SHA1_ALGO_SQL = "PRAGMA codec_hmac_algo=SHA1;"; 48 const std::string SHA256_ALGO_REKEY_SQL = "PRAGMA codec_rekey_hmac_algo=SHA256;"; 58 std::vector<uint8_t> valueOriginal; 85 if (std::memcmp(cached->valueOriginal.data(), valueBlob, valueBlobLen) == 0) { in ParseValueThenCacheOrGetFromCache() 92 auto newCache = new (std::nothrow) ValueParseCache; in ParseValueThenCacheOrGetFromCache() 224 void FlatBufferCacheFree(std [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules/vulkan/amber/ |
H A D | vktAmberTestCase.cpp | 50 const std::string& readFilename) in AmberTestCase() 86 static bool isFeatureSupported(const vkt::Context& ctx, const std::string& feature) in isFeatureSupported() 135 std::string message = std::string("Unexpected feature name: ") + feature; in isFeatureSupported() 144 std::string message = "Failed to parse Amber file: " + m_readFilename; in delayedInit() 154 std::set<std::string> device_extensions(ctx.getDeviceExtensions().begin(), in checkSupport() 156 std::set<std::string> instance_extensions(ctx.getInstanceExtensions().begin(), in checkSupport() 158 std in checkSupport() [all...] |
/third_party/vk-gl-cts/external/vulkancts/modules_no_buildgn/vulkan/amber/ |
H A D | vktAmberTestCase.cpp | 50 const std::string& readFilename) in AmberTestCase() 85 static bool isFeatureSupported(const vkt::Context& ctx, const std::string& feature) in isFeatureSupported() 134 std::string message = std::string("Unexpected feature name: ") + feature; in isFeatureSupported() 143 std::string message = "Failed to parse Amber file: " + m_readFilename; in delayedInit() 153 std::set<std::string> device_extensions(ctx.getDeviceExtensions().begin(), in checkSupport() 155 std::set<std::string> instance_extensions(ctx.getInstanceExtensions().begin(), in checkSupport() 157 std in checkSupport() [all...] |
/third_party/skia/third_party/externals/spirv-tools/test/fuzz/ |
H A D | transformation_merge_function_returns_test.cpp | 29 const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) { in MakeReturnMergingInfo() 40 std::string shader = R"( in TEST() 42 %1 = OpExtInstImport "GLSL.std.450" in TEST() 194 std::string shader = R"( in TEST() 196 %1 = OpExtInstImport "GLSL.std.450" in TEST() 247 std::string shader = R"( in TEST() 249 %1 = OpExtInstImport "GLSL.std.450" in TEST() 301 std::string shader = R"( 303 %1 = OpExtInstImport "GLSL.std.450" 488 std 26 MakeReturnMergingInfo( uint32_t merge_block_id, uint32_t is_returning_id, uint32_t maybe_return_val_id, const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) MakeReturnMergingInfo() argument [all...] |
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/fuzz/ |
H A D | transformation_merge_function_returns_test.cpp | 29 const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) { in MakeReturnMergingInfo() 40 std::string shader = R"( in TEST() 42 %1 = OpExtInstImport "GLSL.std.450" in TEST() 194 std::string shader = R"( in TEST() 196 %1 = OpExtInstImport "GLSL.std.450" in TEST() 247 std::string shader = R"( in TEST() 249 %1 = OpExtInstImport "GLSL.std.450" in TEST() 301 std::string shader = R"( 303 %1 = OpExtInstImport "GLSL.std.450" 488 std 26 MakeReturnMergingInfo( uint32_t merge_block_id, uint32_t is_returning_id, uint32_t maybe_return_val_id, const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) MakeReturnMergingInfo() argument [all...] |
/third_party/spirv-tools/test/fuzz/ |
H A D | transformation_merge_function_returns_test.cpp | 29 const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) { in MakeReturnMergingInfo() 40 std::string shader = R"( in TEST() 42 %1 = OpExtInstImport "GLSL.std.450" in TEST() 194 std::string shader = R"( in TEST() 196 %1 = OpExtInstImport "GLSL.std.450" in TEST() 247 std::string shader = R"( in TEST() 249 %1 = OpExtInstImport "GLSL.std.450" in TEST() 301 std::string shader = R"( 303 %1 = OpExtInstImport "GLSL.std.450" 488 std 26 MakeReturnMergingInfo( uint32_t merge_block_id, uint32_t is_returning_id, uint32_t maybe_return_val_id, const std::map<uint32_t, uint32_t>& opphi_to_suitable_id) MakeReturnMergingInfo() argument [all...] |
/base/hiviewdfx/hisysevent/frameworks/native/test/unittest/common/ |
H A D | hisysevent_tool_unit_test.cpp | 30 using namespace std; 39 auto now = std::chrono::system_clock::now(); in GetMilliseconds() 40 auto millisecs = std::chrono::duration_cast<std::chrono::milliseconds>(now.time_since_epoch()); in GetMilliseconds() 44 void RunCmds(std::shared_ptr<HiSysEventTool> tool, int argc, char** argv) in RunCmds() 51 std::this_thread::sleep_for(std::chrono::milliseconds(SLEEP_DURATION)); in RunCmds() 79 auto sysEventRecord = std::make_shared<HiSysEventRecord>(origin); in HWTEST_F() 127 ASSERT_EQ(std::string(origin0), ret); in HWTEST_F() 164 auto records1 = std in HWTEST_F() [all...] |
/base/inputmethod/imf/test/unittest/cpp_test/src/ |
H A D | newIme_switch_test.cpp | 39 static void CheckCurrentSubProp(const std::string &subName); 42 static std::string bundleName; 43 static std::string extName; 44 static std::vector<std::string> subName; 45 static std::vector<std::string> locale; 46 static std::vector<std::string> language; 47 static std [all...] |
/base/account/os_account/services/accountmgr/src/osaccount/ |
H A D | os_account_database_operator.cpp | 23 const std::string OS_ACCOUNT_STORE_ID = "os_account_info"; 36 accountDataStorage_ = std::make_shared<OsAccountDataStorage>( in InnerInit() 45 std::vector<std::string> accountListVec; in InnerInit() 58 ErrCode OsAccountDatabaseOperator::GetOsAccountListFromDatabase(const std::string& storeID, in GetOsAccountListFromDatabase() 59 std::vector<OsAccountInfo> &osAccountList) in GetOsAccountListFromDatabase() 67 std::map<std::string, std::shared_ptr<IAccountInfo>> osAccountMapInfos; in GetOsAccountListFromDatabase() 72 std in GetOsAccountListFromDatabase() [all...] |
/base/customization/enterprise_device_management/test/unittest/interface/inner_api/proxy/ |
H A D | application_manager_proxy_test.cpp | 32 const std::string ADMIN_PACKAGENAME = "com.edm.test.demo"; 40 std::shared_ptr<ApplicationManagerProxy> applicationManagerProxy_ = nullptr; 41 std::shared_ptr<EdmSysManager> edmSysManager_ = nullptr; 48 edmSysManager_ = std::make_shared<EdmSysManager>(); in SetUp() 49 object_ = new (std::nothrow) EnterpriseDeviceMgrStubMock(); in SetUp() 65 std::cout << "EdmServiceState : " << Utils::GetEdmServiceState() << std::endl; in TearDownTestSuite() 76 std::vector<std::string> bundles = {ADMIN_PACKAGENAME}; in HWTEST_F() 93 std in HWTEST_F() [all...] |
/base/customization/enterprise_device_management/interfaces/inner_api/security_manager/src/ |
H A D | security_manager_proxy.cpp | 24 std::shared_ptr<SecurityManagerProxy> SecurityManagerProxy::instance_ = nullptr; 25 std::mutex SecurityManagerProxy::mutexLock_; 26 const std::u16string DESCRIPTOR = u"ohos.edm.IEnterpriseDeviceMgr"; 28 std::shared_ptr<SecurityManagerProxy> SecurityManagerProxy::GetSecurityManagerProxy() in GetSecurityManagerProxy() 31 std::lock_guard<std::mutex> lock(mutexLock_); in GetSecurityManagerProxy() 33 std::shared_ptr<SecurityManagerProxy> temp = std::make_shared<SecurityManagerProxy>(); in GetSecurityManagerProxy() 40 int32_t SecurityManagerProxy::GetSecurityPatchTag(const AppExecFwk::ElementName &admin, std::string &securityPatchTag) in GetSecurityPatchTag() 87 std in SetPasswordPolicy() [all...] |
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
H A D | dfx_map.cpp | 194 std::shared_ptr<DfxMap> DfxMap::Create(std::string buf, size_t size) in Create() 199 auto map = std::make_shared<DfxMap>(); in Create() 249 perms = std::string(permChs, sizeof(permChs)); in Parse() 301 std::string DfxMap::ToString() in ToString() 304 std::string realMapName = name; in ToString() 312 return std::string(buf); in ToString() 315 void DfxMap::PermsToProts(const std::string perms, uint32_t& prots, uint32_t& flag) in PermsToProts() 318 if (perms.find("r") != std::string::npos) { in PermsToProts() 322 if (perms.find("w") != std in PermsToProts() [all...] |
/base/notification/distributed_notification_service/frameworks/ans/src/ |
H A D | notification_live_view_content.cpp | 46 void NotificationLiveViewContent::SetExtraInfo(const std::shared_ptr<AAFwk::WantParams> &extras) in SetExtraInfo() 51 std::shared_ptr<AAFwk::WantParams> NotificationLiveViewContent::GetExtraInfo() const in GetExtraInfo() 76 std::string NotificationLiveViewContent::Dump() in Dump() 78 std::string extraStr{"null"}; in Dump() 84 std::string pictureStr {", pictureMap = {"}; in Dump() 95 ", status = " + std::to_string(static_cast<int32_t>(liveViewStatus_)) + ", version = " + in Dump() 96 std::to_string(static_cast<int32_t>(version_)) + ", extraInfo = " + extraStr + in Dump() 147 auto pictureArray = it.value().get<std::vector<std::string>>(); in ConvertPictureFromJson() 148 pictureMap_[it.key()] = std in ConvertPictureFromJson() [all...] |
/base/msdp/device_status/test/unittest/services/unittest/src/ |
H A D | devicestatus_agent_test.cpp | 28 std::shared_ptr<DeviceStatusAgent> g_agent1; 29 std::shared_ptr<DeviceStatusAgent> g_agent2; 40 g_agent1 = std::make_shared<DeviceStatusAgent>(); in SetUp() 41 g_agent2 = std::make_shared<DeviceStatusAgent>(); in SetUp() 78 std::shared_ptr<DeviceStatusAgentListenerMockFirstClient> agentEvent = in HWTEST_F() 79 std::make_shared<DeviceStatusAgentListenerMockFirstClient>(); in HWTEST_F() 98 std::shared_ptr<DeviceStatusAgentListenerMockFirstClient> agentEvent = in HWTEST_F() 99 std::make_shared<DeviceStatusAgentListenerMockFirstClient>(); in HWTEST_F() 127 std::shared_ptr<DeviceStatusAgentListenerMockFirstClient> agentEvent1 = in HWTEST_F() 128 std in HWTEST_F() [all...] |
/base/security/selinux_adapter/framework/policycoreutils/src/ |
H A D | load_policy.cpp | 70 static bool ReadFileFirstLine(const std::string &file, std::string &line) in ReadFileFirstLine() 77 std::ifstream hashFile(file); in ReadFileFirstLine() 82 std::getline(hashFile, line); in ReadFileFirstLine() 87 static bool CompareHash(const std::string &file1, const std::string &file2) in CompareHash() 89 std::string line1; in CompareHash() 90 std::string line2; in CompareHash() 97 static void DeleteTmpPolicyFile(const std::string &policyFile) in DeleteTmpPolicyFile() 104 static bool GetVendorPolicyVersion(std [all...] |
/base/startup/init/services/param/watcher/proxy/ |
H A D | watcher_manager.h | 46 using ParamWatcherProcessor = std::function<void(ParamWatcherListPtr list, WatcherNodePtr node, uint32_t index)>; 78 int32_t AddWatcher(const std::string &keyPrefix, uint32_t remoteWatcherId) override; 79 int32_t DelWatcher(const std::string &keyPrefix, uint32_t remoteWatcherId) override; 80 int32_t RefreshWatcher(const std::string &keyPrefix, uint32_t remoteWatcherId) override; 84 int Dump(int fd, const std::vector<std::u16string>& args) override; 89 void SendLocalChange(const std::string &keyPrefix, uint32_t remoteWatcherId); 100 WatcherGroupPtr AddWatcherGroup(const std::string &keyPrefix); 101 WatcherGroupPtr GetWatcherGroup(const std::string &keyPrefix); 117 std [all...] |