/external/pigweed/pw_clock_tree/ |
D | clock_tree_test.cc | 340 EXPECT_EQ(clock_a.ref_count(), 0u); in TestClock() 344 EXPECT_EQ(clock_a.ref_count(), 1u); in TestClock() 348 EXPECT_EQ(clock_a.ref_count(), 2u); in TestClock() 352 EXPECT_EQ(clock_a.ref_count(), 1u); in TestClock() 356 EXPECT_EQ(clock_a.ref_count(), 0u); in TestClock() 389 EXPECT_EQ(clock_a.ref_count(), 0u); in TestClockDivider() 390 EXPECT_EQ(clock_divider_b.ref_count(), 0u); in TestClockDivider() 391 EXPECT_EQ(clock_divider_c.ref_count(), 0u); in TestClockDivider() 395 EXPECT_EQ(clock_a.ref_count(), 1u); in TestClockDivider() 396 EXPECT_EQ(clock_divider_b.ref_count(), 1u); in TestClockDivider() [all …]
|
/external/webrtc/api/ |
D | DEPS | 84 "+rtc_base/ref_count.h", 92 "+rtc_base/ref_count.h", 97 "+rtc_base/ref_count.h", 105 "+rtc_base/ref_count.h", 109 "+rtc_base/ref_count.h", 113 "+rtc_base/ref_count.h", 118 "+rtc_base/ref_count.h", 135 "+rtc_base/ref_count.h", 151 "+rtc_base/ref_count.h", 163 "+rtc_base/ref_count.h", [all …]
|
/external/harfbuzz_ng/src/ |
D | hb-object.hh | 145 mutable hb_atomic_int_t ref_count; member 147 void init (int v = 1) { ref_count = v; } in init() 148 int get_relaxed () const { return ref_count; } in get_relaxed() 149 int inc () const { return ref_count.inc (); } in inc() 150 int dec () const { return ref_count.dec (); } in dec() 151 void fini () { ref_count = -0x0000DEAD; } in fini() 153 bool is_inert () const { return !ref_count; } in is_inert() 154 bool is_valid () const { return ref_count > 0; } in is_valid() 215 hb_reference_count_t ref_count; member 219 bool is_inert () const { return !ref_count.get_relaxed (); } in is_inert() [all …]
|
/external/crosvm/win_audio/src/win_audio_impl/ |
D | completion_handler.rs | 36 ref_count: AtomicU32, field 48 ref_count: AtomicU32::new(1), in create_com_ptr() 67 self.ref_count.fetch_add(1, SeqCst) + 1 in increment_counter() 71 let old_val = self.ref_count.fetch_sub(1, SeqCst); in decrement_counter() 173 let ref_count = (*win_audio_completion_handler).decrement_counter(); in release() localVariable 174 if ref_count == 0 { in release() 180 ref_count in release() 279 let ref_count = add_ref(&completion_handler); in test_add_ref() localVariable 280 assert_eq!(ref_count, 2); in test_add_ref() 293 let ref_count = add_ref(&completion_handler); in test_release() localVariable [all …]
|
D | device_notification.rs | 38 ref_count: AtomicU32, field 54 ref_count: AtomicU32::new(1), in create_com_ptr() 73 self.ref_count.fetch_add(1, SeqCst) + 1 in increment_counter() 77 let old_val = self.ref_count.fetch_sub(1, SeqCst); in decrement_counter() 148 let ref_count = (*win_imm_notification_client).decrement_counter(); in release() localVariable 149 if ref_count == 0 { in release() 153 ref_count in release() 317 let ref_count = add_ref(¬ification_client); in test_release() localVariable 318 assert_eq!(ref_count, 2); in test_release() 320 let ref_count = release(¬ification_client); in test_release() localVariable [all …]
|
/external/rust/android-crates-io/crates/tokio/src/runtime/task/ |
D | state.rs | 121 if next.ref_count() == 0 { in transition_to_running() 160 if next.ref_count() == 0 { in transition_to_idle() 195 prev.ref_count() >= count, in transition_to_terminal() 197 prev.ref_count(), in transition_to_terminal() 200 prev.ref_count() == count in transition_to_terminal() 221 assert!(snapshot.ref_count() > 0); in transition_to_notified_by_val() 229 if snapshot.ref_count() == 0 { in transition_to_notified_by_val() 459 assert!(prev.ref_count() >= 1); in ref_dec() 460 prev.ref_count() == 1 in ref_dec() 466 assert!(prev.ref_count() >= 2); in ref_dec_twice() [all …]
|
/external/libexif/libexif/ |
D | exif-log.c | 30 unsigned int ref_count; member 77 log->ref_count = 1; in exif_log_new_mem() 100 log->ref_count++; in exif_log_ref() 107 if (log->ref_count > 0) log->ref_count--; in exif_log_unref() 108 if (!log->ref_count) exif_log_free (log); in exif_log_unref()
|
D | exif-mnote-data.c | 31 unsigned int ref_count; member 42 d->priv->ref_count = 1; in exif_mnote_data_construct() 51 if (d && d->priv) d->priv->ref_count++; in exif_mnote_data_ref() 74 if (d->priv->ref_count > 0) d->priv->ref_count--; in exif_mnote_data_unref() 75 if (!d->priv->ref_count) in exif_mnote_data_unref()
|
D | exif-mem.c | 6 unsigned int ref_count; member 44 mem->ref_count = 1; in exif_mem_new() 57 mem->ref_count++; in exif_mem_ref() 64 if (!--mem->ref_count) in exif_mem_unref()
|
/external/libcups/cups/ |
D | string.c | 86 item->ref_count ++; in _cupsStrAlloc() 91 item->ref_count)); in _cupsStrAlloc() 115 item->ref_count = 1; in _cupsStrAlloc() 123 item->ref_count)); in _cupsStrAlloc() 325 …ree: Freeing string %p(%s), guard=%08x, ref_count=%d", key, key->str, key->guard, key->ref_count)); in _cupsStrFree() 330 item->ref_count --; in _cupsStrFree() 332 if (!item->ref_count) in _cupsStrFree() 370 "ref_count=%d", item, s, item->guard, item->ref_count)); in _cupsStrRetain() 377 item->ref_count ++; in _cupsStrRetain() 554 count += item->ref_count; in _cupsStrStatistics() [all …]
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/sched/sched_set_boost/ |
D | format | 9 field:unsigned int ref_count; offset:8; size:4; signed:0; 11 print fmt: "ref_count=%d", REC->ref_count
|
/external/federated-compute/fcp/tracing/ |
D | tracing_recorder_impl.cc | 34 int ref_count = 0; member 81 thread_local_state.ref_count++; in SetThreadLocalRecorderImpl() 90 thread_local_state.ref_count > 0) in ResetThreadLocalRecorderImpl() 93 if (--thread_local_state.ref_count == 0) { in ResetThreadLocalRecorderImpl()
|
/external/rust/android-crates-io/crates/tower/src/load/ |
D | pending_requests.rs | 22 ref_count: RefCount, field 58 ref_count: RefCount::default(), in new() 63 Handle(self.ref_count.clone()) in handle() 72 Count(self.ref_count.ref_count() - 1) in load() 142 pub(crate) fn ref_count(&self) -> usize { in ref_count() method
|
/external/webrtc/api/video/ |
D | DEPS | 10 "+rtc_base/ref_count.h", 38 "+rtc_base/ref_count.h", 45 "+rtc_base/ref_count.h",
|
/external/tensorflow/tensorflow/compiler/xla/runtime/ |
D | async_runtime.cc | 53 explicit AsyncToken(unsigned ref_count = 1) in AsyncToken() argument 54 : AsyncRuntimeObject(ref_count), in AsyncToken() 65 explicit AsyncValue(size_t size, size_t alignment, unsigned ref_count = 1) in AsyncValue() argument 66 : AsyncRuntimeObject(ref_count), in AsyncValue() 113 explicit AsyncGroup(int64_t size, unsigned ref_count = 1) in AsyncGroup() argument 114 : AsyncRuntimeObject(ref_count), in AsyncGroup()
|
/external/rust/android-crates-io/crates/h2/src/proto/streams/ |
D | stream.rs | 31 pub ref_count: usize, field 160 ref_count: 0, in new() 197 assert!(self.ref_count < usize::MAX); in ref_inc() 198 self.ref_count += 1; in ref_inc() 203 assert!(self.ref_count > 0); in ref_dec() 204 self.ref_count -= 1; in ref_dec() 253 self.ref_count == 0 && in is_released() 266 self.ref_count == 0 && !self.state.is_closed() in is_canceled_interest()
|
/external/rust/android-crates-io/crates/futures-channel/tests/ |
D | mpsc-close.rs | 109 let ref_count = Arc::new(0); in single_receiver_drop_closes_channel_and_drains() localVariable 110 let weak_ref = Arc::downgrade(&ref_count); in single_receiver_drop_closes_channel_and_drains() 113 sender.unbounded_send(ref_count).expect("failed to send"); in single_receiver_drop_closes_channel_and_drains() 128 let ref_count = Arc::new(0); in single_receiver_drop_closes_channel_and_drains() localVariable 129 let weak_ref = Arc::downgrade(&ref_count); in single_receiver_drop_closes_channel_and_drains() 132 sender.try_send(ref_count).expect("failed to send"); in single_receiver_drop_closes_channel_and_drains()
|
/external/XNNPACK/test/ |
D | workspace.cc | 231 ASSERT_EQ(workspace->ref_count, 3); in TEST() 295 ASSERT_EQ(workspace->ref_count, 3); in TEST() 327 ASSERT_EQ(workspace->ref_count, 3); in TEST() 331 ASSERT_EQ(workspace->ref_count, 2); in TEST() 335 ASSERT_EQ(workspace->ref_count, 1); in TEST() 367 ASSERT_EQ(workspace->ref_count, 3); in TEST() 372 ASSERT_EQ(workspace->ref_count, 2); in TEST() 376 ASSERT_EQ(workspace->ref_count, 1); in TEST() 417 ASSERT_EQ(workspace->ref_count, 4); in TEST() 423 ASSERT_EQ(workspace->ref_count, 3); in TEST() [all …]
|
/external/libva-utils/common/ |
D | va_display_wayland.c | 41 unsigned int ref_count; member 77 d->ref_count++; in va_open_display_wayland() 95 d->ref_count = 1; in va_open_display_wayland() 106 if (!d || --d->ref_count > 0) in va_close_display_wayland()
|
/external/perfetto/src/profiling/common/ |
D | interner.h | 52 size_t ref_count = 0; member 63 entry_->ref_count++; in Interned() 112 entry.ref_count++; in Intern() 122 if (--entry->ref_count == 0) in Return()
|
/external/webrtc/api/adaptation/ |
D | DEPS | 3 # ref_count.h is a public_deps of rtc_base:refcount. Necessary because of 5 "+rtc_base/ref_count.h",
|
/external/mesa3d/src/gallium/winsys/sw/kms-dri/ |
D | kms_dri_sw_winsys.c | 87 int ref_count; member 183 kms_sw_dt->ref_count = 1; in kms_sw_displaytarget_create() 233 kms_sw_dt->ref_count --; in kms_sw_displaytarget_destroy() 234 if (kms_sw_dt->ref_count > 0) in kms_sw_displaytarget_destroy() 307 kms_sw_dt->ref_count++; in kms_sw_displaytarget_find_and_ref() 339 kms_sw_dt->ref_count --; in kms_sw_displaytarget_add_from_prime() 356 kms_sw_dt->ref_count = 1; in kms_sw_displaytarget_add_from_prime() 440 kms_sw_dt->ref_count --; in kms_sw_displaytarget_from_handle()
|
/external/elfutils/libelf/ |
D | common.h | 77 result->ref_count = 1; in allocate_elf() 105 if (child->ref_count != 0) in libelf_acquire_all() 123 if (child->ref_count != 0) in libelf_release_all()
|
/external/webrtc/rtc_base/ |
D | ref_counter.h | 22 explicit RefCounter(int ref_count) : ref_count_(ref_count) {} in RefCounter() argument
|
/external/swiftshader/src/Vulkan/ |
D | VkSemaphoreExternalLinux.hpp | 73 ref_count++; in addRef() 81 bool result = (--ref_count == 0); in deref() 127 int ref_count = 1; member in SharedSemaphore
|