HomeSort by relevance Sort by last modified time
    Searched defs:hnd (Results 1 - 25 of 120) sorted by null

1 2 3 4 5

  /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
89 hnd = selabel_open(backend, selabel_option, 2);
90 if (!hnd) {
98 rc = selabel_lookup_raw(hnd, &context, key, type);
101 rc = selabel_lookup(hnd, &context, key, type);
103 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
124 hnd = selabel_open(backend, selabel_option, 3);
125 if (!hnd) {
138 rc = selabel_digest(hnd, &sha1_digest, &digest_len, &specfiles,
186 selabel_close(hnd);
  /external/curl/tests/unit/
unit1396.c 24 CURL *hnd; variable
33 if(hnd)
34 curl_easy_cleanup(hnd);
78 hnd = curl_easy_init();
79 abort_unless(hnd != NULL, "returned NULL!");
82 char *out = curl_easy_unescape(hnd,
98 char *out = curl_easy_escape(hnd, list2[i].in, list2[i].inlen);
  /hardware/libhardware/modules/gralloc/
mapper.cpp 42 private_handle_t* hnd = (private_handle_t*)handle; local
43 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)) {
44 size_t size = hnd->size;
46 PROT_READ|PROT_WRITE, MAP_SHARED, hnd->fd, 0);
51 hnd->base = uintptr_t(mappedAddress) + hnd->offset;
53 // hnd->fd, hnd->offset, hnd->size, mappedAddress);
55 *vaddr = (void*)hnd->base
62 private_handle_t* hnd = (private_handle_t*)handle; local
    [all...]
framebuffer.cpp 99 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(buffer); local
103 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
104 const size_t offset = hnd->base - m->framebuffer->base;
gralloc.cpp 138 private_handle_t* hnd = new private_handle_t(dup(m->framebuffer->fd), size, local
150 hnd->base = vaddr;
151 hnd->offset = vaddr - intptr_t(m->framebuffer->base);
152 *pHandle = hnd;
183 private_handle_t* hnd = new private_handle_t(fd, size, 0); local
186 err = mapBuffer(module, hnd);
188 *pHandle = hnd;
256 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
257 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) {
262 int index = (hnd->base - m->framebuffer->base) / bufferSize
    [all...]
gralloc_priv.h 101 const private_handle_t* hnd = (const private_handle_t*)h; local
104 hnd->magic != sMagic)
  /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/linaro/hikey/gralloc/
gralloc_module.cpp 71 private_handle_t *hnd = (private_handle_t *)handle; local
95 hnd->pid = getpid();
97 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)
101 else if (hnd->flags & private_handle_t::PRIV_FLAGS_USES_UMP)
104 hnd->ump_mem_handle = (int)ump_handle_create_from_secure_id(hnd->ump_id);
106 if (UMP_INVALID_MEMORY_HANDLE != (ump_handle)hnd->ump_mem_handle)
108 hnd->base = ump_mapped_pointer_get((ump_handle)hnd->ump_mem_handle);
110 if (0 != hnd->base
243 private_handle_t *hnd = (private_handle_t *)handle; local
283 private_handle_t *hnd = (private_handle_t *)handle; local
326 private_handle_t *hnd = (private_handle_t *)handle; local
    [all...]
alloc_device.cpp 146 private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_ION, usage, size, cpu_ptr, private_handle_t::LOCK_STATE_MAPPED); local
148 if (NULL != hnd)
150 hnd->share_fd = shared_fd;
151 hnd->ion_hnd = ion_hnd;
152 *pHandle = hnd;
220 private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_USES_UMP, usage, size, cpu_ptr, local
223 if (NULL != hnd)
225 *pHandle = hnd;
310 private_handle_t *hnd = new private_handle_t(private_handle_t::PRIV_FLAGS_FRAMEBUFFER, usage, size, vaddr, local
313 hnd->ump_id = m->framebuffer->ump_id
473 private_handle_t *hnd = (private_handle_t *)*pHandle; local
512 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(handle); local
    [all...]
framebuffer_device.cpp 74 private_handle_t const *hnd = reinterpret_cast<private_handle_t const *>(buffer); local
83 if (hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER)
88 const size_t offset = (uintptr_t)hnd->base - (uintptr_t)m->framebuffer->base;
  /external/dbus/dbus/
dbus-file-win.c 40 * @param hnd the HANDLE to read from
47 _dbus_file_read (HANDLE hnd,
71 result = ReadFile (hnd, data, count, &bytes_read, NULL);
76 "Failed to read from 0x%x: %s", hnd, emsg);
111 HANDLE hnd; local
122 hnd = CreateFileA (filename_c, GENERIC_READ,
125 if (hnd == INVALID_HANDLE_VALUE)
134 _dbus_verbose ("file %s hnd %p opened\n", filename_c, hnd);
136 fsize = GetFileSize (hnd, &fsize_hi)
217 HANDLE hnd; local
371 HANDLE hnd; local
    [all...]
  /external/selinux/policycoreutils/setfiles/
restore.h 38 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/msm8084/libcopybit/
copybit.cpp 149 private_handle_t* hnd = (private_handle_t*)rhs->handle; local
150 if(hnd == NULL){
157 img->offset = (uint32_t)hnd->offset;
158 img->memory_id = hnd->fd;
software_converter.cpp 38 private_handle_t* hnd = (private_handle_t*)src->handle; local
40 if(hnd == NULL || yv12_handle == NULL){
60 unsigned char* oldChroma = (unsigned char*)(hnd->base + y_size);
61 memcpy((char *)yv12_handle->base,(char *)hnd->base,y_size);
182 int convert_yuv_c2d_to_yuv_android(private_handle_t *hnd,
186 if (!hnd || !rhs) {
187 ALOGE("%s: invalid inputs hnd=%p rhs=%p", __FUNCTION__, hnd, rhs);
216 ret = copy_source_to_destination(hnd->base, dst_hnd->base, info);
228 int convert_yuv_android_to_yuv_c2d(private_handle_t *hnd,
    [all...]
  /hardware/qcom/display/msm8084/libgralloc/
gpu.cpp 158 private_handle_t *hnd = new private_handle_t(data.fd, size, flags, local
162 hnd->offset = data.offset;
163 hnd->base = (uintptr_t)(data.base) + data.offset;
164 hnd->gpuaddr = 0;
165 setMetaData(hnd, UPDATE_COLOR_SPACE, (void*) &colorSpace);
167 *pHandle = hnd;
227 private_handle_t* hnd = new private_handle_t( local
242 hnd->base = vaddr;
243 hnd->offset = vaddr - uintptr_t(m->framebuffer->base);
244 *pHandle = hnd;
381 private_handle_t const* hnd = reinterpret_cast<private_handle_t const*>(handle); local
    [all...]
mapper.cpp 61 private_handle_t* hnd = (private_handle_t*)handle;
63 if (!(hnd->flags & private_handle_t::PRIV_FLAGS_FRAMEBUFFER) &&
64 !(hnd->flags & private_handle_t::PRIV_FLAGS_SECURE_BUFFER)) {
65 size_t size = hnd->size;
66 IMemAlloc* memalloc = getAllocator(hnd->flags) ;
68 hnd->offset, hnd->fd);
71 handle, hnd->fd, strerror(errno));
72 hnd->base = 0;
76 hnd->base = intptr_t(mappedAddress) + hnd->offset
214 private_handle_t* hnd = (private_handle_t*)handle; local
246 private_handle_t* hnd = (private_handle_t*)handle; local
258 private_handle_t* hnd = (private_handle_t*)handle; local
272 private_handle_t* hnd = (private_handle_t*)handle; local
318 private_handle_t* hnd = (private_handle_t*)native_handle_create( local
341 private_handle_t* hnd = va_arg(args, private_handle_t*); local
366 private_handle_t* hnd = va_arg(args, private_handle_t*); local
382 private_handle_t* hnd = va_arg(args, private_handle_t*); local
417 private_handle_t* hnd = va_arg(args, private_handle_t*); local
430 private_handle_t* hnd = va_arg(args, private_handle_t*); local
    [all...]

Completed in 1379 milliseconds

1 2 3 4 5