Home
last modified time | relevance | path

Searched refs:ptr (Results 1 – 25 of 257) sorted by relevance

1234567891011

/base/telephony/core_service/utils/preferences/src/
Dtel_profile_util.cpp36 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/
Dpreference_utils.cpp32 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/
Diplugin_template_test.h48 …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/
Dc_task_info.cpp18 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/
Ddcm_asn1.h68 #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/
Dos_account_inner_account_mgr_mock.cpp185 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/
Dcheckmessage_fuzzer.cpp40 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/
Dfaultlogger_pipe_test.cpp47 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/
Dnoneiowaiter_fuzzer.h23 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/
Deventqueueinsert_fuzzer.h23 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/
Deventreceiveproxy_fuzzer.h23 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/
Dcommoneventmanagerservice_fuzzer.h23 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/
Dfiledescriptorlistener_fuzzer.h23 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/
Dsubscribecommonevent_fuzzer.h23 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/
Deventqueueannex_fuzzer.h23 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/
Dasynccommoneventresult_fuzzer.h23 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/
Deventqueue_fuzzer.h23 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/
Dmatchingskills_fuzzer.h23 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/
Dcommoneventstub_fuzzer.h23 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/
Dinnerevent_fuzzer.h23 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/
Dpublishcommoneventasuser_fuzzer.h23 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/
Deventhandler_fuzzer.h23 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/
Dpublishcommonevent_fuzzer.h23 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/
Dunsubscribecommonevent_fuzzer.h23 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/
Depolliowaiter_fuzzer.h23 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()

1234567891011