Home
last modified time | relevance | path

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

12345678910>>...19

/system/media/audio_utils/
Dtinysndfile.c75 SNDFILE *handle = (SNDFILE *) malloc(sizeof(SNDFILE)); in sf_open_read() local
76 handle->mode = SFM_READ; in sf_open_read()
77 handle->temp = NULL; in sf_open_read()
78 handle->stream = stream; in sf_open_read()
79 handle->info.format = SF_FORMAT_WAV; in sf_open_read()
209 handle->bytesPerFrame = bytesPerFrame; in sf_open_read()
210 handle->info.samplerate = samplerate; in sf_open_read()
211 handle->info.channels = channels; in sf_open_read()
214 handle->info.format |= SF_FORMAT_PCM_U8; in sf_open_read()
217 handle->info.format |= SF_FORMAT_PCM_16; in sf_open_read()
[all …]
/system/core/adb/client/
Dusb_windows.cpp93 int register_new_device(usb_handle* handle);
96 int recognized_device(usb_handle* handle);
116 int usb_write(usb_handle* handle, const void* data, int len);
119 int usb_read(usb_handle* handle, void* data, int len);
122 void usb_cleanup_handle(usb_handle* handle);
125 void usb_kick(usb_handle* handle);
128 int usb_close(usb_handle* handle);
155 int register_new_device(usb_handle* handle) { in register_new_device() argument
156 if (nullptr == handle) return 0; in register_new_device()
161 if (known_device_locked(handle->interface_name)) { in register_new_device()
[all …]
Dusb_osx.cpp91 static void usb_kick_locked(usb_handle* handle);
104 static void AddDevice(std::unique_ptr<usb_handle> handle) { in AddDevice() argument
105 handle->mark = true; in AddDevice()
107 g_usb_handles.push_back(std::move(handle)); in AddDevice()
300 std::unique_ptr<usb_handle> handle = in AndroidInterfaceAdded() local
302 if (handle == nullptr) { in AndroidInterfaceAdded()
307 handle->devpath = devpath; in AndroidInterfaceAdded()
308 usb_handle* handle_p = handle.get(); in AndroidInterfaceAdded()
310 LOG(INFO) << "reported max packet size for " << serial << " is " << handle->max_packet_size; in AndroidInterfaceAdded()
311 AddDevice(std::move(handle)); in AndroidInterfaceAdded()
[all …]
/system/bt/btif/src/
Dbtif_sock_sdp.cc163 uint32_t handle = SDP_CreateRecord(); in add_sdp_by_uuid() local
164 if (handle == 0) { in add_sdp_by_uuid()
183 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid()
193 if (!SDP_AddSequence(handle, (uint16_t)ATTR_ID_SERVICE_CLASS_ID_LIST, 1, in add_sdp_by_uuid()
199 __func__, name, handle); in add_sdp_by_uuid()
200 return handle; in add_sdp_by_uuid()
203 SDP_DeleteRecord(handle); in add_sdp_by_uuid()
214 uint32_t handle = SDP_CreateRecord(); in add_pbap_sdp() local
215 if (handle == 0) { in add_pbap_sdp()
227 if (!create_base_record(handle, name, channel, true /* with_obex */)) in add_pbap_sdp()
[all …]
/system/bt/vendor_libs/test_vendor_lib/model/controller/
Dacl_connection_handler.cc31 bool AclConnectionHandler::HasHandle(uint16_t handle) const { in HasHandle()
32 if (acl_connections_.count(handle) == 0) { in HasHandle()
113 uint16_t handle = GetUnusedHandle(); in CreateConnection() local
115 handle, in CreateConnection()
120 return handle; in CreateConnection()
128 uint16_t handle = GetUnusedHandle(); in CreateLeConnection() local
130 handle, AclConnection{addr, own_addr, Phy::Type::LOW_ENERGY}); in CreateLeConnection()
131 return handle; in CreateLeConnection()
136 bool AclConnectionHandler::Disconnect(uint16_t handle) { in Disconnect() argument
137 return acl_connections_.erase(handle) > 0; in Disconnect()
[all …]
/system/chre/core/
Daudio_request_manager.cc56 uint32_t handle, in configureSource() argument
61 return validateConfigureSourceArguments(handle, enable, bufferDuration, in configureSource()
63 && doConfigureSource(nanoapp->getInstanceId(), handle, enable, numSamples, in configureSource()
69 uint32_t handle = audioDataEvent->handle; in handleAudioDataEvent() local
70 if (handle >= mAudioRequestLists.size()) { in handleAudioDataEvent()
71 LOGE("Received audio event for unknown handle %" PRIu32, handle); in handleAudioDataEvent()
73 mAudioRequestLists[handle].lastEventTimestamp in handleAudioDataEvent()
91 void AudioRequestManager::handleAudioAvailability(uint32_t handle, bool available) { in handleAudioAvailability() argument
93 uint32_t handle; in handleAudioAvailability() member
101 cbState->handle = handle; in handleAudioAvailability()
[all …]
/system/bt/stack/pan/
Dpan_main.cc90 void pan_conn_ind_cb(uint16_t handle, const RawAddress& p_bda, in pan_conn_ind_cb() argument
101 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
107 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
117 __func__, handle, pan_cb.role, local_uuid16, remote_uuid16, in pan_conn_ind_cb()
125 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
133 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
147 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
179 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_SRC_UUID); in pan_conn_ind_cb()
195 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb()
204 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb()
[all …]
/system/core/trusty/storage/tests/
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…
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, in WriteZeroChunk() argument
136 rc = storage_write(handle, off, data_buf, sizeof(data_buf), in WriteZeroChunk()
141 void StorageServiceTest::WritePatternChunk(file_handle_t handle, storage_off_t off, in WritePatternChunk() argument
[all …]
/system/vold/bench/
Dbenchgen.py69 handle = "t%sf%s" % (e.thread, fd)
70 return (fd, find_file(path), handle)
188 fd, f, handle = extract_file(e, e.ret) variable
190 active.add(handle)
191 if handle not in defined:
193 defined.add(handle)
199 % (handle, f.ident, e.args[2], create_mode)
202 fd, f, handle = extract_file(e, e.args[0]) variable
203 if handle in active:
204 active.remove(handle)
[all …]
/system/core/fastboot/
Dusb_windows.cpp71 WindowsUsbTransport(std::unique_ptr<usb_handle> handle) : handle_(std::move(handle)) {} in WindowsUsbTransport() argument
89 int recognized_device(usb_handle* handle, ifc_match_func callback);
95 void usb_cleanup_handle(usb_handle* handle);
98 void usb_kick(usb_handle* handle);
231 void usb_cleanup_handle(usb_handle* handle) { in usb_cleanup_handle() argument
232 if (NULL != handle) { in usb_cleanup_handle()
233 if (NULL != handle->adb_write_pipe) in usb_cleanup_handle()
234 AdbCloseHandle(handle->adb_write_pipe); in usb_cleanup_handle()
235 if (NULL != handle->adb_read_pipe) in usb_cleanup_handle()
236 AdbCloseHandle(handle->adb_read_pipe); in usb_cleanup_handle()
[all …]
Dusb_osx.cpp71 OsxUsbTransport(std::unique_ptr<usb_handle> handle, uint32_t ms_timeout = 0) in OsxUsbTransport() argument
72 : handle_(std::move(handle)), ms_timeout_(ms_timeout) {} in OsxUsbTransport()
89 static int try_interfaces(IOUSBDeviceInterface500** dev, usb_handle* handle) { in try_interfaces() argument
181 if ((*interface)->GetInterfaceClass(interface, &handle->info.ifc_class) != 0 || in try_interfaces()
182 (*interface)->GetInterfaceSubClass(interface, &handle->info.ifc_subclass) != 0 || in try_interfaces()
183 (*interface)->GetInterfaceProtocol(interface, &handle->info.ifc_protocol) != 0) in try_interfaces()
189 handle->info.has_bulk_in = 0; in try_interfaces()
190 handle->info.has_bulk_out = 0; in try_interfaces()
211 handle->info.has_bulk_in = 1; in try_interfaces()
212 handle->bulkIn = endpoint; in try_interfaces()
[all …]
/system/bt/bta/gatt/
Ddatabase.cc38 bool HandleInRange(const Service& svc, uint16_t handle) { in HandleInRange() argument
39 return handle >= svc.handle && handle <= svc.end_handle; in HandleInRange()
43 Service* FindService(std::list<Service>& services, uint16_t handle) { in FindService() argument
45 if (handle >= service.handle && handle <= service.end_handle) in FindService()
56 tmp << "Service: handle=" << loghex(service.handle) in ToString()
61 tmp << "\t Included service: handle=" << loghex(is.handle) in ToString()
74 tmp << "\t\t Descriptor: handle=" << loghex(d.handle) in ToString()
89 nv_attr.push_back({service.handle, in Serialize()
97 nv_attr.push_back({p_isvc.handle, in Serialize()
99 {.included_service = {.handle = p_isvc.start_handle, in Serialize()
[all …]
Ddatabase_builder.cc30 void DatabaseBuilder::AddService(uint16_t handle, uint16_t end_handle, in AddService() argument
34 database.services.back().end_handle < handle) { in AddService()
36 .handle = handle, in AddService()
46 vec.begin(), vec.end(), handle, in AddService()
47 [](Service s, uint16_t handle) { return s.end_handle < handle; }); in AddService() argument
51 .handle = handle, in AddService()
58 services_to_discover.insert({handle, end_handle}); in AddService()
61 void DatabaseBuilder::AddIncludedService(uint16_t handle, const Uuid& uuid, in AddIncludedService() argument
64 Service* service = FindService(database.services, handle); in AddIncludedService()
77 .handle = handle, in AddIncludedService()
[all …]
/system/bt/bta/pan/
Dbta_pan_ci.cc54 void bta_pan_ci_tx_ready(uint16_t handle) { in bta_pan_ci_tx_ready() argument
57 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready()
76 void bta_pan_ci_rx_ready(uint16_t handle) { in bta_pan_ci_rx_ready() argument
79 p_buf->layer_specific = handle; in bta_pan_ci_rx_ready()
100 void bta_pan_ci_tx_flow(uint16_t handle, bool enable) { in bta_pan_ci_tx_flow() argument
104 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow()
123 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_write() argument
140 p_buf->layer_specific = handle; in bta_pan_ci_rx_write()
160 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_writebuf() argument
169 p_buf->layer_specific = handle; in bta_pan_ci_rx_writebuf()
[all …]
/system/bt/bta/jv/
Dbta_jv_api.cc73 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR; in BTA_JvEnable()
224 tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t handle) { in BTA_JvDeleteRecord() argument
227 do_in_main_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle)); in BTA_JvDeleteRecord()
290 tBTA_JV_STATUS BTA_JvL2capClose(uint32_t handle) { in BTA_JvL2capClose() argument
293 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capClose()
297 FROM_HERE, Bind(&bta_jv_l2cap_close, handle, &bta_jv_cb.l2c_cb[handle])); in BTA_JvL2capClose()
312 tBTA_JV_STATUS BTA_JvL2capCloseLE(uint32_t handle) { in BTA_JvL2capCloseLE() argument
315 do_in_main_thread(FROM_HERE, Bind(&bta_jv_l2cap_close_fixed, handle)); in BTA_JvL2capCloseLE()
421 tBTA_JV_STATUS BTA_JvL2capRead(uint32_t handle, uint32_t req_id, in BTA_JvL2capRead() argument
425 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capRead()
[all …]
/system/libziparchive/
Dzip_writer_test.cc27 ZipArchiveHandle handle,
61 ZipArchiveHandle handle; in TEST_F() local
62 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); in TEST_F()
65 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F()
70 ASSERT_TRUE(AssertFileEntryContentsEq(expected, handle, &data)); in TEST_F()
72 CloseArchive(handle); in TEST_F()
93 ZipArchiveHandle handle; in TEST_F() local
94 ASSERT_EQ(0, OpenArchiveFd(fd_, "temp", &handle, false)); in TEST_F()
98 ASSERT_EQ(0, FindEntry(handle, "file.txt", &data)); in TEST_F()
102 ASSERT_TRUE(AssertFileEntryContentsEq("he", handle, &data)); in TEST_F()
[all …]
Dzip_archive_test.cc57 static int32_t OpenArchiveWrapper(const std::string& name, ZipArchiveHandle* handle) { in OpenArchiveWrapper() argument
59 return OpenArchive(abs_path.c_str(), handle); in OpenArchiveWrapper()
133 ZipArchiveHandle handle; in TEST() local
134 ASSERT_EQ(0, OpenArchiveWrapper(kValidZip, &handle)); in TEST()
135 CloseArchive(handle); in TEST()
137 ASSERT_EQ(kInvalidEntryName, OpenArchiveWrapper("bad_filename.zip", &handle)); in TEST()
138 CloseArchive(handle); in TEST()
142 ZipArchiveHandle handle; in TEST() local
143 ASSERT_EQ(kInvalidOffset, OpenArchiveWrapper("crash.apk", &handle)); in TEST()
144 CloseArchive(handle); in TEST()
[all …]
/system/core/libcutils/
Dnative_handle.cpp31 native_handle_t* handle = (native_handle_t*) storage; in native_handle_init() local
32 handle->version = sizeof(native_handle_t); in native_handle_init()
33 handle->numFds = numFds; in native_handle_init()
34 handle->numInts = numInts; in native_handle_init()
35 return handle; in native_handle_init()
55 native_handle_t* native_handle_clone(const native_handle_t* handle) { in native_handle_clone() argument
56 native_handle_t* clone = native_handle_create(handle->numFds, handle->numInts); in native_handle_clone()
59 for (int i = 0; i < handle->numFds; i++) { in native_handle_clone()
60 clone->data[i] = dup(handle->data[i]); in native_handle_clone()
69 memcpy(&clone->data[handle->numFds], &handle->data[handle->numFds], in native_handle_clone()
[all …]
/system/bt/btif/co/
Dbta_pan_co.cc75 void bta_pan_co_open(uint16_t handle, uint8_t app_id, tBTA_PAN_ROLE local_role, in bta_pan_co_open() argument
80 app_id, local_role, peer_role, handle); in bta_pan_co_open()
83 conn = btpan_new_conn(handle, peer_addr, local_role, peer_role); in bta_pan_co_open()
88 btpan_cb.tap_fd, btpan_cb.open_count, conn->handle, handle, in bta_pan_co_open()
93 conn->handle = handle; in bta_pan_co_open()
102 bta_pan_ci_rx_ready(handle); in bta_pan_co_open()
118 void bta_pan_co_close(uint16_t handle, uint8_t app_id) { in bta_pan_co_close() argument
119 BTIF_TRACE_API("bta_pan_co_close:app_id:%d, handle:%d", app_id, handle); in bta_pan_co_close()
120 btpan_conn_t* conn = btpan_find_conn_handle(handle); in bta_pan_co_close()
154 void bta_pan_co_tx_path(uint16_t handle, uint8_t app_id) { in bta_pan_co_tx_path() argument
[all …]
/system/extras/libfec/test/
Dfec_unittest.cpp133 struct fec_handle *handle = nullptr; in TEST_F() local
134 ASSERT_EQ(0, fec_open(&handle, verity_image.path, O_RDONLY, FEC_FS_EXT4, 2)); in TEST_F()
135 std::unique_ptr<fec_handle> guard(handle); in TEST_F()
137 ASSERT_EQ(image_.size(), handle->size); in TEST_F()
138 ASSERT_EQ(1024 * 1024, handle->data_size); // filesystem size in TEST_F()
141 handle->verity.metadata_start); in TEST_F()
142 ASSERT_EQ(verity_header_.length, handle->verity.header.length); in TEST_F()
143 ASSERT_EQ(verity_table_, handle->verity.table); in TEST_F()
146 ASSERT_EQ(salt_, handle->hashtree().salt); in TEST_F()
147 ASSERT_EQ(1024 * 1024, handle->hashtree().hash_start); in TEST_F()
[all …]
/system/bt/bta/ag/
Dbta_ag_api.cc112 void BTA_AgDeregister(uint16_t handle) { in BTA_AgDeregister() argument
114 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgDeregister()
131 void BTA_AgOpen(uint16_t handle, const RawAddress& bd_addr, tBTA_SEC sec_mask) { in BTA_AgOpen() argument
135 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgOpen()
150 void BTA_AgClose(uint16_t handle) { in BTA_AgClose() argument
152 base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgClose()
167 void BTA_AgAudioOpen(uint16_t handle) { in BTA_AgAudioOpen() argument
169 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioOpen()
184 void BTA_AgAudioClose(uint16_t handle) { in BTA_AgAudioClose() argument
186 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioClose()
[all …]
/system/bt/bta/include/
Dbta_jv_api.h189 uint32_t handle; /* The connection handle */ member
197 uint32_t handle; /* The connection handle */ member
208 uint32_t handle; /* The connection handle */ member
215 uint32_t handle; /* The connection handle */ member
222 uint32_t handle; /* The connection handle */ member
229 uint32_t handle; /* The connection handle */ member
236 uint32_t handle; /* The connection handle */ member
246 uint32_t handle; /* The connection handle */ member
265 uint32_t handle; /* The connection handle */ member
271 uint32_t handle; /* The connection handle */ member
[all …]
/system/memory/libion/
Dion.c89 ion_user_handle_t* handle) { in ion_alloc() argument
92 if ((handle == NULL) || (!ion_is_legacy(fd))) return -EINVAL; in ion_alloc()
101 *handle = data.handle; in ion_alloc()
106 int ion_free(int fd, ion_user_handle_t handle) { in ion_free() argument
108 .handle = handle, in ion_free()
113 int ion_map(int fd, ion_user_handle_t handle, size_t length, int prot, int flags, off_t offset, in ion_map() argument
119 .handle = handle, in ion_map()
141 int ion_share(int fd, ion_user_handle_t handle, int* share_fd) { in ion_share() argument
144 .handle = handle, in ion_share()
162 ion_user_handle_t handle; in ion_alloc_fd() local
[all …]
/system/bt/stack/btu/
Dbtu_hcif.cc149 uint16_t handle = bluetooth::common::kUnknownConnectionHandle; in btu_hcif_log_event_metrics() local
164 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
170 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
174 STREAM_TO_UINT16(handle, p_event); in btu_hcif_log_event_metrics()
175 handle = HCID_GET_HANDLE(handle); in btu_hcif_log_event_metrics()
176 bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, value); in btu_hcif_log_event_metrics()
181 STREAM_TO_UINT16(handle, p_event); in btu_hcif_log_event_metrics()
183 …bluetooth::common::LogClassicPairingEvent(bda, handle, cmd, evt_code, status, reason, encryption_e… in btu_hcif_log_event_metrics()
189 STREAM_TO_UINT16(handle, p_event); in btu_hcif_log_event_metrics()
192 handle = HCID_GET_HANDLE(handle); in btu_hcif_log_event_metrics()
[all …]
/system/bt/stack/avrc/
Davrc_api.cc86 static void avrc_ctrl_cback(uint8_t handle, uint8_t event, uint16_t result, in avrc_ctrl_cback() argument
90 if (event <= AVRC_MAX_RCV_CTRL_EVT && avrc_cb.ccb[handle].ctrl_cback) { in avrc_ctrl_cback()
96 avrc_cb.ccb[handle].ctrl_cback.Run(handle, avrc_event, result, peer_addr); in avrc_ctrl_cback()
101 avrc_flush_cmd_q(handle); in avrc_ctrl_cback()
102 alarm_free(avrc_cb.ccb_int[handle].tle); in avrc_ctrl_cback()
103 avrc_cb.ccb_int[handle].tle = NULL; in avrc_ctrl_cback()
116 void avrc_flush_cmd_q(uint8_t handle) { in avrc_flush_cmd_q() argument
117 AVRC_TRACE_DEBUG("AVRC: Flushing command queue for handle=0x%02x", handle); in avrc_flush_cmd_q()
118 avrc_cb.ccb_int[handle].flags &= ~AVRC_CB_FLAGS_RSP_PENDING; in avrc_flush_cmd_q()
120 alarm_cancel(avrc_cb.ccb_int[handle].tle); in avrc_flush_cmd_q()
[all …]

12345678910>>...19