/aosp12/hardware/interfaces/renderscript/1.0/default/ |
H A D | Device.cpp | 66 void* handle = nullptr; in loadHAL() local 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() 115 handle, "rsAllocationCubeCreateFromBitmap"), in loadHAL() 138 .AssignName = (AssignNameFnPtr)dlsym(handle, "rsAssignName"), in loadHAL() 146 .ContextDump = (ContextDumpFnPtr)dlsym(handle, "rsContextDump"), in loadHAL() 163 .GetName = (GetNameFnPtr)dlsym(handle, "rsaGetName"), in loadHAL() 165 .ObjDestroy = (ObjDestroyFnPtr)dlsym(handle, "rsObjDestroy"), in loadHAL() [all …]
|
/aosp12/system/media/audio_utils/ |
H A D | tinysndfile.c | 243 handle->remaining = chunkSize / handle->bytesPerFrame; in sf_open_read() 244 handle->info.frames = handle->remaining; in sf_open_read() 284 free(handle); in sf_open_read() 416 free(handle); in sf_close() 421 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_short() 470 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_float() 518 if (handle == NULL || handle->mode != SFM_READ || ptr == NULL || !handle->remaining || in sf_readf_int() 572 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short() 581 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short() 588 handle->temp = realloc(handle->temp, desiredBytes); in sf_writef_short() [all …]
|
/aosp12/bionic/libc/dns/nameser/ |
H A D | ns_parse.c | 162 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr() 172 b = dn_expand(handle->_msg, handle->_eom, in ns_parserr() 177 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr() 186 if (handle->_msg_ptr + NS_INT32SZ + NS_INT16SZ > handle->_eom) in ns_parserr() 190 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr() 195 if (++handle->_rrnum > handle->_counts[(int)section]) in ns_parserr() 225 b = ns_skiprr(handle->_msg_ptr, handle->_eom, section, in ns_parserr2() 235 b = ns_name_unpack2(handle->_msg, handle->_eom, handle->_msg_ptr, in ns_parserr2() 240 if (handle->_msg_ptr + NS_INT16SZ + NS_INT16SZ > handle->_eom) in ns_parserr2() 253 if (handle->_msg_ptr + rr->rdlength > handle->_eom) in ns_parserr2() [all …]
|
/aosp12/frameworks/rs/cpp/ |
H A D | rsDispatch.cpp | 26 bool loadSymbols(void* handle, dispatchTable& dispatchTab, int targetApiLevel) { in loadSymbols() argument 65 dispatchTab.AssignName = (AssignNameFnPtr)dlsym(handle, "rsAssignName"); in loadSymbols() 72 dispatchTab.ContextDump = (ContextDumpFnPtr)dlsym(handle, "rsContextDump"); in loadSymbols() 80 dispatchTab.DeviceCreate = (DeviceCreateFnPtr)dlsym(handle, "rsDeviceCreate"); in loadSymbols() 87 dispatchTab.GetName = (GetNameFnPtr)dlsym(handle, "rsaGetName");; in loadSymbols() 89 dispatchTab.ObjDestroy = (ObjDestroyFnPtr)dlsym(handle, "rsObjDestroy"); in loadSymbols() 103 dispatchTab.ScriptInvoke = (ScriptInvokeFnPtr)dlsym(handle, "rsScriptInvoke"); in loadSymbols() 107 dispatchTab.ScriptReduce = (ScriptReduceFnPtr)dlsym(handle, "rsScriptReduce"); in loadSymbols() 116 dispatchTab.TypeCreate = (TypeCreateFnPtr)dlsym(handle, "rsTypeCreate"); in loadSymbols() 122 dispatchTab.ContextPause = (ContextPauseFnPtr)dlsym(handle, "rsContextPause"); in loadSymbols() [all …]
|
/aosp12/bionic/tests/ |
H A D | dlfcn_test.cpp | 140 dlclose(handle); in TEST() 180 dlclose(handle); in TEST() 196 dlclose(handle); in TEST() 206 dlclose(handle); in TEST() 219 dlclose(handle); in TEST() 257 dlclose(handle); in TEST() 273 dlclose(handle); in TEST() 292 dlclose(handle); in TEST() 306 dlclose(handle); in TEST() 324 dlclose(handle); in TEST() [all …]
|
/aosp12/hardware/qcom/audio/legacy/alsa_sound/ |
H A D | alsa_default.cpp | 327 handle->handle->period_cnt = handle->handle->buffer_size/handle->handle->period_size; in setHardwareParams() 329 handle->handle->buffer_size, handle->handle->period_size, in setHardwareParams() 331 handle->handle->rate = handle->sampleRate; in setHardwareParams() 332 handle->handle->channels = handle->channels; in setHardwareParams() 333 handle->periodSize = handle->handle->period_size; in setHardwareParams() 780 pcm_write(handle->handle,&voc_pkt,handle->handle->period_size); in s_start_voip_call() 781 handle->rxHandle = handle->handle; in s_start_voip_call() 825 pcm_read(handle->handle,&voc_pkt,handle->handle->period_size); in s_start_voip_call() 881 handle->rxHandle = handle->handle; in s_start_voice_call() 1001 handle->rxHandle = handle->handle; in s_start_fm() [all …]
|
/aosp12/hardware/qcom/audio/hal/audio_extn/ |
H A D | spkr_protection.c | 355 handle.pcm_rx = handle.pcm_tx = NULL; in spkr_calibrate() 359 if (handle.pcm_rx && !pcm_is_ready(handle.pcm_rx)) { in spkr_calibrate() 390 if (handle.pcm_tx && !pcm_is_ready(handle.pcm_tx)) { in spkr_calibrate() 467 if (handle.pcm_rx) in spkr_calibrate() 469 handle.pcm_rx = NULL; in spkr_calibrate() 471 if (handle.pcm_tx) in spkr_calibrate() 473 handle.pcm_tx = NULL; in spkr_calibrate() 509 pthread_cond_wait(&handle.spkr_calib_cancel, &handle.mutex_spkr_prot); in spkr_calibrate() 682 handle.thermal_client_unregister_callback(handle.thermal_client_handle); in spkr_calibration_thread() 706 memset(&handle, 0, sizeof(handle)); in audio_extn_spkr_prot_init() [all …]
|
/aosp12/hardware/interfaces/common/support/ |
H A D | test.cpp | 54 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 80 NativeHandle handle; in TEST() local 99 handle->data[2] = 1; in makeTestLibcutilsHandle() 100 handle->data[3] = 2; in makeTestLibcutilsHandle() 101 handle->data[4] = 3; in makeTestLibcutilsHandle() 102 handle->data[5] = 4; in makeTestLibcutilsHandle() [all …]
|
H A D | NativeHandle.cpp | 26 native_handle_t* to = native_handle_create(handle.fds.size(), handle.ints.size()); in fromAidl() 30 int fd = handle.fds[i].get(); in fromAidl() 33 memcpy(to->data + handle.fds.size(), handle.ints.data(), handle.ints.size() * sizeof(int)); in fromAidl() 38 return fromAidl(handle, false /* doDup */); in makeFromAidl() 41 return fromAidl(handle, true /* doDup */); in dupFromAidl() 48 for (size_t i = 0; i < handle->numFds; i++) { in toAidl() 49 int fd = handle->data[i]; in toAidl() 53 to.ints = std::vector<int32_t>(handle->data + handle->numFds, in toAidl() 54 handle->data + handle->numFds + handle->numInts); in toAidl() 59 return toAidl(handle, false /* doDup */); in makeToAidl() [all …]
|
/aosp12/packages/modules/adb/client/ |
H A D | usb_windows.cpp | 334 if (nullptr == handle) { in usb_write() 359 if (handle->zero_mask && (len & handle->zero_mask) == 0) { in usb_write() 375 if (nullptr != handle) { in usb_write() 377 usb_kick(handle); in usb_write() 392 if (nullptr == handle) { in usb_read() 416 if (nullptr != handle) { in usb_read() 418 usb_kick(handle); in usb_read() 436 if (nullptr != handle) { in usb_cleanup_handle() 437 if (nullptr != handle->interface_name) free(handle->interface_name); in usb_cleanup_handle() 454 usb_kick(handle); in usb_reset() [all …]
|
H A D | usb_osx.cpp | 104 handle->mark = true; in AddDevice() 417 return handle; in CheckInterface() 477 if (!handle || handle->dead) in usb_write() 491 (*handle->interface)->WritePipe(handle->interface, handle->bulkOut, (void *)buf, len); in usb_write() 518 if (!handle || handle->dead) { in usb_read() 532 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read() 536 (*handle->interface)->ClearPipeStall(handle->interface, handle->bulkIn); in usb_read() 537 result = (*handle->interface)->ReadPipe(handle->interface, handle->bulkIn, buf, &numBytes); in usb_read() 570 if (!handle) in usb_kick_locked() 576 (*handle->interface)->USBInterfaceClose(handle->interface); in usb_kick_locked() [all …]
|
/aosp12/frameworks/av/media/libmediametrics/ |
H A D | MediaMetrics.cpp | 45 Item *item = (Item *) handle; in mediametrics_delete() 51 Item *item = (Item *) handle; in mediametrics_getKey() 58 Item *item = (Item *) handle; in mediametrics_setUid() 67 Item *item = (Item *) handle; in mediametrics_setInt32() 73 Item *item = (Item *) handle; in mediametrics_setInt64() 79 Item *item = (Item *) handle; in mediametrics_setDouble() 85 Item *item = (Item *) handle; in mediametrics_setRate() 91 Item *item = (Item *) handle; in mediametrics_setCString() 100 Item *item = (Item *) handle; in mediametrics_addInt32() 106 Item *item = (Item *) handle; in mediametrics_addInt64() [all …]
|
/aosp12/system/bt/btif/src/ |
H A D | btif_sock_sdp.cc | 151 if (handle == 0) { in add_sdp_by_uuid() 194 return handle; in add_sdp_by_uuid() 209 if (handle == 0) { in add_pbap_sdp() 245 name, handle); in add_pbap_sdp() 247 return handle; in add_pbap_sdp() 320 return handle; in add_ops_sdp() 365 return handle; in add_spp_sdp() 403 int handle = 0; in add_rfc_sdp_by_uuid() local 414 handle = 0xff; in add_rfc_sdp_by_uuid() 419 return handle; in add_rfc_sdp_by_uuid() [all …]
|
/aosp12/system/core/trusty/storage/tests/ |
H A D | main.cpp | 251 file_handle_t handle; in TEST_P() local 296 file_handle_t handle; in TEST_P() local 333 file_handle_t handle; in TEST_P() local 367 file_handle_t handle; in TEST_P() local 395 file_handle_t handle; in TEST_P() local 422 file_handle_t handle; in TEST_P() local 464 file_handle_t handle; in TEST_P() local 590 file_handle_t handle; in TEST_P() local 636 file_handle_t handle; in TEST_P() local 679 file_handle_t handle; in TEST_P() local [all …]
|
/aosp12/system/chre/core/ |
H A D | audio_request_manager.cc | 70 uint32_t handle = audioDataEvent->handle; in handleAudioDataEvent() local 71 if (handle >= mAudioRequestLists.size()) { in handleAudioDataEvent() 144 if (handle >= mAudioRequestLists.size()) { in validateConfigureSourceArguments() 210 scheduleNextAudioDataEvent(handle); in doConfigureSource() 309 uint32_t handle) { in findNextAudioRequest() argument 326 uint32_t handle = event->handle; in handleAudioDataEventSync() local 327 if (handle < mAudioRequestLists.size()) { in handleAudioDataEventSync() 339 scheduleNextAudioDataEvent(handle); in handleAudioDataEventSync() 347 if (handle < mAudioRequestLists.size()) { in handleAudioAvailabilitySync() 355 scheduleNextAudioDataEvent(handle); in handleAudioAvailabilitySync() [all …]
|
/aosp12/system/bt/vendor_libs/test_vendor_lib/model/controller/ |
H A D | acl_connection_handler.cc | 112 handle, in CreateConnection() 117 return handle; in CreateConnection() 128 return handle; in CreateLeConnection() 157 ASSERT_LOG(HasHandle(handle), "Handle unknown %hd", handle); in GetAddress() 162 ASSERT_LOG(HasHandle(handle), "Handle unknown %hd", handle); in GetOwnAddress() 167 if (!HasHandle(handle)) { in Encrypt() 174 if (!HasHandle(handle)) { in IsEncrypted() 182 if (!HasHandle(handle)) { in SetAddress() 190 if (!HasHandle(handle)) { in GetPhyType() 221 .handle = handle}; in SetCigParameters() [all …]
|
/aosp12/packages/apps/Bluetooth/src/com/android/bluetooth/gatt/ |
H A D | HandleMap.java | 39 public int handle = 0; field in HandleMap.Entry 51 this.handle = handle; in Entry() 61 this.handle = handle; in Entry() 71 this.handle = handle; in Entry() 79 this.handle = handle; in Entry() 118 || entry.handle != handle) { in setStarted() 127 Entry getByHandle(int handle) { in getByHandle() argument 129 if (entry.handle == handle) { in getByHandle() 139 if (entry.type == TYPE_SERVICE && entry.handle == handle && entry.uuid.equals(uuid)) { in checkServiceExists() 173 if (handle == null) { in getByRequestId() [all …]
|
/aosp12/packages/services/Telecomm/src/com/android/server/telecom/ |
H A D | CallerInfoLookupHelper.java | 103 Log.piiHandle(handle)); in startLookup() 115 startLookup(handle, listener); in startLookup() 121 if (handle == null) { in startLookup() 133 if (mQueryEntries.containsKey(handle)) { in startLookup() 137 Log.piiHandle(handle)); in startLookup() 157 mQueryEntries.put(handle, info); in startLookup() 182 final Uri handle) { in makeCallerInfoQueryListener() argument 197 mQueryEntries.remove(handle); in makeCallerInfoQueryListener() 232 final Uri handle) { 250 mQueryEntries.remove(handle); [all …]
|
/aosp12/system/iorap/src/perfetto/ |
H A D | perfetto_consumer.cc | 109 HandleDescription(Handle handle): handle_(handle) {} in HandleDescription() 199 handle_desc.handle_ = handle; in Create() 208 return handle; in Create() 225 raw_->StartTracing(handle); in StartTracing() 259 void Destroy(Handle handle) { in Destroy() 281 raw_->Destroy(handle); in TryDestroy() 288 last_destroyed_ = handle; in TryDestroy() 308 if (IsDestroyed(handle)) { in GetOrInferHandleDescription() 466 if (handle < min_it->first) { in IsDestroyed() 593 impl_->StartTracing(handle); in StartTracing() [all …]
|
/aosp12/system/libziparchive/ |
H A D | zip_archive_test.cc | 135 CloseArchive(handle); in TEST() 138 CloseArchive(handle); in TEST() 144 CloseArchive(handle); in TEST() 150 CloseArchive(handle); in TEST() 156 CloseArchive(handle); in TEST() 172 CloseArchive(handle); in TEST() 182 CloseArchive(handle); in TEST() 195 CloseArchive(handle); in TEST() 208 CloseArchive(handle); in TEST() 230 CloseArchive(handle); in TEST() [all …]
|
/aosp12/frameworks/av/media/libmediametrics/include/media/ |
H A D | MediaMetrics.h | 38 void mediametrics_delete(mediametrics_handle_t handle); 40 mediametricskey_t mediametrics_getKey(mediametrics_handle_t handle); 44 void mediametrics_setInt32(mediametrics_handle_t handle, attr_t attr, 46 void mediametrics_setInt64(mediametrics_handle_t handle, attr_t attr, 50 void mediametrics_setRate(mediametrics_handle_t handle, attr_t attr, 57 void mediametrics_addInt32(mediametrics_handle_t handle, attr_t attr, 63 void mediametrics_addRate(mediametrics_handle_t handle, attr_t attr, 83 int32_t mediametrics_count(mediametrics_handle_t handle); 86 bool mediametrics_selfRecord(mediametrics_handle_t handle); 88 const char *mediametrics_readable(mediametrics_handle_t handle); [all …]
|
/aosp12/hardware/qcom/sm8150/media/hypv-intercept/ |
H A D | hypv_intercept.cpp | 61 HVFE_HANDLE handle; member 104 g_hvfe_handle[index].handle = handle; in add_handle_to_index() 273 pthread_mutex_lock(&handle->lock); in event_notify() 274 handle->event_flags[handle->event_q_rear++] = flags; in event_notify() 277 NUM_PENDING_EVENTS(handle->event_q_front, handle->event_q_rear), in event_notify() 278 handle->event_q_front, handle->event_q_rear); in event_notify() 299 handle->exit_flag = true; in exit_thread() 341 if (!NUM_PENDING_EVENTS(handle->event_q_front, handle->event_q_rear) && in hypv_poll() 342 !handle->exit_flag) { in hypv_poll() 343 ret = pthread_cond_timedwait(&handle->cond, &handle->lock, &ts); in hypv_poll() [all …]
|
/aosp12/system/bt/stack/pan/ |
H A D | pan_main.cc | 225 BNEP_ConnectResp(handle, BNEP_SUCCESS); in pan_conn_ind_cb() 242 pcb = pan_allocate_pcb(p_bda, handle); in pan_conn_ind_cb() 257 BNEP_ConnectResp(handle, BNEP_SUCCESS); in pan_conn_ind_cb() 280 void pan_connect_state_cb(uint16_t handle, in pan_connect_state_cb() argument 288 pcb = pan_get_pcb_by_handle(handle); in pan_connect_state_cb() 386 pcb = pan_get_pcb_by_handle(handle); in pan_data_buf_ind_cb() 395 pcb->con_state, handle); in pan_data_buf_ind_cb() 405 handle, protocol, len, ext); in pan_data_buf_ind_cb() 420 pan_cb.pcb[i].handle != handle && in pan_data_buf_ind_cb() 443 __func__, dst_pcb->handle, len); in pan_data_buf_ind_cb() [all …]
|
/aosp12/hardware/interfaces/dumpstate/1.1/vts/functional/ |
H A D | VtsHalDumpstateV1_1TargetTest.cpp | 152 native_handle_close(handle); in TEST_P() 166 handle->data[0] = fds[1]; in TEST_P() 177 native_handle_close(handle); in TEST_P() 192 handle->data[0] = fds1[1]; in TEST_P() 193 handle->data[1] = fds2[1]; in TEST_P() 207 native_handle_close(handle); in TEST_P() 220 handle->data[0] = fds[1]; in TEST_P() 230 native_handle_close(handle); in TEST_P() 242 handle->data[0] = fds[1]; in TEST_P() 265 handle->data[0] = fds[1]; in TEST_P() [all …]
|
/aosp12/hardware/libhardware/modules/sensors/dynamic_sensor/ |
H A D | DynamicSensorManager.cpp | 74 return handle >= mHandleRange.first && handle < mHandleRange.second; in owns() 89 return operateSensor(handle, in activate() 100 return operateSensor(handle, in batch() 141 if (handle < 0) { in registerSensor() 168 int handle = i->second; in unregisterSensor() local 170 mMap.erase(handle); in unregisterSensor() 183 int handle; in submitEvent() local 193 handle = i->second; in submitEvent() 205 event.sensor = handle; in submitEvent() 254 mSensor.handle = handle; in ConnectionReport() [all …]
|