Home
last modified time | relevance | path

Searched refs:T (Results 1 – 25 of 183) sorted by relevance

12345678

/device/generic/goldfish-opengl/android-emu/android/base/
DOptional.h144 template <class T>
157 template <class T>
160 private details::OptionalStorageBase<sizeof(T),
161 std::alignment_of<T>::value> {
172 details::OptionalStorageBase<sizeof(T),
173 std::alignment_of<T>::value>;
177 using value_type = T;
181 static_assert(!std::is_same<typename std::decay<T>::type, NulloptT>::value,
183 static_assert(!std::is_same<typename std::decay<T>::type, InplaceT>::value,
185 static_assert(!std::is_reference<T>::value,
[all …]
DCompiler.h26 #define DISALLOW_COPY_AND_ASSIGN(T) \ argument
27 T(const T& other) = delete; \
28 T& operator=(const T& other) = delete
34 #define DISALLOW_COPY_ASSIGN_AND_MOVE(T) \ argument
35 DISALLOW_COPY_AND_ASSIGN(T); \
36 T(T&&) = delete; \
37 T& operator=(T&&) = delete
DAlignedBuf.h32 template <class T, size_t align>
74 std::has_trivial_copy_constructor<T>::value; in resize()
76 constexpr bool triviallyCopyable = std::is_trivially_copyable<T>::value; in resize()
86 T* data() { return mBuffer; } in data()
88 T& operator[](size_t index) { return mBuffer[index]; }
90 const T& operator[](size_t index) const { return mBuffer[index]; }
93 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize));
100 size_t pad = std::max(align, sizeof(T)); in resizeImpl()
102 size_t newSizeBytes = ((align - 1 + newSize * sizeof(T) + pad) / align) * align; in resizeImpl()
104 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl()
[all …]
DStringFormat.h56 template <class T>
57 constexpr T&& unpackFormatArg(T&& t,
59 std::is_pod<typename std::decay<T>::type>::value
61 return std::forward<T>(t);
DTypeTraits.h102 template <class T, template <class...> class U>
122 template <class T>
125 std::declval<typename std::add_lvalue_reference<T>::type>())),
127 std::declval<typename std::add_lvalue_reference<T>::type>()))>;
131 template <class T, class = void>
134 template <class T>
136 T,
137 typename std::enable_if<details::is_range_helper<T>::value>::type>
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/
Dinvensense_icm40600.c746 #define T(v) (_task->v) macro
760 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
766 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
794 time_sync_init(&T(gSensorTime2RTC));
799 return time_sync_estimate_time1(&T(gSensorTime2RTC), sensor_time, rtc_time_ns);
805 T(statistics_set).sync_count++;
807 time_sync_add(&T(gSensorTime2RTC), rtc_time_ns, sensor_time);
813 T(statistics_set).sync_reset_count++;
815 time_sync_reset(&T(gSensorTime2RTC));
823 slabAllocatorFree(T(mDataSlab), ev);
[all …]
/device/google/contexthub/firmware/os/drivers/st_lsm6dsm/
Dst_lsm6dsm.c936 #define T(v) (_task->v) macro
954 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState); in trySwitchState_()
1408 T(pendingBaroTimerTask) = true; in lsm6dsm_baroTimerTask()
1431 if (T(time).status != TIME_SYNC_TIMER) in lsm6dsm_timeSyncTask()
1440 T(time).timeSyncRtcTime = sensorGetTime(); in lsm6dsm_timeSyncTask()
1444 T(pendingTimeSyncTask) = true; in lsm6dsm_timeSyncTask()
1455 …if (T(sensors[STEP_DETECTOR]).enabled || T(sensors[STEP_COUNTER]).enabled || T(sensors[SIGN_MOTION… in lsm6dsm_readStatusReg_()
1463 osEnqueuePrivateEvt(EVT_SENSOR_INTERRUPT_1, _task, NULL, T(tid)); in lsm6dsm_readStatusReg_()
1465 T(pendingInt) = true; in lsm6dsm_readStatusReg_()
1477 if (!extiIsPendingGpio(T(int1))) in lsm6dsm_isr1()
[all …]
/device/google/cuttlefish_kernel/4.14-x86_64/
DSystem.map272 ffffffff81000000 T _stext
273 ffffffff81000000 T _text
274 ffffffff81000000 T startup_64
275 ffffffff81000030 T secondary_startup_64
276 ffffffff810000e0 T verify_cpu
277 ffffffff810001e0 T start_cpu0
278 ffffffff810001f0 T __startup_64
279 ffffffff810003a0 T __startup_secondary_64
280 ffffffff810003b0 T do_one_initcall
281 ffffffff810005c0 T name_to_dev_t
[all …]
/device/google/cuttlefish_kernel/4.4-x86_64/
DSystem.map249 ffffffff81000000 T _text
250 ffffffff81000000 T startup_64
251 ffffffff81000110 T secondary_startup_64
259 ffffffff810002a0 T start_cpu0
261 ffffffff810002b8 T _stext
262 ffffffff810002c0 T do_one_initcall
263 ffffffff810004b0 T name_to_dev_t
268 ffffffff810009e0 T calibrate_delay
269 ffffffff81002000 T ___preempt_schedule
270 ffffffff81002014 T ___preempt_schedule_notrace
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/files/
DStreamSerializing.h35 template <class T, class = enable_if<std::is_standard_layout<T>>>
36 void saveBuffer(Stream* stream, const std::vector<T>& buffer) { in saveBuffer()
38 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer()
41 template <class T, class = enable_if<std::is_standard_layout<T>>>
42 bool loadBuffer(Stream* stream, std::vector<T>* buffer) { in loadBuffer()
45 int ret = (int)stream->read(buffer->data(), len * sizeof(T)); in loadBuffer()
46 return ret == len * sizeof(T); in loadBuffer()
49 template <class T, class = enable_if<std::is_standard_layout<T>>>
50 void saveBuffer(Stream* stream, const SmallVector<T>& buffer) { in saveBuffer()
52 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer()
[all …]
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/
DglUtils.h82 template <class T> void minmax(const T *indices, int count, int *min, int *max) { in minmax()
85 const T *ptr = indices; in minmax()
93 template <class T> void minmaxExcept in minmaxExcept()
94 (const T *indices, int count, int *min, int *max, in minmaxExcept()
95 bool shouldExclude, T whatExclude) { in minmaxExcept()
101 const T *ptr = indices; in minmaxExcept()
111 template <class T> void shiftIndices(T *indices, int count, int offset) { in shiftIndices()
112 T *ptr = indices; in shiftIndices()
120 template <class T> void shiftIndices(const T *src, T *dst, int count, int offset) in shiftIndices()
129 template <class T> void shiftIndicesExcept in shiftIndicesExcept()
[all …]
DSmartPtr.h23 template <class T, bool threadSafe = false>
27 explicit SmartPtr(T* ptr = (T*)NULL) {
41 SmartPtr<T,threadSafe>(const SmartPtr<T,false>& rhs) {
53 SmartPtr<T,threadSafe>(SmartPtr<T,true>& rhs) {
78 T* Ptr() const { in Ptr()
82 const T* constPtr() const in constPtr()
87 T* operator->() const {
91 T& operator*() const {
100 bool operator <(const SmartPtr<T>& t1) const {
104 SmartPtr<T,threadSafe>& operator=(const SmartPtr<T,false>& rhs)
[all …]
/device/linaro/bootloader/edk2/StdLib/BsdSocketLib/
Dns_print.c91 #define T(x) \ macro
151 T(addstr("\t\t\t", 3, &buf, &buflen)); in ns_sprintrrf()
155 T(addstr("@\t\t\t", 4, &buf, &buflen)); in ns_sprintrrf()
157 T(addstr(name, len, &buf, &buflen)); in ns_sprintrrf()
161 T(addstr(".", 1, &buf, &buflen)); in ns_sprintrrf()
164 T(spaced = addtab(len, 24, spaced, &buf, &buflen)); in ns_sprintrrf()
171 T(x = ns_format_ttl(ttl, buf, buflen)); in ns_sprintrrf()
174 T(addstr(tmp, len, &buf, &buflen)); in ns_sprintrrf()
175 T(spaced = addtab(x + len, 16, spaced, &buf, &buflen)); in ns_sprintrrf()
194 T(addname(msg, msglen, &rdata, origin, &buf, &buflen)); in ns_sprintrrf()
[all …]
Dns_ttl.c75 #define T(x) if ((x) < 0) return (-1); else (void)NULL macro
93 T(fmt1(weeks, 'W', &dst, &dstlen)); in ns_format_ttl()
97 T(fmt1(days, 'D', &dst, &dstlen)); in ns_format_ttl()
101 T(fmt1(hours, 'H', &dst, &dstlen)); in ns_format_ttl()
105 T(fmt1(mins, 'M', &dst, &dstlen)); in ns_format_ttl()
109 T(fmt1(secs, 'S', &dst, &dstlen)); in ns_format_ttl()
/device/google/cuttlefish_common/common/libs/net/
Dnetlink_request.h47 template <typename T>
48 void AddInt(uint16_t type, T value) { in AddInt()
49 static_assert(std::is_integral<T>::value, in AddInt()
90 template <typename T> T* Append(const T& data) { in Append()
91 return static_cast<T*>(AppendRaw(&data, sizeof(T))); in Append()
95 template <typename T> T* Reserve() { in Reserve()
96 return static_cast<T*>(ReserveRaw(sizeof(T))); in Reserve()
/device/linaro/bootloader/edk2/StdLib/LibC/Math/
Dk_tan.c76 #define T xxx macro
126 r = T[1] + w * (T[3] + w * (T[5] + w * (T[7] + w * (T[9] + in __kernel_tan()
127 w * T[11])))); in __kernel_tan()
128 v = z * (T[2] + w * (T[4] + w * (T[6] + w * (T[8] + w * (T[10] + in __kernel_tan()
129 w * T[12]))))); in __kernel_tan()
132 r += T[0] * s; in __kernel_tan()
/device/generic/goldfish-opengl/system/vulkan_enc/
Dvk_util.h200 template <class T, class H> T* vk_find_struct(H* head) in vk_find_struct()
203 return static_cast<T*>(__vk_find_struct(static_cast<void*>(head), vk_get_vk_struct_id<T>::id)); in vk_find_struct()
206 template <class T, class H> const T* vk_find_struct(const H* head) in vk_find_struct()
209 return static_cast<const T*>(__vk_find_struct(const_cast<void*>(static_cast<const void*>(head)), in vk_find_struct()
210 vk_get_vk_struct_id<T>::id)); in vk_find_struct()
223 template <class T> T vk_make_orphan_copy(const T& vk_struct) { in vk_make_orphan_copy()
224 T copy = vk_struct; in vk_make_orphan_copy()
229 template <class T> vk_struct_chain_iterator vk_make_chain_iterator(T* vk_struct) in vk_make_chain_iterator()
231 vk_get_vk_struct_id<T>::id; in vk_make_chain_iterator()
236 template <class T> void vk_append_struct(vk_struct_chain_iterator* i, T* vk_struct) in vk_append_struct()
[all …]
/device/generic/goldfish/wifi/wifi_hal/
Dnetlinkmessage.h31 template<typename T,
32 typename = std::enable_if_t<std::is_pod<T>::value>>
33 bool getAttribute(int attributeId, T* value) const { in getAttribute()
34 return getAttribute(attributeId, value, sizeof(T)); in getAttribute()
47 template<typename T>
48 T* payload() { in payload()
49 return reinterpret_cast<T*>(NLMSG_DATA(header())); in payload()
51 template<typename T>
52 const T* payload() const { in payload()
53 return reinterpret_cast<T*>(NLMSG_DATA(header())); in payload()
/device/google/cuttlefish_common/common/vsoc/lib/
Dregion_view.h169 template <typename T>
170 LockGuard<T> make_lock_guard(T* lock) { in make_lock_guard()
171 return LockGuard<T>(lock); in make_lock_guard()
180 template <typename T>
181 T* region_offset_to_pointer(uint32_t offset) { in region_offset_to_pointer()
182 return control_->region_offset_to_pointer<T>(offset); in region_offset_to_pointer()
185 template <typename T>
186 const T& region_offset_to_reference(uint32_t offset) const { in region_offset_to_reference()
191 return *reinterpret_cast<const T*>( in region_offset_to_reference()
199 template <typename T>
[all …]
/device/generic/opengl-transport/host/libs/virglrenderer/
DProtocolUtils.h56 template <typename T, typename S>
58 static T unpack(const void* ptr) { in unpack()
59 static_assert(sizeof(T) == sizeof(S), in unpack()
61 return *(const T*)ptr; in unpack()
65 template <typename T, typename S>
66 struct UnpackerT<T*, S> {
67 static T* unpack(const void* ptr) {
68 return (T*)(uintptr_t)(*(const S*)ptr);
79 template <typename T, typename S>
80 inline T Unpack(const void* ptr) {
[all …]
/device/generic/goldfish-opengl/android-emu/android/base/containers/
DSmallVector.h53 template <class T, size_t S>
70 template <class T>
79 using value_type = T;
80 using iterator = T*;
81 using const_iterator = const T*;
82 using pointer = T*;
83 using const_pointer = const T*;
84 using reference = T&;
85 using const_reference = const T&;
120 new (mEnd) T(std::forward<Args>(args)...); in emplace_back()
[all …]
/device/generic/goldfish/wifi/ipv6proxy/
Daddress.h38 template<typename T>
39 const T* get() const { in get()
40 return reinterpret_cast<const T*>(mStorage.data()); in get()
43 template<typename T>
44 T* get() { in get()
45 return reinterpret_cast<T*>(mStorage.data()); in get()
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/
Dbosch_bmi160.c706 #define T(v) (_task->v) macro
720 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
726 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState);
818 slabAllocatorFree(T(mDataSlab), ev);
824 if (T(spiInUse)) {
828 T(packets[T(mRegCnt)]).size = 2;
829 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]);
830 T(packets[T(mRegCnt)]).rxBuf = &T(txrxBuffer[T(mWbufCnt)]);
831 T(packets[T(mRegCnt)]).delay = delay * 1000;
832 T(txrxBuffer[T(mWbufCnt++)]) = BMI160_SPI_WRITE | addr;
[all …]
/device/generic/goldfish/dhcp/common/
Dmessage.h104 template<typename T>
105 void addOption(uint8_t type, T data) { in addOption()
106 static_assert(sizeof(T) <= 255, "The size of data is too large"); in addOption()
109 template<typename T, size_t N>
110 void addOption(uint8_t type, T (&items)[N]) { in addOption()
111 static_assert(sizeof(T) * N <= 255, in addOption()
115 *opts++ = sizeof(T) * N; in addOption()
116 for (const T& item : items) { in addOption()
/device/google/cuttlefish_common/common/libs/thread_safe_queue/
Dthread_safe_queue.h33 template <typename T>
36 using QueueImpl = std::deque<T>;
43 T Pop() { in Pop()
53 void Push(T&& t) { in Push()
60 void Push(const T& t) { in Push()

12345678