Home
last modified time | relevance | path

Searched refs:bag (Results 1 – 25 of 88) sorted by relevance

1234

/external/oj-libjdwp/src/share/back/
Dbag.h35 struct bag;
42 struct bag *bagCreateBag(int itemSize, int initialAllocation);
48 struct bag *bagDup(struct bag *);
52 void bagDestroyBag(struct bag *theBag);
57 void *bagFind(struct bag *theBag, void *key);
62 void *bagAdd(struct bag *theBag);
67 void bagDelete(struct bag *theBag, void *condemned);
71 void bagDeleteAll(struct bag *theBag);
75 int bagSize(struct bag *theBag);
86 jboolean bagEnumerateOver(struct bag *theBag,
Dbag.c31 struct bag { struct
38 struct bag * argument
40 struct bag *theBag = (struct bag *)jvmtiAllocate(sizeof(struct bag)); in bagCreateBag()
56 struct bag *
57 bagDup(struct bag *oldBag) in bagDup()
59 struct bag *newBag = bagCreateBag(oldBag->itemSize, in bagDup()
69 bagDestroyBag(struct bag *theBag) in bagDestroyBag()
78 bagFind(struct bag *theBag, void *key) in bagFind()
94 bagAdd(struct bag *theBag) in bagAdd()
121 bagDelete(struct bag *theBag, void *condemned) in bagDelete()
[all …]
DeventHelper.h34 struct bag *eventHelper_createEventBag(void);
37 jbyte suspendPolicy, struct bag *eventBag);
38 void eventHelper_recordClassUnload(jint id, char *signature, struct bag *eventBag);
44 struct bag *eventBag);
46 jbyte eventHelper_reportEvents(jbyte sessionID, struct bag *eventBag);
DstandardHandlers.c42 struct bag *eventBag) in handleClassPrepare()
81 struct bag *eventBag) in handleGarbageCollectionFinish()
89 struct bag *eventBag) in handleFrameEvent()
128 struct bag *eventBag) in genericHandler()
DclassTrack.c107 struct bag* deletedTagBag;
151 struct bag *
164 struct bag* deleted = bagCreateBag(sizeof(char*), bagSize(deletedTagBag)); in classTrack_processUnloads()
/external/python/cpython3/Lib/test/test_asyncio/
Dtest_futures.py602 def _make_callback(self, bag, thing): argument
605 bag.append(thing)
612 bag = []
615 cb1 = self._make_callback(bag, 42)
616 cb2 = self._make_callback(bag, 17)
617 cb3 = self._make_callback(bag, 100)
626 self.assertEqual(bag, [])
631 self.assertEqual(bag, [17, 100])
635 bag = []
638 cb1 = self._make_callback(bag, 42)
[all …]
/external/grpc-grpc/src/core/lib/iomgr/
Dpollset_set.cc47 void grpc_pollset_set_add_pollset_set(grpc_pollset_set* bag, in grpc_pollset_set_add_pollset_set() argument
49 grpc_pollset_set_impl->add_pollset_set(bag, item); in grpc_pollset_set_add_pollset_set()
52 void grpc_pollset_set_del_pollset_set(grpc_pollset_set* bag, in grpc_pollset_set_del_pollset_set() argument
54 grpc_pollset_set_impl->del_pollset_set(bag, item); in grpc_pollset_set_del_pollset_set()
Dpollset_set.h38 void (*add_pollset_set)(grpc_pollset_set* bag, grpc_pollset_set* item);
39 void (*del_pollset_set)(grpc_pollset_set* bag, grpc_pollset_set* item);
50 void grpc_pollset_set_add_pollset_set(grpc_pollset_set* bag,
52 void grpc_pollset_set_del_pollset_set(grpc_pollset_set* bag,
Dev_epollsig_linux.cc1392 static void add_poll_object(poll_obj* bag, poll_obj_type bag_type, argument
1398 GPR_ASSERT(bag->obj_type == bag_type);
1404 gpr_mu_lock(&bag->mu);
1423 gpr_mu_unlock(&bag->mu);
1427 if (item->pi == bag->pi) {
1454 (void*)bag);
1473 poll_obj_string(bag_type), (void*)bag);
1482 pi_new = polling_island_lock(bag->pi);
1494 poll_obj_string(bag_type), (void*)bag);
1495 } else if (bag->pi == nullptr) {
[all …]
Dev_poll_posix.cc1290 static void pollset_set_add_pollset_set(grpc_pollset_set* bag, argument
1293 gpr_mu_lock(&bag->mu);
1294 if (bag->pollset_set_count == bag->pollset_set_capacity) {
1295 bag->pollset_set_capacity = GPR_MAX(8, 2 * bag->pollset_set_capacity);
1296 bag->pollset_sets = static_cast<grpc_pollset_set**>(
1297 gpr_realloc(bag->pollset_sets,
1298 bag->pollset_set_capacity * sizeof(*bag->pollset_sets)));
1300 bag->pollset_sets[bag->pollset_set_count++] = item;
1301 for (i = 0, j = 0; i < bag->fd_count; i++) {
1302 if (fd_is_orphaned(bag->fds[i])) {
[all …]
Dev_posix.cc370 static void pollset_set_add_pollset_set(grpc_pollset_set* bag, in pollset_set_add_pollset_set() argument
372 GRPC_POLLING_API_TRACE("pollset_set_add_pollset_set(%p, %p)", bag, item); in pollset_set_add_pollset_set()
373 g_event_engine->pollset_set_add_pollset_set(bag, item); in pollset_set_add_pollset_set()
376 static void pollset_set_del_pollset_set(grpc_pollset_set* bag, in pollset_set_del_pollset_set() argument
378 GRPC_POLLING_API_TRACE("pollset_set_del_pollset_set(%p, %p)", bag, item); in pollset_set_del_pollset_set()
379 g_event_engine->pollset_set_del_pollset_set(bag, item); in pollset_set_del_pollset_set()
Dpollset_set_windows.cc40 static void pollset_set_add_pollset_set(grpc_pollset_set* bag, in pollset_set_add_pollset_set() argument
43 static void pollset_set_del_pollset_set(grpc_pollset_set* bag, in pollset_set_del_pollset_set() argument
Dpollset_set_custom.cc37 void pollset_set_add_pollset_set(grpc_pollset_set* bag, in pollset_set_add_pollset_set() argument
40 void pollset_set_del_pollset_set(grpc_pollset_set* bag, in pollset_set_del_pollset_set() argument
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/
DShadowArscAssetManager10.java869 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetResourceBagValue() local
870 if (bag == null) { in nativeGetResourceBagValue()
874 final Ref<Integer> type_spec_flags = new Ref<>(bag.type_spec_flags); in nativeGetResourceBagValue()
877 for (ResolvedBag.Entry entry : bag.entries) { in nativeGetResourceBagValue()
905 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetStyleAttributes() local
906 if (bag == null) { in nativeGetStyleAttributes()
910 int[] array = new int[bag.entry_count]; in nativeGetStyleAttributes()
915 for (int i = 0; i < bag.entry_count; i++) { in nativeGetStyleAttributes()
916 int attr_resid = bag.entries[i].key; in nativeGetStyleAttributes()
929 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetResourceStringArray() local
[all …]
DShadowArscAssetManager9.java865 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetResourceBagValue() local
866 if (bag == null) { in nativeGetResourceBagValue()
870 final Ref<Integer> type_spec_flags = new Ref<>(bag.type_spec_flags); in nativeGetResourceBagValue()
873 for (ResolvedBag.Entry entry : bag.entries) { in nativeGetResourceBagValue()
901 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetStyleAttributes() local
902 if (bag == null) { in nativeGetStyleAttributes()
906 int[] array = new int[bag.entry_count]; in nativeGetStyleAttributes()
911 for (int i = 0; i < bag.entry_count; i++) { in nativeGetStyleAttributes()
912 int attr_resid = bag.entries[i].key; in nativeGetStyleAttributes()
925 ResolvedBag bag = assetmanager.GetBag(resid); in nativeGetResourceStringArray() local
[all …]
/external/webrtc/talk/media/devices/
Dwin32devicemanager.cc206 CComPtr<IPropertyBag> bag; in GetDevices() local
208 __uuidof(bag), reinterpret_cast<void**>(&bag)))) { in GetDevices()
211 if (SUCCEEDED(bag->Read(kFriendlyName, &name, 0)) && in GetDevices()
215 if (SUCCEEDED(bag->Read(kDevicePath, &path, 0)) && in GetDevices()
230 HRESULT GetStringProp(IPropertyStore* bag, PROPERTYKEY key, std::string* out) { in GetStringProp() argument
235 HRESULT hr = bag->GetValue(key, &var); in GetStringProp()
/external/jemalloc/test/unit/
Dph.c171 uint64_t bag[NNODES]; in TEST_BEGIN() local
182 bag[j] = j; in TEST_BEGIN()
187 bag[j] = NNODES - j - 1; in TEST_BEGIN()
191 bag[j] = gen_rand64_range(sfmt, NNODES); in TEST_BEGIN()
201 nodes[k].key = bag[k]; in TEST_BEGIN()
Drb.c234 uint64_t bag[NNODES]; in TEST_BEGIN() local
245 bag[j] = j; in TEST_BEGIN()
250 bag[j] = NNODES - j - 1; in TEST_BEGIN()
254 bag[j] = gen_rand64_range(sfmt, NNODES); in TEST_BEGIN()
262 nodes[k].key = bag[k]; in TEST_BEGIN()
/external/jemalloc_new/test/unit/
Dph.c177 uint64_t bag[NNODES]; in TEST_BEGIN() local
188 bag[j] = j; in TEST_BEGIN()
194 bag[j] = NNODES - j - 1; in TEST_BEGIN()
199 bag[j] = gen_rand64_range(sfmt, NNODES); in TEST_BEGIN()
210 nodes[k].key = bag[k]; in TEST_BEGIN()
Drb.c232 uint64_t bag[NNODES]; in TEST_BEGIN() local
243 bag[j] = j; in TEST_BEGIN()
249 bag[j] = NNODES - j - 1; in TEST_BEGIN()
254 bag[j] = gen_rand64_range(sfmt, NNODES); in TEST_BEGIN()
263 nodes[k].key = bag[k]; in TEST_BEGIN()
/external/python/cpython2/Lib/test/
Dtest_string.py310 m.bag = Bag()
311 m.bag.foo = Bag()
312 m.bag.foo.who = 'tim'
313 m.bag.what = 'ham'
326 m.bag = Bag()
327 m.bag.foo = Bag()
328 m.bag.foo.who = 'tim'
329 m.bag.what = 'ham'
Dtest_file.py243 bag = self.open(TESTFN, "wb")
244 bag.write(filler * nchunks)
245 bag.writelines(testlines)
246 bag.close()
/external/python/cpython3/Lib/test/
Dtest_string.py294 m.bag = Bag()
295 m.bag.foo = Bag()
296 m.bag.foo.who = 'tim'
297 m.bag.what = 'ham'
342 m.bag = Bag()
343 m.bag.foo = Bag()
344 m.bag.foo.who = 'tim'
345 m.bag.what = 'ham'
Dtest_file.py237 bag = self.open(TESTFN, "wb")
238 bag.write(filler * nchunks)
239 bag.writelines(testlines)
240 bag.close()
/external/boringssl/src/crypto/pkcs8/
Dpkcs8_x509.c946 static int add_bag_attributes(CBB *bag, const char *name, const uint8_t *key_id, in add_bag_attributes() argument
953 if (!CBB_add_asn1(bag, &attrs, CBS_ASN1_SET)) { in add_bag_attributes()
989 CBB_flush(bag); in add_bag_attributes()
994 CBB bag, bag_oid, bag_contents, cert_bag, cert_type, wrapped_cert, cert_value; in add_cert_bag() local
996 !CBB_add_asn1(cbb, &bag, CBS_ASN1_SEQUENCE) || in add_cert_bag()
997 !CBB_add_asn1(&bag, &bag_oid, CBS_ASN1_OBJECT) || in add_cert_bag()
999 !CBB_add_asn1(&bag, &bag_contents, in add_cert_bag()
1015 !add_bag_attributes(&bag, name, key_id, key_id_len) || in add_cert_bag()
1203 CBB content_info, oid, wrapper, data, safe_contents, bag, bag_oid, in PKCS12_create() local
1214 !CBB_add_asn1(&safe_contents, &bag, CBS_ASN1_SEQUENCE) || in PKCS12_create()
[all …]

1234