/device/generic/goldfish-opengl/android-emu/android/base/ |
D | Optional.h | 147 template <class T> 160 template <class T> 163 private details::OptionalStorageBase<sizeof(T), 164 std::alignment_of<T>::value> { 175 details::OptionalStorageBase<sizeof(T), 176 std::alignment_of<T>::value>; 180 using value_type = T; 184 static_assert(!std::is_same<typename std::decay<T>::type, NulloptT>::value, 186 static_assert(!std::is_same<typename std::decay<T>::type, InplaceT>::value, 188 static_assert(!std::is_reference<T>::value, [all …]
|
D | Compiler.h | 29 #define DISALLOW_COPY_AND_ASSIGN(T) \ argument 30 T(const T& other) = delete; \ 31 T& operator=(const T& other) = delete 37 #define DISALLOW_COPY_ASSIGN_AND_MOVE(T) \ argument 38 DISALLOW_COPY_AND_ASSIGN(T); \ 39 T(T&&) = delete; \ 40 T& operator=(T&&) = delete
|
D | AlignedBuf.h | 35 template <class T, size_t align> 77 std::has_trivial_copy_constructor<T>::value; in resize() 79 constexpr bool triviallyCopyable = std::is_trivially_copyable<T>::value; in resize() 89 T* data() { return mBuffer; } in data() 91 T& operator[](size_t index) { return mBuffer[index]; } 93 const T& operator[](size_t index) const { return mBuffer[index]; } 96 return 0 == std::memcmp(mBuffer, other.mBuffer, sizeof(T) * std::min(mSize, other.mSize)); 103 size_t pad = std::max(align, sizeof(T)); in resizeImpl() 105 size_t newSizeBytes = ((align - 1 + newSize * sizeof(T) + pad) / align) * align; in resizeImpl() 107 std::vector<T> temp(mBuffer, mBuffer + keepSize); in resizeImpl() [all …]
|
/device/google/contexthub/firmware/os/drivers/invensense_icm40600/ |
D | invensense_icm40600.c | 746 #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/ |
D | st_lsm6dsm.c | 936 #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/generic/goldfish-opengl/android-emu/android/base/files/ |
D | StreamSerializing.h | 38 template <class T, class = enable_if<std::is_standard_layout<T>>> 39 void saveBuffer(Stream* stream, const std::vector<T>& buffer) { in saveBuffer() 41 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer() 44 template <class T, class = enable_if<std::is_standard_layout<T>>> 45 bool loadBuffer(Stream* stream, std::vector<T>* buffer) { in loadBuffer() 48 int ret = (int)stream->read(buffer->data(), len * sizeof(T)); in loadBuffer() 49 return ret == len * sizeof(T); in loadBuffer() 52 template <class T, class = enable_if<std::is_standard_layout<T>>> 53 void saveBuffer(Stream* stream, const SmallVector<T>& buffer) { in saveBuffer() 55 stream->write(buffer.data(), sizeof(T) * buffer.size()); in saveBuffer() [all …]
|
/device/generic/goldfish/radio/libril/ |
D | rilSocketQueue.h | 35 template <typename T> 56 T *front; 65 T* dequeue(void); 72 void enqueue(T* request); 93 template <typename T> 94 Ril_queue<T>::Ril_queue(void) { in Ril_queue() 101 template <typename T> 102 T* Ril_queue<T>::dequeue(void) { in dequeue() 103 T* temp = NULL; in dequeue() 120 template <typename T> [all …]
|
/device/generic/goldfish-opengl/shared/OpenglCodecCommon/ |
D | glUtils.h | 82 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 …]
|
D | SmartPtr.h | 23 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/google/cuttlefish/host/frontend/gcastv2/https/include/https/ |
D | SafeCallbackable.h | 21 template<typename T> 22 std::function<void()> makeSafeCallback(T *obj, std::function<void(T *)> f) { in makeSafeCallback() 23 auto weak_me = std::weak_ptr<T>(obj->shared_from_this()); in makeSafeCallback() 32 template<typename T, typename... Params> 34 T *obj, void (T::*f)(const Params&...), const Params&... params) { in makeSafeCallback() 35 return makeSafeCallback<T>( in makeSafeCallback() 37 [f, params...](T *me) { in makeSafeCallback() 42 template<typename T, typename... Params> 44 T *obj, void (T::*f)(Params...), const Params&... params) { in makeSafeCallback() 45 return makeSafeCallback<T>( in makeSafeCallback() [all …]
|
/device/google/cuttlefish/host/commands/secure_env/ |
D | tpm_serialize.cpp | 24 template<typename T> 27 template<typename T> 42 template<typename T> 43 TpmSerializable<T>::TpmSerializable(T* instance) : instance_(instance) {} in TpmSerializable() 45 template<typename T> 46 size_t TpmSerializable<T>::SerializedSize() const { in SerializedSize() 48 auto rc = MarshalFn<T>(instance_, nullptr, sizeof(T), &size); in SerializedSize() 57 template<typename T> 58 uint8_t* TpmSerializable<T>::Serialize(uint8_t* buf, const uint8_t* end) const { in Serialize() 60 auto rc = MarshalFn<T>(instance_, buf, end - buf, &offset); in Serialize() [all …]
|
/device/google/cuttlefish_kernel/5.4-x86_64/ |
D | System.map | 277 ffffffff81000000 T _stext 278 ffffffff81000000 T _text 279 ffffffff81000000 T startup_64 280 ffffffff81000030 T secondary_startup_64 281 ffffffff810000e0 T verify_cpu 282 ffffffff810001e0 T start_cpu0 283 ffffffff810001f0 T __startup_64 284 ffffffff810004a0 T ___preempt_schedule 285 ffffffff810004c0 T ___preempt_schedule_notrace 286 ffffffff810004f0 T native_save_fl [all …]
|
/device/google/cuttlefish/common/libs/net/ |
D | netlink_request.h | 46 template <typename T> 47 void AddInt(uint16_t type, T value) { in AddInt() 48 static_assert(std::is_integral<T>::value, in AddInt() 92 template <typename T> T* Append(const T& data) { in Append() 93 return static_cast<T*>(AppendRaw(&data, sizeof(T))); in Append() 97 template <typename T> T* Reserve() { in Reserve() 98 return static_cast<T*>(ReserveRaw(sizeof(T))); in Reserve()
|
/device/google/cuttlefish/host/commands/modem_simulator/ |
D | thread_looper.h | 28 template <typename T> 29 std::function<void()> makeSafeCallback(T *me, std::function<void(T *)> f) { in makeSafeCallback() 37 template<typename T, typename... Params> 39 T *obj, void (T::*f)(const Params&...), const Params&... params) { in makeSafeCallback() 40 return makeSafeCallback<T>(obj, in makeSafeCallback() 41 [f, params...](T *me) { (me->*f)(params...); }); in makeSafeCallback() 44 template<typename T, typename... Params> 46 T *obj, void (T::*f)(Params...), const Params&... params) { in makeSafeCallback() 47 return makeSafeCallback<T>(obj, in makeSafeCallback() 48 [f, params...](T *me) { (me->*f)(params...); }); in makeSafeCallback()
|
/device/generic/goldfish-opengl/system/vulkan_enc/ |
D | vk_util.h | 200 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-opengl/android-emu/android/base/threads/ |
D | AndroidThreadStore.h | 121 template <typename T> 129 T* get() { in get() 130 return static_cast<T*>(ThreadStoreBase::get()); in get() 136 void set(T* t) { in set() 137 T* old = static_cast<T*>(swap(t)); in set() 144 T* swap(T* t) { in swap() 145 return static_cast<T*>(ThreadStoreBase::swap(t)); in swap() 150 delete static_cast<T*>(opaque); in myDestructor()
|
/device/generic/goldfish/wifi/wifi_hal/ |
D | netlinkmessage.h | 31 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/coral/vibrator/ |
D | Hardware.cpp | 33 template <typename T> 34 static void fileFromEnv(const char *env, T *outStream, std::string *outName = nullptr) { in fileFromEnv() 36 auto mode = std::is_base_of_v<std::ostream, T> ? std::ios_base::out : std::ios_base::in; in fileFromEnv() 84 template <typename T> 85 static Enable_If_Iterable<T, true> unpack(std::istream &stream, T *value) { in unpack() 91 template <typename T> 92 static Enable_If_Iterable<T, false> unpack(std::istream &stream, T *value) { in unpack() 118 template <typename T> 119 bool HwApi::has(T &stream) { in has() 123 template <typename T, typename U> [all …]
|
/device/generic/goldfish-opengl/android-emu/android/base/containers/ |
D | SmallVector.h | 56 template <class T, size_t S> 73 template <class T> 82 using value_type = T; 83 using iterator = T*; 84 using const_iterator = const T*; 85 using pointer = T*; 86 using const_pointer = const T*; 87 using reference = T&; 88 using const_reference = const T&; 123 new (mEnd) T(std::forward<Args>(args)...); in emplace_back() [all …]
|
/device/generic/opengl-transport/host/libs/virglrenderer/ |
D | ProtocolUtils.h | 56 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/synchronization/ |
D | AndroidMessageChannel.h | 117 template <typename T, size_t CAPACITY> 122 bool send(const T& msg) { in send() 132 bool send(T&& msg) { in send() 142 bool trySend(const T& msg) { in trySend() 151 bool trySend(T&& msg) { in trySend() 160 bool receive(T* msg) { in receive() 170 Optional<T> receive() { in receive() 173 Optional<T> msg(std::move(mItems[pos])); in receive() 182 bool tryReceive(T* msg) { in tryReceive() 191 Optional<T> timedReceive(uint64_t wallTimeUs) { in timedReceive() [all …]
|
/device/google/cuttlefish/host/libs/wayland/ |
D | wayland_utils.h | 28 template <typename T> 29 T* GetUserData(wl_resource* resource) { in GetUserData() 32 return static_cast<T*>(data); in GetUserData() 36 template <typename T> 38 std::unique_ptr<T> data(GetUserData<T>(resource)); in DestroyUserData()
|
/device/google/cuttlefish_kernel/5.4-arm64/ |
D | System.map | 18 ffffffc010080000 T _text 26 ffffffc010081000 T __exception_text_start 27 ffffffc010081000 T _stext 37 ffffffc01008115c T do_undefinstr 39 ffffffc0100811b4 T do_cp15instr 42 ffffffc0100813e4 T do_sysinstr 45 ffffffc01008155c T do_mem_abort 46 ffffffc010081650 T do_el0_irq_bp_hardening 49 ffffffc0100816e4 T do_el0_ia_bp_hardening 52 ffffffc0100817d0 T do_sp_pc_abort [all …]
|
/device/generic/goldfish/network/wifi_forwarder/ |
D | netlink_message.h | 35 template<typename T, 36 typename = typename std::enable_if<!std::is_pointer<T>::value>::type> 37 bool addAttribute(int attribute, const T& value) { in addAttribute() 38 return nla_put(mMessage, attribute, sizeof(T), &value) == 0; in addAttribute() 40 template<typename T, 41 typename = typename std::enable_if<std::is_pointer<T>::value>::type> 42 bool addAttribute(int attribute, T data, size_t numElements) { in addAttribute()
|
/device/google/contexthub/firmware/os/drivers/bosch_bmi160/ |
D | bosch_bmi160.c | 713 #define T(v) (_task->v) macro 727 bool ret = atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState); 733 return atomicCmpXchgByte(&T(state), SENSOR_IDLE, newState); 825 slabAllocatorFree(T(mDataSlab), ev); 831 if (T(spiInUse)) { 835 T(packets[T(mRegCnt)]).size = 2; 836 T(packets[T(mRegCnt)]).txBuf = &T(txrxBuffer[T(mWbufCnt)]); 837 T(packets[T(mRegCnt)]).rxBuf = &T(txrxBuffer[T(mWbufCnt)]); 838 T(packets[T(mRegCnt)]).delay = delay * 1000; 839 T(txrxBuffer[T(mWbufCnt++)]) = BMI160_SPI_WRITE | addr; [all …]
|