/base/telephony/core_service/utils/preferences/src/ |
D | tel_profile_util.cpp | 36 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString() local 37 if (ptr == nullptr) { in SaveString() 40 int ret = ptr->PutString(key, value); in SaveString() 41 ptr->Flush(); in SaveString() 47 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString() local 48 if (ptr == nullptr) { in ObtainString() 51 return ptr->GetString(key, defValue); in ObtainString() 56 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt() local 57 if (ptr == nullptr) { in SaveInt() 60 int ret = ptr->PutInt(key, value); in SaveInt() [all …]
|
/base/update/updateservice/services/core/ability/preference/src/ |
D | preference_utils.cpp | 32 std::shared_ptr<NativePreferences::Preferences> ptr = in GetPreference() local 34 if (ptr == nullptr) { in GetPreference() 37 return ptr; in GetPreference() 77 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); in Save() local 78 if (ptr == nullptr) { in Save() 81 if (!SaveInner(ptr, key, value)) { in Save() 89 …std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &va… in SaveInner() argument 91 return ptr->PutString(key, value) == NativePreferences::E_OK; in SaveInner() 95 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &value) in SaveInner() argument 97 return ptr->PutInt(key, value) == NativePreferences::E_OK; in SaveInner() [all …]
|
/base/customization/enterprise_device_management/test/unittest/include/ |
D | iplugin_template_test.h | 48 …void InitPlugin(std::shared_ptr<IPluginTemplate<ArrayTestPlugin, std::vector<std::string>>> ptr) o… in InitPlugin() argument 51 ptr->InitAttribute(policyCode, "ArrayTestPlugin", "ohos.permission.EDM_TEST_PERMISSION", in InitPlugin() 53 ptr->SetSerializer(ArrayStringSerializer::GetInstance()); in InitPlugin() 64 void InitPlugin(std::shared_ptr<IPluginTemplate<BoolTestPlugin, bool>> ptr) override in InitPlugin() argument 67 ptr->InitAttribute(policyCode, "BoolTestPlugin", "ohos.permission.EDM_TEST_PERMISSION", in InitPlugin() 69 ptr->SetSerializer(BoolSerializer::GetInstance()); in InitPlugin() 80 …n(std::shared_ptr<IPluginTemplate<MapTestPlugin, std::map<std::string, std::string>>> ptr) override in InitPlugin() argument 83 ptr->InitAttribute(policyCode, "MapTestPlugin", "ohos.permission.EDM_TEST_PERMISSION", in InitPlugin() 85 ptr->SetSerializer(MapStringSerializer::GetInstance()); in InitPlugin() 97 std::vector<std::map<std::string, std::string>>>> ptr) override in InitPlugin() argument [all …]
|
/base/request/request/services/service/rust/src/c_wrapper/source/ |
D | c_task_info.cpp | 18 void DeleteCFormItem(CFormItem *ptr) in DeleteCFormItem() argument 20 delete[] ptr; in DeleteCFormItem() 23 void DeleteCFileSpec(CFileSpec *ptr) in DeleteCFileSpec() argument 25 delete[] ptr; in DeleteCFileSpec() 28 void DeleteCEachFileStatus(CEachFileStatus *ptr) in DeleteCEachFileStatus() argument 30 delete[] ptr; in DeleteCEachFileStatus() 33 void DeleteCTaskInfo(CTaskInfo *ptr) in DeleteCTaskInfo() argument 35 delete[] ptr; in DeleteCTaskInfo()
|
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/ |
D | dcm_asn1.h | 68 #define HKS_ASN1_ENCODE_BYTE(ptr, value) \ argument 70 (ptr)[0] = (uint8_t)((value) & 0xff); \ 71 (ptr)++; \ 74 #define HKS_ASN1_ENCODE_TWO_BYTE(ptr, value) \ argument 76 (ptr)[0] = (uint8_t)(((value) >> 8) & 0xff); \ 77 (ptr)++; \ 78 (ptr)[0] = (uint8_t)((value) & 0xff); \ 79 (ptr)++; \ 82 #define HKS_ASN1_DECODE_BYTE(ptr, value) \ argument 84 (value) = (uint32_t)((ptr)[0]); \ [all …]
|
/base/account/os_account/services/accountmgr/test/unittest/os_account/ |
D | os_account_inner_account_mgr_mock.cpp | 185 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); variable 187 EXPECT_CALL(*ptr, GetOsAccountList(::testing::_)) 190 innerMgrService_->SetOsAccountControl(ptr); 204 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); variable 206 EXPECT_CALL(*ptr, GetSerialNumber(::testing::_)) 209 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) 212 innerMgrService_->SetOsAccountControl(ptr); 223 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) 225 EXPECT_CALL(*ptr, GetConstraintsByType(::testing::_, ::testing::_)) 231 EXPECT_CALL(*ptr, GetConstraintsByType(::testing::_, ::testing::_)) [all …]
|
/base/location/test/fuzztest/locator/checkmessage_fuzzer/ |
D | checkmessage_fuzzer.cpp | 40 uint32_t GetU32Data(const char* ptr) in GetU32Data() argument 42 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in GetU32Data() 45 uint64_t GetU64Data(const char* ptr) in GetU64Data() argument 47 uint64_t u64data = (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | (ptr[3]); in GetU64Data() 48 return (u64data << 32) | (ptr[4] << 24) | (ptr[5] << 16) | (ptr[6] << 8) | (ptr[7]); in GetU64Data()
|
/base/hiviewdfx/faultloggerd/test/unittest/services/ |
D | faultlogger_pipe_test.cpp | 47 std::shared_ptr<FaultLoggerPipeMap> ptr = std::make_shared<FaultLoggerPipeMap>(); variable 50 bool check = ptr->Check(pid, time); 53 ptr->Set(pid, time); 54 auto ret = ptr->Get(pid); 59 check = ptr->Check(pid, time); 73 std::shared_ptr<FaultLoggerPipeMap> ptr = std::make_shared<FaultLoggerPipeMap>(); variable 76 ptr->Set(pid, time); 77 auto ret = ptr->Get(pid); 79 ptr->Del(pid); 80 ret = ptr->Get(pid);
|
/base/notification/eventhandler/test/fuzztest/noneiowaiter_fuzzer/ |
D | noneiowaiter_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/eventqueueinsert_fuzzer/ |
D | eventqueueinsert_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/eventreceiveproxy_fuzzer/ |
D | eventreceiveproxy_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/commoneventmanagerservice_fuzzer/ |
D | commoneventmanagerservice_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/filedescriptorlistener_fuzzer/ |
D | filedescriptorlistener_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/subscribecommonevent_fuzzer/ |
D | subscribecommonevent_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/eventqueueannex_fuzzer/ |
D | eventqueueannex_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/asynccommoneventresult_fuzzer/ |
D | asynccommoneventresult_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/eventqueue_fuzzer/ |
D | eventqueue_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/matchingskills_fuzzer/ |
D | matchingskills_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/commoneventstub_fuzzer/ |
D | commoneventstub_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/innerevent_fuzzer/ |
D | innerevent_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/publishcommoneventasuser_fuzzer/ |
D | publishcommoneventasuser_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/eventhandler_fuzzer/ |
D | eventhandler_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/publishcommonevent_fuzzer/ |
D | publishcommonevent_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/common_event_service/test/fuzztest/unsubscribecommonevent_fuzzer/ |
D | unsubscribecommonevent_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|
/base/notification/eventhandler/test/fuzztest/epolliowaiter_fuzzer/ |
D | epolliowaiter_fuzzer.h | 23 uint32_t U32_AT(const uint8_t *ptr) in U32_AT() argument 26 return (ptr[0] << 24) | (ptr[1] << 16) | (ptr[2] << 8) | ptr[3]; in U32_AT()
|