Searched refs:handle (Results 1 - 25 of 371) sorted by relevance

1234567891011>>

/system/bt/btif/include/
H A Dbtif_avrcp_audio_track.h30 * Creates an audio track object and returns a void handle. Use this handle to
34 * The ownership of the handle is maintained by the caller of this API and it
43 void BtifAvrcpAudioTrackStart(void* handle);
48 void BtifAvrcpAudioTrackPause(void* handle);
53 void BtifAvrcpSetAudioTrackGain(void* handle, float gain);
59 void BtifAvrcpAudioTrackStop(void* handle);
60 void BtifAvrcpAudioTrackDelete(void* handle);
67 int BtifAvrcpAudioTrackWriteData(void* handle, void* audioBuffer,
H A Dbtif_sock_thread.h47 int btsock_thread_add_fd(int handle, int fd, int type, int flags,
50 int btsock_thread_wakeup(int handle);
51 int btsock_thread_post_cmd(int handle, int cmd_type,
56 int btsock_thread_exit(int handle);
/system/bt/bta/include/
H A Dbta_pan_ci.h46 extern void bta_pan_ci_tx_ready(uint16_t handle);
61 extern void bta_pan_ci_rx_ready(uint16_t handle);
69 * disable data flow when it is congested and cannot handle
78 extern void bta_pan_ci_tx_flow(uint16_t handle, bool enable);
94 extern void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& src,
111 extern BT_HDR* bta_pan_ci_readbuf(uint16_t handle, RawAddress& src,
125 extern void bta_pan_ci_set_pfilters(uint16_t handle, uint16_t num_filters,
139 extern void bta_pan_ci_set_mfilters(uint16_t handle, uint16_t num_mcast_filters,
H A Dbta_pan_co.h76 extern void bta_pan_co_open(uint16_t handle, uint8_t app_id,
91 extern void bta_pan_co_close(uint16_t handle, uint8_t app_id);
106 extern void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id);
121 extern void bta_pan_co_rx_path(uint16_t handle, uint8_t app_id);
136 extern void bta_pan_co_tx_write(uint16_t handle, uint8_t app_id,
154 extern void bta_pan_co_tx_writebuf(uint16_t handle, uint8_t app_id,
173 extern void bta_pan_co_rx_flow(uint16_t handle, uint8_t app_id, bool enable);
184 extern void bta_pan_co_pfilt_ind(uint16_t handle, bool indication,
197 extern void bta_pan_co_mfilt_ind(uint16_t handle, bool indication,
/system/core/libutils/
H A DNativeHandle.cpp22 sp<NativeHandle> NativeHandle::create(native_handle_t* handle, bool ownsHandle) { argument
23 return handle ? new NativeHandle(handle, ownsHandle) : NULL;
26 NativeHandle::NativeHandle(native_handle_t* handle, bool ownsHandle) argument
27 : mHandle(handle), mOwnsHandle(ownsHandle) {
/system/media/audio_utils/
H A Dtinysndfile.c75 SNDFILE *handle = (SNDFILE *) malloc(sizeof(SNDFILE)); local
76 handle->mode = SFM_READ;
77 handle->temp = NULL;
78 handle->stream = stream;
79 handle->info.format = SF_FORMAT_WAV;
209 handle->bytesPerFrame = bytesPerFrame;
210 handle->info.samplerate = samplerate;
211 handle->info.channels = channels;
214 handle->info.format |= SF_FORMAT_PCM_U8;
217 handle
367 SNDFILE *handle = (SNDFILE *) malloc(sizeof(SNDFILE)); local
398 sf_close(SNDFILE *handle) argument
419 sf_readf_short(SNDFILE *handle, short *ptr, sf_count_t desiredFrames) argument
468 sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desiredFrames) argument
519 sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desiredFrames) argument
570 sf_writef_short(SNDFILE *handle, const short *ptr, sf_count_t desiredFrames) argument
607 sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desiredFrames) argument
632 sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desiredFrames) argument
[all...]
/system/chre/platform/include/chre/platform/
H A Dplatform_audio.h55 * of a given audio handle has changed. This will only be invoked with true
56 * when the number of clients for the handle is greater than zero or false
59 * @param handle The handle for which audio enabled state is changing.
60 * @param enabled true if an active request is open for this handle, false
63 void setHandleEnabled(uint32_t handle, bool enabled);
66 * Requests an audio data event from the platform for the provided handle. A
87 * @param handle The handle for which an audio event is requested.
93 bool requestAudioDataEvent(uint32_t handle,
[all...]
/system/core/libvndksupport/include/vndksupport/
H A Dlinker.h25 int android_unload_sphal_library(void* handle);
/system/chre/core/
H A Daudio_request_manager.cc35 * The solution is to evict any audio events for a given audio handle that are
57 uint32_t handle,
63 handle, enable, bufferDuration, deliveryInterval, &numSamples);
66 auto *audioRequest = findAudioRequest(handle, nanoapp->getInstanceId(),
70 size_t lastNumRequests = mAudioRequestLists[handle].requests.size();
74 mAudioRequestLists[handle].requests.emplace_back(
77 postAudioSamplingChangeEvent(nanoapp->getInstanceId(), handle,
78 mAudioRequestLists[handle].available);
79 scheduleNextAudioDataEvent(handle);
90 mAudioRequestLists[handle]
56 configureSource(const Nanoapp *nanoapp, uint32_t handle, bool enable, uint64_t bufferDuration, uint64_t deliveryInterval) argument
126 handleAudioAvailability(uint32_t handle, bool available) argument
128 uint32_t handle; member in struct:chre::CallbackState
151 validateConfigureSourceArguments( uint32_t handle, bool enable, uint64_t bufferDuration, uint64_t deliveryInterval, uint32_t *numSamples) argument
181 findAudioRequest( uint32_t handle, uint32_t instanceId, size_t *index) argument
197 findNextAudioRequest( uint32_t handle) argument
215 uint32_t handle = event->handle; local
235 handleAudioAvailabilitySync(uint32_t handle, bool available) argument
246 scheduleNextAudioDataEvent(uint32_t handle) argument
264 postAudioSamplingChangeEvents(uint32_t handle, bool available) argument
271 postAudioSamplingChangeEvent(uint32_t instanceId, uint32_t handle, bool available) argument
[all...]
/system/bt/btif/src/
H A Dbtif_sock_sdp.cc143 "record, handle: 0x%08x, scn: %d, name: %s, with_obex: %d",
163 uint32_t handle = SDP_CreateRecord(); local
164 if (handle == 0) {
183 if (!create_base_record(handle, name, channel, false /* with_obex */))
193 if (!SDP_AddSequence(handle, (uint16_t)ATTR_ID_SERVICE_CLASS_ID_LIST, 1,
198 "%s: service registered successfully, service_name: %s, handle: 0x%08x",
199 __func__, name, handle);
200 return handle;
203 SDP_DeleteRecord(handle);
214 uint32_t handle local
268 uint32_t handle = SDP_CreateRecord(); local
342 int handle = SDP_CreateRecord(); local
409 int handle = 0; local
472 del_rfc_sdp_rec(int handle) argument
[all...]
/system/media/audio_utils/include/audio_utils/
H A Dsndfile.h64 void sf_close(SNDFILE *handle);
70 sf_count_t sf_readf_short(SNDFILE *handle, int16_t *ptr, sf_count_t desired);
71 sf_count_t sf_readf_float(SNDFILE *handle, float *ptr, sf_count_t desired);
72 sf_count_t sf_readf_int(SNDFILE *handle, int *ptr, sf_count_t desired);
78 sf_count_t sf_writef_short(SNDFILE *handle, const int16_t *ptr, sf_count_t desired);
79 sf_count_t sf_writef_float(SNDFILE *handle, const float *ptr, sf_count_t desired);
80 sf_count_t sf_writef_int(SNDFILE *handle, const int *ptr, sf_count_t desired);
/system/core/libcutils/
H A Dnative_handle.cpp34 native_handle_t* handle = (native_handle_t*) storage; local
35 handle->version = sizeof(native_handle_t);
36 handle->numFds = numFds;
37 handle->numInts = numInts;
38 return handle;
57 native_handle_t* native_handle_clone(const native_handle_t* handle) { argument
58 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts);
61 for (int i = 0; i < handle->numFds; i++) {
62 clone->data[i] = dup(handle
[all...]
/system/core/adb/client/
H A Dusb_windows.cpp51 rely on AdbWinApi.dll's handle validation and AdbCloseHandle(endpoint)'s
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
114 int usb_write(usb_handle* handle, const void* data, int len);
116 /// Reads data using the opened usb handle
117 int usb_read(usb_handle* handle, voi
153 register_new_device(usb_handle* handle) argument
327 usb_write(usb_handle* handle, const void* data, int len) argument
383 usb_read(usb_handle* handle, void* data, int len) argument
432 usb_cleanup_handle(usb_handle* handle) argument
450 usb_kick_locked(usb_handle* handle) argument
456 usb_kick(usb_handle* handle) argument
466 usb_close(usb_handle* handle) argument
485 usb_get_max_packet_size(usb_handle* handle) argument
489 recognized_device(usb_handle* handle) argument
535 usb_handle* handle = NULL; local
[all...]
/system/tpm/trunks/
H A Dscoped_key_handle_test.cc50 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 local
[all...]
/system/bt/btcore/src/
H A Dhal_util.cc39 void* handle = dlopen(BLUETOOTH_LIBRARY_NAME, RTLD_NOW); local
40 if (!handle) {
48 itf = (bt_interface_t*)dlsym(handle, sym);
57 << " btinterface=" << itf << " handle=" << handle; local
64 if (handle) dlclose(handle);
/system/chre/platform/shared/
H A Dchre_api_audio.cc30 DLL_EXPORT bool chreAudioGetSource(uint32_t handle, argument
36 .getAudioSource(handle, audioSource);
45 DLL_EXPORT bool chreAudioConfigureSource(uint32_t handle, bool enable, argument
51 .configureSource(nanoapp, handle, enable, bufferDuration,
/system/core/libziparchive/include/ziparchive/
H A Dzip_archive_stream_entry.h33 static ZipArchiveStreamEntry* Create(ZipArchiveHandle handle, const ZipEntry& entry);
34 static ZipArchiveStreamEntry* CreateRaw(ZipArchiveHandle handle, const ZipEntry& entry);
37 ZipArchiveStreamEntry(ZipArchiveHandle handle) : handle_(handle) {} argument
/system/bt/bta/pan/
H A Dbta_pan_ci.cc54 void bta_pan_ci_tx_ready(uint16_t handle) { argument
57 p_buf->layer_specific = handle;
76 void bta_pan_ci_rx_ready(uint16_t handle) { argument
79 p_buf->layer_specific = handle;
91 * disable data flow when it is congested and cannot handle
100 void bta_pan_ci_tx_flow(uint16_t handle, bool enable) { argument
104 p_buf->hdr.layer_specific = handle;
123 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, argument
140 p_buf->layer_specific = handle;
160 void bta_pan_ci_rx_writebuf(uint16_t handle, cons argument
184 bta_pan_ci_readbuf(uint16_t handle, RawAddress& src, RawAddress& dst, uint16_t* p_protocol, bool* p_ext, bool* p_forward) argument
213 bta_pan_ci_set_mfilters(uint16_t handle, uint16_t num_mcast_filters, uint8_t* p_start_array, uint8_t* p_end_array) argument
229 bta_pan_ci_set_pfilters(uint16_t handle, uint16_t num_filters, uint16_t* p_start_array, uint16_t* p_end_array) argument
235 bta_pan_ci_tx_ready(UNUSED_ATTR uint16_t handle) argument
237 bta_pan_ci_rx_ready(UNUSED_ATTR uint16_t handle) argument
239 bta_pan_ci_tx_flow(UNUSED_ATTR uint16_t handle, UNUSED_ATTR bool enable) argument
241 bta_pan_ci_rx_writebuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR const RawAddress& src, UNUSED_ATTR const RawAddress& dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext) argument
247 bta_pan_ci_readbuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR RawAddress& src, UNUSED_ATTR RawAddress& dst, UNUSED_ATTR uint16_t* p_protocol, UNUSED_ATTR bool* p_ext, UNUSED_ATTR bool* p_forward) argument
256 bta_pan_ci_set_pfilters(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint16_t num_filters, UNUSED_ATTR uint16_t* p_start_array, UNUSED_ATTR uint16_t* p_end_array) argument
261 bta_pan_ci_set_mfilters(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint16_t num_mcast_filters, UNUSED_ATTR uint8_t* p_start_array, UNUSED_ATTR uint8_t* p_end_array) argument
[all...]
/system/core/fastboot/
H A Dusb_windows.cpp71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} argument
88 int recognized_device(usb_handle* handle, ifc_match_func callback);
93 /// Cleans up opened usb handle
94 void usb_cleanup_handle(usb_handle* handle);
96 /// Cleans up (but don't close) opened usb handle
97 void usb_kick(usb_handle* handle);
101 // Allocate our handle
184 DBG("usb_write NULL handle\n");
217 DBG("usb_read NULL handle\
226 usb_cleanup_handle(usb_handle* handle) argument
242 usb_kick(usb_handle* handle) argument
263 recognized_device(usb_handle* handle, ifc_match_func callback) argument
315 std::unique_ptr<usb_handle> handle; local
362 std::unique_ptr<usb_handle> handle = find_usb_device(callback); local
[all...]
/system/bt/btif/co/
H A Dbta_pan_co.cc75 void bta_pan_co_open(uint16_t handle, uint8_t app_id, tBTA_PAN_ROLE local_role, argument
79 "handle:%d",
80 app_id, local_role, peer_role, handle);
83 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role);
87 "conn->handle:%d should = handle:%d, local_role:%d, remote_role:%d",
88 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle,
93 conn->handle = handle;
118 bta_pan_co_close(uint16_t handle, uint8_t app_id) argument
154 bta_pan_co_tx_path(uint16_t handle, uint8_t app_id) argument
208 bta_pan_co_rx_path(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id) argument
226 bta_pan_co_tx_write(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, UNUSED_ATTR const RawAddress& src, UNUSED_ATTR const RawAddress& dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR uint8_t* p_data, UNUSED_ATTR uint16_t len, UNUSED_ATTR bool ext, UNUSED_ATTR bool forward) argument
249 bta_pan_co_tx_writebuf(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, UNUSED_ATTR const RawAddress& src, UNUSED_ATTR const RawAddress& dst, UNUSED_ATTR uint16_t protocol, UNUSED_ATTR BT_HDR* p_buf, UNUSED_ATTR bool ext, UNUSED_ATTR bool forward) argument
273 bta_pan_co_rx_flow(UNUSED_ATTR uint16_t handle, UNUSED_ATTR uint8_t app_id, UNUSED_ATTR bool enable) argument
290 bta_pan_co_pfilt_ind(UNUSED_ATTR uint16_t handle, UNUSED_ATTR bool indication, UNUSED_ATTR tBTA_PAN_STATUS result, UNUSED_ATTR uint16_t len, UNUSED_ATTR uint8_t* p_filters) argument
307 bta_pan_co_mfilt_ind(UNUSED_ATTR uint16_t handle, UNUSED_ATTR bool indication, UNUSED_ATTR tBTA_PAN_STATUS result, UNUSED_ATTR uint16_t len, UNUSED_ATTR uint8_t* p_filters) argument
[all...]
/system/chre/core/include/chre/core/
H A Daudio_request_manager.h52 * @param handle The audio source to query for.
54 * handle, if found.
57 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { argument
58 return mPlatformAudio.getAudioSource(handle, audioSource);
66 * @param handle The audio source handle for which this request is directed
76 bool configureSource(const Nanoapp *nanoapp, uint32_t handle, bool enable,
93 * @param handle The handle for which audio data availability has changed.
97 void handleAudioAvailability(uint32_t handle, boo
[all...]
/system/bt/stack/pan/
H A Dpan_main.cc80 * Parameters: handle - handle for the connection
90 void pan_conn_ind_cb(uint16_t handle, const RawAddress& p_bda, argument
101 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID);
107 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID);
115 "%s - handle %d, current role %d, dst uuid 0x%x, src uuid 0x%x, role "
117 __func__, handle, pan_cb.role, local_uuid16, remote_uuid16,
125 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID);
133 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID);
147 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUI
282 pan_connect_state_cb(uint16_t handle, UNUSED_ATTR const RawAddress& rem_bda, tBNEP_RESULT result, bool is_role_change) argument
382 pan_data_ind_cb(uint16_t handle, const RawAddress& src, const RawAddress& dst, uint16_t protocol, uint8_t* p_data, uint16_t len, bool ext) argument
476 pan_data_buf_ind_cb(uint16_t handle, const RawAddress& src, const RawAddress& dst, uint16_t protocol, BT_HDR* p_buf, bool ext) argument
579 pan_tx_data_flow_cb(uint16_t handle, tBNEP_RESULT event) argument
606 pan_proto_filt_ind_cb(uint16_t handle, bool indication, tBNEP_RESULT result, uint16_t num_filters, uint8_t* p_filters) argument
640 pan_mcast_filt_ind_cb(uint16_t handle, bool indication, tBNEP_RESULT result, uint16_t num_filters, uint8_t* p_filters) argument
[all...]
/system/bt/service/common/android/bluetooth/
H A DIBluetoothGattServerCallback.aidl27 int request_id, int offset, boolean is_long, int handle);
30 int request_id, int offset, boolean is_long, int handle);
34 in byte[] value, int handle);
38 in byte[] value, int handle);
/system/bt/stack/include/
H A Davct_api.h38 #define AVCT_BAD_HANDLE 2 /* Bad handle */
104 typedef void(tAVCT_CTRL_CBACK)(uint8_t handle, uint8_t event, uint16_t result,
109 typedef void(tAVCT_MSG_CBACK)(uint8_t handle, uint8_t label, uint8_t cr,
190 extern uint16_t AVCT_RemoveConn(uint8_t handle);
209 extern uint16_t AVCT_CreateBrowse(uint8_t handle, uint8_t role);
224 extern uint16_t AVCT_RemoveBrowse(uint8_t handle);
236 extern uint16_t AVCT_GetBrowseMtu(uint8_t handle);
248 extern uint16_t AVCT_GetPeerMtu(uint8_t handle);
273 extern uint16_t AVCT_MsgReq(uint8_t handle, uint8_t label, uint8_t cr,
/system/core/trusty/storage/tests/
H A Dmain.cpp102 void WriteReadAtOffsetHelper(file_handle_t handle, size_t blk, size_t cnt, bool complete);
104 void WriteZeroChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete );
105 void WritePatternChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, bool complete);
106 void WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete);
108 void ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len,
110 void ReadPattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len);
111 void ReadPatternEOF(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t exp_len);
125 void StorageServiceTest::WriteZeroChunk(file_handle_t handle, storage_off_t off, argument
136 rc = storage_write(handle, off, data_buf, sizeof(data_buf),
141 void StorageServiceTest::WritePatternChunk(file_handle_t handle, storage_off_ argument
157 WritePattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len, bool complete) argument
173 ReadChunk(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t head_len, size_t pattern_len, size_t tail_len) argument
205 ReadPattern(file_handle_t handle, storage_off_t off, size_t data_len, size_t chunk_len) argument
226 ReadPatternEOF(file_handle_t handle, storage_off_t off, size_t chunk_len, size_t exp_len) argument
251 file_handle_t handle; local
296 file_handle_t handle; local
333 file_handle_t handle; local
367 file_handle_t handle; local
395 file_handle_t handle; local
422 file_handle_t handle; local
464 file_handle_t handle; local
590 file_handle_t handle; local
636 file_handle_t handle; local
679 file_handle_t handle; local
746 WriteReadAtOffsetHelper(file_handle_t handle, size_t blk, size_t cnt, bool complete) argument
793 file_handle_t handle; local
821 file_handle_t handle; local
844 file_handle_t handle; local
865 file_handle_t handle; local
897 file_handle_t handle; local
917 file_handle_t handle; local
938 file_handle_t handle; local
958 file_handle_t handle; local
978 file_handle_t handle; local
995 file_handle_t handle; local
1012 file_handle_t handle; local
1029 file_handle_t handle; local
1054 file_handle_t handle; local
1081 file_handle_t handle; local
1124 file_handle_t handle; local
1237 file_handle_t handle; local
1281 file_handle_t handle; local
1327 file_handle_t handle; local
1445 file_handle_t handle; local
1494 file_handle_t handle; local
1549 file_handle_t handle; local
1596 file_handle_t handle; local
1642 file_handle_t handle; local
1666 file_handle_t handle; local
1745 file_handle_t handle; local
1852 file_handle_t handle; local
1944 file_handle_t handle; local
2001 file_handle_t handle; local
2081 file_handle_t handle; local
2330 file_handle_t handle; local
2423 file_handle_t handle; local
2471 file_handle_t handle; local
2528 file_handle_t handle; local
[all...]

Completed in 7567 milliseconds

1234567891011>>