Home
last modified time | relevance | path

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

12

/test/xts/hats/kernel/dmabuffer/
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); variable
89 ASSERT_TRUE(ptr != nullptr);
93 ASSERT_GE(sprintf_s((char *)ptr, BUFFER_SIZE, "libdmabufheap"), 0);
97 ASSERT_STREQ("libdmabufheap", (char *)ptr);
99 ASSERT_EQ(0, munmap(ptr, BUFFER_SIZE));
116 void *ptr = mmap(nullptr, BUFFER_SIZE, PROT_READ | PROT_WRITE, MAP_SHARED, buffer.fd, 0); variable
117 ASSERT_TRUE(ptr != nullptr);
[all …]
/test/xts/acts/commonlibrary/toolchain/libc-test/include/
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/
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()
/test/xts/acts/multimedia/drm/drm_ndk_test/src/main/ets/test/
DAbility.test.ets411 let c = testNapi.Test_MediaKeySystem_Create(uuid,"ptr");
424 let c = testNapi.Test_MediaKeySystem_Create("wiseplay.drm","ptr");
437 let c = testNapi.Test_MediaKeySystem_Create(" ","ptr");
450 let c = testNapi.Test_MediaKeySystem_Create("","ptr");
476 let c = testNapi.Test_MediaKeySystem_SetConfigurationString("ptr","version","2.2");
506 let c = testNapi.Test_MediaKeySystem_SetConfigurationString("ptr"," ","2.2");
519 let c = testNapi.Test_MediaKeySystem_SetConfigurationString("ptr","version"," ");
532 let c = testNapi.Test_MediaKeySystem_SetConfigurationString("ptr","","2.2");
545 let c = testNapi.Test_MediaKeySystem_SetConfigurationString("ptr","version","");
558 let c = testNapi.Test_MediaKeySystem_GetConfigurationString("ptr","version","ptr",55,"set");
[all …]
/test/xts/tools/lite/checksum/src/
Dchecksum_file.c194 struct dirent *ptr = NULL; in CalcMultiFilesSha256() local
206 while ((ptr = readdir(dir)) != NULL) { in CalcMultiFilesSha256()
207 if (strcmp(ptr->d_name, ".") == 0 || strcmp(ptr->d_name, "..") == 0) { in CalcMultiFilesSha256()
209 } else if (ptr->d_type == typeFile) { in CalcMultiFilesSha256()
211 fileNewName = CreatePathName(fileName, maxLen, dirPathName, "/", ptr->d_name); in CalcMultiFilesSha256()
213 } else if (ptr->d_type == typeDir) { in CalcMultiFilesSha256()
215 pathNewName = CreatePathName(pathName, maxLen, dirPathName, "/", ptr->d_name); in CalcMultiFilesSha256()
/test/xts/hats/kernel/freelist/free_performance/
DMalloc_free_performance.cpp204 void *ptr[CLUSTER_SIZE] = {0}; variable
217 ptr[j] = malloc(g_sizes[index]);
218 if (!ptr[j]) {
225 free(ptr[j]);
/test/xts/acts/multimedia/avcodec/avcodecNdk/entry/src/ohosTest/ets/test/
DAbility.test.ets49 let c = testNapi.Test_VideoDecoder_SetDecryptionConfig("ptr","ptr",false);
62 let c = testNapi.Test_AVDemuxer_GetMediaKeySystemInfo("ptr","ptr");
75 let c = testNapi.Test_AVDemuxer_SetMediaKeySystemInfoCallback("ptr","ptr");
/test/xts/hats/kernel/freelist/malloc_pressure/
DMalloc_pressure.cpp64 void *ptr = malloc(size); variable
65 if (!ptr) {
69 free(ptr);
/test/xts/acts/security_lite/huks/common/
Dhks_test_mem.c26 void HksTestFree(void *ptr) in HksTestFree() argument
28 free(ptr); in HksTestFree()
/test/xts/acts/security/huks_napi_BasicTest/src/
Dhuks_mem.cpp27 void HksFree(void *ptr) in HksFree() argument
29 free(ptr); in HksFree()
/test/testfwk/arkxtest/uitest/addon/
Dextension_executor.cpp158 auto ptr = fatalError; in CallThroughMessage() local
159 …_THROUGH_CHECK(g_callThroughLock.try_lock(), "Disallow concurrent use", ERR_API_USAGE, false, ptr); in CallThroughMessage()
165 CALL_THROUGH_CHECK(in.data != nullptr, "Null message", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
166 CALL_THROUGH_CHECK(out.data != nullptr, "Null output buffer", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
167 CALL_THROUGH_CHECK(out.size != nullptr, "Null output size pointer", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
168 …ALL_THROUGH_CHECK(fatalError != nullptr, "Null fatalError output pointer", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
170 …OUGH_CHECK(!message.is_discarded(), "Illegal messsage, parse json failed", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
172 …HROUGH_CHECK(hasProps, "Illegal messsage, api/this/args property missing", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
177 … CALL_THROUGH_CHECK(api.type() == VT::string, "Illegal api value type", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
178 …UGH_CHECK(caller.type() == VT::string || nullThis, "Illegal thisRef type", ERR_BAD_ARG, true, ptr); in CallThroughMessage()
[all …]
/test/xts/acts/kernel_lite/mem_posix/src/
DActsMemApiTest.cpp342 char *ptr = nullptr; variable
345 memStream = open_memstream(&ptr, &sizeLoc);
348 LogPrint(" ptr:='%x', sizeLoc:='%d'\n", ptr, sizeLoc);
357 LogPrint(" ptr:='%s', sizeloc:='%zu'\n", ptr, sizeLoc);
361 LogPrint(" ptr:='%s', sizeloc:='%zu'\n", ptr, sizeLoc);
362 free(ptr);
DMmapApiTest.cpp191 char *ptr = (char *)fnReturnFive; variable
194 mem[i] = ptr[i];
239 char *ptr = (char *)fnReturnFive; variable
242 mem[i] = ptr[i];
288 char *ptr = (char *)fnReturnFive; variable
291 mem[i] = ptr[i];
726 char *ptr = (char *)mem; variable
728 if (ptr[i] != testChar) {
733 EXPECT_TRUE(failure == 0) << "i = " << i << ", ptr = " << ptr[i];
DMprotectApiTest.cpp120 char *ptr = (char *)fnReturnFive; variable
122 mem[i] = ptr[i];
189 char *ptr = (char *)fnReturnFive; variable
192 mem[i] = ptr[i];
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
Ddlfcnndk.cpp29 void *ptr = dlopen(path, RTLD_LAZY); in DlSym() local
31 dlsym(ptr, "OHOS_EXTENSION_GetExtensionModule"); in DlSym()
Dmmanndk.cpp113 char ptr[] = "/data/storage/el2/base/files/mmap0100.txt"; in Mmap() local
117 FILE *fptr = fopen(ptr, "w+"); in Mmap()
119 fwrite(ptr, sizeof(char), strlen(ptr), fptr); in Mmap()
121 stat(ptr, &statbuff); in Mmap()
123 fd = open(ptr, O_RDWR | O_CREAT, TEST_FLAG); in Mmap()
132 remove(ptr); in Mmap()
221 void *ptr = mmap(nullptr, length, PROT_READ | PROT_WRITE, MAP_SHARED, fd, PARAM_0); in MAdvise() local
222 int ret = madvise(ptr, length, MADV_NORMAL); in MAdvise()
223 munmap(ptr, length); in MAdvise()
Dlinkndk.cpp34 void *ptr = nullptr; in Dl_iterate_phdr() local
35 int ret = dl_iterate_phdr(callback, ptr); in Dl_iterate_phdr()
Dsearchndk.cpp344 int i = PARAM_0, *ptr = nullptr; in Twalk() local
349 ptr = static_cast<int*>(malloc(sizeof(int))); in Twalk()
350 *ptr = rand() & PARAM_0xff; in Twalk()
351 val = tsearch((void *)ptr, &rootVal, Compare); in Twalk()
354 else if ((*(int **)val) != ptr) in Twalk()
355 free(ptr); in Twalk()
Dotherstestndk.cpp114 void *ptr = dlopen(path, RTLD_LAZY); in DlaDdr() local
115 backParam = dladdr(ptr, dlInfo); in DlaDdr()
126 void *ptr = dlopen(path, RTLD_LAZY); in DlOpen() local
127 backParam = dlclose(ptr); in DlOpen()
137 void *ptr = dlopen(path, RTLD_LAZY); in DlClose() local
138 backParam = dlclose(ptr); in DlClose()
495 char ptr[length]; in FStatAt_time64() local
496 napi_get_value_string_utf8(env, args[0], ptr, length, &strResult); in FStatAt_time64()
499 int fd = open(ptr, O_RDWR | O_CREAT, TEST_MODE); in FStatAt_time64()
501 backParam = __fstatat_time64(AT_FDCWD, ptr, &st, PARAM_0); in FStatAt_time64()
[all …]
Dlocalendk.cpp35 struct lconv *ptr = localeconv(); in Localeconv() local
37 if (ptr == nullptr) { in Localeconv()
Dnameserndk.cpp157 unsigned char *ptr = msg + TEST_DNS_HEAD; in NsSkiPrr() local
161 ret = ns_skiprr(ptr, eom, sec, PARAM_1); in NsSkiPrr()
Dwcharndk.cpp415 const char *ptr = "/data/storage/el2/base/files/test.txt"; in Putwc() local
416 FILE *fptr = fopen(ptr, "w+"); in Putwc()
448 wchar_t *ptr = nullptr; in OpenWmemstream() local
450 FILE *fp = open_wmemstream(&ptr, &len); in OpenWmemstream()
454 free(ptr); in OpenWmemstream()
455 ptr = nullptr; in OpenWmemstream()
1054 wchar_t *ptr; in Wcstok() local
1059 wchar_t *want = wcstok(str, delim, &ptr); in Wcstok()
1066 wchar_t *want = wcstok(str, delim, &ptr); in Wcstok()
1688 const char *ptr = "/data/storage/el2/base/files/Fzl.txt"; in Fputws() local
[all …]
/test/xts/acts/security_lite/huks/common/include/
Dhks_test_mem.h26 void HksTestFree(void *ptr);
/test/xts/acts/security/huks_napi_BasicTest/include/
Dhuks_mem.h28 void HksFree(void *ptr);
/test/xts/acts/arkui/ace_ets_web_napis/entry/src/main/cpp/
Dhello.cpp76 NativeArkWeb_OnValidCallback ptr = ValidCallback; in NativeWebInit() local
77 OH_NativeArkWeb_SetJavaScriptProxyValidCallback(webNameValue, ptr); in NativeWebInit()

12