Home
last modified time | relevance | path

Searched refs:appName (Results 1 – 25 of 156) sorted by relevance

1234567

/foundation/ability/ability_runtime/test/moduletest/common/ams/specified_ability_service_test/
Dspecified_ability_service_test.cpp43 …AbilityInfo CreateAbilityInfo(const std::string& name, const std::string& appName, const std::stri…
44 ApplicationInfo CreateAppInfo(const std::string& appName, const std::string& name);
57 const std::string& name, const std::string& appName, const std::string& bundleName) in CreateAbilityInfo() argument
62 abilityInfo.applicationName = appName; in CreateAbilityInfo()
73 ApplicationInfo SpecifiedAbilityServiceTest::CreateAppInfo(const std::string& appName, const std::s… in CreateAppInfo() argument
76 appInfo.name = appName; in CreateAppInfo()
100 std::string appName = "test_app"; variable
105 abilityRequest.abilityInfo = CreateAbilityInfo(abilityName + "1", appName, bundleName);
106 abilityRequest.appInfo = CreateAppInfo(appName, bundleName);
/foundation/communication/ipc/ipc/test/auxiliary/native/src/
Dipc_test_helper.cpp269 void IPCTestHelper::AddTestAppPid(const std::string &appName, const int &pid) in AddTestAppPid() argument
272 testPids_.insert(std::make_pair(appName, pid)); in AddTestAppPid()
275 void IPCTestHelper::RemoveTestAppPid(const std::string &appName) in RemoveTestAppPid() argument
278 auto it = testPids_.find(appName); in RemoveTestAppPid()
280 testPids_.erase(appName); in RemoveTestAppPid()
287 std::string appName = GetTestAppName(appId); in StartTestApp() local
288 if (!appName.empty()) { in StartTestApp()
290 pid = StartExecutable(appName, std::to_string(cmdId)); in StartTestApp()
292 pid = StartExecutable(appName); in StartTestApp()
297 RemoveTestAppPid(appName); // should remove it if exist; in StartTestApp()
[all …]
/foundation/ability/ability_runtime/test/moduletest/on_new_want_module_test/
Don_new_want_module_test.cpp45 …AbilityInfo CreateAbilityInfo(const std::string& name, const std::string& appName, const std::stri…
47 ApplicationInfo CreateAppInfo(const std::string& appName, const std::string& name);
50 …ityInfo OnNewWantModuleTest::CreateAbilityInfo(const std::string& name, const std::string& appName, in CreateAbilityInfo() argument
56 abilityInfo.applicationName = appName; in CreateAbilityInfo()
74 ApplicationInfo OnNewWantModuleTest::CreateAppInfo(const std::string& appName, const std::string& b… in CreateAppInfo() argument
77 appInfo.name = appName; in CreateAppInfo()
105 std::string appName = "test_app"; variable
115 …abilityRequest.abilityInfo = CreateAbilityInfo(abilityName, appName, bundleName, moduleName, true);
116 abilityRequest.appInfo = CreateAppInfo(appName, bundleName);
146 std::string appName = "test_app"; variable
[all …]
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/bms_search_system_test/
Dbms_search_system_test.cpp192 std::string appName = BASE_BUNDLE_NAME + "1"; in SetUpTestCase() local
320 std::string appName = BASE_BUNDLE_NAME + "1"; variable
332 bundleMgrProxy->GetBundleInfo(appName, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, USERID);
334 EXPECT_EQ(bundleInfo.name, appName);
360 std::string appName = BASE_BUNDLE_NAME + "1"; variable
370 … bundleMgrProxy->GetBundleInfo(appName, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USERID);
372 EXPECT_EQ(bundleInfo.name, appName);
395 std::string appName = BASE_BUNDLE_NAME + "1"; variable
404 appName = BASE_BUNDLE_NAME + "e";
407 bundleMgrProxy->GetBundleInfo(appName, BundleFlag::GET_BUNDLE_DEFAULT, bundleInfo, USERID);
[all …]
/foundation/resourceschedule/memmgr/test/unittest/phone/
Dreclaim_strategy_manager_test.cpp66 std::string appName = "com.test"; variable
69 …std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, s…
79 std::string appName = "com.test"; variable
82 …std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, s…
99 std::string appName = "com.test"; variable
106 …std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, s…
130 std::string appName = "com.test"; variable
133 …std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, s…
177 std::string appName = "com.test"; variable
181 …std::shared_ptr<ReclaimParam> para = std::make_shared<ReclaimParam>(pid, appId, appName, userId, s…
[all …]
/foundation/bundlemanager/bundle_framework/test/fuzztest/getapplicationinfo_fuzzer/
Dgetapplicationinfo_fuzzer.cpp29 std::string appName (reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
32 … bundleMgrProxy.GetApplicationInfo(appName, flag, reinterpret_cast<uintptr_t>(data), appInfo); in DoSomethingInterestingWithMyAPI()
33 bundleMgrProxy.GetApplicationInfo(appName, reinterpret_cast<uintptr_t>(data), in DoSomethingInterestingWithMyAPI()
35 bundleMgrProxy.GetApplicationInfoV9(appName, reinterpret_cast<uintptr_t>(data), in DoSomethingInterestingWithMyAPI()
/foundation/bundlemanager/bundle_framework/test/systemtest/common/bms/acts_bms_kit_system_test/
Dacts_bms_kit_system_test.cpp475 std::string appName = BASE_BUNDLE_NAME + "1"; variable
482 bool getInfoResult = bundleMgrProxy->GetBundleInfo(appName, 0, bundleInfo, USERID);
486 Uninstall(appName, resvec);
505 std::string appName = BASE_BUNDLE_NAME + "2"; variable
515 … bundleMgrProxy->GetBundleInfo(appName, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USERID);
517 EXPECT_EQ(bundleInfo.name, appName);
519 Uninstall(appName, resvec);
538 std::string appName = BASE_BUNDLE_NAME + "3"; variable
549 … bundleMgrProxy->GetBundleInfo(appName, BundleFlag::GET_BUNDLE_WITH_ABILITIES, bundleInfo, USERID);
551 EXPECT_EQ(bundleInfo.name, appName);
[all …]
/foundation/bundlemanager/bundle_framework/services/bundlemgr/src/
Dbundle_state_storage.cpp174 std::string appName; in SaveBundleStateStorage() local
175 NameAndUserIdToKey(bundleName, userId, appName); in SaveBundleStateStorage()
186 appRoot[appName] = bundleUserInfo; in SaveBundleStateStorage()
192 jsonFile[appName] = bundleUserInfo; in SaveBundleStateStorage()
210 std::string appName; in GetBundleStateStorage() local
211 NameAndUserIdToKey(bundleName, userId, appName); in GetBundleStateStorage()
251 std::string appName; in DeleteBundleState() local
252 NameAndUserIdToKey(bundleName, userId, appName); in DeleteBundleState()
264 APP_LOGE("file is empty appName = %{private}s", appName.c_str()); in DeleteBundleState()
270 if (jParse.find(appName) == jParse.end()) { in DeleteBundleState()
[all …]
/foundation/ability/ability_runtime/test/mock/services_abilitymgr_test/libs/appexecfwk_core/src/bundlemgr/
Dmock_bundle_manager.cpp54 …const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() argument
56 if (appName.empty()) { in GetApplicationInfo()
61 if (appName.compare("com.test.crowdtest") == 0) { in GetApplicationInfo()
159 …const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() argument
161 if (appName.empty()) { in GetApplicationInfo()
164 appInfo.name = appName; in GetApplicationInfo()
165 appInfo.bundleName = appName; in GetApplicationInfo()
167 if (appName.compare("com.test.crowdtest") == 0) { in GetApplicationInfo()
171 if (appName.compare("com.test.control") == 0) { in GetApplicationInfo()
174 if (appName.compare("com.test.atomicservice") == 0) { in GetApplicationInfo()
/foundation/ability/ability_runtime/services/appmgr/src/
Dapp_process_manager.cpp42 …const std::string &appName, const std::string &processName, const pid_t pid, const int32_t recordI… in AddAppToRecentList() argument
45 appTaskInfo->SetName(appName); in AddAppToRecentList()
83 const std::string &appName, const std::string &processName) const in GetAppTaskInfoByProcessName() argument
86 …std::find_if(recentAppList_.begin(), recentAppList_.end(), [&appName, &processName](const auto &ap… in GetAppTaskInfoByProcessName()
87 … return ((appTaskInfo->GetName() == appName) && (appTaskInfo->GetProcessName() == processName)); in GetAppTaskInfoByProcessName()
/foundation/ability/ability_runtime/test/mock/frameworks_kits_ability_native_test/include/
Dmock_bundle_manager.cpp26 …const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() argument
28 if (appName.empty()) { in GetApplicationInfo()
82 …const std::string& appName, const ApplicationFlag flag, const int userId, ApplicationInfo& appInfo) in GetApplicationInfo() argument
84 if (appName.empty()) { in GetApplicationInfo()
89 if (appName == "com.crowdtest.expired") { in GetApplicationInfo()
93 if (appName == "com.crowdtest.unexpired") { in GetApplicationInfo()
/foundation/ability/ability_lite/services/abilitymgr_lite/src/slite/
Dability_record.cpp34 AdapterFree(appName); in ~AbilityRecord()
46 AdapterFree(appName); in SetAppName()
47 appName = Utils::Strdup(name); in SetAppName()
Dability_list.cpp76 if (record == nullptr || record->appName == nullptr) { in Get()
79 if (strcmp(bundleName, record->appName) == 0) { in Get()
181 missionInfoList->missionInfos[i++].SetAppName(it->value_->appName); in GetMissionInfos()
228 if (excludedBundleName != nullptr && strcmp(record->appName, excludedBundleName) == 0) { in PopAllAbility()
232 AbilityRecordObserverManager::GetInstance().NotifyAbilityRecordCleanup(record->appName); in PopAllAbility()
248 if (abilityRecord.appName == nullptr) { in IsPermanentAbility()
254 if (strcmp(abilityRecord.appName, MAIN_BUNDLE_NAME) == 0) { in IsPermanentAbility()
Dnative_ability_thread.cpp63 if (abilityRecord->appName == nullptr) { in InitAbilityThread()
102 abilityRecord->appName); in InitAbilityThread()
104 if (strcmp(abilityRecord->appName, LAUNCHER_BUNDLE_NAME) == 0) { in InitAbilityThread()
107 abilityRecord->appName); in InitAbilityThread()
112 abilityRecord->appName); in InitAbilityThread()
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/
Dapp_process_data.cpp38 std::string appName = Str16ToStr8(parcel.ReadString16()); in ReadFromParcelAppData() local
40 appDataInfo.appName = appName; in ReadFromParcelAppData()
59 WRITE_PARCEL_AND_RETURN_FALSE_IF_FAIL(String16, parcel, Str8ToStr16(appDatas[i].appName)); in Marshalling()
/foundation/bundlemanager/bundle_framework/test/resource/bmssystemtestability/abilitySrc/thirdPageDemo2/src/
DpageAbilityDemo.cpp24 const std::string appName = "com.third.hiworld.example2"; in OnStart() local
25 const std::string testCacheDiR1 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/testDir1"; in OnStart()
26 const std::string testCacheDiR2 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/testDir2"; in OnStart()
/foundation/bundlemanager/bundle_framework/test/resource/bmssystemtestability/abilitySrc/thirdPageDemo1/src/
DpageAbilityDemo.cpp25 const std::string appName = "com.third.hiworld.example1"; in OnStart() local
26 const std::string testCacheFileNamE1 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/name1.txt"; in OnStart()
27 const std::string testCacheFileNamE2 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/name2.txt"; in OnStart()
/foundation/multimedia/media_library/frameworks/js/src/
Dphotoaccesshelperinf.js83 let appName = '';
89 return appName;
93 appName = await resourceMgr.getStringValue(labelId);
94 console.info(`photoAccessHelper appName: ${appName}`)
99 return appName;
109 const appName = await getAppName();
110 if (appName.length === 0) {
118 appName: appName property
/foundation/bundlemanager/bundle_framework/test/resource/bmssystemtestability/abilitySrc/thirdPageDemo3/src/
DpageAbilityDemo.cpp27 const std::string appName = "com.third.hiworld.example1"; in OnStart() local
28 std::string path = BUNDLE_DATA_ROOT_PATH + appName + "/cache/"; in OnStart()
36 BUNDLE_DATA_ROOT_PATH + appName + "/cache/dir1/dir2/dir3/dir4/dir5/dir6/name.txt"; in OnStart()
/foundation/bundlemanager/bundle_framework/test/resource/bmssystemtestability/abilitySrc/thirdPageDemo4/src/
DpageAbilityDemo.cpp26 const std::string appName = "com.third.hiworld.example1"; in OnStart() local
27 const std::string testCacheDir1 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/testDir1"; in OnStart()
28 const std::string testCacheDir2 = BUNDLE_DATA_ROOT_PATH + appName + "/cache/testDir2"; in OnStart()
/foundation/ability/ability_lite/frameworks/abilitymgr_lite/src/slite/
Dability_record_state_data.cpp23 AbilityRecordStateData::AbilityRecordStateData(const char *appName, AbilityRecordState state) in AbilityRecordStateData() argument
25 SetAppName(appName); in AbilityRecordStateData()
/foundation/ability/ability_runtime/test/unittest/ams_app_state_callback_test/
Dams_app_state_callback_test.cpp61 appDataInfo.appName = "test_name";
138 appDataInfo.appName = "test_name";
151 EXPECT_EQ(processData.appDatas[i].appName, newProcessData->appDatas[i].appName);
/foundation/ability/ability_runtime/test/unittest/app_mgr_client_test/
Dapp_mgr_client_test.cpp51 const std::string& appName, const std::string& bundleName);
69 const std::string& appName, const std::string& bundleName) in GenerateAbilityRequest() argument
76 abilityInfo.applicationName = appName; in GenerateAbilityRequest()
78 appinfo.name = appName; in GenerateAbilityRequest()
163 std::string appName = "FirstApp"; variable
166 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
209 std::string appName = "FirstApp"; variable
213 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
253 std::string appName = "FirstApp"; variable
256 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
[all …]
/foundation/ability/ability_runtime/test/unittest/app_scheduler_test/
Dapp_scheduler_test.cpp49 const std::string& appName, const std::string& bundleName);
65 const std::string& appName, const std::string& bundleName) in GenerateAbilityRequest() argument
72 abilityInfo.applicationName = appName; in GenerateAbilityRequest()
74 appinfo.name = appName; in GenerateAbilityRequest()
215 std::string appName = "FirstApp"; variable
217 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
289 std::string appName = "FirstApp"; variable
291 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
312 std::string appName = "FirstApp"; variable
314 auto abilityReq = GenerateAbilityRequest(deviceName, abilityName, appName, bundleName);
[all …]
/foundation/ability/ability_runtime/test/unittest/connection_record_test/
Dconnection_record_test.cpp56 const std::string& appName, const std::string& bundleName);
64 const std::string& abilityName, const std::string& appName, const std::string& bundleName) in GenerateAbilityRequest() argument
71 abilityInfo.applicationName = appName; in GenerateAbilityRequest()
75 appinfo.name = appName; in GenerateAbilityRequest()
96 std::string appName = "hiservcie"; in SetUp() local
98 …AbilityRequest abilityRequest = GenerateAbilityRequest(deviceName, abilityName, appName, bundleNam… in SetUp()

1234567