| 68 | } |
| 69 | |
| 70 | bool has_memfd_support() { |
| 71 | /* |
| 72 | * memfd is available when Build.SDK >= Q |
| 73 | * /dev/ashmem is no longer accessible when SDK >= Q |
| 74 | */ |
| 75 | static bool memfd_supported = testMemfdSupport(); |
| 76 | return memfd_supported; |
| 77 | } |
| 78 | |
| 79 | |
| 80 | /* logistics of getting file descriptor for ashmem */ |
no test coverage detected