Searched refs:index (Results 26 - 50 of 2065) sorted by relevance

1234567891011>>

/haiku-fatelf/src/tests/kits/net/DialUpPreflet/
H A DInterfaceUtils.cpp33 FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index = 0)
36 for(; index < menu->CountItems(); index++) {
37 item = menu->ItemAt(index);
39 return index;
42 return index;
49 int32 index = 0; local
51 for(; index < list->CountItems(); index++) {
52 item = static_cast<BStringItem*>(list->ItemAt(index));
[all...]
/haiku-fatelf/src/tests/kits/net/preflet/DialUpAddOn/
H A DInterfaceUtils.cpp49 FindNextMenuInsertionIndex(BMenu *menu, const char *name, int32 index) argument
52 for(; index < menu->CountItems(); index++) {
53 item = menu->ItemAt(index);
55 return index;
58 return index;
65 int32 index = 0; local
67 for(; index < list->CountItems(); index++) {
68 item = static_cast<BStringItem*>(list->ItemAt(index));
[all...]
/haiku-fatelf/src/bin/
H A Dsetusbconfig.cpp11 printf("usage: %s <device> <configuration index>\n", argv[0]);
21 uint32 index; local
22 if (sscanf(argv[2], "%lu", &index) != 1) {
23 printf("could not parse configuration index\n");
27 const BUSBConfiguration *config = device.ConfigurationAt(index);
29 printf("couldn't get configuration at %lu\n", index);
39 printf("configuration %lu set on device %s\n", index, argv[1]);
/haiku-fatelf/src/kits/tracker/
H A DPoseList.cpp48 for (int32 index = 0; index < count; index++) {
49 BPose* pose = ItemAt(index);
53 *resultingIndex = index;
66 for (int32 index = 0; index < count; index++) {
67 BPose* pose = ItemAt(index);
71 *resultingIndex = index;
[all...]
H A DPoseList.h63 BPose* FindPose(const node_ref* node, int32* index = NULL) const;
64 BPose* FindPose(const entry_ref* entry, int32* index = NULL) const;
65 BPose* FindPose(const Model* model, int32* index = NULL) const;
66 BPose* DeepFindPose(const node_ref* node, int32* index = NULL) const;
81 for (int32 index = list->CountItems() - 1; index >= 0; index--) {
82 BPose* pose = list->ItemAt(index);
96 for (int32 index = list->CountItems() - 1; index >
[all...]
/haiku-fatelf/src/kits/interface/textview_support/
H A DLineBuffer.h31 void InsertLine(STELine* inLine, int32 index);
32 void RemoveLines(int32 index, int32 count = 1);
39 void BumpOrigin(float delta, int32 index);
40 void BumpOffset(int32 delta, int32 index);
44 STELine* operator[](int32 index) const;
56 BTextView::LineBuffer::operator[](int32 index) const
58 return &fBuffer[index];
/haiku-fatelf/src/tests/apps/delay_shutdown/
H A DDelayShutdown.cpp30 int32 index = 1; local
32 while (index < argc) {
33 if (strcmp(argv[index], "-d") == 0) {
34 if (index + 1 < argc)
35 fDelay = atoi(argv[++index]);
40 } else if (strcmp(argv[index], "-q") == 0) {
46 index++;
/haiku-fatelf/src/tests/kits/net/preflet/InterfacesAddOn/
H A DNetworkSettings.cpp53 unsigned int index; local
54 for (index = 0; index < MAX_PROTOCOLS; index++)
56 int socket_id = fProtocols[index].socket_id;
70 for (int index = 0; index < MAX_PROTOCOLS; index++) {
71 fProtocols[index].name = NULL;
72 fProtocols[index]
[all...]
/haiku-fatelf/src/libs/icon/shape/
H A DVectorPath.h48 virtual void PointAdded(int32 index) = 0;
49 virtual void PointRemoved(int32 index) = 0;
50 virtual void PointChanged(int32 index) = 0;
101 bool AddPoint(BPoint point, int32 index);
103 bool RemovePoint(int32 index);
106 bool SetPoint(int32 index, BPoint point);
107 bool SetPoint(int32 index, BPoint point,
111 bool SetPointIn(int32 index, BPoint point);
112 bool SetPointOut(int32 index, BPoint point,
115 bool SetInOutConnected(int32 index, boo
[all...]
/haiku-fatelf/src/add-ons/media/media-add-ons/radeon/
H A DTheater.cpp48 int CTheater::Register(int index) argument
50 return fPort.Register(fDevice, index);
53 int CTheater::Register(int index, int mask) argument
55 return fPort.Register(fDevice, index) & mask;
58 void CTheater::SetRegister(int index, int value) argument
60 fPort.SetRegister(fDevice, index, value);
63 void CTheater::SetRegister(int index, int mask, int value) argument
66 PRINT(("WARNING: CTheater::SetRegister(0x%04x, 0x%08x, 0x%08x)\n", index, mask, value));
68 fPort.SetRegister(fDevice, index,
69 (fPort.Register(fDevice, index)
[all...]
/haiku-fatelf/src/apps/icon-o-matic/generic/support/
H A DList.h28 inline void AddItem(T value, int32 index) argument
29 { BList::AddItem((void*)value, index); }
45 inline T ItemAt(int32 index) const
46 { return (T)BList::ItemAt(index); }
48 inline T ItemAtFast(int32 index) const
49 { return (T)BList::ItemAtFast(index); }
61 inline T RemoveItem(int32 index) argument
62 { return (T)BList::RemoveItem(index); }
64 inline bool RemoveItems(int32 index, int32 count) argument
65 { return BList::RemoveItems(index, coun
[all...]
/haiku-fatelf/src/apps/debuganalyzer/gui/
H A DListSelectionModel.h27 int32 SelectedItemAt(int32 index) const;
51 int32 _CountSelectedItemsInRange(int32 index,
54 void _NotifyItemsSelected(int32 index, int32 count);
55 void _NotifyItemsDeselected(int32 index,
69 int32 index, int32 count);
71 int32 index, int32 count);
78 int32 index = _FindItem(itemIndex); local
79 return index < fSelectedItems.Count() && fSelectedItems[index] == itemIndex;
84 ListSelectionModel::SelectedItemAt(int32 index) cons
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/tty/
H A Dslave.cpp35 // Get the tty index: Opening "/dev/tty" means opening the process'
37 int32 index = get_tty_index(name); local
39 index = team_get_controlling_tty();
40 if (index < 0)
43 index = get_tty_index(name);
44 if (index >= (int32)kNumTTYs)
48 TRACE(("slave_open: TTY index = %ld (name = %s)\n", index, name));
53 if (gMasterTTYs[index].open_count == 0)
60 if (gSlaveTTYs[index]
[all...]
/haiku-fatelf/src/add-ons/kernel/network/ppp/shared/libkernelppp/
H A Dsettings_tools.cpp43 for (int32 index = 0; index < ret->parameter_count; index++)
44 copy_driver_parameter(&dup->parameters[index], &ret->parameters[index]);
56 for (int32 index = 0; index < settings->parameter_count; index++)
57 free_driver_parameter_fields(&settings->parameters[index]);
77 for (int32 index
[all...]
H A DKPPPConfigurePacket.cpp63 for (int32 index = 0; index < CountItems(); index++)
64 free(ItemAt(index));
88 \param index Item's index. Adds after the last item if not specified or negative.
95 KPPPConfigurePacket::AddItem(const ppp_configure_item *item, int32 index) argument
104 if (index < 0)
107 status = fItems.AddItem(add, index);
131 //! Returns the item at \a index o
[all...]
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auvia/
H A Dmulti.c179 auvia_create_group_control(multi_dev *multi, int32 *index, int32 parent, argument
182 int32 i = *index;
183 (*index)++;
200 uint32 i = 0, index = 0, count, id, parent, parent2, parent3; local
204 parent = auvia_create_group_control(multi, &index, 0, 0, "Record");
210 parent2 = auvia_create_group_control(multi, &index, parent, 0, info->name);
214 multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
215 multi->controls[index].mix_control.flags = B_MULTI_MIX_ENABLE;
216 multi->controls[index]
573 uint32 index, i, mode, designations; local
[all...]
/haiku-fatelf/src/kits/support/
H A DList.cpp103 BList::AddItem(void* item, int32 index) argument
105 if (index < 0 || index > fItemCount)
114 move_items(fObjectList + index, 1, fItemCount - index - 1);
115 fObjectList[index] = item;
139 BList::AddList(const BList* list, int32 index) argument
141 bool result = (list && index >= 0 && index <= fItemCount);
148 move_items(fObjectList + index, coun
162 int32 index = fItemCount; local
179 int32 index = IndexOf(item); local
188 RemoveItem(int32 index) argument
203 RemoveItems(int32 index, int32 count) argument
223 ReplaceItem(int32 index, void* newItem) argument
414 int32 index = 0; local
433 bool terminate = false; int32 index = 0; local
452 AddList__5BListP5BListl(BList* self, BList* list, int32 index) argument
[all...]
/haiku-fatelf/src/libs/stdc++/legacy/
H A Dioextend.cc75 get_array_element(ios& io, int index) argument
77 if (index < 0)
81 if (index >= old_length)
84 int new_length = index + 10;
103 return array[index+1];
106 long& ios::iword(int index) argument
108 return get_array_element(*this, index).i;
111 void*& ios::pword(int index) argument
113 return get_array_element(*this, index).p;
116 long ios::iword(int index) cons
[all...]
/haiku-fatelf/src/kits/storage/
H A DResourcesContainer.cpp36 ResourcesContainer::AddResource(ResourceItem *item, int32 index, argument
45 if (index < 0 || index > count)
46 index = count;
55 ResourcesContainer::RemoveResource(int32 index) argument
57 ResourceItem* item = (ResourceItem*)fResources.RemoveItem(index);
112 int32 index = -1; local
115 for (int32 i = 0; index == -1 && i < count; i++) {
117 index = i;
120 return index;
127 int32 index = -1; local
141 int32 index = -1; local
159 int32 index = -1; local
[all...]
/haiku-fatelf/src/system/libroot/os/arch/x86_64/
H A Dtls.cpp34 int64 index = _index; local
39 : "=a" (ret) : "D" (index));
47 int64 index = _index; local
53 : "=a" (ret) : "D" (index));
61 int64 index = _index; local
64 : : "D" (index), "S" (value));
/haiku-fatelf/src/add-ons/kernel/drivers/audio/ac97/auich/
H A Dmulti.c181 auich_create_group_control(multi_dev *multi, int32 *index, int32 parent, argument
183 int32 i = *index;
184 (*index)++;
200 uint32 i = 0, index = 0, count, id, parent, parent2, parent3; local
204 parent = auich_create_group_control(multi, &index, 0, 0, "AC97 mixer");
213 parent2 = auich_create_group_control(multi, &index, parent, 0, info->name);
217 multi->controls[index].mix_control.id = EMU_MULTI_CONTROL_FIRSTID + index;
218 multi->controls[index].mix_control.flags = B_MULTI_MIX_ENABLE;
219 multi->controls[index]
564 uint32 index, i, mode, designations; local
[all...]
/haiku-fatelf/src/apps/debugger/model/
H A DFileSourceCode.cpp49 // Find the insertion index; don't insert twice.
51 int32 index = _FindSourceLocationIndex(location, foundMatch); local
55 return fSourceLocations.Insert(location, index) ? B_OK : B_NO_MEMORY;
88 FileSourceCode::LineAt(int32 index) const
90 return fSourceFile->LineAt(index);
95 FileSourceCode::LineLengthAt(int32 index) const
97 return fSourceFile->LineLengthAt(index);
110 int32 index = _FindSourceLocationIndex(location, foundMatch); local
113 if (index == 0)
115 index
[all...]
/haiku-fatelf/headers/private/kernel/util/
H A DVector.h69 status_t Add(const Value &value, int32 index) { return Insert(value, index); } argument
71 status_t Insert(const Value &value, int32 index);
75 Iterator Erase(int32 index);
88 inline Iterator IteratorForIndex(int32 index);
89 inline ConstIterator IteratorForIndex(int32 index) const;
91 inline const Value &ElementAt(int32 index) const;
92 inline Value &ElementAt(int32 index);
100 inline Value &operator[](int32 index);
101 inline const Value &operator[](int32 index) cons
331 Insert(const Value &value, int32 index) argument
356 int32 index = _IteratorIndex(iterator); local
390 Erase(int32 index) argument
413 int32 index = _IteratorIndex(iterator); local
559 IteratorForIndex(int32 index) argument
606 ElementAt(int32 index) argument
664 int32 index = IndexOf(value, _IteratorIndex(start)); local
699 int32 index = IndexOf(value, _IteratorIndex(start)); local
711 operator [](int32 index) argument
776 int32 index = iterator.Element() - fItems; local
795 int32 index = iterator.Element() - fItems; local
[all...]
/haiku-fatelf/src/add-ons/kernel/network/ppp/shared/libkernelppp/headers/
H A DKPPPUtils.h28 for(int index = 0; index < list.CountItems(); index++)
29 function(list.ItemAt(index));
/haiku-fatelf/src/add-ons/media/media-add-ons/opensound/
H A DOpenSoundDeviceMixer.h24 status_t GetExtInfo(int index, oss_mixext *info);
27 status_t GetEnumInfo(int index, oss_mixer_enuminfo *info);
32 int CachedUpdateCounter(int index);
33 void SetCachedUpdateCounter(int index, int counter);

Completed in 118 milliseconds

1234567891011>>