Home
last modified time | relevance | path

Searched refs:writer (Results 1 – 25 of 61) sorted by relevance

123

/haiku/src/add-ons/kernel/drivers/input/usb_hid/
H A DQuirkyDevices.cpp36 sixaxis_build_descriptor(HIDWriter &writer) in sixaxis_build_descriptor() argument
38 writer.BeginCollection(COLLECTION_APPLICATION, in sixaxis_build_descriptor()
46 writer.SetReportID(1); in sixaxis_build_descriptor()
49 writer.DefineInputPadding(1, 8); in sixaxis_build_descriptor()
52 writer.DefineInputData(19, 1, converter.main_data, 0, 1, in sixaxis_build_descriptor()
56 writer.DefineInputPadding(13, 1); in sixaxis_build_descriptor()
59 writer.DefineInputData(1, 8, converter.main_data, 0, 255, in sixaxis_build_descriptor()
61 writer.DefineInputData(1, 8, converter.main_data, 0, 255, in sixaxis_build_descriptor()
65 writer.DefineInputData(1, 8, converter.main_data, 0, 255, in sixaxis_build_descriptor()
67 writer.DefineInputData(1, 8, converter.main_data, 0, 255, in sixaxis_build_descriptor()
[all …]
H A DQuirkyDevices.h14 typedef status_t (*quirky_build_descriptor)(HIDWriter &writer);
/haiku/src/tests/kits/shared/
H A DJsonTextWriterTest.cpp39 BJsonTextWriter writer(outputData); in TestArrayA() local
41 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayStart()); in TestArrayA()
42 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("1234")); in TestArrayA()
43 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteInteger(4567)); in TestArrayA()
44 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayStart()); in TestArrayA()
45 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("A")); in TestArrayA()
46 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("b")); in TestArrayA()
47 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteString("C\xc3\xa9zanne")); in TestArrayA()
48 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayEnd()); in TestArrayA()
49 CPPUNIT_ASSERT_EQUAL(B_OK, writer.WriteArrayEnd()); in TestArrayA()
[all …]
/haiku/src/kits/shared/
H A DJsonMessageWriter.cpp21 BJsonMessageWriter* writer,
25 BJsonMessageWriter* writer,
67 BJsonMessageWriter* writer,
70 BJsonMessageWriter* writer,
92 BJsonMessageWriter* writer,
95 BJsonMessageWriter* writer,
122 BJsonMessageWriter* writer, in BStackedMessageEventListener() argument
126 fWriter = writer; in BStackedMessageEventListener()
134 BJsonMessageWriter* writer, in BStackedMessageEventListener() argument
138 fWriter = writer; in BStackedMessageEventListener()
[all …]
H A DJsonTextWriter.cpp81 BJsonTextWriter* writer,
133 BJsonTextWriter* writer,
148 BJsonTextWriter* writer,
167 BJsonTextWriter* writer, in BJsonTextWriterStackedEventListener() argument
170 fWriter = writer; in BJsonTextWriterStackedEventListener()
388 BJsonTextWriter* writer, in BJsonTextWriterArrayStackedEventListener() argument
391 BJsonTextWriterStackedEventListener(writer, parent) in BJsonTextWriterArrayStackedEventListener()
458 BJsonTextWriter* writer, in BJsonTextWriterObjectStackedEventListener() argument
461 BJsonTextWriterStackedEventListener(writer, parent) in BJsonTextWriterObjectStackedEventListener()
H A DRWLockManager.cpp177 RWLockManager::_Wait(RWLockable* lockable, bool writer, bigtime_t timeout) in _Wait() argument
183 RWLockable::Waiter waiter(writer); in _Wait()
224 if (waiter->writer) { in _Unblock()
240 && !lockable->fWaiters.Head()->writer) { in _Unblock()
247 && !waiter->writer) { in _Unblock()
/haiku/headers/private/shared/
H A DRWLockManager.h25 Waiter(bool writer) in Waiter()
28 writer(writer), in Waiter()
35 bool writer; member
81 status_t _Wait(RWLockable* lockable, bool writer,
/haiku/src/apps/haikudepot/server/
H A DJwtTokenHelper.cpp60 BJsonMessageWriter writer(message); in ParseClaims() local
61 BJson::Parse(&base64DecodingIo, &writer); in ParseClaims()
63 return writer.ErrorStatus(); in ParseClaims()
/haiku/src/system/kernel/debug/
H A Dcore_dump.cpp1253 void _WriteTeamNote(Writer& writer) in _WriteTeamNote()
1260 writer.Write((uint32)sizeof(note)); in _WriteTeamNote()
1261 writer.Write(note); in _WriteTeamNote()
1265 writer.Write(args, strlen(args) + 1); in _WriteTeamNote()
1288 void _WriteFilesNote(Writer& writer) in _WriteFilesNote()
1291 writer.Write(fMappedFilesCount); in _WriteFilesNote()
1292 writer.Write((size_t)B_PAGE_SIZE); in _WriteFilesNote()
1301 writer.Write(areaInfo->Base()); in _WriteFilesNote()
1302 writer.Write(areaInfo->Base() + areaInfo->Size()); in _WriteFilesNote()
1303 writer.Write(size_t(areaInfo->CacheOffset() / B_PAGE_SIZE)); in _WriteFilesNote()
[all …]
/haiku/src/system/libroot/os/locks/
H A Drw_lock.cpp18 bool writer; member
23 rw_lock_wait(rw_lock *lock, bool writer) in rw_lock_wait() argument
28 waiter.writer = writer; in rw_lock_wait()
63 if (waiter->writer) { in rw_lock_unblock()
73 while (waiter != NULL && !waiter->writer) { in rw_lock_unblock()
/haiku/src/system/libroot/posix/pthread/
H A Dpthread_rwlock.cpp28 Waiter(bool writer) in Waiter()
32 writer(writer), in Waiter()
40 bool writer; member
196 status_t _Wait(bool writer, uint32 flags, bigtime_t timeout) in _Wait()
204 Waiter waiter(writer); in _Wait()
209 if (writer) in _Wait()
226 if (writer) in _Wait()
243 if (waiter->writer) { in _Unblock()
258 while (!waiters.IsEmpty() && !waiters.Head()->writer) { in _Unblock()
265 && !waiter->writer) { in _Unblock()
/haiku/src/tools/opd_to_package_info/
H A Dopd_to_package_info.cpp329 OuputWriter writer(output, package); in main() local
332 writer.WriteAttribute("name", "Package", NULL, in main()
336 writer.WriteAttribute("version", "Version", version, FLAG_DONT_QUOTE); in main()
357 writer.WriteAttribute("copyrights", "Copyright", NULL, in main()
361 writer.WriteAttribute("licenses", "License", NULL, FLAG_LIST_ATTRIBUTE); in main()
370 writer.WriteAttribute("urls", "URL", NULL, FLAG_LIST_ATTRIBUTE); in main()
373 writer.WriteAttribute("source-urls", "SourceURL", NULL, in main()
/haiku/src/system/kernel/disk_device_manager/
H A DKDiskDevice.cpp323 KDiskDevice::WriteUserData(UserDataWriter& writer, user_partition_data* data) in WriteUserData() argument
325 KPartition::WriteUserData(writer, data); in WriteUserData()
330 KDiskDevice::WriteUserData(UserDataWriter& writer) in WriteUserData() argument
334 = writer.AllocateDeviceData(partition->CountChildren()); in WriteUserData()
335 char* path = writer.PlaceString(Path()); in WriteUserData()
339 writer.AddRelocationEntry(&data->path); in WriteUserData()
340 partition->WriteUserData(writer, &data->device_partition_data); in WriteUserData()
342 partition->WriteUserData(writer, NULL); in WriteUserData()
H A Dddm_userland_interface.cpp195 UserDataWriter writer; in _user_get_next_disk_device_id() local
196 device->WriteUserData(writer); in _user_get_next_disk_device_id()
198 writer.AllocatedSize()); in _user_get_next_disk_device_id()
230 UserDataWriter writer; in _user_find_disk_device() local
231 device->WriteUserData(writer); in _user_find_disk_device()
232 error = copy_to_user_value(neededSize, writer.AllocatedSize()); in _user_find_disk_device()
266 UserDataWriter writer; in _user_find_partition() local
267 device->WriteUserData(writer); in _user_find_partition()
268 error = copy_to_user_value(neededSize, writer.AllocatedSize()); in _user_find_partition()
298 UserDataWriter writer; in _user_find_file_disk_device() local
[all …]
H A DKPartition.cpp1307 KPartition::WriteUserData(UserDataWriter& writer, user_partition_data* data) in WriteUserData() argument
1310 char* name = writer.PlaceString(Name()); in WriteUserData()
1311 char* contentName = writer.PlaceString(ContentName()); in WriteUserData()
1312 char* type = writer.PlaceString(Type()); in WriteUserData()
1313 char* contentType = writer.PlaceString(ContentType()); in WriteUserData()
1314 char* parameters = writer.PlaceString(Parameters()); in WriteUserData()
1315 char* contentParameters = writer.PlaceString(ContentParameters()); in WriteUserData()
1338 writer.AddRelocationEntry(&data->name); in WriteUserData()
1339 writer.AddRelocationEntry(&data->content_name); in WriteUserData()
1340 writer.AddRelocationEntry(&data->type); in WriteUserData()
[all …]
/haiku/src/add-ons/index_server/fulltext/
H A DCLuceneDataBase.cpp138 IndexWriter* writer = NULL; in _OpenIndexWriter() local
145 writer = new IndexWriter(fDataBasePath.Path(), in _OpenIndexWriter()
147 if (writer) in _OpenIndexWriter()
151 delete writer; in _OpenIndexWriter()
152 writer = NULL; in _OpenIndexWriter()
155 return writer; in _OpenIndexWriter()
/haiku/src/add-ons/media/media-add-ons/writer/
H A DJamfile1 SubDir HAIKU_TOP src add-ons media media-add-ons writer ;
10 Application [ MultiArchDefaultGristFiles writer.media_addon ] :
/haiku/src/kits/media/
H A DPluginManager.cpp414 PluginManager::CreateWriter(Writer** writer, const media_file_format& mff, in CreateWriter() argument
442 *writer = writerPlugin->NewWriter(); in CreateWriter()
443 if (*writer == NULL) { in CreateWriter()
449 (*writer)->Setup(target); in CreateWriter()
450 (*writer)->fMediaPlugin = plugin; in CreateWriter()
458 PluginManager::DestroyWriter(Writer* writer) in DestroyWriter() argument
460 if (writer != NULL) { in DestroyWriter()
461 TRACE("PluginManager::DestroyWriter(%p (plugin: %p))\n", writer, in DestroyWriter()
462 writer->fMediaPlugin); in DestroyWriter()
466 MediaPlugin* plugin = writer->fMediaPlugin; in DestroyWriter()
[all …]
H A DEncoderPlugin.cpp93 Encoder::SetChunkWriter(ChunkWriter* writer) in SetChunkWriter() argument
96 fChunkWriter = writer; in SetChunkWriter()
/haiku/src/add-ons/kernel/partitioning_systems/intel/
H A Dwrite_support.cpp995 PartitionMapWriter writer(fd, primary->BlockSize()); in pm_resize_child() local
997 status_t error = writer.WriteMBR(map, false); in pm_resize_child()
1172 PartitionMapWriter writer(fd, partition->block_size); in pm_move_child() local
1174 error = writer.WriteMBR(map, false); in pm_move_child()
1231 PartitionMapWriter writer(fd, primary->BlockSize()); in pm_set_type() local
1233 status_t error = writer.WriteMBR(map, false); in pm_set_type()
1308 PartitionMapWriter writer(fd, primary->BlockSize()); in pm_set_parameters() local
1310 status_t error = writer.WriteMBR(map, false); in pm_set_parameters()
1350 PartitionMapWriter writer(fd, partition->block_size); in pm_initialize() local
1352 status_t error = writer.WriteMBR(&map, true); in pm_initialize()
[all …]
/haiku/src/kits/debugger/jobs/
H A DWriteValueNodeJob.cpp66 ValueWriter writer(fArchitecture, fDebuggerInterface, in Do() local
72 status_t error = writer.WriteValue(fValueNode->Location(), value); in Do()
/haiku/headers/private/kernel/disk_device_manager/
H A DKDiskDevice.h79 virtual void WriteUserData(UserDataWriter &writer,
81 void WriteUserData(UserDataWriter &writer);
/haiku/src/add-ons/kernel/file_systems/netfs/shared/
H A DRequestChannel.cpp181 ChannelWriter writer(fChannel, fBuffer, fBufferSize); in SendRequest() local
182 error = writer.Write(&header, sizeof(RequestHeader)); in SendRequest()
187 RequestFlattener flattener(&writer); in SendRequest()
192 error = writer.Flush(); in SendRequest()
/haiku/headers/private/media/
H A DPluginManager.h49 status_t CreateWriter(Writer** writer,
52 void DestroyWriter(Writer* writer);
/haiku/src/tests/add-ons/kernel/kernelland_emu/
H A Dlock.cpp51 bool writer; member
211 rw_lock_wait(rw_lock* lock, bool writer) in rw_lock_wait() argument
217 waiter.writer = writer; in rw_lock_wait()
249 if (waiter->writer) { in rw_lock_unblock()
279 } while ((waiter = lock->waiters) != NULL && !waiter->writer); in rw_lock_unblock()
418 waiter.writer = false; in _rw_lock_read_lock_with_timeout()

123