Home
last modified time | relevance | path

Searched refs:handle (Results 1 – 25 of 1449) sorted by relevance

12345678910>>...58

/hardware/interfaces/renderscript/1.0/default/
DDevice.cpp66 void* handle = nullptr; in loadHAL() local
73 handle = android_dlopen_ext(filename, RTLD_LAZY | RTLD_LOCAL, &dlextinfo); in loadHAL()
74 if (handle == nullptr) { in loadHAL()
79 if (handle == nullptr) { in loadHAL()
82 handle = dlopen(filename, RTLD_LAZY | RTLD_LOCAL); in loadHAL()
83 if (handle == nullptr) { in loadHAL()
91 .Allocation1DData = (Allocation1DDataFnPtr)dlsym(handle, "rsAllocation1DData"), in loadHAL()
93 .Allocation1DRead = (Allocation1DReadFnPtr)dlsym(handle, "rsAllocation1DRead"), in loadHAL()
94 .Allocation2DData = (Allocation2DDataFnPtr)dlsym(handle, "rsAllocation2DData"), in loadHAL()
95 .Allocation2DRead = (Allocation2DReadFnPtr)dlsym(handle, "rsAllocation2DRead"), in loadHAL()
[all …]
/hardware/interfaces/common/support/
Dtest.cpp54 NativeHandle handle = { in makeTestAidlHandle() local
58 handle.fds[0].set(dup(0)); in makeTestAidlHandle()
59 handle.fds[1].set(dup(0)); in makeTestAidlHandle()
60 return handle; in makeTestAidlHandle()
64 NativeHandle handle; in TEST() local
65 EXPECT_TRUE(isAidlNativeHandleEmpty(handle)); in TEST()
66 native_handle_t* to = makeFromAidl(handle); in TEST()
67 checkEq(handle, to, false /*exceptFds*/); in TEST()
73 NativeHandle handle = makeTestAidlHandle(); in TEST() local
74 EXPECT_FALSE(isAidlNativeHandleEmpty(handle)); in TEST()
[all …]
DNativeHandle.cpp28 bool isAidlNativeHandleEmpty(const NativeHandle& handle) { in isAidlNativeHandleEmpty() argument
29 return handle.fds.empty() && handle.ints.empty(); in isAidlNativeHandleEmpty()
32 static native_handle_t* fromAidl(const NativeHandle& handle, bool doDup) { in fromAidl() argument
33 native_handle_t* to = native_handle_create(handle.fds.size(), handle.ints.size()); in fromAidl()
36 for (size_t i = 0; i < handle.fds.size(); i++) { in fromAidl()
37 int fd = handle.fds[i].get(); in fromAidl()
40 memcpy(to->data + handle.fds.size(), handle.ints.data(), handle.ints.size() * sizeof(int)); in fromAidl()
44 native_handle_t* makeFromAidl(const NativeHandle& handle) { in makeFromAidl() argument
45 return fromAidl(handle, false /* doDup */); in makeFromAidl()
47 native_handle_t* dupFromAidl(const NativeHandle& handle) { in dupFromAidl() argument
[all …]
/hardware/qcom/audio/legacy/alsa_sound/
Dalsa_default.cpp197 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) in deviceName() argument
226 strlcat(ident, handle->useCase, sizeof(ident)); in deviceName()
227 ret = snd_use_case_get(handle->ucMgr, ident, (const char **)value); in deviceName()
262 status_t setHardwareParams(alsa_handle_t *handle) in setHardwareParams() argument
267 unsigned int requestedRate = handle->sampleRate; in setHardwareParams()
269 int channels = handle->channels; in setHardwareParams()
278 reqBuffSize = handle->bufferSize; in setHardwareParams()
280 (int) reqBuffSize, handle->channels, handle->sampleRate); in setHardwareParams()
[all …]
/hardware/qcom/audio/hal/audio_extn/
Dspkr_protection.c106 void (*thermal_client_unregister_callback)(int handle);
124 static struct speaker_prot_session handle; variable
131 handle.spkr_in_use = true; in spkr_prot_set_spkrstatus()
133 handle.spkr_in_use = false; in spkr_prot_set_spkrstatus()
134 clock_gettime(CLOCK_BOOTTIME, &handle.spkr_last_time_used); in spkr_prot_set_spkrstatus()
145 if (pthread_equal(handle.speaker_prot_threadid, threadid) || !adev) { in audio_extn_spkr_prot_calib_cancel()
151 pthread_mutex_lock(&handle.mutex_spkr_prot); in audio_extn_spkr_prot_calib_cancel()
152 pthread_mutex_lock(&handle.spkr_calib_cancelack_mutex); in audio_extn_spkr_prot_calib_cancel()
153 handle.cancel_spkr_calib = 1; in audio_extn_spkr_prot_calib_cancel()
154 pthread_cond_signal(&handle.spkr_calib_cancel); in audio_extn_spkr_prot_calib_cancel()
[all …]
/hardware/google/gchips/gralloc4/src/core/
Dmali_gralloc_reference.cpp63 static bool dmabuf_sanity_check(buffer_handle_t handle, bool skip_buffer_size_check = false) { in dmabuf_sanity_check() argument
65 static_cast<private_handle_t *>(const_cast<native_handle_t *>(handle)); in dmabuf_sanity_check()
113 bool map_buffer_locked(buffer_handle_t handle) REQUIRES(lock) { in map_buffer_locked() argument
114 auto data_oe = get_validated_data_locked(handle); in map_buffer_locked()
125 if (!dmabuf_sanity_check(handle)) { in map_buffer_locked()
130 reinterpret_cast<private_handle_t *>(const_cast<native_handle *>(handle)); in map_buffer_locked()
143 bool map_metadata_locked(buffer_handle_t handle) REQUIRES(lock) { in map_metadata_locked() argument
144 auto data_oe = get_validated_data_locked(handle); in map_metadata_locked()
155 if (!dmabuf_sanity_check(handle, /*skip_buffer_size_check=*/true)) { in map_metadata_locked()
160 reinterpret_cast<private_handle_t *>(const_cast<native_handle *>(handle)); in map_metadata_locked()
[all …]
Dmali_gralloc_reference.h25 int mali_gralloc_reference_retain(buffer_handle_t handle);
26 int mali_gralloc_reference_release(buffer_handle_t handle);
27 int mali_gralloc_reference_validate(buffer_handle_t handle);
28 int mali_gralloc_reference_map(buffer_handle_t handle);
30 std::optional<void*> mali_gralloc_reference_get_buf_addr(buffer_handle_t handle);
31 std::optional<void*> mali_gralloc_reference_get_metadata_addr(buffer_handle_t handle);
32 int mali_gralloc_reference_lock_retain(buffer_handle_t handle);
33 int mali_gralloc_reference_lock_release(buffer_handle_t handle);
/hardware/libhardware/modules/sensors/dynamic_sensor/
DDynamicSensorManager.cpp73 bool DynamicSensorManager::owns(int handle) const { in owns()
74 return handle >= mHandleRange.first && handle < mHandleRange.second; in owns()
77 int DynamicSensorManager::activate(int handle, bool enable) { in activate() argument
78 if (handle == mHandleRange.first) { in activate()
86 mPendingReport.erase(handle); in activate()
89 return operateSensor(handle, in activate()
95 int DynamicSensorManager::batch(int handle, nsecs_t sample_period, nsecs_t batch_period) { in batch() argument
96 if (handle == mHandleRange.first) { in batch()
100 return operateSensor(handle, in batch()
106 int DynamicSensorManager::setDelay(int handle, nsecs_t sample_period) { in setDelay() argument
[all …]
Dsensors.cpp56 int SensorContext::activate(int handle, int enabled) { in activate() argument
57 return mDynamicSensorManager->activate(handle, enabled); in activate()
60 int SensorContext::setDelay(int handle, int64_t delayNs) { in setDelay() argument
61 return mDynamicSensorManager->setDelay(handle, delayNs); in setDelay()
69 int handle, in batch() argument
72 return mDynamicSensorManager->batch(handle, sampling_period_ns, max_report_latency_ns); in batch()
75 int SensorContext::flush(int handle) { in flush() argument
76 return mDynamicSensorManager->flush(handle); in flush()
86 struct sensors_poll_device_t *dev, int handle, int enabled) { in ActivateWrapper() argument
87 return reinterpret_cast<SensorContext *>(dev)->activate(handle, enabled); in ActivateWrapper()
[all …]
/hardware/qcom/sm8150/media/hypv-intercept/
Dhypv_intercept.cpp61 HVFE_HANDLE handle; member
92 static int add_handle_to_index(HVFE_HANDLE handle, int index) in add_handle_to_index() argument
104 g_hvfe_handle[index].handle = handle; in add_handle_to_index()
123 if (g_hvfe_handle[i].handle == 0) { in find_empty_handle_index()
254 rc = video_fe_ioctl(g_hvfe_handle[fd_index].handle, cmd, data); in hypv_ioctl()
269 struct hypv_intercept *handle = (struct hypv_intercept *)context; in event_notify() local
273 pthread_mutex_lock(&handle->lock); in event_notify()
274 handle->event_flags[handle->event_q_rear++] = flags; in event_notify()
275 handle->event_q_rear %= MAX_EVENTS; in event_notify()
277 NUM_PENDING_EVENTS(handle->event_q_front, handle->event_q_rear), in event_notify()
[all …]
/hardware/interfaces/dumpstate/1.0/vts/functional/
DVtsHalDumpstateV1_0TargetTest.cpp52 native_handle_t* handle = native_handle_create(0, 0); in TEST_P() local
53 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_P()
55 Return<void> status = dumpstate->dumpstateBoard(handle); in TEST_P()
59 native_handle_close(handle); in TEST_P()
60 native_handle_delete(handle); in TEST_P()
69 native_handle_t* handle = native_handle_create(1, 0); in TEST_P() local
70 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_P()
71 handle->data[0] = fds[1]; in TEST_P()
73 Return<void> status = dumpstate->dumpstateBoard(handle); in TEST_P()
80 native_handle_close(handle); in TEST_P()
[all …]
/hardware/google/gchips/libexynosutils/
DExynosMutex.cpp201 void *handle) in exynos_mutex_destroy() argument
203 if (handle == NULL) { in exynos_mutex_destroy()
208 if (((ExynosMutex *)handle)->getCreatedStatus() == true) in exynos_mutex_destroy()
209 ((ExynosMutex *)handle)->destroy(); in exynos_mutex_destroy()
211 delete (ExynosMutex *)handle; in exynos_mutex_destroy()
217 void *handle) in exynos_mutex_lock() argument
219 if (handle == NULL) { in exynos_mutex_lock()
224 return ((ExynosMutex *)handle)->lock(); in exynos_mutex_lock()
229 void *handle) in exynos_mutex_unlock() argument
231 if (handle == NULL) { in exynos_mutex_unlock()
[all …]
/hardware/interfaces/dumpstate/1.1/vts/functional/
DVtsHalDumpstateV1_1TargetTest.cpp144 native_handle_t* handle = native_handle_create(0, 0); in TEST_P() local
145 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_P()
148 dumpstate->dumpstateBoard_1_1(handle, GetMode(), kDefaultTimeoutMillis); in TEST_P()
152 native_handle_close(handle); in TEST_P()
153 native_handle_delete(handle); in TEST_P()
164 native_handle_t* handle = native_handle_create(1, 0); in TEST_P() local
165 ASSERT_NE(handle, nullptr) << "Could not create native_handle"; in TEST_P()
166 handle->data[0] = fds[1]; in TEST_P()
169 dumpstate->dumpstateBoard_1_1(handle, GetMode(), kDefaultTimeoutMillis); in TEST_P()
177 native_handle_close(handle); in TEST_P()
[all …]
/hardware/libhardware/modules/gralloc/
Dmapper.cpp38 buffer_handle_t handle, in gralloc_map() argument
41 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_map()
59 buffer_handle_t handle) in gralloc_unmap() argument
61 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_unmap()
77 buffer_handle_t handle) in gralloc_register_buffer() argument
79 if (private_handle_t::validate(handle) < 0) in gralloc_register_buffer()
117 private_handle_t* hnd = (private_handle_t*)handle; in gralloc_register_buffer()
123 return gralloc_map(module, handle, &vaddr); in gralloc_register_buffer()
127 buffer_handle_t handle) in gralloc_unregister_buffer() argument
129 if (private_handle_t::validate(handle) < 0) in gralloc_unregister_buffer()
[all …]
/hardware/google/graphics/common/libgscaler/include/
Dexynos_gscaler.h112 void *handle);
132 void *handle,
176 void *handle,
226 void *handle,
258 void *handle,
281 void *handle,
302 void *handle,
319 void *handle);
326 void *handle,
335 void *handle,
[all …]
/hardware/google/graphics/common/libgscaler/
Dlibgscaler_obj.h197 virtual int ConfigMpp(void *handle, exynos_mpp_img *src,
199 virtual int ConfigBlendMpp(void *handle, exynos_mpp_img *src,
202 virtual int RunMpp(void *handle, exynos_mpp_img *src,
204 virtual int StopMpp(void *handle);
205 virtual void DestroyMpp(void *handle);
206 virtual int SetCSCProperty(void *handle, unsigned int eqAuto,
208 virtual int FreeMpp(void *handle);
209 virtual int SetInputCrop(void *handle, exynos_mpp_img *src, exynos_mpp_img *dst);
210 bool m_gsc_find_and_create(void *handle);
211 bool m_gsc_out_destroy(void *handle);
[all …]
Dlibgscaler.cpp120 void exynos_gsc_destroy(void *handle) in exynos_gsc_destroy() argument
124 CGscaler* gsc = GetGscaler(handle); in exynos_gsc_destroy()
139 void *handle, in exynos_gsc_set_csc_property() argument
146 CGscaler *gsc = GetGscaler(handle); in exynos_gsc_set_csc_property()
169 void *handle, in exynos_gsc_set_src_format() argument
182 CGscaler *gsc = GetGscaler(handle); in exynos_gsc_set_src_format()
204 void *handle, in exynos_gsc_set_dst_format() argument
217 CGscaler *gsc = GetGscaler(handle); in exynos_gsc_set_dst_format()
240 void *handle, in exynos_gsc_set_rotation() argument
245 CGscaler *gsc = GetGscaler(handle); in exynos_gsc_set_rotation()
[all …]
/hardware/qcom/display/msm8996/libqdutils/
DqdMetaData.cpp38 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
39 if (private_handle_t::validate(handle)) { in validateAndMap()
41 __func__, handle, handle->id); in validateAndMap()
44 if (handle->fd_metadata == -1) { in validateAndMap()
46 __func__, handle, handle->id, handle->fd_metadata); in validateAndMap()
50 if (!handle->base_metadata) { in validateAndMap()
53 handle->fd_metadata, 0); in validateAndMap()
56 __func__, handle, handle->id, handle->fd_metadata, strerror(errno)); in validateAndMap()
60 handle->base_metadata = (uintptr_t) base; in validateAndMap()
65 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[all …]
/hardware/google/aemu/host-common/
DHostAddressSpace_unittest.cpp52 uint32_t handle = mDevice->open(); in TEST_F() local
53 EXPECT_NE(0, handle); in TEST_F()
54 mDevice->close(handle); in TEST_F()
135 uint32_t handle = mDevice->open(); in TEST_F() local
138 EXPECT_NE(0, handle); in TEST_F()
144 int claimRes = mDevice->claimShared(handle, offset, 4096); in TEST_F()
149 int unclaimRes = mDevice->unclaimShared(handle, offset); in TEST_F()
157 mDevice->close(handle); in TEST_F()
166 uint32_t handle = mDevice->open(); in TEST_F() local
168 EXPECT_NE(0, handle); in TEST_F()
[all …]
/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp66 int (*QSEECom_start_app)(struct QSEECom_handle ** handle, char* path,
68 int (*QSEECom_shutdown_app)(struct QSEECom_handle **handle);
69 int (*QSEECom_send_cmd)(struct QSEECom_handle* handle, void *cbuf,
71 int (*QSEECom_send_modified_cmd)(struct QSEECom_handle* handle, void *cbuf,
74 int (*QSEECom_set_bandwidth)(struct QSEECom_handle* handle, bool high);
192 static int32_t qcom_km_ION_memalloc(struct qcom_km_ion_info_t *handle, in qcom_km_ION_memalloc() argument
208 if(handle == NULL){ in qcom_km_ION_memalloc()
217 handle->ion_sbuffer = NULL; in qcom_km_ION_memalloc()
218 handle->ifd_data_fd = 0; in qcom_km_ION_memalloc()
239 if (ion_alloc_data.handle != NULL) { in qcom_km_ION_memalloc()
[all …]
/hardware/qcom/display/msm8998/libqdutils/
DqdMetaData.cpp38 static int validateAndMap(private_handle_t* handle) { in validateAndMap() argument
39 if (private_handle_t::validate(handle)) { in validateAndMap()
41 __func__, handle); in validateAndMap()
44 if (handle->fd_metadata == -1) { in validateAndMap()
46 __func__, handle, handle->id, handle->fd_metadata); in validateAndMap()
50 if (!handle->base_metadata) { in validateAndMap()
53 handle->fd_metadata, 0); in validateAndMap()
56 __func__, handle, handle->id, handle->fd_metadata, strerror(errno)); in validateAndMap()
60 handle->base_metadata = (uintptr_t) base; in validateAndMap()
65 int setMetaData(private_handle_t *handle, DispParamType paramType, in setMetaData() argument
[all …]
/hardware/google/gfxstream/guest/android/
DGrallocGoldfish.cpp53 uint32_t GoldfishGralloc::getHostHandle(native_handle_t const* handle) { in getHostHandle() argument
56 const cb_handle_t* cb = cb_handle_t::from(handle); in getHostHandle()
65 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getHostHandle() local
66 return getHostHandle(handle); in getHostHandle()
73 int GoldfishGralloc::getFormat(const native_handle_t* handle) { in getFormat() argument
74 return cb_handle_t::from(handle)->format; in getFormat()
78 const native_handle_t* handle = AHardwareBuffer_getNativeHandle(ahb); in getFormat() local
79 return getFormat(handle); in getFormat()
82 uint32_t GoldfishGralloc::getFormatDrmFourcc(const native_handle_t* handle) { in getFormatDrmFourcc() argument
83 return cb_handle_t::from(handle)->drmformat; in getFormatDrmFourcc()
[all …]
/hardware/synaptics/wlan/synadhd/wifi_hal/
Dcommon.cpp42 interface_info *getIfaceInfo(wifi_interface_handle handle) in getIfaceInfo() argument
44 return (interface_info *)handle; in getIfaceInfo()
47 wifi_handle getWifiHandle(wifi_interface_handle handle) in getWifiHandle() argument
49 return getIfaceInfo(handle)->handle; in getWifiHandle()
52 hal_info *getHalInfo(wifi_handle handle) in getHalInfo() argument
54 return (hal_info *)handle; in getHalInfo()
57 hal_info *getHalInfo(wifi_interface_handle handle) in getHalInfo() argument
59 return getHalInfo(getWifiHandle(handle)); in getHalInfo()
72 wifi_error wifi_register_handler(wifi_handle handle, int cmd, nl_recvmsg_msg_cb_t func, void *arg) in wifi_register_handler() argument
74 hal_info *info = (hal_info *)handle; in wifi_register_handler()
[all …]
/hardware/google/gchips/libvendorgraphicbuffer/gralloc4/
Dvendor_graphicbuffer_meta.cpp54 int mali_gralloc_reference_validate(buffer_handle_t handle) { in mali_gralloc_reference_validate() argument
55 return private_handle_t::validate(handle); in mali_gralloc_reference_validate()
58 const private_handle_t * convertNativeHandleToPrivateHandle(buffer_handle_t handle) { in convertNativeHandleToPrivateHandle() argument
59 if (mali_gralloc_reference_validate(handle) < 0) in convertNativeHandleToPrivateHandle()
62 return static_cast<const private_handle_t *>(handle); in convertNativeHandleToPrivateHandle()
85 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in get_dataspace() local
86 if (!handle) { in get_dataspace()
92 get_mapper()->get(handle, android::gralloc4::MetadataType_Dataspace, in get_dataspace()
112 native_handle_t* handle = const_cast<native_handle_t*>(hnd); in set_dataspace() local
113 if (!handle) { in set_dataspace()
[all …]
/hardware/google/graphics/common/libscaler/
Dlibscaler.cpp245 static CScalerNonStream *GetNonStreamScaler(void *handle) in GetNonStreamScaler() argument
247 if (handle == NULL) { in GetNonStreamScaler()
252 CScalerNonStream *sc = reinterpret_cast<CScalerNonStream *>(handle); in GetNonStreamScaler()
254 SC_LOGE("Invalid Scaler handle %p", handle); in GetNonStreamScaler()
279 int exynos_sc_destroy(void *handle) in exynos_sc_destroy() argument
283 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_destroy()
288 SC_LOGE("Failed to stop Scaler (handle %p)", handle); in exynos_sc_destroy()
298 void *handle, in exynos_sc_set_csc_property() argument
304 CScalerNonStream *sc = GetNonStreamScaler(handle); in exynos_sc_set_csc_property()
316 void *handle, in exynos_sc_set_src_format() argument
[all …]

12345678910>>...58