/cts/hostsidetests/security/securityPatch/CVE-2017-0462/ |
D | poc.c | 108 void reserve_rdblks(int fd) { in reserve_rdblks() argument 110 ioctl(fd, SEEMP_CMD_RESERVE_RDBLKS, &rrange); in reserve_rdblks() 113 unsigned int get_ringsz(int fd) { in get_ringsz() argument 115 ioctl(fd, SEEMP_CMD_GET_RINGSZ, &ringsz); in get_ringsz() 119 unsigned int get_blksz(int fd) { in get_blksz() argument 121 ioctl(fd, SEEMP_CMD_GET_BLKSZ, &blksz); in get_blksz() 137 void write_to_dev(int fd) { in write_to_dev() argument 158 void do_mapping(void **ptr, int fd) { in do_mapping() argument 163 fd, in do_mapping() 166 close(fd); in do_mapping() [all …]
|
/cts/hostsidetests/security/securityPatch/CVE-2017-0580/ |
D | poc.c | 44 int fd = open(dev_name,O_RDWR); in ioctl_modify_size_big() local 45 if (fd < 0){ in ioctl_modify_size_big() 51 ioctl(fd, FW_FILE_SIZE , 0xffff ); in ioctl_modify_size_big() 52 ioctl(fd, FW_LOAD_DONE , 0); in ioctl_modify_size_big() 58 int fd = open(dev_name,O_RDWR); in ioctl_modify_size_small() local 59 if (fd < 0){ in ioctl_modify_size_small() 65 ioctl(fd, FW_FILE_SIZE , 0xf ); in ioctl_modify_size_small() 66 ioctl(fd, FW_LOAD_DONE , 0); in ioctl_modify_size_small() 72 int fd = open(dev_name,O_RDWR); in ioctl_FW_UPDATE_PROCCESS() local 73 if (fd < 0){ in ioctl_FW_UPDATE_PROCCESS() [all …]
|
/cts/tests/tests/net/jni/ |
D | NativeMultinetworkJni.c | 76 int fd = socket(AF_INET6, SOCK_DGRAM, IPPROTO_UDP); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() local 77 if (fd < 0) { in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 83 int rval = android_setsocknetwork(handle, fd); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 86 handle, fd, rval, saved_errno); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 87 close(fd); in Java_android_net_cts_MultinetworkApiTest_runSetsocknetwork() 138 int fd = socket(res->ai_family, res->ai_socktype, res->ai_protocol); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() local 139 if (fd < 0) { in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 146 rval = android_setsocknetwork(handle, fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 148 handle, fd, rval, errno); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() 150 close(fd); in Java_android_net_cts_MultinetworkApiTest_runDatagramCheck() [all …]
|
/cts/tests/tests/security/jni/ |
D | android_security_cts_NativeCodeTest.cpp | 49 int fd = syscall(__NR_perf_event_open, attr, 0, -1, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest() local 50 jboolean result = (fd != -1); in android_security_cts_NativeCodeTest_doPerfEventTest() 52 if (fd != -1) { in android_security_cts_NativeCodeTest_doPerfEventTest() 53 close(fd); in android_security_cts_NativeCodeTest_doPerfEventTest() 74 int fd[2]; in android_security_cts_NativeCodeTest_doPerfEventTest2() local 81 fd[0]=syscall(__NR_perf_event_open, &pe[0], 0, 0, -1, 0); in android_security_cts_NativeCodeTest_doPerfEventTest2() 82 fd[1]=syscall(__NR_perf_event_open, &pe[1], 0, 0, fd[0], 0); in android_security_cts_NativeCodeTest_doPerfEventTest2() 83 close(fd[0]); in android_security_cts_NativeCodeTest_doPerfEventTest2() 84 close(fd[1]); in android_security_cts_NativeCodeTest_doPerfEventTest2() 88 static void* mmap_syscall(void* addr, size_t len, int prot, int flags, int fd, off_t offset) in mmap_syscall() argument [all …]
|
D | android_security_cts_CharDeviceTest.cpp | 37 int fd = open("/dev/exynos-mem", O_RDWR); in android_security_cts_CharDeviceTest_doExynosWriteTest() local 38 if (fd < 0) { in android_security_cts_CharDeviceTest_doExynosWriteTest() 43 mmap(NULL, length, PROT_READ|PROT_WRITE, MAP_SHARED, fd, PHYS_OFFSET); in android_security_cts_CharDeviceTest_doExynosWriteTest() 64 close(fd); in android_security_cts_CharDeviceTest_doExynosWriteTest() 75 int fd = open("/dev/exynos-mem", O_RDONLY); in android_security_cts_CharDeviceTest_doExynosReadTest() local 76 if (fd < 0) { in android_security_cts_CharDeviceTest_doExynosReadTest() 81 mmap(NULL, length, PROT_READ, MAP_SHARED, fd, PHYS_OFFSET); in android_security_cts_CharDeviceTest_doExynosReadTest() 104 close(fd); in android_security_cts_CharDeviceTest_doExynosReadTest()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8412/ |
D | poc.c | 30 int fd; variable 39 fd = open("/dev/v4l-subdev7", 0x0ul ); in main() 43 syscall(__NR_ioctl, fd, VIDIOC_MSM_ACTUATOR_CFG, argn, 0, 0, 0); in main() 50 syscall(__NR_ioctl, fd, VIDIOC_MSM_ACTUATOR_CFG, argn, 0, 0, 0); in main() 57 syscall(__NR_ioctl, fd, VIDIOC_MSM_ACTUATOR_CFG, argn, 0, 0, 0); in main() 62 syscall(__NR_ioctl, fd, MSM_SD_SHUTDOWN, argn, 0, 0, 0); in main() 66 close(fd); in main()
|
/cts/tests/tests/media/src/android/media/cts/ |
D | NativeEncoderTest.java | 75 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testEncode() local 78 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncode() 81 private static native boolean testEncodeSurfaceNative(int fd, long offset, long size, in testEncodeSurfaceNative() argument 111 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testEncodeDynamicSyncFrame() local 114 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncodeDynamicSyncFrame() 117 …private static native boolean testEncodeSurfaceDynamicSyncFrameNative(int fd, long offset, long si… in testEncodeSurfaceDynamicSyncFrameNative() argument 147 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testEncodeDynamicBitrate() local 150 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength(), in testEncodeDynamicBitrate() 153 …private static native boolean testEncodeSurfaceDynamicBitrateNative(int fd, long offset, long size, in testEncodeSurfaceDynamicBitrateNative() argument 183 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testEncodePersistentSurface() local [all …]
|
D | NativeDecoderTest.java | 115 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testExtractor() local 118 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testExtractor() 120 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testExtractor() 122 fd.close(); in testExtractor() 133 private static int[] getSampleSizes(FileDescriptor fd, long offset, long size) in getSampleSizes() argument 136 ex.setDataSource(fd, offset, size); in getSampleSizes() 183 private static native int[] getSampleSizesNative(int fd, long offset, long size); in getSampleSizesNative() argument 211 AssetFileDescriptor fd = mResources.openRawResourceFd(res); in testDecoder() local 214 fd.getFileDescriptor(), fd.getStartOffset(), fd.getLength()); in testDecoder() 216 fd.getParcelFileDescriptor().getFd(), fd.getStartOffset(), fd.getLength()); in testDecoder() [all …]
|
/cts/hostsidetests/security/securityPatch/CVE-2017-8263/ |
D | poc.c | 26 int fd; in main() local 30 fd = open("/dev/ashmem", 0, 0); in main() 31 if (fd < 0) { in main() 35 ret = ioctl(fd, ASHMEM_SET_SIZE, 0x1000); in main() 41 0x12 /*flags=MAP_FIXED|MAP_PRIVATE*/, fd, 0x0 /*offset*/); in main() 46 ret = ioctl(fd, ASHMEM_CACHE_FLUSH_RANGE, NULL); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2017-0404/ |
D | poc.c | 40 int fd = open("/proc/asound/version", O_RDWR); in main() local 41 if(fd != -1){ in main() 42 lseek(fd, 0x1234567800000000, SEEK_SET); in main() 43 write(fd, buf, sizeof(buf)); in main() 47 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/Bug-34328139/ |
D | poc.c | 29 int fd; variable 49 ioctl(fd, MDSS_ROTATION_CONFIG, &config); in threadForConfig() 68 ioctl(fd, MDSS_ROTATION_CLOSE, id); in threadForClose() 90 fd = open("/dev/mdss_rotator", O_RDONLY, 0); in main() 91 if (fd < 0) { in main() 95 ret = ioctl(fd, MDSS_ROTATION_OPEN, &config); in main() 125 ioctl(fd, MDSS_ROTATION_CONFIG, &config); in main() 136 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8448/ |
D | poc.c | 28 int fd = 0; in main() local 31 fd = open("/dev/graphics/fb0", O_RDWR); in main() 32 if (fd < 0) { in main() 38 if(ioctl(fd, MTKFB_GET_OVERLAY_LAYER_INFO, &layerInfo) == -1) { in main() 48 if(ioctl(fd, MTKFB_SET_OVERLAY_LAYER, &layerInfo) == -1) { in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8444/ |
D | poc.c | 40 int fd; variable 49 ioctl(fd, VIDIOC_MSM_ISPIF_CFG, &data); in worker_thread() 52 ioctl(fd, MSM_SD_SHUTDOWN, &arg1); in worker_thread() 62 fd = open( "/dev/v4l-subdev17", 0x0ul ); in main() 70 ioctl(fd, VIDIOC_MSM_ISPIF_CFG, &data); in main()
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteStatementTest.java | 247 ParcelFileDescriptor fd = stm.simpleQueryForBlobFileDescriptor(); in doTestSimpleQueryForBlobFileDescriptorSuccess() local 248 assertFileDescriptorContent(BLOBS[i], fd); in doTestSimpleQueryForBlobFileDescriptorSuccess() 257 ParcelFileDescriptor fd = stm.simpleQueryForBlobFileDescriptor(); in testSimpleQueryForBlobFileDescriptorSuccessParam() local 258 assertFileDescriptorContent(BLOBS[0], fd); in testSimpleQueryForBlobFileDescriptorSuccessParam() 266 ParcelFileDescriptor fd = null; in testGetBlobFailureNoParam() local 269 fd = stm.simpleQueryForBlobFileDescriptor(); in testGetBlobFailureNoParam() 273 if (fd != null) { in testGetBlobFailureNoParam() 274 fd.close(); in testGetBlobFailureNoParam() 275 fd = null; in testGetBlobFailureNoParam() 287 ParcelFileDescriptor fd = null; in testGetBlobFailureParam() local [all …]
|
/cts/hostsidetests/security/securityPatch/CVE-2017-7369/ |
D | poc.c | 171 int fd, ret, cmd, index,pcmfd, i; in poc() local 174 fd = open(dev, O_RDWR); in poc() 175 if (fd < 0) in poc() 182 ret = ioctl(fd, cmd, &info); in poc() 190 ret = ioctl(fd, cmd, &lst); in poc() 209 ret = ioctl(fd,SNDRV_CTL_IOCTL_ELEM_WRITE,&control); in poc() 211 close(fd); in poc()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6733/ |
D | poc.c | 75 int fd; variable 107 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in child() 120 fd = open(DEV,O_RDONLY); in main() 121 if(fd == -1){ in main() 136 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 139 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 155 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6734/ |
D | poc.c | 82 int fd; variable 111 ioctl(fd, DRM_IOCTL_TEGRA_START_KEEPON, &keepon_c); in keepon_thread() 123 fd = open(DEV,O_RDONLY); in main() 124 if(fd == -1){ in main() 141 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 149 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 159 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6735/ |
D | poc.c | 83 int fd; variable 110 ioctl(fd, DRM_IOCTL_TEGRA_STOP_KEEPON, &keepon_c); in keepon_thread() 122 fd = open(DEV,O_RDONLY); in main() 123 if(fd == -1){ in main() 140 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 148 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 158 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6730/ |
D | poc.c | 85 int fd; variable 114 ioctl(fd, DRM_IOCTL_TEGRA_GET_CLK_CONSTRAINT, &clk_c); in clk_thread() 126 fd = open(DEV,O_RDONLY); in main() 127 if(fd == -1){ in main() 144 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 152 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 162 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6731/ |
D | poc.c | 85 int fd; variable 114 ioctl(fd, DRM_IOCTL_TEGRA_SET_CLK_CONSTRAINT, &clk_c); in clk_thread() 126 fd = open(DEV,O_RDONLY); in main() 127 if(fd == -1){ in main() 144 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 152 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 162 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8449/ |
D | poc.c | 49 int fd; variable 87 fd = open(DEV, O_RDONLY); in main() 88 if(fd == -1){ in main() 96 ret = ioctl(fd, NVAVP_IOCTL_CHANNEL_OPEN, &o_args); in main() 123 ret = ioctl(fd, NVAVP_IOCTL_CHANNEL_OPEN, &o_args); in main() 141 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8425/ |
D | poc.c | 46 int fd; variable 91 fd = open(DEV,O_RDONLY); in main() 92 if(fd == -1){ in main() 100 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main() 125 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main() 138 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-8426/ |
D | poc.c | 46 int fd; variable 91 fd = open(DEV,O_RDONLY); in main() 92 if(fd == -1){ in main() 100 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main() 127 ret = ioctl(fd, NVHOST_IOCTL_CHANNEL_OPEN, &o_args); in main() 145 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6736/ |
D | poc.c | 97 int fd; variable 124 ioctl(fd, DRM_IOCTL_TEGRA_SUBMIT, &submit_c); in submit_thread() 136 fd = open(DEV,O_RDONLY); in main() 137 if(fd == -1){ in main() 154 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 162 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in main() 172 close(fd); in main()
|
/cts/hostsidetests/security/securityPatch/CVE-2016-6732/ |
D | poc.c | 76 int fd; variable 107 ret = ioctl(fd, DRM_IOCTL_TEGRA_CLOSE_CHANNEL, &close_c); in child() 120 fd = open(DEV,O_RDONLY); in main() 121 if(fd == -1){ in main() 135 ret = ioctl(fd, DRM_IOCTL_TEGRA_OPEN_CHANNEL, &open_c); in main() 155 close(fd); in main()
|