/device/google/cuttlefish_common/guest/hals/gralloc/legacy/ |
mapper.cpp | 48 private_handle_t* hnd = (private_handle_t*)handle; local 49 if (reference_region(__FUNCTION__, hnd)) { 61 private_handle_t* hnd = (private_handle_t*)handle; local 62 return unreference_region("gralloc_unregister_buffer", hnd); 75 private_handle_t* hnd = (private_handle_t*)handle; local 77 if (hnd->lock_level > DEBUG_MAX_LOCK_LEVEL) { 79 __FUNCTION__, hnd->lock_level); 81 ++hnd->lock_level; 83 void* base = reference_region("gralloc_lock", hnd); 85 + hnd->frame_offset 94 private_handle_t* hnd = (private_handle_t*) handle; local 113 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
gralloc.cpp | 84 private_handle_t* hnd = local 86 void* base = reference_region(__FUNCTION__, hnd); 88 *pHandle = hnd; 121 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>( local 123 int retval = unreference_region(__FUNCTION__, hnd); 125 close(hnd->fd); 126 delete hnd;
|
/external/selinux/libselinux/utils/ |
selabel_partial_match.c | 33 struct selabel_handle *hnd; local 61 hnd = selabel_open(SELABEL_CTX_FILE, selabel_option, 2); 62 if (!hnd) { 68 partial_match = selabel_partial_match(hnd, path); 73 selabel_close(hnd);
|
selabel_lookup.c | 38 struct selabel_handle *hnd; local 91 hnd = selabel_open(backend, selabel_option, 2); 92 if (!hnd) { 100 rc = selabel_lookup_raw(hnd, &context, key, type); 103 rc = selabel_lookup(hnd, &context, key, type); 105 selabel_close(hnd);
|
selabel_lookup_best_match.c | 60 struct selabel_handle *hnd; local 117 hnd = selabel_open(SELABEL_CTX_FILE, options, 2); 118 if (!hnd) { 126 rc = selabel_lookup_best_match_raw(hnd, &context, path, 129 rc = selabel_lookup_best_match(hnd, &context, path, 132 selabel_close(hnd);
|
selabel_digest.c | 72 struct selabel_handle *hnd; local 126 hnd = selabel_open(backend, selabel_option, 3); 127 if (!hnd) { 140 rc = selabel_digest(hnd, &sha1_digest, &digest_len, &specfiles, 188 selabel_close(hnd);
|
/device/generic/goldfish/gralloc/ |
mapper.cpp | 41 private_handle_t* hnd = (private_handle_t*)handle; local 42 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { 43 size_t size = hnd->size; 45 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); 50 hnd->base = uintptr_t(mappedAddress) + hnd->offset; 52 // hnd->fd, hnd->offset, hnd->size, mappedAddress); 54 *vaddr = (void*)hnd->base 61 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
framebuffer.cpp | 95 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local 99 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) { 100 const size_t offset = hnd->base - m->framebuffer->base;
|
/external/curl/tests/unit/ |
unit1396.c | 24 static CURL *hnd; variable 36 if(hnd) 37 curl_easy_cleanup(hnd); 82 hnd = curl_easy_init(); 83 abort_unless(hnd != NULL, "returned NULL!"); 86 char *out = curl_easy_unescape(hnd, 102 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
|
/hardware/libhardware/modules/gralloc/ |
mapper.cpp | 41 private_handle_t* hnd = (private_handle_t*)handle; local 42 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) { 43 size_t size = hnd->size; 45 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0); 50 hnd->base = uintptr_t(mappedAddress) + hnd->offset; 52 // hnd->fd, hnd->offset, hnd->size, mappedAddress); 54 *vaddr = (void*)hnd->base 61 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
/hardware/qcom/display/msm8960/libgenlock/ |
genlock.cpp | 76 private_handle_t *hnd = reinterpret_cast<private_handle_t*> local 78 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) { 79 if (hnd->genlockPrivFd < 0) { 89 lock.fd = hnd->genlockHandle; 92 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_DREADLOCK, &lock)) { 95 lockType, strerror(errno), hnd->fd); 103 if (ioctl(hnd->genlockPrivFd, GENLOCK_IOC_LOCK, &lock)) { 105 ,__FUNCTION__, lockType, strerror(errno), hnd->fd); 151 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 152 if ((hnd->flags & private_handle_t::PRIV_FLAGS_UNSYNCHRONIZED) == 0) 206 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 236 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local 329 private_handle_t *hnd = reinterpret_cast<private_handle_t*>(buffer_handle); local [all...] |
/device/google/cuttlefish_common/guest/hals/gralloc/ |
gralloc_vsoc_priv.h | 79 const vsoc_buffer_handle_t* hnd = local 81 if (!hnd || hnd->version != sizeof(native_handle) || 82 hnd->numInts != sNumInts() || hnd->numFds != sNumFds || 83 hnd->magic != sMagic) { 93 void* reference_buffer(const vsoc_buffer_handle_t* hnd); 94 int unreference_buffer(const vsoc_buffer_handle_t* hnd);
|
/device/linaro/hikey/gralloc/ |
gralloc_module.cpp | 72 private_handle_t *hnd = (private_handle_t *)handle; local 96 hnd->pid = getpid(); 98 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) 104 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP) 107 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id); 109 if (UMP_INVALID_MEMORY_HANDLE != (ump_handle)hnd->ump_mem_handle) 111 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle); 113 if (0 != hnd->base 245 private_handle_t *hnd = (private_handle_t *)handle; local 285 private_handle_t *hnd = (private_handle_t *)handle; local 328 private_handle_t *hnd = (private_handle_t *)handle; local [all...] |
/device/linaro/hikey/gralloc960/ |
gralloc_module.cpp | 67 private_handle_t* hnd = (private_handle_t*)handle; local 73 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) 78 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_ION) 80 retval = gralloc_backend_register(hnd); 84 AERR("unknown buffer flags not supported. flags = %d", hnd->flags ); 101 private_handle_t* hnd = (private_handle_t*)handle; local 103 AERR_IF(hnd->lockState & private_handle_t::LOCK_STATE_READ_MASK, "[unregister] handle %p still locked (state=%08x)", hnd, hnd->lockState); 105 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER 155 private_handle_t* hnd = (private_handle_t*)handle; local 190 private_handle_t* hnd = (private_handle_t*)handle; local 269 private_handle_t* hnd = (private_handle_t*)handle; local [all...] |
/external/selinux/policycoreutils/setfiles/ |
restore.h | 41 struct selabel_handle *hnd; member in struct:restore_opts
|
restorecon_xattr.c | 46 struct selabel_handle *hnd = NULL; local 110 hnd = selabel_open(SELABEL_CTX_FILE, selinux_opts, 2); 111 if (!hnd) { 125 selinux_restorecon_set_sehandle(hnd); 128 if (selabel_digest(hnd, &fc_digest, &fc_digest_len, 132 selabel_close(hnd); 141 selabel_close(hnd); 218 selabel_close(hnd);
|
/external/selinux/restorecond/ |
restore.h | 47 struct selabel_handle *hnd; member in struct:restore_opts
|
/hardware/qcom/display/msm8084/libhwcomposer/ |
hwc_virtual.cpp | 319 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local 322 hnd = (private_handle_t *)extLayer->handle; 324 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); 327 if(hnd && !isYuvBuffer(hnd)) { 328 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
|
/hardware/qcom/display/msm8226/libhwcomposer/ |
hwc_copybit.h | 62 buffer_handle_t hnd[MAX_NUM_APP_LAYERS]; member in struct:qhwc::CopyBit::LayerCache 114 int clear (private_handle_t* hnd, hwc_rect_t& rect);
|
hwc_virtual.cpp | 357 private_handle_t *hnd = (private_handle_t *)fbLayer->handle; local 360 hnd = (private_handle_t *)extLayer->handle; 362 hnd = ctx->mCopyBit[dpy]->getCurrentRenderBuffer(); 365 if(hnd && !isYuvBuffer(hnd)) { 366 if (!ctx->mFBUpdate[dpy]->draw(ctx, hnd)) {
|
/hardware/qcom/display/msm8960/libcopybit/ |
copybit.cpp | 143 private_handle_t* hnd = (private_handle_t*)rhs->handle; local 144 if(hnd == NULL){ 151 img->offset = hnd->offset; 152 img->memory_id = hnd->fd;
|
/hardware/qcom/display/msm8960/libhwcomposer/ |
hwc_fbupdate.cpp | 66 private_handle_t *hnd = (private_handle_t *)layer->handle; local 67 ovutils::Whf info(getWidth(hnd), getHeight(hnd), 68 ovutils::getMdpFormat(hnd->format), hnd->size); 127 bool FBUpdateLowRes::draw(hwc_context_t *ctx, private_handle_t *hnd) 135 if (!ov.queueBuffer(hnd->fd, hnd->offset, dest)) { 170 private_handle_t *hnd = (private_handle_t *)layer->handle; local 171 ovutils::Whf info(getWidth(hnd), getHeight(hnd) [all...] |
/hardware/qcom/display/msm8994/libhwcomposer/ |
hwc_copybit.h | 62 buffer_handle_t hnd[MAX_NUM_APP_LAYERS]; member in struct:qhwc::CopyBit::LayerCache 114 int clear (private_handle_t* hnd, hwc_rect_t& rect);
|
/hardware/qcom/display/msm8996/sdm/libs/hwc2/ |
hwc_buffer_allocator.cpp | 84 private_handle_t *hnd = nullptr; local 86 producer_usage, consumer_usage, &hnd); 88 if (hnd) { 89 alloc_buffer_info->fd = hnd->fd; 90 alloc_buffer_info->stride = UINT32(hnd->width); 91 alloc_buffer_info->size = hnd->size; 97 buffer_info->private_data = reinterpret_cast<void *>(hnd); 103 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); local 104 ReleaseBuffer_(gralloc_device_, hnd);
|
/hardware/qcom/display/msm8998/sdm/libs/hwc2/ |
hwc_buffer_allocator.cpp | 90 private_handle_t *hnd = nullptr; local 92 producer_usage, consumer_usage, &hnd); 94 if (hnd) { 95 alloc_buffer_info->fd = hnd->fd; 96 alloc_buffer_info->stride = UINT32(hnd->width); 97 alloc_buffer_info->size = hnd->size; 103 buffer_info->private_data = reinterpret_cast<void *>(hnd); 109 buffer_handle_t hnd = static_cast<private_handle_t *>(buffer_info->private_data); local 110 ReleaseBuffer_(gralloc_device_, hnd);
|