Searched refs:static_cast (Results 1 - 25 of 103) sorted by relevance

12345

/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/base/libs/androidfw/include/androidfw/
H A DResourceUtils.h31 return resid | (static_cast<uint32_t>(package_id) << 24);
35 return static_cast<uint8_t>((resid >> 24) & 0x000000ffu);
40 return static_cast<uint8_t>((resid >> 16) & 0x000000ffu);
43 inline uint16_t get_entry_id(uint32_t resid) { return static_cast<uint16_t>(resid & 0x0000ffffu); }
54 return (static_cast<uint32_t>(package_id) << 24) | (static_cast<uint32_t>(type_id) << 16) |
H A DByteBucketArray.h54 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4;
59 return bucket[0x0f & static_cast<uint8_t>(index)];
66 uint8_t bucket_index = static_cast<uint8_t>(index) >> 4;
71 return bucket[0x0f & static_cast<uint8_t>(index)];
H A DAttributeFinder.h125 current_attr_ = static_cast<const Derived*>(this)->GetAttribute(current_);
156 current_attr_ = static_cast<const Derived*>(this)->GetAttribute(begin_);
181 current_attr_ = static_cast<const Derived*>(this)->GetAttribute(current_);
H A DCursorWindow.h132 return static_cast<char*>(offsetToPtr(
181 return static_cast<uint8_t*>(mData) + offset;
185 return static_cast<uint8_t*>(ptr) - static_cast<uint8_t*>(mData);
/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)
/frameworks/av/media/libaudioprocessing/
H A DAudioResamplerFirOps.h76 int16_t v = left ? static_cast<int16_t>(vRL) : static_cast<int16_t>(vRL>>16);
77 return static_cast<int32_t>((static_cast<int64_t>(in) * v) >> 16);
107 return a + static_cast<int32_t>((static_cast<int64_t>(v) * in) >> 16);
122 return a + static_cast<int32_t>((static_cast<int64_t>(v) * in) >> 32);
144 int16_t s = left ? static_cast<int16_t>(inRL) : static_cast<int16_
[all...]
/frameworks/base/tools/aapt/
H A DConfigDescription.h33 *static_cast<android::ResTable_config*>(this) = o;
38 *static_cast<android::ResTable_config*>(this) = o;
42 *static_cast<android::ResTable_config*>(this) = o;
48 *static_cast<android::ResTable_config*>(this) = o;
/frameworks/native/include/gui/
H A DDisplayEventReceiver.h43 return static_cast<uint32_t>(c1) << 24 |
44 static_cast<uint32_t>(c2) << 16 |
45 static_cast<uint32_t>(c3) << 8 |
46 static_cast<uint32_t>(c4);
/frameworks/av/media/libstagefright/omx/1.0/
H A DConversion.h211 return t.isOk() ? static_cast<status_t>(static_cast<Status>(t)) : UNKNOWN_ERROR;
233 return static_cast<status_t>(t);
244 return static_cast<Status>(l);
456 static_cast<ColorAspects::Range>(l.mRange),
457 static_cast<ColorAspects::Primaries>(l.mPrimaries),
458 static_cast<ColorAspects::Transfer>(l.mTransfer),
459 static_cast<ColorAspects::MatrixCoeffs>(l.mMatrixCoeffs)};
471 static_cast<ColorAspects::Range>((l >> 24) & 0xFF),
472 static_cast<ColorAspect
[all...]
/frameworks/av/include/media/omx/1.0/
H A DConversion.h198 t.isOk() ? static_cast<status_t>(static_cast<Status>(t)) : UNKNOWN_ERROR);
218 return t.isOk() ? static_cast<status_t>(static_cast<Status>(t)) : UNKNOWN_ERROR;
240 return static_cast<status_t>(t);
251 return static_cast<Status>(l);
463 static_cast<ColorAspects::Range>(l.mRange),
464 static_cast<ColorAspects::Primaries>(l.mPrimaries),
465 static_cast<ColorAspects::Transfer>(l.mTransfer),
466 static_cast<ColorAspect
[all...]
/frameworks/compile/libbcc/bcinfo/include/bcinfo/Wrap/
H A DBCHeaderField.h57 WriteFixedSubfield(static_cast<FixedSubfield>(ID_), buf);
58 WriteFixedSubfield(static_cast<FixedSubfield>(len_),
72 ID_ = static_cast<Tag>(field);
74 len_ = static_cast<size_t>(field);
82 ID_, static_cast<int>(len_), static_cast<int>(GetTotalSize()));
/frameworks/native/libs/vr/libpdx/private/pdx/rpc/
H A Ddefault_initialization_allocator.h34 ::new (static_cast<void*>(pointer)) U;
38 AllocatorTraits::construct(static_cast<Allocator&>(*this), pointer,
/frameworks/base/libs/hwui/font/
H A DFontUtil.h49 #define AUTO_KERN(prev, next) static_cast<float>(((next) - (prev) + 32) >> 6)
/frameworks/av/media/libeffects/loudness/common/core/
H A Dmath.h45 return static_cast<float>(val + log_2);
82 return static_cast<T>(std::floor(static_cast<double>(x) + 0.5));
/frameworks/native/libs/math/include/math/
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/base/libs/hwui/
H A DFrameInfo.h89 set(FrameInfoIndex::Flags) |= static_cast<uint64_t>(frameInfoFlag);
95 return mBuffer[static_cast<int>(index)];
122 set(FrameInfoIndex::Flags) |= static_cast<uint64_t>(frameInfoFlag);
134 if (index < 0 || index >= static_cast<int>(FrameInfoIndex::NumIndexes)) return 0;
161 return mFrameInfo[static_cast<int>(index)];
166 return mFrameInfo[static_cast<int>(index)];
170 int64_t mFrameInfo[static_cast<int>(FrameInfoIndex::NumIndexes)];
/frameworks/compile/mclinker/lib/Script/
H A DScriptScanner.ll184 <LDSCRIPT,EXPRESSION>"," { return static_cast<token_type>(*yytext); }
185 <LDSCRIPT,EXPRESSION>"=" { return static_cast<token_type>(*yytext); }
186 <LDSCRIPT,EXPRESSION>"?" { return static_cast<token_type>(*yytext); }
187 <LDSCRIPT,EXPRESSION>":" { return static_cast<token_type>(*yytext); }
188 <LDSCRIPT,EXPRESSION>"|" { return static_cast<token_type>(*yytext); }
189 <LDSCRIPT,EXPRESSION>"^" { return static_cast<token_type>(*yytext); }
190 <LDSCRIPT,EXPRESSION>"&" { return static_cast<token_type>(*yytext); }
191 <LDSCRIPT,EXPRESSION>"<" { return static_cast<token_type>(*yytext); }
192 <LDSCRIPT,EXPRESSION>">" { return static_cast<token_type>(*yytext); }
193 <LDSCRIPT,EXPRESSION>"+" { return static_cast<token_typ
[all...]
/frameworks/native/include/ui/
H A DRect.h54 right = static_cast<int32_t>(w);
55 bottom = static_cast<int32_t>(h);
185 return {static_cast<float>(left), static_cast<float>(top),
186 static_cast<float>(right), static_cast<float>(bottom)};
H A DANativeObjectBase.h74 return static_cast<TYPE*>(self);
77 return static_cast<TYPE const *>(self);
/frameworks/base/tools/aapt2/
H A DConfigDescription.h114 *static_cast<android::ResTable_config*>(this) = o;
119 *static_cast<android::ResTable_config*>(this) = o;
128 *static_cast<android::ResTable_config*>(this) = o;
135 *static_cast<android::ResTable_config*>(this) = o;
/frameworks/av/include/media/
H A DModulo.h141 return static_cast<signedT>(mValue - other.unsignedValue()) > 0;
148 return static_cast<signedT>(mValue - other.unsignedValue()) >= 0;
155 return static_cast<signedT>(mValue - other.unsignedValue()) == 0;
162 return static_cast<signedT>(mValue - other.unsignedValue()) <= 0;
169 return static_cast<signedT>(mValue - other.unsignedValue()) < 0;
/frameworks/av/media/libmedia/include/media/
H A DModulo.h141 return static_cast<signedT>(mValue - other.unsignedValue()) > 0;
148 return static_cast<signedT>(mValue - other.unsignedValue()) >= 0;
155 return static_cast<signedT>(mValue - other.unsignedValue()) == 0;
162 return static_cast<signedT>(mValue - other.unsignedValue()) <= 0;
169 return static_cast<signedT>(mValue - other.unsignedValue()) < 0;

Completed in 460 milliseconds

12345