/system/media/audio_utils/ |
D | tinysndfile.c | 75 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/bt/btif/src/ |
D | btif_sock_sdp.cc | 150 uint32_t handle = SDP_CreateRecord(); in add_sdp_by_uuid() local 151 if (handle == 0) { in add_sdp_by_uuid() 170 if (!create_base_record(handle, name, channel, false /* with_obex */)) in add_sdp_by_uuid() 180 if (!SDP_AddSequence(handle, (uint16_t)ATTR_ID_SERVICE_CLASS_ID_LIST, 1, in add_sdp_by_uuid() 186 __func__, name, handle); in add_sdp_by_uuid() 190 tBTA_CUSTOM_UUID curr = {uuid, handle}; in add_sdp_by_uuid() 194 return handle; in add_sdp_by_uuid() 197 SDP_DeleteRecord(handle); in add_sdp_by_uuid() 208 uint32_t handle = SDP_CreateRecord(); in add_pbap_sdp() local 209 if (handle == 0) { in add_pbap_sdp() [all …]
|
/system/chre/core/ |
D | audio_request_manager.cc | 58 uint32_t handle, bool enable, in configureSource() argument 62 return validateConfigureSourceArguments(handle, enable, bufferDuration, in configureSource() 64 doConfigureSource(nanoapp->getInstanceId(), handle, enable, numSamples, in configureSource() 70 uint32_t handle = audioDataEvent->handle; in handleAudioDataEvent() local 71 if (handle >= mAudioRequestLists.size()) { in handleAudioDataEvent() 72 LOGE("Received audio event for unknown handle %" PRIu32, handle); in handleAudioDataEvent() 74 mAudioRequestLists[handle].lastEventTimestamp = in handleAudioDataEvent() 93 void AudioRequestManager::handleAudioAvailability(uint32_t handle, in handleAudioAvailability() argument 105 NestedDataPtr<uint32_t>(handle), callback, in handleAudioAvailability() 112 uint32_t handle = static_cast<uint32_t>(i); in logStateToBuffer() local [all …]
|
/system/bt/vendor_libs/test_vendor_lib/model/controller/ |
D | acl_connection_handler.cc | 30 bool AclConnectionHandler::HasHandle(uint16_t handle) const { in HasHandle() 31 return acl_connections_.count(handle) != 0; in HasHandle() 110 uint16_t handle = GetUnusedHandle(); in CreateConnection() local 112 handle, in CreateConnection() 117 return handle; in CreateConnection() 125 uint16_t handle = GetUnusedHandle(); in CreateLeConnection() local 127 handle, AclConnection{addr, own_addr, Phy::Type::LOW_ENERGY}); in CreateLeConnection() 128 return handle; in CreateLeConnection() 133 bool AclConnectionHandler::Disconnect(uint16_t handle) { in Disconnect() argument 134 return acl_connections_.erase(handle) > 0; in Disconnect() [all …]
|
/system/iorap/src/perfetto/ |
D | perfetto_consumer.cc | 109 HandleDescription(Handle handle): handle_(handle) {} in HandleDescription() 187 Handle handle = raw_->Create(config_proto, config_len, callback, callback_arg); in Create() local 193 CHECK_EQ(last_created_, handle) << "perfetto handle had unexpected behavior."; in Create() 198 HandleDescription handle_desc{handle}; in Create() 199 handle_desc.handle_ = handle; in Create() 205 bool inserted = states_.insert({handle, handle_desc}).second; in Create() 206 CHECK(inserted) << "perfetto handle was re-used: " << handle; in Create() 208 return handle; in Create() 211 void StartTracing(Handle handle) { in StartTracing() 212 LOG(DEBUG) << "PerfettoConsumer::StartTracing(handle=" << handle << ")"; in StartTracing() [all …]
|
/system/core/trusty/storage/tests/ |
D | main.cpp | 102 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/bt/hci/include/ |
D | hci_internals.h | 48 #define HCI_ISO_SET_CONTINUATION_FLAG(handle) \ argument 49 (((handle)&0x4FFF) | (0x0001 << 12)) 50 #define HCI_ISO_SET_COMPLETE_FLAG(handle) (((handle)&0x4FFF) | (0x0002 << 12)) argument 51 #define HCI_ISO_SET_END_FRAG_FLAG(handle) (((handle)&0x4FFF) | (0x0003 << 12)) argument 52 #define HCI_ISO_SET_TIMESTAMP_FLAG(handle) (((handle)&0x3FFF) | (0x0001 << 14)) argument 54 #define HCI_ISO_GET_TS_FLAG(handle) (((handle) >> 14) & 0x0001) argument
|
/system/bt/stack/pan/ |
D | pan_main.cc | 90 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() 193 tPAN_CONN* pcb = pan_get_pcb_by_handle(handle); in pan_conn_ind_cb() 202 BNEP_ConnectResp(handle, BNEP_CONN_FAILED_DST_UUID); in pan_conn_ind_cb() [all …]
|
/system/vold/bench/ |
D | benchgen.py | 69 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/bt/bta/jv/ |
D | bta_jv_api.cc | 72 bta_jv_cb.pm_cb[i].handle = BTA_JV_PM_HANDLE_CLEAR; in BTA_JvEnable() 204 tBTA_JV_STATUS BTA_JvDeleteRecord(uint32_t handle) { in BTA_JvDeleteRecord() argument 207 do_in_main_thread(FROM_HERE, Bind(&bta_jv_delete_record, handle)); in BTA_JvDeleteRecord() 249 tBTA_JV_STATUS BTA_JvL2capClose(uint32_t handle) { in BTA_JvL2capClose() argument 252 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capClose() 256 FROM_HERE, Bind(&bta_jv_l2cap_close, handle, &bta_jv_cb.l2c_cb[handle])); in BTA_JvL2capClose() 321 tBTA_JV_STATUS BTA_JvL2capRead(uint32_t handle, uint32_t req_id, in BTA_JvL2capRead() argument 325 if (handle >= BTA_JV_MAX_L2C_CONN || !bta_jv_cb.l2c_cb[handle].p_cback) in BTA_JvL2capRead() 330 evt_data.handle = handle; in BTA_JvL2capRead() 336 GAP_ConnReadData((uint16_t)handle, p_data, len, &evt_data.len)) { in BTA_JvL2capRead() [all …]
|
/system/core/fastboot/ |
D | usb_windows.cpp | 71 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 …]
|
D | usb_osx.cpp | 71 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/pan/ |
D | bta_pan_ci.cc | 47 void bta_pan_ci_tx_ready(uint16_t handle) { in bta_pan_ci_tx_ready() argument 50 p_buf->layer_specific = handle; in bta_pan_ci_tx_ready() 69 void bta_pan_ci_rx_ready(uint16_t handle) { in bta_pan_ci_rx_ready() argument 72 p_buf->layer_specific = handle; in bta_pan_ci_rx_ready() 93 void bta_pan_ci_tx_flow(uint16_t handle, bool enable) { in bta_pan_ci_tx_flow() argument 97 p_buf->hdr.layer_specific = handle; in bta_pan_ci_tx_flow() 116 void bta_pan_ci_rx_write(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_write() argument 133 p_buf->layer_specific = handle; in bta_pan_ci_rx_write() 153 void bta_pan_ci_rx_writebuf(uint16_t handle, const RawAddress& dst, in bta_pan_ci_rx_writebuf() argument 162 p_buf->layer_specific = handle; in bta_pan_ci_rx_writebuf() [all …]
|
/system/libziparchive/ |
D | zip_archive_test.cc | 57 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 …]
|
D | zip_writer_test.cc | 27 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 …]
|
/system/bt/bta/gatt/ |
D | database_builder.cc | 37 void DatabaseBuilder::AddService(uint16_t handle, uint16_t end_handle, in AddService() argument 41 database.services.back().end_handle < handle) { in AddService() 43 .handle = handle, in AddService() 53 vec.begin(), vec.end(), handle, in AddService() 54 [](Service s, uint16_t handle) { return s.end_handle < handle; }); in AddService() argument 58 .handle = handle, in AddService() 65 services_to_discover.insert({handle, end_handle}); in AddService() 68 void DatabaseBuilder::AddIncludedService(uint16_t handle, const Uuid& uuid, in AddIncludedService() argument 71 Service* service = FindService(database.services, handle); in AddIncludedService() 84 .handle = handle, in AddIncludedService() [all …]
|
D | database.cc | 41 bool HandleInRange(const Service& svc, uint16_t handle) { in HandleInRange() argument 42 return handle >= svc.handle && handle <= svc.end_handle; in HandleInRange() 51 Service* FindService(std::list<Service>& services, uint16_t handle) { in FindService() argument 53 if (handle >= service.handle && handle <= service.end_handle) in FindService() 64 tmp << "Service: handle=" << loghex(service.handle) in ToString() 69 tmp << "\t Included service: handle=" << loghex(is.handle) in ToString() 82 tmp << "\t\t Descriptor: handle=" << loghex(d.handle) in ToString() 97 nv_attr.push_back({service.handle, in Serialize() 105 nv_attr.push_back({p_isvc.handle, in Serialize() 107 {.included_service = {.handle = p_isvc.start_handle, in Serialize() [all …]
|
/system/core/libcutils/ |
D | native_handle.cpp | 31 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/extras/libfec/test/ |
D | fec_unittest.cpp | 133 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/chre/chpp/ |
D | app.c | 61 uint8_t handle, 68 struct ChppAppState *appContext, uint8_t handle); 70 struct ChppAppState *appContext, uint8_t handle); 72 uint8_t handle); 74 uint8_t handle); 76 uint8_t handle, 104 switch (rxHeader->handle) { in chppProcessPredefinedClientRequest() 127 rxHeader->handle, rxHeader->command, rxHeader->transaction); in chppProcessPredefinedClientRequest() 149 switch (rxHeader->handle) { in chppProcessPredefinedServiceResponse() 179 rxHeader->handle, rxHeader->command, rxHeader->transaction, len); in chppProcessPredefinedServiceResponse() [all …]
|
/system/bt/bta/ag/ |
D | bta_ag_api.cc | 111 void BTA_AgDeregister(uint16_t handle) { in BTA_AgDeregister() argument 113 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgDeregister() 130 void BTA_AgOpen(uint16_t handle, const RawAddress& bd_addr) { in BTA_AgOpen() argument 133 do_in_main_thread(FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgOpen() 148 void BTA_AgClose(uint16_t handle) { in BTA_AgClose() argument 150 base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgClose() 165 void BTA_AgAudioOpen(uint16_t handle) { in BTA_AgAudioOpen() argument 167 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioOpen() 182 void BTA_AgAudioClose(uint16_t handle) { in BTA_AgAudioClose() argument 184 FROM_HERE, base::Bind(&bta_ag_sm_execute_by_handle, handle, in BTA_AgAudioClose() [all …]
|
/system/bt/stack/btu/ |
D | btu_hcif.cc | 58 bool l2c_link_hci_disc_comp(uint16_t handle, 63 void acl_disconnect_from_handle(uint16_t handle, 108 uint16_t handle = bluetooth::common::kUnknownConnectionHandle; in btu_hcif_log_event_metrics() local 123 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 130 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 135 STREAM_TO_UINT16(handle, p_event); in btu_hcif_log_event_metrics() 136 handle = HCID_GET_HANDLE(handle); in btu_hcif_log_event_metrics() 137 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() 143 STREAM_TO_UINT16(handle, p_event); in btu_hcif_log_event_metrics() 145 log_classic_pairing_event(bda, handle, cmd, evt_code, status, reason, in btu_hcif_log_event_metrics() [all …]
|
/system/bt/test/mock/ |
D | mock_hcic_hcicmds.cc | 43 uint16_t handle{0}; member 65 void btsnd_hcic_add_SCO_conn(uint16_t handle, uint16_t packet_types) { in btsnd_hcic_add_SCO_conn() argument 68 void btsnd_hcic_auth_request(uint16_t handle) { in btsnd_hcic_auth_request() argument 71 void btsnd_hcic_change_conn_type(uint16_t handle, uint16_t packet_types) { in btsnd_hcic_change_conn_type() argument 72 mock::btsnd_hcic_change_conn_type.handle = handle; in btsnd_hcic_change_conn_type() 91 static void btsnd_hcic_disconnect(uint16_t handle, uint8_t reason) { in btsnd_hcic_disconnect() argument 99 void btsnd_hcic_enhanced_flush(uint16_t handle, uint8_t packet_type) { in btsnd_hcic_enhanced_flush() argument 106 void btsnd_hcic_exit_park_mode(uint16_t handle) { in btsnd_hcic_exit_park_mode() argument 110 void btsnd_hcic_exit_sniff_mode(uint16_t handle) { in btsnd_hcic_exit_sniff_mode() argument 113 void btsnd_hcic_get_link_quality(uint16_t handle) { in btsnd_hcic_get_link_quality() argument [all …]
|
/system/chre/core/include/chre/core/ |
D | audio_request_manager.h | 54 bool getAudioSource(uint32_t handle, struct chreAudioSource *audioSource) { in getAudioSource() argument 55 return mPlatformAudio.getAudioSource(handle, audioSource); in getAudioSource() 73 bool configureSource(const Nanoapp *nanoapp, uint32_t handle, bool enable, 94 void handleAudioAvailability(uint32_t handle, bool available); 227 bool validateConfigureSourceArguments(uint32_t handle, bool enable, 243 bool doConfigureSource(uint32_t instanceId, uint32_t handle, bool enable, 253 void updatePlatformHandleEnabled(uint32_t handle, size_t lastNumRequests); 265 bool createAudioRequest(uint32_t handle, uint32_t instanceId, 282 AudioRequest *findAudioRequestByInstanceId(uint32_t handle, 298 AudioRequest *findAudioRequestByConfiguration(uint32_t handle, [all …]
|
/system/bt/bta/include/ |
D | bta_jv_api.h | 187 uint32_t handle; /* The connection handle */ member 195 uint32_t handle; /* The connection handle */ member 206 uint32_t handle; /* The connection handle */ member 213 uint32_t handle; /* The connection handle */ member 220 uint32_t handle; /* The connection handle */ member 227 uint32_t handle; /* The connection handle */ member 234 uint32_t handle; /* The connection handle */ member 244 uint32_t handle; /* The connection handle */ member 253 uint32_t handle; /* The connection handle */ member 259 uint32_t handle; /* The connection handle */ member [all …]
|