/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/telephony/telephony_data/common/src/ |
D | preferences_util.cpp | 46 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString() local 47 if (ptr == nullptr) { in SaveString() 50 int ret = ptr->PutString(key, value); in SaveString() 51 ptr->Flush(); in SaveString() 57 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString() local 58 if (ptr == nullptr) { in ObtainString() 61 return ptr->GetString(key, defValue); in ObtainString() 66 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt() local 67 if (ptr == nullptr) { in SaveInt() 70 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/request/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 DeleteCStringPtr(CStringWrapper *ptr) in DeleteCStringPtr() argument 30 delete[] ptr; in DeleteCStringPtr() 33 void DeleteCEachFileStatus(CEachFileStatus *ptr) in DeleteCEachFileStatus() argument 35 delete[] ptr; in DeleteCEachFileStatus() 38 void DeleteCTaskInfo(CTaskInfo *ptr) in DeleteCTaskInfo() argument 40 delete[] ptr; in DeleteCTaskInfo()
|
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/ |
D | dwarf_section.cpp | 40 uintptr_t i = 0, ptr = tableData; in LinearSearchEntry() local 42 while (i++ < fdeCount && ptr < uti.endPc) { in LinearSearchEntry() 43 uintptr_t fdeAddr = ptr; in LinearSearchEntry() 44 if (GetCieOrFde(ptr, fdeInfo)) { in LinearSearchEntry() 68 uintptr_t ptr = 0; in SearchEntry() local 75 ptr = (uintptr_t) tableData + cur * sizeof(DwarfTableEntry); in SearchEntry() 76 if (!memory_->ReadS32(ptr, &dwarfTableEntry.startPc, true)) { in SearchEntry() 77 lastErrorData_.SetAddrAndCode(ptr, UNW_ERROR_INVALID_MEMORY); in SearchEntry() 82 if (!memory_->ReadS32(ptr, &dwarfTableEntry.fdeOffset, true)) { in SearchEntry() 83 lastErrorData_.SetAddrAndCode(ptr, UNW_ERROR_INVALID_MEMORY); in SearchEntry() [all …]
|
/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 | 219 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); variable 221 EXPECT_CALL(*ptr, GetOsAccountList(::testing::_)) 224 innerMgrService_->SetOsAccountControl(ptr); 238 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); variable 239 EXPECT_CALL(*ptr, GetSerialNumber(::testing::_)) 241 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) 243 innerMgrService_->SetOsAccountControl(ptr); 251 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) 253 EXPECT_CALL(*ptr, GetConstraintsByType(::testing::_, ::testing::_)) 257 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/security/huks/utils/compatibility_bin/ |
D | compatibility_small_bin.c | 40 struct dirent *ptr; in ChangeDirAndFilesPerm() local 46 while ((ptr = readdir(dir)) != NULL) { in ChangeDirAndFilesPerm() 47 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in ChangeDirAndFilesPerm() 60 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ChangeDirAndFilesPerm() 69 if ((ptr->d_type != DIR_TYPE)) { in ChangeDirAndFilesPerm() 115 static int ConstructSrcAndTargetPath(char *curPath, char *desPath, struct dirent *ptr, in ConstructSrcAndTargetPath() argument 127 ret = strcat_s(curPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath() 141 ret = strcat_s(desPath, DEFAULT_PATH_LEN, ptr->d_name); in ConstructSrcAndTargetPath() 156 struct dirent *ptr; in MoveOldFolderToNew() local 159 while ((ptr = readdir(dir)) != NULL) { in MoveOldFolderToNew() [all …]
|
/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()
|
/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/common_event_service/test/fuzztest/commoneventsubscriber_fuzzer/ |
D | commoneventsubscriber_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/commoneventpublishinfo_fuzzer/ |
D | commoneventpublishinfo_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/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/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/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/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/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/eventhandler/test/fuzztest/eventhandlerannex_fuzzer/ |
D | eventhandlerannex_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/nativeimplementeventhandler_fuzzer/ |
D | nativeimplementeventhandler_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()
|