Home
last modified time | relevance | path

Searched refs:ref_count (Results 1 – 25 of 79) sorted by relevance

1234

/external/chromium/base/win/
Dscoped_variant_unittest.cc62 int ref_count() const { in ref_count() function in base::win::__anon2b7d89b30111::FakeComObject
189 EXPECT_EQ(0, faker.ref_count()); in TEST()
193 EXPECT_EQ(1, faker.ref_count()); in TEST()
195 EXPECT_EQ(0, faker.ref_count()); in TEST()
200 EXPECT_EQ(1, faker.ref_count()); in TEST()
202 EXPECT_EQ(0, faker.ref_count()); in TEST()
208 EXPECT_EQ(1, faker.ref_count()); in TEST()
210 EXPECT_EQ(0, faker.ref_count()); in TEST()
214 EXPECT_EQ(1, faker.ref_count()); in TEST()
216 EXPECT_EQ(2, faker.ref_count()); in TEST()
[all …]
/external/pcre/
Dpcre_refcount.c76 re->ref_count = (-adjust > re->ref_count)? 0 : in pcre_refcount()
77 (adjust + re->ref_count > 65535)? 65535 : in pcre_refcount()
78 re->ref_count + adjust; in pcre_refcount()
79 return re->ref_count; in pcre_refcount()
/external/webkit/Source/WebKit/gtk/tests/
Dtestwebbackforwardlist.c45 g_assert_cmpint(G_OBJECT(backForwardList)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
67 g_assert_cmpint(G_OBJECT(backItem)->ref_count, ==, 2); in test_webkit_web_history_item_lifetime()
69 g_assert_cmpint(G_OBJECT(backItem)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
73 g_assert_cmpint(G_OBJECT(currentItem)->ref_count, ==, 2); in test_webkit_web_history_item_lifetime()
75 g_assert_cmpint(G_OBJECT(currentItem)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
80 g_assert_cmpint(G_OBJECT(forwardItem)->ref_count, ==, 2); in test_webkit_web_history_item_lifetime()
82 g_assert_cmpint(G_OBJECT(forwardItem)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
86 g_assert_cmpint(G_OBJECT(nthItem)->ref_count, ==, 2); in test_webkit_web_history_item_lifetime()
88 g_assert_cmpint(G_OBJECT(nthItem)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
92 g_assert_cmpint(G_OBJECT(backList->data)->ref_count, ==, 1); in test_webkit_web_history_item_lifetime()
[all …]
Dtestwebframe.c82 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_create_destroy()
103 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_lifetime()
105 g_assert_cmpint(G_OBJECT(webFrame)->ref_count, ==, 1); in test_webkit_web_frame_lifetime()
109 g_assert_cmpint(G_OBJECT(webFrame)->ref_count, ==, 2); in test_webkit_web_frame_lifetime()
117 g_assert_cmpint(G_OBJECT(webFrame)->ref_count, ==, 1); in test_webkit_web_frame_lifetime()
140 g_assert_cmpint(G_OBJECT(webView)->ref_count, ==, 1); in test_webkit_web_frame_printing()
Dtestnetworkresponse.c47 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 2); in test_network_response_create_destroy()
49 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 1); in test_network_response_create_destroy()
56 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 2); in test_network_response_create_destroy()
59 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 1); in test_network_response_create_destroy()
Dtestnetworkrequest.c46 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 2); in test_network_request_create_destroy()
48 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 1); in test_network_request_create_destroy()
55 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 2); in test_network_request_create_destroy()
58 g_assert_cmpint(G_OBJECT(message)->ref_count, ==, 1); in test_network_request_create_destroy()
Dtestwebhistoryitem.c34 g_assert_cmpint(G_OBJECT(fixture->item)->ref_count, == , 1); in web_history_item_fixture_setup()
42 g_assert_cmpint(G_OBJECT(fixture->item)->ref_count, ==, 1); in web_history_item_fixture_teardown()
/external/srec/tools/thirdparty/OpenFst/fst/lib/
Dcache.h124 cache_first_state_->ref_count == 0) { in ExtendState()
254 data->ref_count = &(state->ref_count); in InitArcIterator()
255 ++(*data->ref_count); in InitArcIterator()
286 if (cache_size_ > cache_target && state->ref_count == 0 && in GC()
353 CacheState() : final(Weight::Zero()), flags(0), ref_count(0) {} in CacheState()
357 ref_count = 0; in Reset()
366 mutable int ref_count; member
437 ++state_->ref_count; in CacheArcIterator()
440 ~CacheArcIterator() { --state_->ref_count; } in ~CacheArcIterator()
/external/freetype/src/raster/
Drastpic.c37 if(--container->ref_count) in ft_raster1_renderer_class_pic_free()
58 ((RasterPIC*)pic_container->raster)->ref_count++; in ft_raster1_renderer_class_pic_init()
67 container->ref_count = 1; in ft_raster1_renderer_class_pic_init()
/external/bluetooth/glib/glib/
Dgmain.c128 gint ref_count; member
166 guint ref_count; member
176 gint ref_count; member
223 if ((source)->ref_count > 1) \
224 (source)->ref_count--; \
325 g_return_val_if_fail (g_atomic_int_get (&context->ref_count) > 0, NULL); in g_main_context_ref()
327 g_atomic_int_inc (&context->ref_count); in g_main_context_ref()
351 g_return_if_fail (g_atomic_int_get (&context->ref_count) > 0); in g_main_context_unref()
353 if (!g_atomic_int_dec_and_test (&context->ref_count)) in g_main_context_unref()
483 context->ref_count = 1; in g_main_context_new()
[all …]
Dghash.c63 volatile gint ref_count; member
517 hash_table->ref_count = 1; in g_hash_table_new_full()
710 g_return_val_if_fail (hash_table->ref_count > 0, hash_table); in g_hash_table_ref()
712 g_atomic_int_add (&hash_table->ref_count, 1); in g_hash_table_ref()
731 g_return_if_fail (hash_table->ref_count > 0); in g_hash_table_unref()
733 if (g_atomic_int_exchange_and_add (&hash_table->ref_count, -1) - 1 == 0) in g_hash_table_unref()
756 g_return_if_fail (hash_table->ref_count > 0); in g_hash_table_destroy()
860 g_return_if_fail (hash_table->ref_count > 0); in g_hash_table_insert_internal()
/external/freetype/src/smooth/
Dftspic.c37 if(--container->ref_count) in ft_smooth_renderer_class_pic_free()
58 ((SmoothPIC*)pic_container->smooth)->ref_count++; in ft_smooth_renderer_class_pic_init()
67 container->ref_count = 1; in ft_smooth_renderer_class_pic_init()
/external/oprofile/daemon/liblegacy/
Dopd_image.c54 image->tid, image->tgid, (int)image->ref_count); in opd_delete_image()
56 if (image->ref_count <= 0) { in opd_delete_image()
60 image->tid, image->tgid, image->ref_count); in opd_delete_image()
64 if (--image->ref_count != 0) in opd_delete_image()
145 image->ref_count = 0; in opd_new_image()
/external/bluetooth/glib/gmodule/
Dgmodule.c68 guint ref_count : 31; member
362 main_module->ref_count = 1; in g_module_open()
369 main_module->ref_count++; in g_module_open()
379 module->ref_count++; in g_module_open()
461 module->ref_count++; in g_module_open()
478 module->ref_count = 1; in g_module_open()
543 g_return_val_if_fail (module->ref_count > 0, FALSE); in g_module_close()
547 module->ref_count--; in g_module_close()
549 if (!module->ref_count && !module->is_resident && module->unload) in g_module_close()
558 if (!module->ref_count && !module->is_resident) in g_module_close()
/external/elfutils/libelf/
Delf_end.c43 if (elf->ref_count != 0 && --elf->ref_count != 0)
46 int result = elf->ref_count;
200 return parent != NULL && parent->ref_count == 0 ? elf_end (parent) : 0;
Dcommon.h65 result->ref_count = 1; in allocate_elf()
92 if (child->ref_count != 0) in libelf_acquire_all()
109 if (child->ref_count != 0) in libelf_release_all()
/external/oprofile/libdb/
Ddb_manage.c191 data->ref_count++; in odb_open()
200 data->ref_count = 1; in odb_open()
281 data->ref_count--; in odb_close()
282 if (data->ref_count == 0) { in odb_close()
300 return odb->data->ref_count; in odb_open_count()
/external/bluetooth/glib/gobject/
Dgobject.c209 object->ref_count); in debug_objects_foreach()
687 object->ref_count = 1; in g_object_init()
786 g_return_if_fail (object->ref_count > 0); in g_object_run_dispose()
810 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_freeze_notify()
833 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_notify()
878 if (g_atomic_int_get (&object->ref_count) == 0) in g_object_thaw_notify()
1808 g_return_val_if_fail (object->ref_count > 0, object); in g_object_connect()
1892 g_return_if_fail (object->ref_count > 0); in g_object_disconnect()
1973 g_return_if_fail (object->ref_count >= 1); in g_object_weak_ref()
2143 g_return_val_if_fail (object->ref_count >= 1, object); in g_object_ref_sink()
[all …]
Dgclosure.c201 SET (closure, ref_count, 1); in g_closure_new_simple()
528 g_return_val_if_fail (closure->ref_count > 0, NULL); in g_closure_ref()
529 g_return_val_if_fail (closure->ref_count < CLOSURE_MAX_REF_COUNT, NULL); in g_closure_ref()
531 INC_ASSIGN (closure, ref_count, &new_ref_count); in g_closure_ref()
586 g_return_if_fail (closure->ref_count > 0); in g_closure_unref()
588 if (closure->ref_count == 1) /* last unref, invalidate first */ in g_closure_unref()
591 DEC_ASSIGN (closure, ref_count, &new_ref_count); in g_closure_unref()
651 g_return_if_fail (closure->ref_count > 0); in g_closure_sink()
/external/bluetooth/glib/gio/
Dgfileattribute.c814 int ref_count; member
838 priv->ref_count = 1; in g_file_attribute_info_list_new()
863 new->ref_count = 1; in g_file_attribute_info_list_dup()
892 g_return_val_if_fail (priv->ref_count > 0, NULL); in g_file_attribute_info_list_ref()
894 g_atomic_int_inc (&priv->ref_count); in g_file_attribute_info_list_ref()
913 g_return_if_fail (priv->ref_count > 0); in g_file_attribute_info_list_unref()
915 if (g_atomic_int_dec_and_test (&priv->ref_count)) in g_file_attribute_info_list_unref()
/external/srtp/crypto/cipher/
Dnull_cipher.c77 null_cipher.ref_count++; in null_cipher_alloc()
95 null_cipher.ref_count--; in null_cipher_dealloc()
/external/srtp/crypto/hash/
Dnull_auth.c77 null_auth.ref_count++; in null_auth_alloc()
94 null_auth.ref_count--; in null_auth_dealloc()
Dhmac.c89 hmac.ref_count++; in hmac_alloc()
106 hmac.ref_count--; in hmac_dealloc()
/external/chromium/chrome/browser/automation/
Dautomation_resource_message_filter.cc87 ref_count(1), in AutomationDetails()
95 : tab_handle(tab), ref_count(1), filter(flt), in AutomationDetails()
303 DCHECK(automation_details_iter->second.ref_count > 0); in RegisterRenderViewInIOThread()
304 automation_details_iter->second.ref_count++; in RegisterRenderViewInIOThread()
326 automation_details_iter->second.ref_count--; in UnRegisterRenderViewInIOThread()
328 if (automation_details_iter->second.ref_count <= 0) { in UnRegisterRenderViewInIOThread()
/external/qemu/android/skin/
Dimage.c213 int ref_count; member
266 image->ref_count = 1; in skin_image_alloc()
435 if (image->ref_count == 0) { in skin_image_cache_flush()
548 node->ref_count += 1; in skin_image_find()
590 image->ref_count += 1; in skin_image_ref()
602 if (image != _no_image && --image->ref_count == 0) { in skin_image_unref()

1234