/foundation/distributeddatamgr/datamgr_service/services/distributeddataservice/framework/test/ |
H A D | constant_test.cpp | 64 auto tokens = Constant::Split("", ",");
in HWTEST_F() local 65 ASSERT_EQ(tokens.size(), 1);
in HWTEST_F() 66 EXPECT_EQ(tokens[0], "");
in HWTEST_F() 78 auto tokens = Constant::Split("abc_123", "_");
in HWTEST_F() local 79 ASSERT_EQ(tokens.size(), 2);
in HWTEST_F() 80 EXPECT_EQ(tokens[0], "abc");
in HWTEST_F() 81 EXPECT_EQ(tokens[1], "123");
in HWTEST_F() 93 auto tokens = Constant::Split("#abc123", "#");
in HWTEST_F() local 94 ASSERT_EQ(tokens.size(), 2);
in HWTEST_F() 95 EXPECT_EQ(tokens[ in HWTEST_F() 108 auto tokens = Constant::Split("abc123!", "!"); HWTEST_F() local 122 auto tokens = Constant::Split("abc!123!", "!"); HWTEST_F() local 137 auto tokens = Constant::Split("abc123", "^"); HWTEST_F() local 151 auto tokens = Constant::Split("abc$$$123", "$"); HWTEST_F() local 168 auto tokens = Constant::Split("abc&&&123", "&&"); HWTEST_F() local [all...] |
/foundation/ai/intelligent_voice_framework/services/intell_voice_engine/server/update/ |
H A D | update_engine_utils.cpp | 63 std::vector<std::string> tokens; in GetWakeupVesion() local 64 StringUtil::Split(wakeupVersion, "v.", tokens); in GetWakeupVesion() 65 if (tokens.size() != WAKEUP_VERSION_SPLIT_NUM || tokens[1].empty()) { in GetWakeupVesion() 66 INTELL_VOICE_LOG_INFO("wakeupVersion split empty (%{public}zu)", tokens.size()); in GetWakeupVesion() 70 std::string version = tokens[1]; in GetWakeupVesion() 71 tokens.resize(0); in GetWakeupVesion() 72 StringUtil::Split(version, ".", tokens); in GetWakeupVesion() 73 if (tokens.size() != WAKEUP_VERSION_NUMBERS) { in GetWakeupVesion() 78 for (size_t index = 0; index < tokens in GetWakeupVesion() [all...] |
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | ability_debug_response_proxy.cpp | 40 void AbilityDebugResponseProxy::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) in OnAbilitysDebugStarted() argument 43 SendRequest(IAbilityDebugResponse::Message::ON_ABILITYS_DEBUG_STARTED, tokens); in OnAbilitysDebugStarted() 46 void AbilityDebugResponseProxy::OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) in OnAbilitysDebugStoped() argument 49 SendRequest(IAbilityDebugResponse::Message::ON_ABILITYS_DEBUG_STOPED, tokens); in OnAbilitysDebugStoped() 53 const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) in OnAbilitysAssertDebugChange() 62 if (tokens.size() <= CYCLE_LIMIT_MIN || tokens.size() > CYCLE_LIMIT_MAX || in OnAbilitysAssertDebugChange() 63 !data.WriteInt32(tokens.size())) { in OnAbilitysAssertDebugChange() 68 for (const auto &item : tokens) { in OnAbilitysAssertDebugChange() 95 const IAbilityDebugResponse::Message &message, const std::vector<sptr<IRemoteObject>> &tokens) in SendRequest() 52 OnAbilitysAssertDebugChange( const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) OnAbilitysAssertDebugChange() argument 94 SendRequest( const IAbilityDebugResponse::Message &message, const std::vector<sptr<IRemoteObject>> &tokens) SendRequest() argument [all...] |
H A D | ability_debug_response_stub.cpp | 41 std::vector<sptr<IRemoteObject>> tokens; in HandleOnAbilitysDebugStarted() local 48 tokens.push_back(token); in HandleOnAbilitysDebugStarted() 50 OnAbilitysDebugStarted(tokens); in HandleOnAbilitysDebugStarted() 62 std::vector<sptr<IRemoteObject>> tokens; in HandleOnAbilitysDebugStoped() local 69 tokens.push_back(token); in HandleOnAbilitysDebugStoped() 71 OnAbilitysDebugStoped(tokens); in HandleOnAbilitysDebugStoped() 83 std::vector<sptr<IRemoteObject>> tokens; in HandleOnAbilitysAssertDebugChange() local 90 tokens.push_back(token); in HandleOnAbilitysAssertDebugChange() 93 OnAbilitysAssertDebugChange(tokens, isAssertDebug); in HandleOnAbilitysAssertDebugChange()
|
/foundation/ability/ability_runtime/services/abilitymgr/src/ |
H A D | ability_debug_deal.cpp | 37 void AbilityDebugDeal::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) in OnAbilitysDebugStarted() argument 40 for (auto &token : tokens) { in OnAbilitysDebugStarted() 50 void AbilityDebugDeal::OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) in OnAbilitysDebugStoped() argument 53 for (auto &token : tokens) { in OnAbilitysDebugStoped() 63 void AbilityDebugDeal::OnAbilitysAssertDebugChange(const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) in OnAbilitysAssertDebugChange() argument 67 for (const auto &token : tokens) { in OnAbilitysAssertDebugChange() 77 void AbilityDebugResponse::OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) in OnAbilitysDebugStarted() argument 79 if (tokens.empty()) { in OnAbilitysDebugStarted() 80 TAG_LOGW(AAFwkTag::ABILITYMGR, "tokens empty"); in OnAbilitysDebugStarted() 89 deal->OnAbilitysDebugStarted(tokens); in OnAbilitysDebugStarted() 92 OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) OnAbilitysDebugStoped() argument 107 OnAbilitysAssertDebugChange( const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) OnAbilitysAssertDebugChange() argument [all...] |
/foundation/ability/ability_runtime/services/abilitymgr/include/ |
H A D | ability_debug_deal.h | 31 * @param tokens The token of ability records. 33 void OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens); 37 * @param tokens The token of ability records. 39 void OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens); 43 * @param tokens The token of ability records. 46 void OnAbilitysAssertDebugChange(const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug); 63 void OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) override; 64 void OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) override; 65 void OnAbilitysAssertDebugChange(const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) override;
|
/foundation/ability/ability_runtime/test/fuzztest/abilitydebugresponseproxy_fuzzer/ |
H A D | abilitydebugresponseproxy_fuzzer.cpp | 73 std::vector<sptr<IRemoteObject>> tokens; in AbilityDebugResponseProxyFuzztest1() local 74 proxy->OnAbilitysDebugStarted(tokens); // branch in AbilityDebugResponseProxyFuzztest1() 75 proxy->OnAbilitysDebugStoped(tokens); // branch in AbilityDebugResponseProxyFuzztest1() 76 proxy->OnAbilitysAssertDebugChange(tokens, boolParam); // branch in AbilityDebugResponseProxyFuzztest1() 78 tokens.emplace_back(token); in AbilityDebugResponseProxyFuzztest1() 79 proxy->SendRequest(static_cast<IAbilityDebugResponse::Message>(int32Param), tokens); // branch tokens no empty. in AbilityDebugResponseProxyFuzztest1() local 80 tokens.clear(); in AbilityDebugResponseProxyFuzztest1() 81 proxy->SendRequest(static_cast<IAbilityDebugResponse::Message>(int32Param), tokens); // branch tokens empt in AbilityDebugResponseProxyFuzztest1() local [all...] |
/foundation/ability/ability_runtime/test/unittest/ability_debug_response_proxy_test/ |
H A D | ability_debug_response_proxy_test.cpp | 67 std::vector<sptr<IRemoteObject>> tokens; in HWTEST_F() local 70 tokens.push_back(token); in HWTEST_F() 72 proxy->OnAbilitysDebugStarted(tokens); in HWTEST_F() 89 std::vector<sptr<IRemoteObject>> tokens; in HWTEST_F() local 92 tokens.push_back(token); in HWTEST_F() 95 proxy->OnAbilitysDebugStarted(tokens); in HWTEST_F()
|
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/include/appmgr/ |
H A D | ability_debug_response_proxy.h | 32 * @param tokens The token of ability token. 34 void OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) override; 38 * @param tokens The token of ability token. 40 void OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) override; 44 * @param tokens The token of ability records. 47 void OnAbilitysAssertDebugChange(const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) override; 51 void SendRequest(const IAbilityDebugResponse::Message &message, const std::vector<sptr<IRemoteObject>> &tokens);
|
H A D | ability_debug_response_interface.h | 29 * @param tokens The token of ability token. 31 virtual void OnAbilitysDebugStarted(const std::vector<sptr<IRemoteObject>> &tokens) = 0; 35 * @param tokens The token of ability token. 37 virtual void OnAbilitysDebugStoped(const std::vector<sptr<IRemoteObject>> &tokens) = 0; 41 * @param tokens The token of ability records. 44 virtual void OnAbilitysAssertDebugChange(const std::vector<sptr<IRemoteObject>> &tokens, bool isAssertDebug) = 0;
|
/foundation/ability/ability_runtime/test/fuzztest/abilitydebugdeal_fuzzer/ |
H A D | abilitydebugdeal_fuzzer.cpp | 79 std::vector<sptr<IRemoteObject>> tokens; in DoSomethingInterestingWithMyAPI() local 82 abilityDebugDeal->OnAbilitysDebugStarted(tokens); in DoSomethingInterestingWithMyAPI() 83 abilityDebugDeal->OnAbilitysDebugStoped(tokens); in DoSomethingInterestingWithMyAPI() 84 abilityDebugDeal->OnAbilitysAssertDebugChange(tokens, boolParam); in DoSomethingInterestingWithMyAPI() 88 abilityDebugResponse->OnAbilitysDebugStarted(tokens); in DoSomethingInterestingWithMyAPI() 89 abilityDebugResponse->OnAbilitysDebugStoped(tokens); in DoSomethingInterestingWithMyAPI() 90 abilityDebugResponse->OnAbilitysAssertDebugChange(tokens, boolParam); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/test/fuzztest/abilityinterfacesappmgrabilitydebugresponseproxy_fuzzer/ |
H A D | abilityinterfacesappmgrabilitydebugresponseproxy_fuzzer.cpp | 72 std::vector<sptr<IRemoteObject>> tokens; in DoSomethingInterestingWithMyAPI() local 73 infosProxy->OnAbilitysDebugStarted(tokens); in DoSomethingInterestingWithMyAPI() 74 infosProxy->OnAbilitysDebugStoped(tokens); in DoSomethingInterestingWithMyAPI() 76 infosProxy->OnAbilitysAssertDebugChange(tokens, isAssertDebug); in DoSomethingInterestingWithMyAPI() 83 infosProxy->SendRequest(message, tokens); in DoSomethingInterestingWithMyAPI() 85 infosProxy->SendRequest(message, tokens); in DoSomethingInterestingWithMyAPI() 87 infosProxy->SendRequest(message, tokens); in DoSomethingInterestingWithMyAPI()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | ability_record_mgr.cpp | 114 * @brief Get the all tokens in the abilityRecordMgr. 116 * @return all tokens in the abilityRecordMgr. 121 std::vector<sptr<IRemoteObject>> tokens; in GetAllTokens() local 124 tokens.emplace_back(token); in GetAllTokens() 126 return tokens; in GetAllTokens()
|
/foundation/ability/ability_runtime/test/unittest/app_mgr_service_inner_second_test/mock/include/ |
H A D | mock_ability_debug_response_stub.h | 30 MOCK_METHOD1(OnAbilitysDebugStarted, void(const std::vector<sptr<IRemoteObject>> &tokens)); 31 MOCK_METHOD1(OnAbilitysDebugStoped, void(const std::vector<sptr<IRemoteObject>> &tokens));
|
/foundation/ability/ability_runtime/test/unittest/ability_debug_response_stub_test/ |
H A D | mock_ability_debug_response_stub.h | 30 MOCK_METHOD1(OnAbilitysDebugStarted, void(const std::vector<sptr<IRemoteObject>> &tokens)); 31 MOCK_METHOD1(OnAbilitysDebugStoped, void(const std::vector<sptr<IRemoteObject>> &tokens));
|
/foundation/resourceschedule/device_standby/utils/policy/src/ |
H A D | json_utils.cpp | 222 std::vector<std::string> tokens; in SplitVersion() local 227 tokens.push_back(token); in SplitVersion() 230 return tokens; in SplitVersion()
|
/foundation/ability/ability_runtime/test/moduletest/common/ams/app_life_cycle_test/ |
H A D | ams_app_life_cycle_module_test.cpp | 94 const std::vector<sptr<IRemoteObject>>& tokens, const int32_t& recordId, 97 const std::vector<sptr<IRemoteObject>>& tokens, const sptr<MockAppScheduler>& mockAppScheduler); 302 const std::vector<sptr<IRemoteObject>>& tokens, const int32_t& recordId, in CheckStateAfterClearAbility() 305 unsigned long size = tokens.size(); in CheckStateAfterClearAbility() 308 ChangeAppToTerminate(mockAppScheduler, appRunningRecord, tokens[i], false); in CheckStateAfterClearAbility() 312 ChangeAppToTerminate(mockAppScheduler, appRunningRecord, tokens[i], true); in CheckStateAfterClearAbility() 320 const std::vector<sptr<IRemoteObject>>& tokens, const sptr<MockAppScheduler>& mockAppScheduler) in CheckStateAfterChangeAbility() 322 unsigned long size = tokens.size(); in CheckStateAfterChangeAbility() 325 ChangeAbilityStateToBackGroud(mockAppScheduler, appRunningRecord, tokens[i], true); in CheckStateAfterChangeAbility() 327 tokens[ in CheckStateAfterChangeAbility() 301 CheckStateAfterClearAbility(const std::shared_ptr<AppRunningRecord>& appRunningRecord, const std::vector<sptr<IRemoteObject>>& tokens, const int32_t& recordId, const sptr<MockAppScheduler>& mockAppScheduler) const CheckStateAfterClearAbility() argument 319 CheckStateAfterChangeAbility(const std::shared_ptr<AppRunningRecord>& appRunningRecord, const std::vector<sptr<IRemoteObject>>& tokens, const sptr<MockAppScheduler>& mockAppScheduler) CheckStateAfterChangeAbility() argument 442 std::vector<sptr<IRemoteObject>> tokens; HWTEST_F() local 499 std::vector<sptr<IRemoteObject>> tokens; HWTEST_F() local [all...] |
/foundation/communication/wifi/wifi/frameworks/native/src/ |
H A D | wifi_device_proxy.cpp | 568 void WifiDeviceProxy::BigDataReadIpAddress(WifiIpAddress &address, std::vector<std::string> &tokens) in BigDataReadIpAddress() argument 570 address.family = CheckDataLegal(tokens[g_bigDataRecvLen++]); in BigDataReadIpAddress() 571 address.addressIpv4 = static_cast<size_t>(CheckDataLegal(tokens[g_bigDataRecvLen++])); in BigDataReadIpAddress() 572 int size = CheckDataLegal(tokens[g_bigDataRecvLen++]); in BigDataReadIpAddress() 578 address.addressIpv6.push_back(CheckDataLegal(tokens[g_bigDataRecvLen++])); in BigDataReadIpAddress() 606 void WifiDeviceProxy::BigDataReadEapConfig(WifiEapConfig &wifiEapConfig, std::vector<std::string> &tokens) in BigDataReadEapConfig() argument 608 wifiEapConfig.eap = HexToString(tokens[g_bigDataRecvLen++]); in BigDataReadEapConfig() 609 wifiEapConfig.phase2Method = Phase2Method(CheckDataLegal(tokens[g_bigDataRecvLen++])); in BigDataReadEapConfig() 610 wifiEapConfig.identity = HexToString(tokens[g_bigDataRecvLen++]); in BigDataReadEapConfig() 611 wifiEapConfig.anonymousIdentity = HexToString(tokens[g_bigDataRecvLe in BigDataReadEapConfig() 626 std::vector<std::string> tokens; splitString() local [all...] |
/foundation/communication/dsoftbus/tests/core/connection/wifi_direct_cpp/ |
H A D | wifi_direct_utils.cpp | 43 std::vector<std::string> tokens; in SplitString() local 50 tokens.push_back(token); in SplitString() 53 tokens.push_back(input.substr(s, input.length() - s)); in SplitString() 55 return tokens; in SplitString() 265 auto tokens = SplitString(macString, ":"); in MacStringToArray() local 266 for (const auto &token : tokens) { in MacStringToArray()
|
/foundation/arkui/ace_engine/frameworks/component_test/ |
H A D | test_result_recorder.cpp | 68 std::vector<std::string> tokens; in SplitString() local 70 tokens.push_back(*iter++); in SplitString() 72 return tokens; in SplitString()
|
/foundation/distributeddatamgr/relational_store/frameworks/native/rdb/src/ |
H A D | rdb_store_manager.cpp | 268 auto tokens = StringUtils::Split(path, "/"); in Delete() local 269 if (!tokens.empty()) { in Delete() 271 param.storeName_ = *tokens.rbegin(); in Delete()
|
/foundation/ability/ability_runtime/test/fuzztest/appmgrservicefirst_fuzzer/ |
H A D | appmgrservicefirst_fuzzer.cpp | 122 std::vector<sptr<IRemoteObject>> tokens; in DoSomethingInterestingWithMyAPI() local 123 appMgrService->GetAbilityRecordsByProcessID(static_cast<int>(pid), tokens); in DoSomethingInterestingWithMyAPI() local
|
/foundation/communication/dsoftbus/core/connection/wifi_direct_cpp/utils/ |
H A D | wifi_direct_utils.cpp | 43 std::vector<std::string> tokens; in SplitString() local 50 tokens.push_back(token); in SplitString() 53 tokens.push_back(input.substr(s, input.length() - s)); in SplitString() 55 return tokens; in SplitString() 274 auto tokens = SplitString(macString, ":"); in MacStringToArray() local 275 for (const auto &token : tokens) { in MacStringToArray()
|
/foundation/resourceschedule/device_standby/services/test/unittest/ |
H A D | standby_utils_unit_test.cpp | 366 auto tokens = JsonUtils::SplitVersion(versionStr, versionDelim); 367 ASSERT_TRUE(tokens.size() != 0); 368 for (const auto& token : tokens) {
|
/foundation/communication/netmanager_base/frameworks/native/netmanagernative/ |
H A D | netfirewall_parcel.cpp | 83 std::vector<std::string> tokens;
in split() local 88 tokens.emplace_back(item);
in split() 91 return tokens;
in split()
|