/base/customization/enterprise_device_management/interfaces/inner_api/system_manager/src/ |
H A D | update_policy_utils.cpp | 75 for (auto package : packageInfo.packages) { in WriteUpgradePackageInfo() 76 data.WriteInt32(static_cast<int32_t>(package.type)); in WriteUpgradePackageInfo() 77 data.WriteString(package.path); in WriteUpgradePackageInfo() 78 data.WriteFileDescriptor(package.fd); in WriteUpgradePackageInfo() 92 Package package; in ReadUpgradePackageInfo() local 93 ProcessPackageType(data.ReadInt32(), package.type); in ReadUpgradePackageInfo() 94 data.ReadString(package.path); in ReadUpgradePackageInfo() 95 package.fd = data.ReadFileDescriptor(); in ReadUpgradePackageInfo() 96 packageInfo.packages.push_back(package); in ReadUpgradePackageInfo() 120 for (auto &package in ClosePackagesFileHandle() [all...] |
/base/hiviewdfx/hiappevent/frameworks/cj/ffi/src/ |
H A D | appevent_packageholder_impl.cpp | 79 RetAppEventPackage package; in TakeNext() local 82 return {ret, package}; in TakeNext() 86 return {ret, package}; in TakeNext() 103 return {ret, package}; in TakeNext() 107 return {ret, package}; in TakeNext() 109 package.packageId = packageId_++; in TakeNext() 110 package.row = static_cast<int>(eventStrs.size()); in TakeNext() 111 package.size = static_cast<int>(totalSize); in TakeNext() 112 package.events = ConvertArrString(eventStrs); in TakeNext() 114 return {ret, package}; in TakeNext() [all...] |
/base/sensors/miscdevice/test/fuzztest/vibrator/freevibratorpackage_fuzzer/ |
H A D | freevibratorpackage_fuzzer.cpp | 75 VibratorPackage package { 0 };
in FreeVibratorPackageFuzzTest() 77 startPos += GetObject<int32_t>(data + startPos, size - startPos, package.patternNum);
in FreeVibratorPackageFuzzTest() 78 GetObject<int32_t>(data + startPos, size - startPos, package.packageDuration);
in FreeVibratorPackageFuzzTest() 79 OHOS::Sensors::FreeVibratorPackage(package);
in FreeVibratorPackageFuzzTest()
|
/base/hiviewdfx/hiappevent/frameworks/js/napi/src/ |
H A D | napi_app_event_holder.cpp | 157 auto package = holder->TakeNext();
in NapiTakeNext() local 158 if (package == nullptr) {
in NapiTakeNext() 162 NapiUtil::SetNamedProperty(env, packageObj, "packageId", NapiUtil::CreateInt32(env, package->packageId));
in NapiTakeNext() 163 NapiUtil::SetNamedProperty(env, packageObj, "row", NapiUtil::CreateInt32(env, package->row));
in NapiTakeNext() 164 NapiUtil::SetNamedProperty(env, packageObj, "size", NapiUtil::CreateInt32(env, package->size));
in NapiTakeNext() 165 NapiUtil::SetNamedProperty(env, packageObj, "data", NapiUtil::CreateStrings(env, package->data));
in NapiTakeNext() 166 NapiUtil::SetNamedProperty(env, packageObj, "appEventInfos", NapiUtil::CreateEventInfoArray(env, package->events));
in NapiTakeNext() 201 auto package = std::make_shared<AppEventPackage>();
in TakeNext() local 212 package->events.emplace_back(event);
in TakeNext() 223 package in TakeNext() [all...] |
/base/sensors/miscdevice/test/fuzztest/vibrator/preprocess_fuzzer/ |
H A D | preprocess_fuzzer.cpp | 82 VibratorPackage package { 0 }; in PreProcessFuzzTest() 83 startPos += GetObject<int32_t>(data + startPos, size - startPos, package.patternNum); in PreProcessFuzzTest() 84 GetObject<int32_t>(data + startPos, size - startPos, package.packageDuration); in PreProcessFuzzTest() 85 OHOS::Sensors::PreProcess(fileDescription, package); in PreProcessFuzzTest()
|
/base/sensors/miscdevice/test/unittest/vibrator/native/ |
H A D | vibrator_agent_test.cpp | 964 VibratorPackage package; in HWTEST_F() local 970 int32_t ret = PreProcess(vfd, package); in HWTEST_F() 972 ret = FreeVibratorPackage(package); in HWTEST_F() 989 VibratorPackage package; in HWTEST_F() local 995 int32_t ret = PreProcess(vfd, package); in HWTEST_F() 997 ret = FreeVibratorPackage(package); in HWTEST_F() 1014 VibratorPackage package; in HWTEST_F() local 1020 int32_t ret = PreProcess(vfd, package); in HWTEST_F() 1022 ret = FreeVibratorPackage(package); in HWTEST_F() 1039 VibratorPackage package; in HWTEST_F() local 1064 VibratorPackage package; HWTEST_F() local 1089 VibratorPackage package; HWTEST_F() local 1114 VibratorPackage package; HWTEST_F() local 1139 VibratorPackage package; HWTEST_F() local 1164 VibratorPackage package; HWTEST_F() local 1193 VibratorPackage package; HWTEST_F() local [all...] |
/base/update/sys_installer/services/module_update/util/src/ |
H A D | module_file.cpp | 30 #include "package/package.h" 98 LOG(ERROR) << "Failed to open package " << path << ": I/O error"; in ParseImageStat() 114 bool ParseHmpVersionInfo(const JsonNode &package, ModulePackageInfo &versionInfo) in ParseHmpVersionInfo() argument 116 std::optional<string> name = package["name"].As<string>(); in ParseHmpVersionInfo() 121 std::optional<string> version = package["version"].As<string>(); in ParseHmpVersionInfo() 126 std::optional<string> hotApply = package["hotApply"].As<string>(); in ParseHmpVersionInfo() 136 std::optional<string> apiVersion = package[HMP_API_VERSION].As<string>(); in ParseHmpVersionInfo() 145 std::optional<string> saSdkVersion = package[HMP_SA_SDK_VERSION].As<string>(); in ParseHmpVersionInfo() 171 bool ParseSaList(const JsonNode &package, ModulePackageInf argument 196 ParseBundleList(const JsonNode &package, ModulePackageInfo &versionInfo) ParseBundleList() argument 229 const JsonNode &package = root["package"]; ParseModuleInfo() local [all...] |
H A D | module_update_verify.cpp | 81 const JsonNode &package = root["package"]; in GetPackInfoVer() local 82 std::optional<std::string> tmpVersion = package[key].As<std::string>(); in GetPackInfoVer()
|
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/include/ |
H A D | custom_vibration_matcher.h | 34 int32_t TransformTime(const VibratePackage &package, std::vector<CompositeEffect> &compositeEffects);
35 int32_t TransformEffect(const VibratePackage &package, std::vector<CompositeEffect> &compositeEffects);
42 VibratePattern MixedWaveProcess(const VibratePackage &package);
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/include/ |
H A D | app_usage_event_factory.h | 26 AppUsageInfo(const std::string& package, const std::string& version, uint64_t usage,
in AppUsageInfo() 28 : package_(package), version_(version), usage_(usage), date_(date), startNum_(startNum)
in AppUsageInfo()
|
/base/sensors/miscdevice/interfaces/inner_api/vibrator/ |
H A D | vibrator_agent.h | 169 * @param fileDescription: The resulting vibration sequence package, such as {@link VibrationPackage}.
170 * @param package: the resulting vibration sequence package, such as {@link VibrationPackage}.
174 int32_t PreProcess(const VibratorFileDescription &fd, VibratorPackage &package);
177 * @brief Free up the vibration sequence package memory.
178 * @param package: Vibration sequence packages, such as {@link VibrationPackage}.
182 int32_t FreeVibratorPackage(VibratorPackage &package);
|
/base/update/updateservice/services/firmware/utils/src/ |
H A D | firmware_check_analyze_utils.cpp | 81 UpdatePackage package; in AnalyzeBlVersionCheckResults() local 82 package.versionId = "1"; in AnalyzeBlVersionCheckResults() 85 package.versionPackageType = static_cast<PackageType>(versionPackageType); in AnalyzeBlVersionCheckResults() 86 package.packageIndex = 0; in AnalyzeBlVersionCheckResults() 87 checkResult.updatePackages.push_back(package); in AnalyzeBlVersionCheckResults() 89 component.versionPackageType = package.versionPackageType; in AnalyzeBlVersionCheckResults()
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
H A D | miscdevice_service.cpp | 339 MISC_HILOGI("Start vibrator, currentTime:%{public}s, package:%{public}s, pid:%{public}d, usage:%{public}d," in Vibrate() 367 MISC_HILOGI("Stop vibrator, currentTime:%{public}s, package:%{public}s, pid:%{public}d, vibratorId:%{public}d", in StopVibrator() 411 MISC_HILOGI("Start vibrator, currentTime:%{public}s, package:%{public}s, pid:%{public}d, usage:%{public}d," in PlayVibratorEffect() 459 MISC_HILOGI("Stop vibrator, currentTime:%{public}s, package:%{public}s, pid:%{public}d, vibratorId:%{public}d," in StopVibrator() 475 MISC_HILOGI("IsSupportEffect, currentTime:%{public}s, package:%{public}s, pid:%{public}d, effect:%{public}s," in IsSupportEffect() 515 VibratePackage package; in PlayVibratorCustom() local 516 int32_t ret = decoder->DecodeEffect(rawFd, parser, package); in PlayVibratorCustom() 517 if (ret != SUCCESS || package.patterns.empty()) { in PlayVibratorCustom() 521 MergeVibratorParmeters(parameter, package); in PlayVibratorCustom() 522 package in PlayVibratorCustom() 675 VibratePackage package = { PlayPattern() local 734 MergeVibratorParmeters(const VibrateParameter ¶meter, VibratePackage &package) MergeVibratorParmeters() argument [all...] |
H A D | vibrator_thread.cpp | 43 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() 114 const std::vector<VibratePattern> &patterns = info.package.patterns;
in PlayCustomByHdHptic() 128 MISC_HILOGD("Stop hd haptic, package:%{public}s", info.packageName.c_str());
in PlayCustomByHdHptic() 147 int32_t ret = matcher.TransformEffect(info.package, hdfCompositeEffect.compositeEffects);
in PlayCustomByCompositeEffect() 154 int32_t ret = matcher.TransformTime(info.package, hdfCompositeEffec in PlayCustomByCompositeEffect() [all...] |
/base/sensors/miscdevice/frameworks/native/vibrator/ |
H A D | vibrator_agent.cpp | 196 int32_t PreProcess(const VibratorFileDescription &fd, VibratorPackage &package) in PreProcess() argument 199 int32_t ret = client.PreProcess(fd, package); in PreProcess() 233 int32_t FreeVibratorPackage(VibratorPackage &package) in FreeVibratorPackage() argument 236 int32_t ret = client.FreeVibratorPackage(package); in FreeVibratorPackage()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
H A D | app_usage_event_factory.cpp | 106 HIVIEW_LOGE("failed to get package stats, errCode=%{public}d", errCode);
in GetAppUsageInfosByUserId() 114 std::string package = stat.bundleName_;
in GetAppUsageInfosByUserId() local 115 auto it = std::find_if(appUsageInfos.begin(), appUsageInfos.end(), [package](auto info) {
in GetAppUsageInfosByUserId() 116 return info.package_ == package;
in GetAppUsageInfosByUserId()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/include/ |
H A D | fold_app_usage_db_helper.h | 26 std::string package;
member 39 std::string package;
member
|
/base/sensors/miscdevice/frameworks/native/vibrator/include/ |
H A D | vibrator_service_client.h | 68 int32_t PreProcess(const VibratorFileDescription &fd, VibratorPackage &package); 74 int32_t FreeVibratorPackage(VibratorPackage &package);
|
/base/hiviewdfx/hiview/plugins/usage_event_report/cache/ |
H A D | fold_app_usage_event_factory.cpp | 62 event->Update(KEY_OF_PACKAGE, info.package);
in Create() 89 usageInfo.package = app;
in GetAppUsageInfo() 91 forgroundInfos[usageInfo.package + usageInfo.version] = usageInfo;
in GetAppUsageInfo()
|
H A D | fold_app_usage_db_helper.cpp | 362 if (GetStringFromResultSet(resultSet, FoldEventTable::FIELD_BUNDLE_NAME, usageInfo.package) &&
in QueryStatisticEventsInPeriod() 369 infos[usageInfo.package + usageInfo.version] = usageInfo;
in QueryStatisticEventsInPeriod() 385 predicates.EqualTo(FoldEventTable::FIELD_BUNDLE_NAME, info.package);
in QueryForegroundAppsInfo() 401 !GetStringFromResultSet(resultSet, FoldEventTable::FIELD_BUNDLE_NAME, event.package) ||
in QueryForegroundAppsInfo() 419 info = CaculateForegroundAppUsage(events, startTime, endTime, info.package, screenStatus);
in QueryForegroundAppsInfo() 441 info.package = appName;
in CaculateForegroundAppUsage()
|
/base/hiviewdfx/hiview/plugins/usage_event_report/test/unittest/ |
H A D | fold_app_usage_test.cpp | 95 EXPECT_EQ(all1104Infos["app155"].package, "app1");
in HWTEST_F() 101 EXPECT_EQ(all1104Infos["app255"].package, "app2");
in HWTEST_F() 137 app3Info.package = "app3";
in HWTEST_F() 145 app4Info.package = "app4";
in HWTEST_F()
|
/base/sensors/miscdevice/services/miscdevice_service/haptic_matcher/src/ |
H A D | custom_vibration_matcher.cpp | 113 int32_t CustomVibrationMatcher::TransformTime(const VibratePackage &package,
in TransformTime() argument 117 VibratePattern flatPattern = MixedWaveProcess(package);
in TransformTime() 145 int32_t CustomVibrationMatcher::TransformEffect(const VibratePackage &package,
in TransformEffect() argument 149 VibratePattern flatPattern = MixedWaveProcess(package);
in TransformEffect() 185 VibratePattern CustomVibrationMatcher::MixedWaveProcess(const VibratePackage &package)
in MixedWaveProcess() argument 189 for (const VibratePattern &pattern : package.patterns) {
in MixedWaveProcess()
|
/base/sensors/miscdevice/frameworks/native/vibrator/src/ |
H A D | vibrator_service_client.cpp | 342 int32_t VibratorServiceClient::PreProcess(const VibratorFileDescription &fd, VibratorPackage &package) in PreProcess() argument 365 return ConvertVibratePackage(pkg, package); in PreProcess() 505 int32_t VibratorServiceClient::FreeVibratorPackage(VibratorPackage &package) in FreeVibratorPackage() argument 507 int32_t patternSize = package.patternNum; in FreeVibratorPackage() 508 if ((patternSize <= 0) || (package.patterns == nullptr)) { in FreeVibratorPackage() 512 auto patterns = package.patterns; in FreeVibratorPackage()
|
/base/customization/enterprise_device_management/interfaces/kits/system_manager/include/ |
H A D | system_manager_addon.h | 62 static bool ParsePackage(napi_env env, napi_value object, Package &package);
|
/base/customization/enterprise_device_management/interfaces/kits/system_manager/src/ |
H A D | system_manager_addon.cpp | 443 Package package; in ParsePackages() local 444 if (!ParsePackage(env, nPackage, package)) { in ParsePackages() 447 packages.push_back(package); in ParsePackages() 452 bool SystemManagerAddon::ParsePackage(napi_env env, napi_value object, Package &package) in ParsePackage() argument 461 package.type = static_cast<PackageType>(type); in ParsePackage() 462 return JsObjectToString(env, object, "path", true, package.path) && in ParsePackage() 463 JsObjectToInt(env, object, "fd", false, package.fd); in ParsePackage()
|