/external/libmojo/mojo/edk/embedder/ |
platform_shared_buffer.cc | 100 base::SharedMemoryHandle handle) { 104 rv->InitFromSharedMemoryHandle(handle); 143 base::SharedMemoryHandle handle; local 146 handle = base::SharedMemory::DuplicateHandle(shared_memory_->handle()); 148 if (handle == base::SharedMemory::NULLHandle()) 152 new PlatformSharedBufferMapping(handle, read_only_, offset, length)); 161 base::SharedMemoryHandle handle; local 164 handle = base::SharedMemory::DuplicateHandle(shared_memory_->handle()); 177 ScopedPlatformHandle handle = DuplicatePlatformHandle(); local 196 base::SharedMemoryHandle handle; local 203 base::SharedMemoryHandle handle; local 242 base::SharedMemoryHandle handle; local [all...] |
platform_handle.cc | 27 bool success = (close(handle) == 0); 29 handle = -1; 40 // This handle may have been duplicated to a new target process but not yet 44 // Normally the target process closes a duplicated handle when that 45 // process is finished using the handle. To close a duplicated handle 50 // call that created the handle. 51 // * Set hSourceHandle to the duplicated handle to close. 60 DuplicateHandle(owning_process, handle, NULL, &handle, 0, FALSE [all...] |
/external/libpcap/ |
pcap-bt-monitor-linux.c | 77 bt_monitor_read(pcap_t *handle, int max_packets _U_, pcap_handler callback, u_char *user) 88 pktd = (u_char *)handle->buffer + BT_CONTROL_SIZE; 94 iv[1].iov_len = handle->snapshot; 100 msg.msg_control = handle->buffer; 104 ret = recvmsg(handle->fd, &msg, 0); 105 if (handle->break_loop) 107 handle->break_loop = 0; 113 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, 132 if (handle->fcode.bf_insns == NULL || 133 bpf_filter(handle->fcode.bf_insns, pktd, pkth.len, pkth.caplen)) [all...] |
pcap-netfilter-linux.c | 85 static int nfqueue_send_verdict(const pcap_t *handle, u_int16_t group_id, u_int32_t id, u_int32_t verdict); 89 netfilter_read_linux(pcap_t *handle, int max_packets, pcap_handler callback, u_char *user) 91 struct pcap_netfilter *handlep = handle->priv; 98 len = recv(handle->fd, handle->buffer, handle->bufsize, 0); 99 if (handle->break_loop) { 100 handle->break_loop = 0; 107 pcap_snprintf(handle->errbuf, PCAP_ERRBUF_SIZE, "Can't receive packet %d:%s", errno, pcap_strerror(errno)); 111 buf = (unsigned char *)handle->buffer [all...] |
/hardware/qcom/keymaster/ |
QSEEComAPI.h | 71 * @brief Open a handle to the QSEECom device. 89 * @param[in/out] handle The device handle 99 * @brief Close the application associated with the handle. 103 * the "handle" is tied. 106 * @param[in] handle The device handle 110 int QSEECom_shutdown_app(struct QSEECom_handle **handle); 113 * @brief Open a handle to the QSEECom device. 121 * @param[in/out] handle The device handl [all...] |
/system/core/adb/client/ |
usb_windows.cpp | 51 rely on AdbWinApi.dll's handle validation and AdbCloseHandle(endpoint)'s 55 /// Handle to USB interface 58 /// Handle to USB read pipe (endpoint) 61 /// Handle to USB write pipe (endpoint) 83 /// Checks if there is opened usb handle in handle_list for this device. 86 /// Checks if there is opened usb handle in handle_list for this device. 90 /// Registers opened usb handle (adds it to handle_list). 91 int register_new_device(usb_handle* handle); 94 int recognized_device(usb_handle* handle); 113 /// Writes data to the opened usb handle 535 usb_handle* handle = NULL; local [all...] |
/device/linaro/bootloader/arm-trusted-firmware/plat/nvidia/tegra/common/ |
tegra_sip_calls.c | 43 void *handle, 58 void *handle, 65 err = plat_sip_handler(smc_fid, x1, x2, x3, x4, cookie, handle, flags); 67 SMC_RET1(handle, (uint64_t)err); 82 SMC_RET1(handle, err); 89 SMC_RET1(handle, -ENOTSUP); 101 SMC_RET1(handle, -ENOTSUP); 107 SMC_RET1(handle, 0); 119 SMC_RET1(handle, SMC_UNK); 128 SMC_RET1(handle, 0) [all...] |
/external/curl/docs/examples/ |
ftp-wildcard.c | 46 /* curl easy handle */ 47 CURL *handle; local 57 /* initialization of easy handle */ 58 handle = curl_easy_init(); 59 if(!handle) { 65 curl_easy_setopt(handle, CURLOPT_WILDCARDMATCH, 1L); 68 curl_easy_setopt(handle, CURLOPT_CHUNK_BGN_FUNCTION, file_is_coming); 71 curl_easy_setopt(handle, CURLOPT_CHUNK_END_FUNCTION, file_is_downloaded); 74 curl_easy_setopt(handle, CURLOPT_WRITEFUNCTION, write_it); 77 curl_easy_setopt(handle, CURLOPT_CHUNK_DATA, &data) [all...] |
/external/selinux/libsemanage/src/ |
database_policydb.c | 22 #include "handle.h" 54 static int dbase_policydb_set_serial(semanage_handle_t * handle, 58 int cache_serial = handle->funcs->get_serial(handle); 60 ERR(handle, "could not update cache serial"); 68 static int dbase_policydb_needs_resync(semanage_handle_t * handle, 77 cache_serial = handle->funcs->get_serial(handle); 89 static int dbase_policydb_cache(semanage_handle_t * handle, 102 if (!dbase_policydb_needs_resync(handle, dbase) 379 semanage_handle_t *handle; member in struct:list_handler_arg [all...] |
ports_file.c | 16 #include <semanage/handle.h> 23 static int port_print(semanage_handle_t * handle, 46 if (semanage_context_to_string(handle, con, &con_str) < 0) 55 ERR(handle, "could not print port range %u - %u (%s) to stream", 61 static int port_parse(semanage_handle_t * handle, 69 if (parse_skip_space(handle, info) < 0) 75 if (parse_assert_str(handle, info, "portcon") < 0) 77 if (parse_assert_space(handle, info) < 0) 81 if (parse_fetch_string(handle, info, &str, ' ') < 0) 88 ERR(handle, "invalid protocol \"%s\" (%s: %u):\n%s", str [all...] |
/external/selinux/libsepol/src/ |
policydb_convert.c | 10 int policydb_from_image(sepol_handle_t * handle, 20 pf.handle = handle; 24 ERR(handle, "policy image is invalid"); 34 int policydb_to_image(sepol_handle_t * handle, 46 pf.handle = handle; 48 ERR(handle, "could not compute policy length"); 57 ERR(handle, "out of memory"); 67 ERR(handle, "could not write policy") [all...] |
/system/tpm/trunks/ |
scoped_key_handle_test.cc | 50 TPM_HANDLE handle = TPM_RH_FIRST; local 51 ScopedKeyHandle scoped_handle(factory_, handle); 52 EXPECT_CALL(mock_tpm_, FlushContextSync(handle, _)) 57 TPM_HANDLE handle = TPM_RH_FIRST; local 58 ScopedKeyHandle scoped_handle(factory_, handle); 59 EXPECT_EQ(handle, scoped_handle.get()); 63 TPM_HANDLE handle = TPM_RH_FIRST; local 64 ScopedKeyHandle scoped_handle(factory_, handle); 65 EXPECT_EQ(handle, scoped_handle.release()); 83 TPM_HANDLE handle = TPM_RH_FIRST local [all...] |
/bionic/tests/ |
dlfcn_test.cpp | 99 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_LAZY | RTLD_LOCAL); local 100 ASSERT_TRUE(handle != nullptr) << dlerror(); 109 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); 117 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")); 125 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_NEXT")); 132 dlclose(handle); 139 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW | RTLD_LOCAL); local 140 ASSERT_TRUE(handle != nullptr) << dlerror(); 149 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol_using_RTLD_DEFAULT")); 157 reinterpret_cast<fn_t>(dlsym(handle, "lookup_dlsym_symbol2_using_RTLD_DEFAULT")) 179 void* handle = dlopen("libtest_empty.so", RTLD_NOW); local 193 void* handle = dlopen("libtest_dlsym_from_this.so", RTLD_NOW); local 202 void* handle = dlopen("libtest_with_dependency.so", RTLD_NOW); local 215 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_NOLOAD); local 230 void* handle = dlopen(soname, RTLD_NOW); local 264 void* handle = dlopen(vdso_name, RTLD_NOW); local 279 void* handle = dlopen("libtest_ifunc_variable.so", RTLD_NOW); local 311 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local 337 void* handle = dlopen("libtest_ifunc.so", RTLD_NOW); local 352 void* handle = dlopen("libtest_ifunc.so", RTLD_LAZY); local 377 void* handle = nullptr; local 415 void* handle = dlopen("libtest_check_order_dlsym.so", RTLD_NOW | RTLD_GLOBAL); local 460 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local 484 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local 525 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local 571 void* handle = dlopen("libtest_check_order_reloc_siblings.so", RTLD_NOW | RTLD_NOLOAD); local 602 void* handle = dlopen("libtest_two_parents_parent1.so", RTLD_NOW | RTLD_LOCAL); local 646 void* handle = dlopen("libtest_check_order_reloc_root.so", RTLD_NOW | RTLD_NOLOAD); local 669 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local 693 void* handle = dlopen("libtest_simple.so", RTLD_NOW | RTLD_GLOBAL); local 718 void* handle = dlopen("libtest_with_dependency_loop.so", RTLD_NOW); local 742 void* handle = dlopen("libtest_nodelete_1.so", RTLD_NOW | RTLD_NODELETE); local 775 void* handle = dlopen("libtest_nodelete_2.so", RTLD_NOW); local 802 void* handle = dlopen("libtest_nodelete_dt_flags_1.so", RTLD_NOW); local 814 void* handle = dlopen("libtest_dlsym_df_1_global.so", RTLD_NOW); local 834 void* handle = dlopen("libtest_simple.so", RTLD_NOW); local 851 void* handle = dlopen("\/child\/thread", RTLD_NOW); local 861 void* handle = dlopen("\/main\/thread", RTLD_NOW); local 877 void* handle = dlopen("\/main\/thread", RTLD_NOW); local 1045 void* handle = dlopen("libgnu-hash-table-library.so", RTLD_NOW); local 1066 void* handle = dlopen("libsysv-hash-table-library.so", RTLD_NOW); local 1085 void* handle = dlopen("libelf-tls-library.so", RTLD_NOW); local 1092 void* handle; local 1149 void* handle = dlopen("libtest_dlsym_weak_func.so", RTLD_NOW); local 1160 void* handle = dlopen("libtest_dlopen_weak_undefined_func.so", RTLD_NOW); local 1187 void* handle = dlopen("libtest_dlopen_from_ctor_main.so", RTLD_NOW); local 1203 void* handle = dlopen(libname, RTLD_NOW); local 1224 void* handle = dlopen("libtest_versioned_uselibv1.so", RTLD_NOW); local 1234 void* handle = dlopen("libtest_versioned_uselibv2.so", RTLD_NOW); local 1244 void* handle = dlopen("libtest_versioned_uselibv2_other.so", RTLD_NOW); local 1254 void* handle = dlopen("libtest_versioned_uselibv3_other.so", RTLD_NOW); local 1264 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local 1274 void* handle = dlopen("libtest_versioned_lib.so", RTLD_NOW); local 1304 void* handle = dlopen("libtest_dt_runpath_d.so", RTLD_NOW); local 1319 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1345 void* handle = dlopen("libtest_thread_local_dtor.so", RTLD_NOW | RTLD_NOLOAD); local 1388 void* handle = dlopen("libtest_thread_local_dtor.so", RTLD_NOW); local 1516 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1527 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1538 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1549 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1560 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1571 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1582 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1593 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1604 void* handle = dlopen(libpath.c_str(), RTLD_NOW); local 1611 void* handle = dlopen("libtest_dlopen_df_1_global.so", RTLD_NOW); local [all...] |
/hardware/qcom/audio/legacy/alsa_sound/ |
alsa_default.cpp | 197 static void switchDevice(alsa_handle_t *handle, uint32_t devices, uint32_t mode); 199 static void disableDevice(alsa_handle_t *handle); 216 int deviceName(alsa_handle_t *handle, unsigned flags, char **value) 226 strlcat(ident, handle->useCase, sizeof(ident)); 227 ret = snd_use_case_get(handle->ucMgr, ident, (const char **)value); 262 status_t setHardwareParams(alsa_handle_t *handle) 267 unsigned int requestedRate = handle->sampleRate; 269 int channels = handle->channels; 278 reqBuffSize = handle->bufferSize; 280 (int) reqBuffSize, handle->channels, handle->sampleRate) [all...] |
/device/generic/goldfish/gralloc/ |
mapper.cpp | 38 buffer_handle_t handle, 41 private_handle_t* hnd = (private_handle_t*)handle; 59 buffer_handle_t handle) 61 private_handle_t* hnd = (private_handle_t*)handle; 77 buffer_handle_t handle) 79 if (private_handle_t::validate(handle) < 0) 84 // If a buffer handle is passed from the process that allocated it to a 97 // allocations happen in its process. After returning the buffer handle to 98 // the IGraphicBufferAlloc client, SurfaceFlinger free's its handle to the 101 // buffer belongs to, it will get a new handle to the buffer in respons [all...] |
/external/mesa3d/src/gallium/auxiliary/renderonly/ |
renderonly.c | 79 struct winsys_handle handle; local 100 scanout->handle = create_dumb.handle; 104 err = drmPrimeHandleToFD(ro->kms_fd, create_dumb.handle, O_CLOEXEC, 112 handle.type = DRM_API_HANDLE_TYPE_FD; 113 handle.handle = prime_fd; 114 handle.stride = create_dumb.pitch; 117 &handle, PIPE_HANDLE_USAGE_READ_WRITE); 127 destroy_dumb.handle = scanout->handle 144 struct winsys_handle handle = { local [all...] |
renderonly.h | 35 uint32_t handle; member in struct:renderonly_scanout 84 struct winsys_handle *handle) 89 handle->handle = scanout->handle; 90 handle->stride = scanout->stride;
|
/external/wpa_supplicant_8/src/ap/ |
vlan_util.c | 27 struct nl_sock *handle = NULL; local 46 handle = nl_socket_alloc(); 47 if (!handle) { 52 err = nl_connect(handle, NETLINK_ROUTE); 59 err = rtnl_link_get_kernel(handle, 0, if_name, &rlink); 70 err = rtnl_link_get_kernel(handle, 0, vlan_if_name, &rlink); 104 err = rtnl_link_add(handle, rlink, NLM_F_CREATE); 118 if (handle) 119 nl_socket_free(handle); 127 struct nl_sock *handle = NULL local [all...] |
/hardware/libhardware/modules/gralloc/ |
mapper.cpp | 38 buffer_handle_t handle, 41 private_handle_t* hnd = (private_handle_t*)handle; 59 buffer_handle_t handle) 61 private_handle_t* hnd = (private_handle_t*)handle; 77 buffer_handle_t handle) 79 if (private_handle_t::validate(handle) < 0) 84 // If a buffer handle is passed from the process that allocated it to a 97 // allocations happen in its process. After returning the buffer handle to 98 // the IGraphicBufferAlloc client, SurfaceFlinger free's its handle to the 101 // buffer belongs to, it will get a new handle to the buffer in respons [all...] |
/hardware/libhardware/modules/sensors/dynamic_sensor/ |
DynamicSensorManager.cpp | 51 handleBase, // handle 73 bool DynamicSensorManager::owns(int handle) const { 74 return handle >= mHandleRange.first && handle < mHandleRange.second; 77 int DynamicSensorManager::activate(int handle, bool enable) { 78 if (handle == mHandleRange.first) { 86 mPendingReport.erase(handle); 89 return operateSensor(handle, 95 int DynamicSensorManager::batch(int handle, nsecs_t sample_period, nsecs_t batch_period) { 96 if (handle == mHandleRange.first) [all...] |
/device/generic/goldfish/camera/ |
GrallocModule.h | 15 int lock(buffer_handle_t handle, 17 return mModule->lock(mModule, handle, usage, l, t, w, h, vaddr); 21 int lock_ycbcr(buffer_handle_t handle, 24 return mModule->lock_ycbcr(mModule, handle, usage, l, t, w, h, ycbcr); 28 int unlock(buffer_handle_t handle) { 29 return mModule->unlock(mModule, handle);
|
/device/google/contexthub/util/stm32_flash/ |
spi.c | 24 uint8_t spi_write_data(handle_t *handle, uint8_t *buffer, int length) 26 spi_handle_t *spi_handle = (spi_handle_t *)handle; 35 buffer[length] = checksum(handle, buffer, length); 43 uint8_t spi_write_cmd(handle_t *handle, uint8_t cmd) 45 spi_handle_t *spi_handle = (spi_handle_t *)handle; 66 uint8_t spi_read_data(handle_t *handle, uint8_t *data, int length) 68 spi_handle_t *spi_handle = (spi_handle_t *)handle; 94 uint8_t spi_read_ack(handle_t *handle) 96 spi_handle_t *spi_handle = (spi_handle_t *)handle; 129 uint8_t spi_sync(handle_t *handle) [all...] |
/device/google/cuttlefish_common/guest/hals/camera/ |
GrallocModule.h | 28 int lock(buffer_handle_t handle, int usage, int l, int t, int w, int h, 30 return mModule->lock(mModule, handle, usage, l, t, w, h, vaddr); 34 int lock_ycbcr(buffer_handle_t handle, int usage, int l, int t, int w, int h, 36 return mModule->lock_ycbcr(mModule, handle, usage, l, t, w, h, ycbcr); 40 int unlock(buffer_handle_t handle) { 41 return mModule->unlock(mModule, handle);
|
/external/drm_gralloc/ |
gralloc_drm_rockchip.c | 38 struct gralloc_drm_handle_t *handle) 52 cpp = gralloc_drm_get_bpp(handle->format); 54 ALOGE("unrecognized format 0x%x", handle->format); 58 aligned_width = handle->width; 59 aligned_height = handle->height; 60 gralloc_drm_align_geometry(handle->format, 67 if (handle->format == HAL_PIXEL_FORMAT_YCbCr_420_888) { 74 w_mbs = ALIGN(handle->width, 16) / 16; 75 h_mbs = ALIGN(handle->height, 16) / 16; 79 if (handle->prime_fd >= 0) [all...] |
/external/nos/host/android/hals/keymaster/ |
buffer.h | 34 size_t buffer_remaining(uint64_t handle); 35 ErrorCode buffer_begin(uint64_t handle, Algorithm algorithm); 36 ErrorCode buffer_append(uint64_t handle, 39 ErrorCode buffer_peek(uint64_t handle, 41 ErrorCode buffer_advance(uint64_t handle, size_t count); 42 ErrorCode buffer_final(uint64_t handle,
|