/foundation/ability/ability_runtime/test/moduletest/common/ams/specified_ability_service_test/ |
D | specified_ability_service_test.cpp | 43 …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/ |
D | ipc_test_helper.cpp | 269 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/ |
D | on_new_want_module_test.cpp | 45 …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/ |
D | bms_search_system_test.cpp | 192 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/ |
D | reclaim_strategy_manager_test.cpp | 66 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/ |
D | getapplicationinfo_fuzzer.cpp | 29 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/ |
D | acts_bms_kit_system_test.cpp | 475 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/ |
D | bundle_state_storage.cpp | 174 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/ |
D | mock_bundle_manager.cpp | 54 …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/ |
D | app_process_manager.cpp | 42 …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/ |
D | mock_bundle_manager.cpp | 26 …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/ |
D | ability_record.cpp | 34 AdapterFree(appName); in ~AbilityRecord() 46 AdapterFree(appName); in SetAppName() 47 appName = Utils::Strdup(name); in SetAppName()
|
D | ability_list.cpp | 76 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()
|
D | native_ability_thread.cpp | 63 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/ |
D | app_process_data.cpp | 38 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/ |
D | pageAbilityDemo.cpp | 24 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/ |
D | pageAbilityDemo.cpp | 25 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/ |
D | photoaccesshelperinf.js | 83 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/ |
D | pageAbilityDemo.cpp | 27 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/ |
D | pageAbilityDemo.cpp | 26 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/ |
D | ability_record_state_data.cpp | 23 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/ |
D | ams_app_state_callback_test.cpp | 61 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/ |
D | app_mgr_client_test.cpp | 51 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/ |
D | app_scheduler_test.cpp | 49 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/ |
D | connection_record_test.cpp | 56 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()
|