Home
last modified time | relevance | path

Searched refs:GetCapacity (Results 1 – 25 of 37) sorted by relevance

12

/base/security/appverify/interfaces/innerkits/appverify/src/util/
Dhap_profile_verify_utils.cpp33 profile = std::string(pkcs7ProfileBlock.GetBufferPtr(), pkcs7ProfileBlock.GetCapacity()); in ParseProfile()
38 unsigned int pkcs7Len = static_cast<unsigned int>(pkcs7ProfileBlock.GetCapacity()); in ParseProfile()
44 …std::string(profilePkcs7Context.content.GetBufferPtr(), profilePkcs7Context.content.GetCapacity()); in ParseProfile()
Dhap_signing_block_utils.cpp114 long long searchRangeOffset = fileLength - searchEocdBuffer.GetCapacity(); in FindEocdInHap()
151 int searchBufferSize = searchBuffer.GetCapacity(); in FindEocdInSearchBuffer()
228 …ret = hapFile.ReadFileFullyFromOffset(hapBlockHead, centralDirOffset - hapBlockHead.GetCapacity()); in FindHapSigningBlock()
376 if (signInfo.hapSignatureBlock.GetCapacity() != 0) { in ClassifyHapSubSigningBlock()
/base/powermgr/battery_manager/services/native/src/
Dbattery_notify.cpp105 want.SetParam(BatteryInfo::COMMON_EVENT_KEY_CAPACITY, info.GetCapacity()); in PublishChangedEvent()
137 "LEVEL", info.GetCapacity(), "CHARGER", static_cast<int32_t>(info.GetPluggedType()), in PublishChangedEvent()
149 want.SetParam(ToString(BatteryInfo::COMMON_EVENT_CODE_CAPACITY), info.GetCapacity()); in ChangedEventDeprecated()
173 if (info.GetCapacity() > lowCapacity_) { in PublishLowEvent()
182 data.SetCode(info.GetCapacity()); in PublishLowEvent()
183 BATTERY_HILOGD(FEATURE_BATT_INFO, "publisher capacity=%{public}d", info.GetCapacity()); in PublishLowEvent()
202 if (info.GetCapacity() <= lowCapacity_) { in PublishOkayEvent()
211 data.SetCode(info.GetCapacity()); in PublishOkayEvent()
212 BATTERY_HILOGD(FEATURE_BATT_INFO, "publisher capacity=%{public}d", info.GetCapacity()); in PublishOkayEvent()
Dbattery_service.cpp209 …"remainEnergy=%{public}d", batteryInfo_.GetCapacity(), batteryInfo_.GetVoltage(), batteryInfo_.Get… in HandleBatteryInfo()
215 batteryLight_.UpdateColor(batteryInfo_.GetChargeState(), batteryInfo_.GetCapacity()); in HandleBatteryInfo()
217 HandlePopupEvent(batteryInfo_.GetCapacity()); in HandleBatteryInfo()
218 CalculateRemainingChargeTime(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState()); in HandleBatteryInfo()
222 HandleCapacity(batteryInfo_.GetCapacity(), batteryInfo_.GetChargeState()); in HandleBatteryInfo()
399 int32_t BatteryService::GetCapacity() in GetCapacity() function in OHOS::PowerMgr::BatteryService
407 iBatteryInterface_->GetCapacity(capacity); in GetCapacity()
618 int32_t capacity = GetCapacity(); in GetCapacityLevel()
Dbattery_dump.cpp72 int32_t capacity = service->GetCapacity(); in GetBatteryInfo()
/base/powermgr/battery_manager/frameworks/native/test/unittest/src/
Dbattery_client_test.cpp72 auto tempCapacity = BatterySrvClient.GetCapacity();
74 auto capacity = BatterySrvClient.GetCapacity();
80 auto capacity = BatterySrvClient.GetCapacity();
389 auto tempCapacity = BatterySrvClient.GetCapacity();
401 auto capacity = BatterySrvClient.GetCapacity();
423 auto tempCapacity = BatterySrvClient.GetCapacity();
435 auto capacity = BatterySrvClient.GetCapacity();
457 auto tempCapacity = BatterySrvClient.GetCapacity();
469 auto capacity = BatterySrvClient.GetCapacity();
491 auto tempCapacity = BatterySrvClient.GetCapacity();
[all …]
/base/security/appverify/interfaces/innerkits/appverify/src/common/
Dhap_byte_buffer.cpp38 Init(other.GetCapacity()); in HapByteBuffer()
40 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in HapByteBuffer()
74 Init(other.GetCapacity()); in operator =()
76 if (memcpy_s(buffer.get(), capacity, other.GetBufferPtr(), other.GetCapacity()) != EOK) { in operator =()
130 int HapByteBuffer::GetCapacity() const in GetCapacity() function in OHOS::Security::Verify::HapByteBuffer
305 if (capacity != other.GetCapacity() || other.GetBufferPtr() == nullptr || buffer == nullptr) { in IsEqual()
Drandom_access_file.cpp120 int bufCapacity = buffer.GetCapacity(); in ReadFileFullyFromOffset()
/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_verify_test.cpp151 hapFile.write(hapInnerApp.GetBufferPtr(), hapInnerApp.GetCapacity());
179 hapFile.write(hapFileEccSign.GetBufferPtr(), hapFileEccSign.GetCapacity());
205 errorFile.write(errorCommentFile.GetBufferPtr(), errorCommentFile.GetCapacity());
217 errorFile.write(errorCommentFile.GetBufferPtr(), errorCommentFile.GetCapacity());
228 errorFile.write(errorCommentFile.GetBufferPtr(), errorCommentFile.GetCapacity());
249 hapFile.write(hapFileEccSign.GetBufferPtr(), hapFileEccSign.GetCapacity());
Dhap_byte_buffer_test.cpp68 bool judge = (buffer2.GetCapacity() == buffer1.GetCapacity()) &&
161 ASSERT_TRUE(buffer1.GetCapacity() == TEST_HAPBYTEBUFFER_LENGTH);
Dhap_crl_manager_test.cpp120 …rlX509 = HapCertVerifyOpensslUtils::GetX509CrlFromDerBuffer(crlBuffer, 0, crlBuffer.GetCapacity());
Dhap_cert_verify_openssl_utils_test.cpp186 …rlX509 = HapCertVerifyOpensslUtils::GetX509CrlFromDerBuffer(crlBuffer, 0, crlBuffer.GetCapacity());
357 …rlX509 = HapCertVerifyOpensslUtils::GetX509CrlFromDerBuffer(crlBuffer, 0, crlBuffer.GetCapacity());
/base/powermgr/battery_manager/interfaces/innerkits/native/include/
Dibattery_srv.h45 virtual int32_t GetCapacity() = 0;
Dbattery_srv_client.h36 int32_t GetCapacity();
Dbattery_info.h275 const int32_t& GetCapacity() const in GetCapacity() function
353 (capacity_ == info.GetCapacity()) &&
/base/powermgr/battery_manager/services/zidl/include/
Dbattery_srv_proxy.h39 virtual int32_t GetCapacity() override;
/base/powermgr/battery_manager/frameworks/native/src/
Dbattery_srv_client.cpp87 int32_t BatterySrvClient::GetCapacity() in GetCapacity() function in OHOS::PowerMgr::BatterySrvClient
91 capacity = proxy_->GetCapacity(); in GetCapacity()
/base/security/appverify/interfaces/innerkits/appverify/include/common/
Dhap_byte_buffer.h51 DLL_EXPORT int GetCapacity() const;
/base/security/appverify/interfaces/innerkits/appverify/src/interfaces/
Dhap_verify_result.cpp88 block += std::string(option.GetBufferPtr(), option.GetCapacity()); in GetBlockFromOptionalBlocks()
/base/powermgr/battery_manager/test/fuzztest/battery_fuzzer/
Dbattery_fuzzer_test.cpp40 g_batterySrvClient.GetCapacity(); in TestGetCapacity()
/base/security/appverify/interfaces/innerkits/appverify/src/ticket/
Dticket_verify.cpp168 unsigned int pkcs7Len = static_cast<unsigned int>(ticketBlock.GetCapacity()); in VerifyTicketSignature()
173 ticket = std::string(pkcs7Context.content.GetBufferPtr(), pkcs7Context.content.GetCapacity()); in VerifyTicketSignature()
/base/security/appverify/interfaces/innerkits/appverify/src/verify/
Dhap_verify_v2.cpp130 unsigned int pkcs7Len = static_cast<unsigned int>(hapSignatureBlock.GetCapacity()); in VerifyAppPkcs7()
405 unsigned int pkcs7Len = static_cast<unsigned int>(pkcs7ProfileBlock.GetCapacity()); in ParseHapProfile()
411 …profile = std::string(profileContext.content.GetBufferPtr(), profileContext.content.GetCapacity()); in ParseHapProfile()
/base/web/webview/ohos_adapter/battery_mgr_adapter/src/
Dbattery_mgr_client_adapter_impl.cpp109 auto capacity = battClient.GetCapacity(); in RequestBatteryInfo()
/base/powermgr/battery_manager/services/native/test/unittest/src/
Dbattery_srv_proxy_mock_test.cpp62 int32_t capacity = g_proxy->GetCapacity();
/base/powermgr/battery_manager/services/native/include/
Dbattery_service.h64 int32_t GetCapacity() override;

12