Searched refs:static_cast (Results 76 - 100 of 103) sorted by path

12345

/frameworks/native/libs/math/include/math/
H A DTVecHelpers.h63 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
71 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
84 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
91 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
144 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
152 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
165 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
172 VECTOR<T>& lhs = static_cast<VECTOR<T>&>(*this);
230 VECTOR<T>& rhs = static_cast<VECTOR<T>&>(*this);
238 VECTOR<T>& rhs = static_cast<VECTO
[all...]
H A Dhalf.h110 int e = static_cast<int>(in.getE()) - 127 + 15;
143 int e = static_cast<int>(in.getE()) - 15 + 127;
154 return android::half(android::half::binary, android::half::ftoh(static_cast<float>(v)).bits);
H A Dquat.h148 return quat(0, static_cast<float>(v), 0, 0);
151 return quat(0, 0, static_cast<float>(v), 0);
154 return quat(0, 0, 0, static_cast<float>(v));
158 return quat(0, static_cast<float>(v), 0, 0);
161 return quat(0, 0, static_cast<float>(v), 0);
164 return quat(0, 0, 0, static_cast<float>(v));
168 return quatd(0, static_cast<double>(v), 0, 0);
171 return quatd(0, 0, static_cast<double>(v), 0);
174 return quatd(0, 0, 0, static_cast<double>(v));
178 return quatd(0, static_cast<doubl
[all...]
/frameworks/native/libs/nativewindow/include/vndk/
H A Dwindow.h34 #define ANDROID_NATIVE_UNSIGNED_CAST(x) static_cast<unsigned int>(x)
/frameworks/native/libs/vr/libbufferhub/include/private/dvr/
H A Dion_buffer.h83 return buffer_.get() ? static_cast<uint64_t>(buffer_->getUsage()) : 0;
/frameworks/native/libs/vr/libbufferhubqueue/include/private/dvr/
H A Dbuffer_hub_queue_client.h168 index < static_cast<int64_t>(BufferHubQueue::kMaxQueueCapacity);
H A Dbuffer_hub_queue_producer.h122 static uint64_t id = static_cast<uint64_t>(getpid()) << 32;
/frameworks/native/libs/vr/libdvrcommon/include/private/dvr/
H A Dclock_ns.h39 return nanoseconds / static_cast<double>(kNanosPerSecond);
65 return static_cast<int64_t>(static_cast<uint64_t>(a) -
66 static_cast<uint64_t>(b)) < 0;
69 return static_cast<int64_t>(static_cast<uint64_t>(a) -
70 static_cast<uint64_t>(b)) <= 0;
73 return static_cast<int64_t>(static_cast<uint64_t>(a) -
74 static_cast<uint64_
[all...]
H A Dnumeric.h17 return f * static_cast<FT>(180.0 / M_PI);
22 return f * static_cast<FT>(M_PI / 180.0);
47 T NormalizeDegrees(T x, T centre = static_cast<T>(180.0)) { argument
48 return NormalizePeriodicRange(x, centre - static_cast<T>(180.0),
49 centre + static_cast<T>(180.0));
62 T NormalizeRadians(T x, T centre = static_cast<T>(M_PI)) { argument
63 return NormalizePeriodicRange(x, centre - static_cast<T>(M_PI),
64 centre + static_cast<T>(M_PI));
72 return vec2i(roundf(static_cast<float>(v.x()) * scale),
73 roundf(static_cast<floa
[all...]
H A Dortho.h13 const T t2 = static_cast<T>(2);
20 const T t1 = static_cast<T>(1);
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Dbuffer_wrapper.h156 return BufferWrapper<std::uint8_t*>(static_cast<std::uint8_t*>(buffer), size);
163 static_cast<const std::uint8_t*>(buffer), size);
H A Ddefault_initialization_allocator.h34 ::new (static_cast<void*>(pointer)) U;
38 AllocatorTraits::construct(static_cast<Allocator&>(*this), pointer,
H A Dencoding.h525 if (value < static_cast<char>(1 << 7))
545 return static_cast<EncodingType>(value);
553 return static_cast<EncodingType>(value);
561 return static_cast<EncodingType>(value);
571 return static_cast<EncodingType>(value);
581 return static_cast<EncodingType>(value);
593 return static_cast<EncodingType>(value);
H A Dremote_method.h100 return static_cast<Return>(InvokeHelper(MakeIndexSequence<Arity>{}));
111 return static_cast<Return>((instance_.*method_)(
H A Dserialization.h169 stream << "UNEXPECTED_ENCODING: " << static_cast<int>(encoding_class())
170 << ", " << static_cast<int>(encoding_type());
243 return GetSerializedSize(static_cast<std::underlying_type_t<T>>(v));
458 dest = static_cast<uint8_t*>(dest) + size;
831 SerializeObject(static_cast<std::underlying_type_t<T>>(value), writer,
1207 *value = static_cast<char>(encoding);
1223 *value = static_cast<std::int8_t>(encoding);
1255 *value = static_cast<std::int8_t>(encoding);
1291 *value = static_cast<std::int8_t>(encoding);
1331 *value = static_cast<st
[all...]
/frameworks/native/libs/vr/libpdx/private/pdx/
H A Dutility.h74 data_ = static_cast<uint8_t*>(new_data);
100 return static_cast<const uint8_t*>(ptr) + offset;
105 return static_cast<uint8_t*>(ptr) + offset;
109 return static_cast<const uint8_t*>(end) - static_cast<const uint8_t*>(begin);
/frameworks/native/libs/vr/libvrflinger/
H A Dhardware_composer.h29 #define HWC_TRANSFORM_NONE static_cast<hwc_transform_t>(0)
H A Dhwc_types.h122 Wrapper(BaseType value) : value(static_cast<ValueType>(value)) {}
126 Wrapper(const T& value) : value(static_cast<ValueType>(value)) {}
129 operator BaseType() const { return static_cast<BaseType>(value); }
136 return static_cast<T>(value);
141 return HWC2::to_string(static_cast<BaseType>(value));
147 return static_cast<BaseType>(value) != other_value;
152 return static_cast<BaseType>(value) == other_value;
/frameworks/native/opengl/include/EGL/
H A Deglplatform.h125 #define EGL_CAST(type, value) (static_cast<type>(value))
/frameworks/native/opengl/libagl/
H A Dcontext.h589 return static_cast<ogles_context_t*>(__get_tls()[TLS_SLOT_OPENGL]);
597 return static_cast<ogles_context_t*>(pthread_getspecific(gGLKey));
/frameworks/native/opengl/libs/EGL/
H A Degl_object.h77 return static_cast<N*>(ref);
/frameworks/native/services/sensorservice/
H A DSensorRegistrationInfo.h42 mSamplingRateUs = static_cast<int32_t>(samplingRateNs/1000);
43 mMaxReportLatencyUs = static_cast<int32_t>(maxReportLatencyNs/1000);
52 mHour = static_cast<int8_t>(timeinfo->tm_hour);
53 mMin = static_cast<int8_t>(timeinfo->tm_min);
54 mSec = static_cast<int8_t>(timeinfo->tm_sec);
66 ss << std::setfill('0') << std::setw(2) << static_cast<int>(mHour) << ":"
67 << std::setw(2) << static_cast<int>(mMin) << ":"
68 << std::setw(2) << static_cast<int>(mSec)
H A Dmat.h174 static_cast<const base&>(lhs),
175 static_cast<const base&>(rhs));
179 static_cast<const base&>(lhs),
180 static_cast<const base&>(rhs));
/frameworks/native/services/vr/performanced/
H A Dstdio_filebuf.h133 __extbuf[__i] = static_cast<char>(__c);
137 __1buf = static_cast<char_type>(__extbuf[0]);
157 __extbuf[__nread] = static_cast<char>(__c);
164 __1buf = static_cast<char_type>(__extbuf[0]);
200 __extbuf[0] = static_cast<char>(__last_consumed_);
/frameworks/rs/cpp/util/
H A DRefBase.h173 delete static_cast<const T*>(this);
469 return static_cast<typename TYPE::basetype *>(sptr->get());
478 return static_cast<typename TYPE::basetype *>(sptr->unsafe_get());

Completed in 254 milliseconds

12345