Home
last modified time | relevance | path

Searched refs:ptr (Results 1 - 25 of 453) sorted by relevance

12345678910>>...19

/base/telephony/core_service/utils/preferences/src/
H A 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 in SaveInt()
67 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainInt() local
76 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveBool() local
87 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainBool() local
96 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveLong() local
107 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainLong() local
116 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveFloat() local
127 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainFloat() local
136 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); IsExistKey() local
145 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveKey() local
154 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveAll() local
163 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); Refresh() local
171 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RefreshSync() local
[all...]
/base/telephony/telephony_data/common/src/
H A Dpreferences_util.cpp42 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString() local
43 if (ptr == nullptr) { in SaveString()
46 int ret = ptr->PutString(key, value); in SaveString()
47 ptr->Flush(); in SaveString()
53 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString() local
54 if (ptr == nullptr) { in ObtainString()
57 return ptr->GetString(key, defValue); in ObtainString()
62 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt() local
63 if (ptr == nullptr) { in SaveInt()
66 int ret = ptr in SaveInt()
73 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainInt() local
82 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveBool() local
93 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainBool() local
102 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveLong() local
113 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainLong() local
122 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveFloat() local
133 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainFloat() local
142 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); IsExistKey() local
151 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveKey() local
160 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveAll() local
169 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); Refresh() local
177 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RefreshSync() local
[all...]
/base/theme/screenlock_mgr/utils/src/
H A Dpreferences_util.cpp40 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveString() local
41 if (ptr == nullptr) { in SaveString()
44 int ret = ptr->PutString(key, value); in SaveString()
45 ptr->Flush(); in SaveString()
51 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in ObtainString() local
52 if (ptr == nullptr) { in ObtainString()
55 return ptr->GetString(key, defValue); in ObtainString()
60 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); in SaveInt() local
61 if (ptr == nullptr) { in SaveInt()
64 int ret = ptr in SaveInt()
71 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainInt() local
80 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveBool() local
91 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainBool() local
100 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveLong() local
111 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainLong() local
120 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); SaveFloat() local
131 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); ObtainFloat() local
140 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); IsExistKey() local
149 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveKey() local
158 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RemoveAll() local
167 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); Refresh() local
175 std::shared_ptr<NativePreferences::Preferences> ptr = GetProfiles(path_, errCode_); RefreshSync() local
[all...]
/test/xts/hats/kernel/syscalls/mem/madvisecall/
H A DMadvisecallApiTest.cpp73 void *ptr; in HWTEST_F() local
77 ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in HWTEST_F()
78 EXPECT_NE(ptr, MAP_FAILED); in HWTEST_F()
80 ret = madvise(ptr, size, MADV_DOFORK); in HWTEST_F()
82 munmap(ptr, size); in HWTEST_F()
95 void *ptr; in HWTEST_F() local
99 ptr = mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_ANONYMOUS | MAP_PRIVATE, -1, 0); in HWTEST_F()
100 EXPECT_NE(ptr, MAP_FAILED); in HWTEST_F()
102 ret = madvise(ptr, size, MADV_NORMAL); in HWTEST_F()
104 munmap(ptr, siz in HWTEST_F()
117 void *ptr; HWTEST_F() local
139 void *ptr; HWTEST_F() local
161 void *ptr; HWTEST_F() local
183 void *ptr; HWTEST_F() local
205 void *ptr; HWTEST_F() local
227 void *ptr; HWTEST_F() local
249 void *ptr; HWTEST_F() local
271 void *ptr; HWTEST_F() local
[all...]
/base/update/updateservice/services/core/ability/preference/src/
H A Dpreference_utils.cpp31 std::shared_ptr<NativePreferences::Preferences> ptr = in GetPreference() local
33 if (ptr == nullptr) { in GetPreference()
36 return ptr; in GetPreference()
76 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); in Save() local
77 if (ptr == nullptr) { in Save()
80 if (!SaveInner(ptr, key, value)) { in Save()
88 std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &value) in SaveInner()
90 if (ptr == nullptr) { in SaveInner()
91 ENGINE_LOGE("ptr is null"); in SaveInner()
94 return ptr in SaveInner()
87 SaveInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &value) SaveInner() argument
97 SaveInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &value) SaveInner() argument
107 SaveInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &value) SaveInner() argument
117 SaveInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &value) SaveInner() argument
127 SaveInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const float &value) SaveInner() argument
165 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); Obtain() local
173 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const std::string &defValue) ObtainInner() argument
183 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int &defValue) ObtainInner() argument
193 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const bool &defValue) ObtainInner() argument
203 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const int64_t &defValue) ObtainInner() argument
213 ObtainInner( std::shared_ptr<NativePreferences::Preferences> ptr, const std::string &key, const float &defValue) ObtainInner() argument
225 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); IsExist() local
234 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); Remove() local
246 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); RemoveAll() local
258 std::shared_ptr<NativePreferences::Preferences> ptr = GetPreference(); RefreshSync() local
[all...]
/base/request/request/services/src/cxx/
H A 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 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()
43 DeleteTaskQosInfo(TaskQosInfo *ptr) DeleteTaskQosInfo() argument
[all...]
/base/customization/enterprise_device_management/test/unittest/services/edm/include/
H A Diplugin_template_test.h46 void InitPlugin(std::shared_ptr<IPluginTemplate<ArrayTestPlugin, std::vector<std::string>>> ptr) override
51 ptr->InitAttribute(policyCode, "ArrayTestPlugin", config);
52 ptr->SetSerializer(ArrayStringSerializer::GetInstance());
63 void InitPlugin(std::shared_ptr<IPluginTemplate<BoolTestPlugin, bool>> ptr) override
68 ptr->InitAttribute(policyCode, "BoolTestPlugin", config);
69 ptr->SetSerializer(BoolSerializer::GetInstance());
80 void InitPlugin(std::shared_ptr<IPluginTemplate<MapTestPlugin, std::map<std::string, std::string>>> ptr) override
85 ptr->InitAttribute(policyCode, "MapTestPlugin", config);
86 ptr->SetSerializer(MapStringSerializer::GetInstance());
98 std::vector<std::map<std::string, std::string>>>> ptr) overrid
[all...]
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/
H A Ddwarf_section.cpp42 uintptr_t i = 0, ptr = tableData; in LinearSearchEntry() local
44 while (i++ < fdeCount && ptr < uti.endPc) { in LinearSearchEntry()
45 uintptr_t fdeAddr = ptr; in LinearSearchEntry()
46 if (GetCieOrFde(ptr, fdeInfo)) { in LinearSearchEntry()
71 uintptr_t ptr = 0; in SearchEntry() local
78 ptr = (uintptr_t) tableData + cur * sizeof(DwarfTableEntry); in SearchEntry()
79 if (!memory_->ReadS32(ptr, &dwarfTableEntry.startPc, true)) { in SearchEntry()
80 lastErrorData_.SetAddrAndCode(ptr, UNW_ERROR_INVALID_MEMORY); in SearchEntry()
85 if (!memory_->ReadS32(ptr, &dwarfTableEntry.fdeOffset, true)) { in SearchEntry()
86 lastErrorData_.SetAddrAndCode(ptr, UNW_ERROR_INVALID_MEMOR in SearchEntry()
143 uintptr_t ptr = addr; GetCieOrFde() local
163 ParseCieOrFdeHeader(uintptr_t& ptr, FrameDescEntry &fdeInfo, bool& isCieEntry) ParseCieOrFdeHeader() argument
229 FillInFde(uintptr_t ptr, FrameDescEntry &fdeInfo) FillInFde() argument
296 FillInCie(uintptr_t ptr, CommonInfoEntry &cieInfo) FillInCie() argument
[all...]
/base/location/test/fuzztest/locator/checkmessage_fuzzer/
H A 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[ in GetU64Data()
[all...]
/test/xts/hats/kernel/dmabuffer/
H A Ddmabuf_alloc.cpp62 struct dirent *ptr; in SetUp() local
63 while ((ptr = readdir(dir)) != nullptr) { in SetUp()
64 std::string fileName = ptr->d_name; in SetUp()
88 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F() local
89 ASSERT_TRUE(ptr != nullptr); in HWTEST_F()
93 ASSERT_GE(sprintf_s((char *)ptr, BUFFER_SIZE, "libdmabufheap"), 0); in HWTEST_F()
97 ASSERT_STREQ("libdmabufheap", (char *)ptr); in HWTEST_F()
99 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE)); in HWTEST_F()
116 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); in HWTEST_F() local
117 ASSERT_TRUE(ptr ! in HWTEST_F()
201 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); HWTEST_F() local
227 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); HWTEST_F() local
251 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); HWTEST_F() local
283 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); HWTEST_F() local
[all...]
/base/security/huks/services/huks_standard/huks_engine/main/device_cert_manager/include/
H A Ddcm_asn1.h68 #define HKS_ASN1_ENCODE_BYTE(ptr, value) \
70 (ptr)[0] = (uint8_t)((value) & 0xff); \
71 (ptr)++; \
74 #define HKS_ASN1_ENCODE_TWO_BYTE(ptr, value) \
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) \
84 (value) = (uint32_t)((ptr)[
[all...]
/test/xts/acts/commonlibrary/toolchain/libc-test/include/
H A Dgettestfiles.cpp25 struct dirent* ptr; in GetTestNames() local
31 while ((ptr = readdir(pDir)) != nullptr) { in GetTestNames()
32 if (ptr->d_type == DT_DIR) { in GetTestNames()
33 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { in GetTestNames()
34 GetTestNames(path + "/" + ptr->d_name, tempName); in GetTestNames()
37 if (strcmp(ptr->d_name, ".") != 0 && strcmp(ptr->d_name, "..") != 0) { in GetTestNames()
38 tempName.push_back(path + "/" + ptr->d_name); in GetTestNames()
/test/xts/device_attest/services/devattest_ability/src/
H A Dattest_result_info.cpp36 sptr<AttestResultInfo> ptr = (std::make_unique<AttestResultInfo>()).release(); in Unmarshalling() local
37 if (ptr == nullptr) { in Unmarshalling()
40 if (!parcel.ReadInt32(ptr->authResult_) || !parcel.ReadInt32(ptr->softwareResult_)) { in Unmarshalling()
48 ptr->softwareResultDetail_.resize(setCount); in Unmarshalling()
49 parcel.ReadInt32Vector(&ptr->softwareResultDetail_); in Unmarshalling()
51 if (!parcel.ReadInt32(ptr->ticketLength_) || !parcel.ReadString(ptr->ticket_)) { in Unmarshalling()
54 return ptr; in Unmarshalling()
/base/account/os_account/services/accountmgr/test/unittest/os_account/
H A Dos_account_inner_account_mgr_mock.cpp904 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); in HWTEST_F() local
906 EXPECT_CALL(*ptr, GetOsAccountIdList(::testing::_)) in HWTEST_F()
909 innerMgrService_->SetOsAccountControl(ptr); in HWTEST_F()
923 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); in HWTEST_F() local
924 EXPECT_CALL(*ptr, GetSerialNumber(::testing::_)) in HWTEST_F()
926 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) in HWTEST_F()
928 innerMgrService_->SetOsAccountControl(ptr); in HWTEST_F()
937 EXPECT_CALL(*ptr, GetAllowCreateId(::testing::_)) in HWTEST_F()
939 EXPECT_CALL(*ptr, GetConstraintsByType(::testing::_, ::testing::_)) in HWTEST_F()
944 EXPECT_CALL(*ptr, GetConstraintsByTyp in HWTEST_F()
979 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1035 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1085 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1162 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1201 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1223 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1255 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1276 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1297 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1322 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1361 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1425 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1468 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1508 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1539 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1580 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1608 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1630 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1688 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1716 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1745 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1779 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1813 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1873 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1896 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1919 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1942 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
1968 auto ptr = std::make_shared<MockOsAccountControlFileManager>(); HWTEST_F() local
[all...]
/base/notification/distributed_notification_service/frameworks/ans/test/unittest/
H A Dnotification_live_view_content_test.cpp181 auto ptr = NotificationLiveViewContent::FromJson(jsonObject); in HWTEST_F() local
183 EXPECT_NE(ptr, nullptr); in HWTEST_F()
184 EXPECT_EQ(ptr->GetTitle(), std::string("title")); in HWTEST_F()
185 EXPECT_EQ(ptr->GetText(), std::string("text")); in HWTEST_F()
186 EXPECT_EQ(ptr->GetAdditionalText(), std::string("addText")); in HWTEST_F()
187 EXPECT_EQ(ptr->GetLiveViewStatus(), NotificationLiveViewContent::LiveViewStatus::LIVE_VIEW_INCREMENTAL_UPDATE); in HWTEST_F()
188 EXPECT_EQ(ptr->GetVersion(), NotificationLiveViewContent::MAX_VERSION); in HWTEST_F()
189 EXPECT_NE(ptr->GetExtraInfo(), nullptr); in HWTEST_F()
190 EXPECT_EQ(ptr->GetPicture().size(), 1); in HWTEST_F()
191 delete ptr; in HWTEST_F()
204 auto ptr = rrc->FromJson(jsonObject); HWTEST_F() local
245 auto ptr = NotificationLiveViewContent::Unmarshalling(parcel); HWTEST_F() local
267 auto ptr = NotificationLiveViewContent::Unmarshalling(parcel); HWTEST_F() local
[all...]
/base/security/huks/utils/compatibility_bin/
H A Dcompatibility_small_bin.c40 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
[all...]
/base/account/os_account/services/accountmgr/src/osaccount/
H A Dos_account_stub.cpp43 .messageProcFunction = [] (OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply) {
44 return ptr->ProcCreateOsAccount(data, reply); },
51 .messageProcFunction = [] (OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply) {
52 return ptr->ProcCreateOsAccountWithShortName(data, reply); },
59 .messageProcFunction = [] (OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply) {
60 return ptr->ProcCreateOsAccountWithFullInfo(data, reply); },
67 .messageProcFunction = [] (OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply) {
68 return ptr->ProcUpdateOsAccountWithFullInfo(data, reply); },
75 .messageProcFunction = [] (OsAccountStub *ptr, MessageParcel &data, MessageParcel &reply) {
76 return ptr
[all...]
/base/print/print_fwk/utils/include/
H A Dscan_constant.h49 #define DELETE_AND_NULLIFY(ptr) \
50 if ((ptr) != nullptr) { \
51 delete (ptr); \
52 (ptr) = nullptr; \
55 #define DELETE_ARRAY_AND_NULLIFY(ptr) \
56 if ((ptr) != nullptr) { \
57 delete[] (ptr); \
58 (ptr) = nullptr; \
61 #define FREE_AND_NULLPTR(ptr) \
62 if ((ptr) !
[all...]
/base/hiviewdfx/faultloggerd/frameworks/allocator/
H A Ddfx_allocator.c206 static void MempoolFree(DfxMempool* mempool, void* ptr) in MempoolFree() argument
208 PageInfo * const page = (PageInfo*)(PageStart((uintptr_t)(ptr))); in MempoolFree()
210 if (mempool == NULL || ptr == NULL || mempool->blockSize == 0 || in MempoolFree()
211 ((uintptr_t)(ptr)) % (mempool->blockSize) != 0) { in MempoolFree()
215 // find ptr's page,and page's freeblocklist in MempoolFree()
216 (void)memset_s(ptr, mempool->blockSize, 0, mempool->blockSize); in MempoolFree()
217 BlockInfo* block = (BlockInfo*)(ptr); in MempoolFree()
262 static inline PageInfo* GetPageUnchecked(void* ptr) in GetPageUnchecked() argument
264 uintptr_t pageHead = PageStart((uintptr_t)(ptr) - PAGE_INFO_SIZE); in GetPageUnchecked()
268 static inline PageInfo* GetPage(void* ptr) in GetPage() argument
343 GetChunkSize(void* ptr) GetChunkSize() argument
361 DfxFree(void* ptr) DfxFree() argument
383 DfxRealloc(void* ptr, size_t size) DfxRealloc() argument
421 HookRealloc(void* ptr, size_t size) HookRealloc() argument
426 HookFree(void* ptr) HookFree() argument
465 IsDfxAllocatorMem(void* ptr) IsDfxAllocatorMem() argument
[all...]
/base/security/device_auth/services/legacy/authenticators/src/account_unrelated/
H A Ddas_task_main.c62 void **ptr = NULL; in GetMaxVersion() local
63 FOR_EACH_HC_VECTOR(g_protocolEntityVec, index, ptr) { in GetMaxVersion()
64 DasProtocolEntity *temp = (DasProtocolEntity *)(*ptr); in GetMaxVersion()
122 void **ptr = NULL; in DestroyTaskT() local
123 FOR_EACH_HC_VECTOR(task->vec, index, ptr) { in DestroyTaskT()
124 ((SubTaskBase *)(*ptr))->destroyTask((SubTaskBase *)(*ptr)); in DestroyTaskT()
134 void **ptr = NULL; in ProcessMultiTask() local
141 FOR_EACH_HC_VECTOR(task->vec, index, ptr) { in ProcessMultiTask()
148 res = ((SubTaskBase *)(*ptr)) in ProcessMultiTask()
197 void **ptr = task->vec.getp(&(task->vec), 0); NegotiateAndProcessTask() local
306 void **ptr = NULL; CreateMultiSubTask() local
347 void **ptr = NULL; CreateSingleSubTask() local
428 void **ptr = NULL; RegisterLocalIdentityInTask() local
448 void **ptr = NULL; UnregisterLocalIdentityInTask() local
468 void **ptr = NULL; DeletePeerAuthInfoInTask() local
487 void **ptr = NULL; GetPublicKeyInTask() local
562 void **ptr = NULL; DestroyDasProtocolEntities() local
[all...]
/base/security/device_auth/services/session_manager/src/
H A Ddev_session_mgr.c41 SessionInfo *ptr; in GetSessionInfo() local
42 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in GetSessionInfo()
43 DevSession *session = ptr->session; in GetSessionInfo()
45 *returnObj = ptr; in GetSessionInfo()
114 SessionInfo *ptr; in DestroyDevSessionManager() local
116 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in DestroyDevSessionManager()
117 ptr->session->destroy(ptr->session); in DestroyDevSessionManager()
208 SessionInfo *ptr; in CloseDevSession() local
209 FOR_EACH_HC_VECTOR(g_sessionInfoList, index, ptr) { in CloseDevSession()
232 SessionInfo *ptr; CancelDevSession() local
[all...]
/base/notification/eventhandler/test/fuzztest/eventqueueannex_fuzzer/
H A 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/matchingskills_fuzzer/
H A 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/eventhandler/test/fuzztest/eventhandlerannex_fuzzer/
H A Deventhandlerannex_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/
H A 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()

Completed in 15 milliseconds

12345678910>>...19