/base/global/i18n/frameworks/intl/src/ |
D | measure_data.cpp | 322 void GetFallbackPreferredUnit(const string ®ion, const string &usage, vector<string> &units) in GetFallbackPreferredUnit() argument 326 if (USAGE_MX.count(usage) > 0) { in GetFallbackPreferredUnit() 327 units.assign(USAGE_MX.at(usage).begin(), USAGE_MX.at(usage).end()); in GetFallbackPreferredUnit() 333 if (USAGE_NL.count(usage) > 0) { in GetFallbackPreferredUnit() 334 units.assign(USAGE_NL.at(usage).begin(), USAGE_NL.at(usage).end()); in GetFallbackPreferredUnit() 342 if (USAGE_NO.count(usage) > 0) { in GetFallbackPreferredUnit() 343 units.assign(USAGE_NO.at(usage).begin(), USAGE_NO.at(usage).end()); in GetFallbackPreferredUnit() 349 if (USAGE_SE.count(usage) > 0) { in GetFallbackPreferredUnit() 350 units.assign(USAGE_SE.at(usage).begin(), USAGE_SE.at(usage).end()); in GetFallbackPreferredUnit() 356 if (USAGE_US.count(usage) > 0) { in GetFallbackPreferredUnit() [all …]
|
/base/sensors/miscdevice/interfaces/native/vibrator/test/fuzztest/setusage_fuzzer/ |
D | setusage_fuzzer.cpp | 29 int32_t usage = static_cast<int32_t>(std::atoi(argv.c_str())); in SetUsageFuzzTest() local 30 bool ret = OHOS::Sensors::SetUsage(usage); in SetUsageFuzzTest() 31 if ((((usage < 0) || (usage >= USAGE_MAX)) && ret == true) || in SetUsageFuzzTest() 32 (((usage > 0) && (usage < USAGE_MAX)) && ret != false)) { in SetUsageFuzzTest()
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/src/ |
D | dlp_file_manager.cpp | 113 …PermissionPolicy& policy, struct DlpBlob& key, struct DlpUsageSpec& usage, struct DlpBlob& certDat… in PrepareDlpEncryptParms() argument 140 usage.mode = DLP_MODE_CTR; in PrepareDlpEncryptParms() 141 usage.algParam = tagIv; in PrepareDlpEncryptParms() 198 struct DlpUsageSpec usage = { in ParseDlpFileFormat() local 202 result = filePtr->SetCipher(key, usage); in ParseDlpFileFormat() 220 …er::FreeChiperBlob(struct DlpBlob& key, struct DlpBlob& certData, struct DlpUsageSpec& usage) const in FreeChiperBlob() 231 if (usage.algParam != nullptr) { in FreeChiperBlob() 232 if (usage.algParam->iv.data != nullptr) { in FreeChiperBlob() 233 delete[] usage.algParam->iv.data; in FreeChiperBlob() 234 usage.algParam->iv.data = nullptr; in FreeChiperBlob() [all …]
|
/base/sensors/miscdevice/services/miscdevice_service/src/ |
D | vibration_priority_manager.cpp | 65 if (currentVibrateInfo.usage == USAGE_ALARM) { in ShouldIgnoreVibrate() 73 if ((currentVibrateInfo.usage != vibrateInfo.usage) && (vibrateInfo.usage == USAGE_UNKNOWN)) { in ShouldIgnoreVibrate()
|
D | miscdevice_service.cpp | 203 int32_t MiscdeviceService::Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) in Vibrate() argument 206 || (usage >= USAGE_MAX) || (usage < 0)) { in Vibrate() 215 .usage = usage, in Vibrate() 254 int32_t count, int32_t usage) in PlayVibratorEffect() argument 256 if ((count < 1) || (usage >= USAGE_MAX) || (usage < 0)) { in PlayVibratorEffect() 274 .usage = usage, in PlayVibratorEffect() 368 …eviceService::PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) in PlayVibratorCustom() argument 374 if ((usage >= USAGE_MAX) || (usage < 0)) { in PlayVibratorCustom() 375 MISC_HILOGE("Invalid parameter, usage:%{public}d", usage); in PlayVibratorCustom() 388 .usage = usage, in PlayVibratorCustom()
|
D | miscdevice_service_stub.cpp | 79 int32_t usage; in VibrateStub() local 80 if ((!data.ReadInt32(vibratorId)) || (!data.ReadInt32(duration)) || (!data.ReadInt32(usage))) { in VibrateStub() 84 return Vibrate(vibratorId, duration, usage); in VibrateStub() 118 int32_t usage; in PlayVibratorEffectStub() local 120 (!data.ReadInt32(count)) || (!data.ReadInt32(usage))) { in PlayVibratorEffectStub() 124 return PlayVibratorEffect(vibratorId, effect, count, usage); in PlayVibratorEffectStub() 181 int32_t usage; in PlayVibratorCustomStub() local 182 if (!data.ReadInt32(usage)) { in PlayVibratorCustomStub() 200 ret = PlayVibratorCustom(vibratorId, rawFd, usage); in PlayVibratorCustomStub()
|
D | miscdevice_dump.cpp | 148 info.duration, GetUsageName(info.usage).c_str()); in DumpMiscdeviceRecord() 152 info.effect.c_str(), info.count, GetUsageName(info.usage).c_str()); in DumpMiscdeviceRecord() 156 GetUsageName(info.usage).c_str()); in DumpMiscdeviceRecord() 191 std::string MiscdeviceDump::GetUsageName(int32_t usage) in GetUsageName() argument 193 auto it = usageMap_.find(usage); in GetUsageName() 195 MISC_HILOGE("Usage:%{public}d is invalid", usage); in GetUsageName()
|
/base/hiviewdfx/hidumper/frameworks/native/src/executor/memory/ |
D | memory_util.cpp | 157 void MemoryUtil::InitMemUsage(MemInfoData::MemUsage &usage) in InitMemUsage() argument 159 usage.vss = 0; in InitMemUsage() 160 usage.rss = 0; in InitMemUsage() 161 usage.uss = 0; in InitMemUsage() 162 usage.pss = 0; in InitMemUsage() 163 usage.gl = 0; in InitMemUsage() 164 usage.graph = 0; in InitMemUsage() 165 usage.pid = 0; in InitMemUsage()
|
D | memory_info.cpp | 589 bool MemoryInfo::GetMemByProcessPid(const int &pid, MemInfoData::MemUsage &usage) in GetMemByProcessPid() argument 595 usage.vss = GetVss(pid); in GetMemByProcessPid() 596 usage.uss = memInfo.privateClean + memInfo.privateDirty; in GetMemByProcessPid() 597 usage.rss = memInfo.rss; in GetMemByProcessPid() 598 usage.pss = memInfo.pss; in GetMemByProcessPid() 599 usage.swapPss = memInfo.swapPss; in GetMemByProcessPid() 600 usage.name = GetProcName(pid); in GetMemByProcessPid() 601 usage.pid = pid; in GetMemByProcessPid() 603 usage.adjLabel = GetProcessAdjLabel(pid); in GetMemByProcessPid() 611 usage.gl = graphicsMemory.gl; in GetMemByProcessPid() [all …]
|
/base/global/i18n/frameworks/intl/test/unittest/ |
D | i18n_test.cpp | 338 std::string usage = "length"; variable 341 GetDefaultPreferredUnit(regionTags[i], usage, units); 355 std::string usage = "length-person-informal"; variable 358 GetFallbackPreferredUnit(regionTags1[i], usage, units); 364 usage = "length-person"; 365 GetFallbackPreferredUnit(regionTag2, usage, units); 371 GetFallbackPreferredUnit(regionTags3[i], usage, units); 385 std::string usage = "length-person"; variable 388 GetRestPreferredUnit(regionTags1[i], usage, units); 394 usage = "length-person-informal"; [all …]
|
/base/sensors/miscdevice/frameworks/native/miscdevice/include/ |
D | vibrator_service_client.h | 31 int32_t Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage); 32 … int32_t Vibrate(int32_t vibratorId, const std::string &effect, int32_t loopCount, int32_t usage); 34 int32_t PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage);
|
D | i_miscdevice_service.h | 36 virtual int32_t Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) = 0; 38 int32_t loopCount, int32_t usage) = 0; 40 … int32_t PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) = 0;
|
D | miscdevice_service_proxy.h | 30 virtual int32_t Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) override; 32 int32_t loopCount, int32_t usage) override; 34 …2_t PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) override;
|
/base/sensors/miscdevice/interfaces/native/vibrator/src/ |
D | vibrator_agent.cpp | 154 bool SetUsage(int32_t usage) in SetUsage() argument 156 if ((usage < 0) || (usage >= USAGE_MAX)) { in SetUsage() 157 MISC_HILOGE("Input invalid, usage is %{public}d", usage); in SetUsage() 160 g_usage = usage; in SetUsage()
|
/base/global/i18n/frameworks/intl/include/ |
D | measure_data.h | 27 void GetFallbackPreferredUnit(const std::string ®ion, const std::string &usage, std::vector<std:… 28 void GetRestPreferredUnit(const std::string ®ion, const std::string &usage, std::vector<std::str… 29 void GetPreferredUnit(const std::string ®ion, const std::string &usage, std::vector<std::string>…
|
/base/sensors/miscdevice/frameworks/native/miscdevice/src/ |
D | vibrator_service_client.cpp | 84 int32_t VibratorServiceClient::Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) in Vibrate() argument 94 ret = miscdeviceProxy_->Vibrate(vibratorId, timeOut, usage); in Vibrate() 103 int32_t loopCount, int32_t usage) in Vibrate() argument 113 ret = miscdeviceProxy_->PlayVibratorEffect(vibratorId, effect, loopCount, usage); in Vibrate() 122 …erviceClient::PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) in PlayVibratorCustom() argument 133 ret = miscdeviceProxy_->PlayVibratorCustom(vibratorId, rawFd, usage); in PlayVibratorCustom()
|
D | miscdevice_service_proxy.cpp | 35 int32_t MiscdeviceServiceProxy::Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) in Vibrate() argument 50 if (!data.WriteInt32(usage)) { in Vibrate() 94 int32_t loopCount, int32_t usage) in PlayVibratorEffect() argument 113 if (!data.WriteInt32(usage)) { in PlayVibratorEffect() 191 …ServiceProxy::PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) in PlayVibratorCustom() argument 202 if (!data.WriteInt32(usage)) { in PlayVibratorCustom()
|
/base/sensors/miscdevice/interfaces/plugin/vibrator/test/unittest/ |
D | ExampleJsunit.test.js | 1128 usage: "unknown" property 1155 usage: "unknown" property 1187 usage: "unknown" property 1220 usage: "unknown" property 1253 usage: "" property 1301 usage: "unknown" property 1322 usage: "unknown" property 1350 usage: "unknown" property 1377 usage: "unknown" property 1407 usage: "" property [all …]
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/include/ |
D | app_usage_event_factory.h | 26 …AppUsageInfo(const std::string& package, const std::string& version, int64_t usage, const std::str… in AppUsageInfo() 27 : package_(package), version_(version), usage_(usage), date_(date) in AppUsageInfo()
|
/base/hiviewdfx/hidumper_lite/ |
D | README.md | 36 | AT+HIDUMPER= | Displays the CPU, memory, and all task usage information | 37 | AT+HIDUMPER=-dc | Displays CPU usage information | 38 | AT+HIDUMPER=-dm | Displays memory usage information | 84 Rewrites the function for printing CPU usage information. This function prints the CPU usage of the… 92 Rewrites the function for printing memory usage information. This function prints the memory usage …
|
/base/sensors/miscdevice/services/miscdevice_service/include/ |
D | miscdevice_service.h | 62 virtual int32_t Vibrate(int32_t vibratorId, int32_t timeOut, int32_t usage) override; 64 int32_t loopCount, int32_t usage) override; 66 …2_t PlayVibratorCustom(int32_t vibratorId, const RawFileDescriptor &rawFd, int32_t usage) override;
|
/base/web/webview/ohos_nweb/include/ |
D | nweb_web_storage.h | 53 void SetUsage(long usage) { usage_ = usage; } in SetUsage() argument
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/test/ |
D | dlp_crypt_test.cpp | 81 static void CheckParams(DlpUsageSpec* usage, DlpBlob* key, DlpBlob* mIn, DlpBlob* mEnc) in CheckParams() argument 84 usage->mode = THOUSAND; in CheckParams() 85 ASSERT_EQ(DLP_PARSE_ERROR_OPERATION_UNSUPPORTED, DlpOpensslAesEncrypt(key, usage, mIn, mEnc)); in CheckParams() 86 usage->mode = DLP_MODE_CTR; in CheckParams() 89 ASSERT_EQ(DLP_OK, DlpOpensslAesEncrypt(key, usage, mIn, mEnc)); in CheckParams() 92 ASSERT_EQ(DLP_OK, DlpOpensslAesEncrypt(key, usage, mIn, mEnc)); in CheckParams() 95 ASSERT_EQ(DLP_PARSE_ERROR_VALUE_INVALID, DlpOpensslAesEncrypt(key, usage, mIn, mEnc)); in CheckParams() 1066 struct DlpUsageSpec usage = { variable 1089 DlpOpensslAesEncrypt(&key, &usage, &mIn, &mEnc); 1090 DlpOpensslAesDecrypt(&key, &usage, &mEnc, &mDec); [all …]
|
/base/security/dlp_permission_service/interfaces/inner_api/dlp_parse/include/ |
D | dlp_file_manager.h | 51 …PermissionPolicy& policy, struct DlpBlob& key, struct DlpUsageSpec& usage, struct DlpBlob& certDat… 53 …void FreeChiperBlob(struct DlpBlob& key, struct DlpBlob& certData, struct DlpUsageSpec& usage) con…
|
/base/hiviewdfx/hiview/plugins/usage_event_report/service/factory/ |
D | app_usage_event_factory.cpp | 117 … uint64_t usage = stat.totalInFrontTime_ > 0 ? static_cast<uint64_t>(stat.totalInFrontTime_) : 0; in GetAppUsageInfosByUserId() local 119 it->usage_ += usage; in GetAppUsageInfosByUserId() 122 appUsageInfos.push_back(AppUsageInfo(stat.bundleName_, version, usage, dateStr)); in GetAppUsageInfosByUserId()
|