Home
last modified time | relevance | path

Searched refs:packageName (Results 1 - 25 of 127) sorted by relevance

123456

/base/msdp/device_status/services/native/src/
H A Ddevicestatus_hisysevent.cpp30 static void WriteEvent(const std::string &packageName, Types ... args) in WriteEvent() argument
33 int32_t ret = HiSysEventWrite(HiviewDFX::HiSysEvent::Domain::MSDP, packageName, in WriteEvent()
36 FI_HILOGE("Write event failed:%{public}s", packageName.c_str()); in WriteEvent()
41 void WriteSubscribeHiSysEvent(int32_t uid, const std::string &packageName, int32_t type) in WriteSubscribeHiSysEvent() argument
43 WriteEvent("SUBSCRIBE", "UID", uid, "PACKAGE_NAME", packageName, "TYPE", type); in WriteSubscribeHiSysEvent()
46 void WriteUnSubscribeHiSysEvent(int32_t uid, const std::string &packageName, int32_t type) in WriteUnSubscribeHiSysEvent() argument
48 WriteEvent("UNSUBSCRIBE", "UID", uid, "PACKAGE_NAME", packageName, "TYPE", type); in WriteUnSubscribeHiSysEvent()
/base/update/updater/test/fuzztest/rebootandinstallupgradepackage_fuzzer/
H A Drebootandinstallupgradepackage_fuzzer.cpp31 const std::vector<std::string> packageName {std::string(reinterpret_cast<const char*>(data), size)}; in FuzzUpdaterKits()
32 RebootAndInstallUpgradePackage("", packageName); in FuzzUpdaterKits()
33 RebootAndInstallSdcardPackage("", packageName); in FuzzUpdaterKits()
/base/hiviewdfx/hiview/plugins/freeze_detector/
H A Ddb_helper.cpp38 std::string packageName = record->GetEventValue(FreezeCommon::EVENT_PACKAGE_NAME); in GetResultMap() local
39 packageName = packageName.empty() ? in GetResultMap()
40 record->GetEventValue(FreezeCommon::EVENT_PROCESS_NAME) : packageName; in GetResultMap()
43 if (result.GetSamePackage() == "true" && (watchParams.packageName != packageName || watchParams.pid != pid)) { in GetResultMap()
45 "%{public}lu", watchParams.packageName.c_str(), packageName.c_str(), watchParams.pid, pid); in GetResultMap()
55 .InitTimestamp(record->happenTime_).InitPid(pid).InitUid(uid).InitTid(tid).InitPackageName(packageName) in GetResultMap()
/base/location/interfaces/inner_api/include/
H A Dhook_utils.h80 std::string packageName; member
94 static void ExecuteHookWhenGetAddressFromLocation(std::string packageName);
95 static void ExecuteHookWhenGetAddressFromLocationName(std::string packageName);
101 static bool ExecuteHookWhenCheckAppForUser(std::string packageName);
102 static bool ExecuteHookWhenCheckAppForCacheTime(std::string packageName);
/base/customization/enterprise_device_management/test/fuzztest/adminpoliciesstoragerdb_fuzzer/
H A Dadmin_policies_storage_rdb_fuzzer.cpp68 std::string packageName(reinterpret_cast<const char*>(data), size); in LLVMFuzzerTestOneInput()
69 adminPoliciesStorageRdb->DeleteAdmin(userId, packageName); in LLVMFuzzerTestOneInput()
72 adminPoliciesStorageRdb->UpdateAdmin(userId, packageName, className, permissions); in LLVMFuzzerTestOneInput()
74 adminPoliciesStorageRdb->UpdateEntInfo(userId, packageName, entInfo); in LLVMFuzzerTestOneInput()
77 adminPoliciesStorageRdb->UpdateManagedEvents(userId, packageName, managedEvents); in LLVMFuzzerTestOneInput()
/base/location/frameworks/location_common/common/source/
H A Dhook_utils.cpp77 void HookUtils::ExecuteHookWhenGetAddressFromLocation(std::string packageName) in ExecuteHookWhenGetAddressFromLocation() argument
80 reportStruct.abilityName = packageName; in ExecuteHookWhenGetAddressFromLocation()
86 void HookUtils::ExecuteHookWhenGetAddressFromLocationName(std::string packageName) in ExecuteHookWhenGetAddressFromLocationName() argument
89 reportStruct.abilityName = packageName; in ExecuteHookWhenGetAddressFromLocationName()
119 bool HookUtils::ExecuteHookWhenCheckAppForUser(std::string packageName) in ExecuteHookWhenCheckAppForUser() argument
122 locatorRequestStruct.bundleName = packageName; in ExecuteHookWhenCheckAppForUser()
139 bool HookUtils::ExecuteHookWhenCheckAppForCacheTime(std::string packageName) in ExecuteHookWhenCheckAppForCacheTime() argument
142 locatorRequestStruct.bundleName = packageName; in ExecuteHookWhenCheckAppForCacheTime()
/base/tee/tee_client/services/authentication/
H A Dtee_auth_system.cpp72 static int32_t FillEccHapCaInfo(string& packageName, const char *pubKey, uint32_t pubKeyLen, CaAuthInfo *caInfo) in FillEccHapCaInfo() argument
74 /* certs format: packageNameLen || packageName || pubKeyLen || pubKey (xLen || x || yLen || y) */ in FillEccHapCaInfo()
75 uint64_t hapInfoSize = sizeof(uint32_t) + packageName.length() + in FillEccHapCaInfo()
78 tloge("buf too short, %u, %zu, %u\n", (unsigned int)sizeof(caInfo->certs), packageName.length(), pubKeyLen); in FillEccHapCaInfo()
82 /* packageNameLen || packageName */ in FillEccHapCaInfo()
84 *((uint32_t *)(caInfo->certs + offset)) = packageName.length(); in FillEccHapCaInfo()
86 packageName.copy((char *)caInfo->certs + offset, packageName.length(), 0); in FillEccHapCaInfo()
87 offset += packageName.length(); in FillEccHapCaInfo()
138 string packageName in ConstructHapCaInfoFromToken() local
[all...]
/base/update/updater/interfaces/kits/updaterkits/
H A Dupdaterkits.cpp135 static int AddPkgPath(struct UpdateMessage &msg, size_t updateOffset, const std::vector<std::string> &packageName) in AddPkgPath() argument
137 for (auto path : packageName) { in AddPkgPath()
159 bool RebootAndInstallSdcardPackage(const std::string &miscFile, const std::vector<std::string> &packageName) in RebootAndInstallSdcardPackage() argument
168 if (packageName.size() != 0 && AddPkgPath(msg, static_cast<size_t>(ret), packageName) != 0) { in RebootAndInstallSdcardPackage()
178 int RebootAndInstallUpgradePackage(const std::string &miscFile, const std::vector<std::string> &packageName, in RebootAndInstallUpgradePackage() argument
181 if (packageName.size() == 0 && upgradeType == UPGRADE_TYPE_OTA) { in RebootAndInstallUpgradePackage()
186 for (auto path : packageName) { in RebootAndInstallUpgradePackage()
207 int addRet = AddPkgPath(updateMsg, static_cast<size_t>(ret), packageName); in RebootAndInstallUpgradePackage()
/base/msdp/device_status/services/native/include/
H A Ddevicestatus_hisysevent.h24 void WriteSubscribeHiSysEvent(int32_t uid, const std::string &packageName, int32_t type);
25 void WriteUnSubscribeHiSysEvent(int32_t uid, const std::string &packageName, int32_t type);
/base/customization/enterprise_device_management/services/edm/include/
H A Dadmin_policies_storage_rdb.h33 bool DeleteAdmin(int32_t userId, const std::string &packageName);
34 bool UpdateAdmin(int32_t userId, const std::string &packageName, const std::string &className,
36 bool UpdateEntInfo(int32_t userId, const std::string &packageName, const EntInfo &entInfo);
37 bool UpdateManagedEvents(int32_t userId, const std::string &packageName,
H A Dadmin_manager.h38 std::shared_ptr<Admin> GetAdminByPkgName(const std::string &packageName, int32_t userId);
39 ErrCode DeleteAdmin(const std::string &packageName, int32_t userId);
51 ErrCode GetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId);
52 ErrCode SetEntInfo(const std::string &packageName, EntInfo &entInfo, int32_t userId);
/base/security/selinux_adapter/interfaces/policycoreutils/include/
H A Dhap_restorecon.h45 std::string packageName; member
52 std::string packageName; member
70 int HapLabelLookup(const std::string &apl, const std::string &packageName,
73 int HapContextsLookup(bool isDomain, const std::string &apl, const std::string &packageName,
/base/sensors/miscdevice/services/miscdevice_service/src/
H A Dmiscdevice_service.cpp325 .packageName = GetPackageName(GetCallingTokenID()), in Vibrate()
340 "vibratorId:%{public}d, duration:%{public}d", curVibrateTime.c_str(), info.packageName.c_str(), info.pid, in Vibrate()
365 std::string packageName = GetPackageName(GetCallingTokenID()); in StopVibrator() local
368 curVibrateTime.c_str(), packageName.c_str(), GetCallingPid(), vibratorId); in StopVibrator()
392 .packageName = GetPackageName(GetCallingTokenID()), in PlayVibratorEffect()
413 info.packageName.c_str(), info.pid, info.usage, vibratorId, info.duration, info.effect.c_str(), info.count); in PlayVibratorEffect()
457 std::string packageName = GetPackageName(GetCallingTokenID()); in StopVibrator() local
460 "mode:%{public}s", curVibrateTime.c_str(), packageName.c_str(), GetCallingPid(), vibratorId, mode.c_str()); in StopVibrator()
473 std::string packageName = GetPackageName(GetCallingTokenID()); in IsSupportEffect() local
476 "state:%{public}d", curVibrateTime.c_str(), packageName in IsSupportEffect()
554 std::string packageName; GetPackageName() local
586 std::string packageName = GetPackageName(GetCallingTokenID()); GetLightList() local
607 std::string packageName = GetPackageName(GetCallingTokenID()); TurnOn() local
627 std::string packageName = GetPackageName(GetCallingTokenID()); TurnOff() local
718 std::string packageName = GetPackageName(GetCallingTokenID()); GetDelayTime() local
[all...]
H A Dvibrator_thread.cpp43 MISC_HILOGE("Play once vibration fail, package:%{public}s", info.packageName.c_str()); in Run()
49 MISC_HILOGE("Play effect vibration fail, package:%{public}s", info.packageName.c_str()); in Run()
55 MISC_HILOGE("Play custom vibration by hd haptic fail, package:%{public}s", info.packageName.c_str()); in Run()
62 MISC_HILOGE("Play custom vibration by composite effect fail, package:%{public}s", info.packageName.c_str()); in Run()
83 MISC_HILOGD("Stop duration:%{public}d, package:%{public}s", info.duration, info.packageName.c_str()); in PlayOnce()
104 MISC_HILOGD("Stop effect:%{public}s, package:%{public}s", effect.c_str(), info.packageName.c_str()); in PlayEffect()
128 MISC_HILOGD("Stop hd haptic, package:%{public}s", info.packageName.c_str()); in PlayCustomByHdHptic()
192 MISC_HILOGD("Stop composite effect part, package:%{public}s", info.packageName.c_str()); in PlayCompositeEffect()
/base/update/updater/interfaces/kits/include/updaterkits/
H A Dupdaterkits.h24 // @param packageName update package file name.
26 extern int RebootAndInstallUpgradePackage(const std::string &miscFile, const std::vector<std::string> &packageName,
31 extern bool RebootAndInstallSdcardPackage(const std::string &miscFile, const std::vector<std::string> &packageName);
/base/customization/enterprise_device_management/test/fuzztest/adminmanager_fuzzer/
H A Dadmin_manager_fuzzer.cpp68 std::string packageName(reinterpret_cast<const char*>(data), size); in DoSomethingInterestingWithMyAPI()
69 std::vector<std::string> packageNameList = { packageName }; in DoSomethingInterestingWithMyAPI()
79 adminManager->GetAdminByPkgName(packageName, userId); in DoSomethingInterestingWithMyAPI()
80 adminManager->DeleteAdmin(packageName, userId); in DoSomethingInterestingWithMyAPI()
88 adminManager->GetEntInfo(packageName, entInfo, userId); in DoSomethingInterestingWithMyAPI()
89 adminManager->SetEntInfo(packageName, entInfo, userId); in DoSomethingInterestingWithMyAPI()
/base/startup/appspawn/interfaces/innerkits/hnp/src/
H A Dhnp_api.c182 hapInfo->abi, hnpRootPath, hapInfo->packageName, installOptions); in NativeInstallHnp()
191 argv[index++] = (char *)hapInfo->packageName; in NativeInstallHnp()
204 int NativeUnInstallHnp(const char *userId, const char *packageName) in NativeUnInstallHnp() argument
215 if ((userId == NULL) || (packageName == NULL)) { in NativeUnInstallHnp()
220 packageName); in NativeUnInstallHnp()
227 argv[index++] = (char *)packageName; in NativeUnInstallHnp()
/base/msdp/device_status/intention/stationary/server/src/
H A Dstationary_server.cpp161 manager_.GetPackageName(appInfo->tokenId, appInfo->packageName); in Subscribe()
173 WriteSubscribeHiSysEvent(appInfo->uid, appInfo->packageName, type); in Subscribe()
184 appInfo->packageName = DS_DUMPER->GetPackageName(appInfo->tokenId); in Unsubscribe()
196 WriteUnSubscribeHiSysEvent(appInfo->uid, appInfo->packageName, type); in Unsubscribe()
207 std::string packageName; in ReportSensorSysEvent() local
208 manager_.GetPackageName(context.tokenId, packageName); in ReportSensorSysEvent()
214 "PKGNAME", packageName, in ReportSensorSysEvent()
/base/startup/appspawn/interfaces/innerkits/hnp/include/
H A Dhnp_api.h62 char packageName[PACK_NAME_LENTH]; // package name member
83 * @param packageName Indicates the packageName of HAP.
87 int NativeUnInstallHnp(const char *userId, const char *packageName);
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/pake_task/
H A Dpake_task_common.c206 const char *packageName = GetStringFromJson(in, FIELD_PKG_NAME); in FillPkgNameAndServiceType() local
207 if (packageName == NULL) { in FillPkgNameAndServiceType()
208 LOGE("Get packageName failed."); in FillPkgNameAndServiceType()
211 params->packageName = (char *)HcMalloc(HcStrlen(packageName) + 1, 0); in FillPkgNameAndServiceType()
212 if (params->packageName == NULL) { in FillPkgNameAndServiceType()
213 LOGE("Malloc for packageName failed."); in FillPkgNameAndServiceType()
216 if (memcpy_s(params->packageName, HcStrlen(packageName) + 1, packageName, HcStrle in FillPkgNameAndServiceType()
[all...]
/base/startup/appspawn/service/hnp/installer/src/
H A Dhnp_installer.c203 * @param packageName hap名称.
211 static int HnpUnInstallPublicHnp(const char* packageName, const char *name, const char *version, int uid, in HnpUnInstallPublicHnp() argument
240 ret = HnpPackageInfoHnpDelete(packageName, name, version); in HnpUnInstallPublicHnp()
258 static int HnpNativeUnInstall(HnpPackageInfo *packageInfo, int uid, const char *packageName) in HnpNativeUnInstall() argument
264 packageName); in HnpNativeUnInstall()
267 ret = HnpUnInstallPublicHnp(packageName, packageInfo->name, packageInfo->currentVersion, uid, false); in HnpNativeUnInstall()
275 ret = HnpUnInstallPublicHnp(packageName, packageInfo->name, packageInfo->installVersion, uid, true); in HnpNativeUnInstall()
285 static int HnpUnInstall(int uid, const char *packageName) in HnpUnInstall() argument
304 int ret = HnpPackageInfoGet(packageName, &packageInfo, &count); in HnpUnInstall()
311 ret = HnpNativeUnInstall(&packageInfo[i], uid, packageName); in HnpUnInstall()
826 char *packageName = NULL; HnpCmdUnInstall() local
[all...]
/base/web/webview/sa/include/
H A Dapp_fwk_update_service.h66 int SetWebCorePackageName(const std::string& packageName);
67 int SendAppSpawnMessage(const std::string& packageName);
68 int SendNWebSpawnMesage(const std::string& packageName);
/base/security/selinux_adapter/test/unittest/hap_restorecon/
H A Dunit_test.cpp76 .packageName = TEST_HAP_BUNDLE_NAME,
84 .packageName = TEST_HAP_BUNDLE_NAME,
92 .packageName = TEST_HAP_BUNDLE_NAME,
100 .packageName = TEST_HAP_BUNDLE_NAME,
108 .packageName = TEST_HAP_BUNDLE_NAME,
116 .packageName = TEST_HAP_BUNDLE_NAME_WITH_NO_CONTEXTS,
124 .packageName = TEST_HAP_BUNDLE_NAME,
132 .packageName = TEST_HAP_BUNDLE_NAME,
140 .packageName = TEST_HAP_BUNDLE_NAME,
148 .packageName
[all...]
/base/sensors/medical_sensor/utils/src/
H A Dmedical_channel_info.cpp38 void MedicalSensorChannelInfo::SetPackageName(const std::string &packageName) in SetPackageName() argument
40 packageName_ = packageName; in SetPackageName()
/base/sensors/sensor/utils/common/src/
H A Dsensor_channel_info.cpp38 void SensorChannelInfo::SetPackageName(const std::string &packageName) in SetPackageName() argument
40 packageName_ = packageName; in SetPackageName()

Completed in 10 milliseconds

123456