Home
last modified time | relevance | path

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

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DFieldPackerTest.java46 FieldPacker fp = new FieldPacker(1024); in testAddAllTypes() local
47 fp.addBoolean(true); in testAddAllTypes()
48 fp.addF32(0.1f); in testAddAllTypes()
49 fp.addF32(new Float3()); in testAddAllTypes()
50 fp.addF32(new Float4()); in testAddAllTypes()
51 fp.addF32(new Float2()); in testAddAllTypes()
52 fp.addF64(0.2); in testAddAllTypes()
53 fp.addF64(new Double2()); in testAddAllTypes()
54 fp.addF64(new Double3()); in testAddAllTypes()
55 fp.addF64(new Double4()); in testAddAllTypes()
[all …]
DScriptTest.java46 FieldPacker fp = new FieldPacker(4); in testScript() local
47 fp.addI32(3); in testScript()
48 S.setVar(12, fp); // structTest in testScript()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2016-10244/
Dpoc.cpp26 FILE *fp = fopen(argv[1], "rb"); in main() local
27 if (!fp) { in main()
31 fseek(fp, 0, SEEK_END); in main()
32 size_t size = ftell(fp); in main()
33 fseek(fp, 0, SEEK_SET); in main()
35 fclose(fp); in main()
41 fclose(fp); in main()
44 (void)fread(data, sizeof(uint8_t), size, fp); in main()
45 fclose(fp); in main()
46 fp = nullptr; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2020-0034/
Dpoc.cpp32 FILE *fp = nullptr; variable
35 if (fp) { in exitHandler()
36 fclose(fp); in exitHandler()
64 fp = fopen(argv[1], "rb"); in main()
65 FAIL_CHECK(fp); in main()
67 fseek(fp, 0, SEEK_END); in main()
68 size_t size = ftell(fp); in main()
69 fseek(fp, 0, SEEK_SET); in main()
73 FAIL_CHECK(fread((void *)buffer.data(), sizeof(uint8_t), size, fp) == size); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-9308/
Dpoc.cpp83 FILE *fp = fopen(argv[1], "rb"); in main() local
84 if (!fp) { in main()
88 fseek(fp, 0, SEEK_END); in main()
89 UINT size = ftell(fp); in main()
90 fseek(fp, 0, SEEK_SET); in main()
92 fread(data, sizeof(UCHAR), size, fp); in main()
93 fclose(fp); in main()
94 fp = nullptr; in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2126/
Dpoc.cpp54 FILE *fp = fopen(TMP_FILE, "wb"); in main() local
55 if (!fp) { in main()
63 fwrite(mkvDataStart, 1, sizeof(mkvDataStart), fp); in main()
66 fwrite(appendArray, 1, LEAK_SIZE, fp); in main()
67 fwrite(mkvDataEnd, 1, sizeof(mkvDataEnd), fp); in main()
69 fclose(fp); in main()
/cts/tests/tests/os/jni/
Dandroid_os_cts_NoExecutePermissionTest.cpp29 FILE *fp = fopen("/proc/self/maps", "re"); in isAddressExecutable() local
30 if (fp == NULL) { in isAddressExecutable()
34 while(fgets(line, sizeof(line), fp) != NULL) { in isAddressExecutable()
44 fclose(fp); in isAddressExecutable()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2017-0726/
Dpoc.cpp65 FILE *fp = fopen(TMP_FILE, "wb"); in main() local
66 if (!fp) { in main()
74 fwrite(mp4_data, 1, DATA_SIZE, fp); in main()
77 fwrite(zero_array, 1, (TOTAL_SIZE - DATA_SIZE), fp); in main()
78 fclose(fp); in main()
/cts/hostsidetests/tagging/common/jni/
Dandroid_cts_tagging_Utils.cpp105 FILE *fp = fmemopen(&buf, kMallocInfoBufSize, "w+"); in Java_android_cts_tagging_Utils_allocatorIsScudo() local
106 malloc_info(0, fp); in Java_android_cts_tagging_Utils_allocatorIsScudo()
107 fclose(fp); in Java_android_cts_tagging_Utils_allocatorIsScudo()
/cts/hostsidetests/multidevices/tools/
Drun_all_tests.py138 with open(summary_file_path, 'w+') as fp:
139 subprocess.run(cmd, stdout=fp, check=False)
140 fp.seek(0)
141 for line in fp:
/cts/tests/media/jni/
DNativeCodecDecoderTestCommon.cpp88 FILE* fp = fopen(refFile, "rbe"); in setUpAudioReference() local
90 if (fp && !fstat(fileno(fp), &buf)) { in setUpAudioReference()
94 fread(mRefData, sizeof(uint8_t), mRefLength, fp); in setUpAudioReference()
98 if (fp) fclose(fp); in setUpAudioReference()
110 FILE* fp = fopen(srcFile, "rbe"); in setUpExtractor() local
111 RETURN_IF_NULL(fp, StringFormat("Unable to open file %s", srcFile)) in setUpExtractor()
113 if (!fstat(fileno(fp), &buf)) { in setUpExtractor()
117 AMediaExtractor_setDataSourceFd(mExtractor, fileno(fp), 0, buf.st_size); in setUpExtractor()
145 if (fp) fclose(fp); in setUpExtractor()
DNativeCodecEncoderSurfaceTest.cpp148 FILE* fp = fopen(srcFile, "rbe"); in setUpExtractor() local
150 if (fp && !fstat(fileno(fp), &buf)) { in setUpExtractor()
154 AMediaExtractor_setDataSourceFd(mExtractor, fileno(fp), 0, buf.st_size); in setUpExtractor()
173 if (fp) fclose(fp); in setUpExtractor()
DNativeExtractorUnitTest.cpp28 static media_status_t setExtractorDataSource(AMediaExtractor* extractor, FILE* fp) { in setExtractorDataSource() argument
31 if (fp && !fstat(fileno(fp), &buf)) in setExtractorDataSource()
32 status = AMediaExtractor_setDataSourceFd(extractor, fileno(fp), 0, buf.st_size); in setExtractorDataSource()
DNativeCodecEncoderTest.cpp126 FILE* fp = fopen(srcPath, "rbe"); in setUpSource() local
128 if (fp && !fstat(fileno(fp), &buf)) { in setUpSource()
132 fread(mInputData, sizeof(uint8_t), mInputLength, fp); in setUpSource()
139 if (fp) fclose(fp); in setUpSource()
DNativeExtractorTest.cpp206 static AMediaExtractor* createExtractorFromFD(FILE* fp) { in createExtractorFromFD() argument
209 if (fp && !fstat(fileno(fp), &buf)) { in createExtractorFromFD()
211 media_status_t res = AMediaExtractor_setDataSourceFd(extractor, fileno(fp), 0, buf.st_size); in createExtractorFromFD()
/cts/apps/CameraITS/tools/
Drun_sensor_fusion.py162 with open(run_all_tests.MOBLY_TEST_SUMMARY_TXT_FILE, 'w') as fp:
163 output = subprocess.run(cmd, stdout=fp)
Drun_all_tests.py886 os.path.join(topdir, MOBLY_TEST_SUMMARY_TXT_FILE), 'w') as fp:
887 output = subprocess.run(cmd, stdout=fp)
/cts/tests/tests/media/drmframework/jni/
Dnative-mediadrm-jni.cpp143 FILE* fp = fopen(path, "r"); in setDataSourceFdFromUrl() local
146 if (fp && !fstat(fileno(fp), &buf)) { in setDataSourceFdFromUrl()
149 fileno(fp), 0, buf.st_size); in setDataSourceFdFromUrl()
154 if (fp && fclose(fp) == EOF) { in setDataSourceFdFromUrl()
/cts/tests/tests/media/decoder/jni/
Dnative-media-jni.cpp510 FILE *fp = fopen(fileName, "rbe"); in testNonTunneledTrickPlay() local
511 if (fp == nullptr) { in testNonTunneledTrickPlay()
518 if (!fstat(fileno(fp), &buf)) { in testNonTunneledTrickPlay()
519 media_status_t res = AMediaExtractor_setDataSourceFd(extractor, fileno(fp), 0, buf.st_size); in testNonTunneledTrickPlay()
/cts/tests/tests/security/jni/
Dandroid_security_cts_cve_2019_2213_Test.c257 struct flat_binder_object *fp = buf_alloc(b, sizeof(*fp)); in buf_binder() local
258 fp->hdr.type = BINDER_TYPE_BINDER; in buf_binder()
259 fp->flags = FLAT_BINDER_FLAG_ACCEPTS_FDS; in buf_binder()
260 fp->binder = (u64)ptr; in buf_binder()
261 fp->cookie = 0; in buf_binder()
404 struct flat_binder_object *fp; in txn_handle() local
405 fp = txn_get(t, sizeof(*fp)); in txn_handle()
406 if (fp->hdr.type != BINDER_TYPE_HANDLE) in txn_handle()
408 return fp->handle; in txn_handle()
/cts/tests/tests/graphics/jni/
DVulkanProfiles.cpp6165 VkFormatProperties2KHR fp; in vpGetProfileFormatProperties() local
6166 fp.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_2_KHR; in vpGetProfileFormatProperties()
6167 … pDesc->pFormats[i].pfnFiller(static_cast<VkBaseOutStructure*>(static_cast<void*>(&fp))); in vpGetProfileFormatProperties()
6168 …atures = static_cast<VkFormatFeatureFlags2KHR>(fp3->linearTilingFeatures | fp.formatProperties.lin… in vpGetProfileFormatProperties()
6169 …tures = static_cast<VkFormatFeatureFlags2KHR>(fp3->optimalTilingFeatures | fp.formatProperties.opt… in vpGetProfileFormatProperties()
6170 …fferFeatures = static_cast<VkFormatFeatureFlags2KHR>(fp3->bufferFeatures | fp.formatProperties.buf… in vpGetProfileFormatProperties()
6173 VkFormatProperties3KHR fp; in vpGetProfileFormatProperties() local
6174 fp.sType = VK_STRUCTURE_TYPE_FORMAT_PROPERTIES_3_KHR; in vpGetProfileFormatProperties()
6175 … pDesc->pFormats[i].pfnFiller(static_cast<VkBaseOutStructure*>(static_cast<void*>(&fp))); in vpGetProfileFormatProperties()
6176 …ic_cast<VkFormatFeatureFlags>(fp2->formatProperties.linearTilingFeatures | fp.linearTilingFeatures… in vpGetProfileFormatProperties()
[all …]
/cts/tests/tests/security/res/raw/
Ddrm_uaf.dm165 �Κ~ڒ,eg�&sp<Y#$)�~Q��DbjZy99vo��yT�+jH��<�,�G��=#��]�fp��ڊHL�?�m{S�<� &@ o��N"G暃�u�_|�…
215 …��^ny^[�J�Z�y3���zs�u�@�@<��4�_*4�[+��Fh["���l��y)���<���|����㨤fp��O��Z��'ML�<��{�<…
Dcve_2019_2245.ts3446 M��i��ӏF����[}�� �ϙ�[axj%n���Ҵsr�]*0��|m�ƷO����ټF�fp����=�sj�oB�Eom⬭Q��2�auX�oF��*Xx���c!…
Dcve_2018_13925.ts3455 M��i��ӏF����[}�� �ϙ�[axj%n���Ҵsr�]*0��|m�ƷO����ټF�fp����=�sj�oB�Eom⬭Q��2�auX�oF��*Xx���c!…
Dcve_2019_2244.ts3456 M��i��ӏF����[}�� �ϙ�[axj%n���Ҵsr�]*0��|m�ƷO����ټF�fp����=�sj�oB�Eom⬭Q��2�auX�oF��*Xx���c!…