/external/libcxx/test/std/thread/futures/futures.overview/ |
launch.pass.cpp | 27 static_assert(static_cast<int>(std::launch::any) == 28 (static_cast<int>(std::launch::async) | static_cast<int>(std::launch::deferred)), ""); 43 static_assert(static_cast<int>(std::launch::async) == 1, ""); 44 static_assert(static_cast<int>(std::launch::deferred) == 2, "");
|
/external/libunwind_llvm/src/ |
libunwind.cpp | 49 static_cast<void *>(cursor), 50 static_cast<void *>(context)); 162 static_cast<void *>(cursor), regNum, 163 static_cast<void *>(value)); 177 static_cast<void *>(cursor), regNum, (long long)value); 196 static_cast<void *>(cursor), regNum, 197 static_cast<void *>(value)); 212 static_cast<void *>(cursor), regNum, value); 215 static_cast<void *>(cursor), regNum, value); 228 _LIBUNWIND_TRACE_API("unw_step(cursor=%p)\n", static_cast<void *>(cursor)) [all...] |
/external/parameter-framework/asio-1.10.6/include/asio/detail/ |
handler_type_requirements.hpp | 66 sizeof(Handler(static_cast<const Handler&>(h))), 76 sizeof(Handler(static_cast<const Handler&>(h))), 86 sizeof(Handler(static_cast<const Handler&>(h))), 114 #define ASIO_READ_HANDLER_CHECK( handler_type, handler) typedef ASIO_HANDLER_TYPE(handler_type, void(asio::error_code, std::size_t)) asio_true_handler_type; ASIO_HANDLER_TYPE_REQUIREMENTS_ASSERT( sizeof(asio::detail::two_arg_handler_test( asio::detail::clvref< asio_true_handler_type>(), static_cast<const asio::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "ReadHandler type requirements not met") typedef asio::detail::handler_type_requirements< sizeof( asio::detail::argbyv( asio::detail::clvref< asio_true_handler_type>())) + sizeof( asio::detail::lvref< asio_true_handler_type>()( asio::detail::lvref<const asio::error_code>(), asio::detail::lvref<const std::size_t>()), char(0))> ASIO_UNUSED_TYPEDEF 117 #define ASIO_WRITE_HANDLER_CHECK( handler_type, handler) typedef ASIO_HANDLER_TYPE(handler_type, void(asio::error_code, std::size_t)) asio_true_handler_type; ASIO_HANDLER_TYPE_REQUIREMENTS_ASSERT( sizeof(asio::detail::two_arg_handler_test( asio::detail::clvref< asio_true_handler_type>(), static_cast<const asio::error_code*>(0), static_cast<const std::size_t*>(0))) == 1, "WriteHandler type requirements not met") typedef asio::detail::handler_type_requirements< sizeof( asio::detail::argbyv( asio::detail::clvref< asio_true_handler_type>())) + sizeof( asio::detail::lvref< asio_true_handler_type>()( asio::detail::lvref<const asio::error_code>(), asio::detail::lvref<const std::size_t>()), char(0))> ASIO_UNUSED_TYPEDEF 119 #define ASIO_ACCEPT_HANDLER_CHECK( handler_type, handler) typedef ASIO_HANDLER_TYPE(handler_type, void(asio::error_code)) asio_true_handler_type; ASIO_HANDLER_TYPE_REQUIREMENTS_ASSERT( sizeof(asio::detail::one_arg_handler_test( asio::detail::clvref< asio_true_handler_type>(), static_cast<const asio::error_code*>(0))) == 1, "AcceptHandler type requirements not met") typedef asio::detail::handler_type_requirements< sizeof( asio::detail::argbyv( asio::detail::clvref< asio_true_handler_type>())) + sizeof( asio::detail::lvref< asio_true_handler_type>()( asio::detail::lvref<const asio::error_code>()), char(0))> ASIO_UNUSED_TYPEDEF 121 #define ASIO_CONNECT_HANDLER_CHECK( handler_type, handler) typedef ASIO_HANDLER_TYPE(handler_type, void(asio::error_code)) asio_true_handler_type; ASIO_HANDLER_TYPE_REQUIREMENTS_ASSERT( sizeof(asio::detail::one_arg_handler_test( asio::detail::clvref< asio_true_handler_type>(), static_cast<const asio::error_code*>(0))) == 1, "ConnectHandler type requirements not met") typedef asio::detail::handler_type_requirements< sizeof( asio::detail::argbyv( asio::detail::clvref< asio_true_handler_type>())) + sizeof( asio::detail::lvref< asio_true_handler_type>()( asio::detail::lvref<const asio::error_code>()), char(0))> ASIO_UNUSED_TYPEDEF 123 #define ASIO_COMPOSED_CONNECT_HANDLER_CHECK( handler_type, handler, iter_type) typedef ASIO_HANDLER_TYPE(handler_type, void(asio::error_code, iter_type)) asio_true_handler_type; ASIO_HANDLER_TYPE_REQUIREMENTS_ASSERT( sizeof(asio::detail::two_arg_handler_test( asio::detail::clvref< asio_true_handler_type>(), static_cast<const asio::error_code*>(0), static_cast<const iter_type*>(0))) == 1, "ComposedC (…) [all...] |
io_control.hpp | 44 return static_cast<int>(ASIO_OS_DEF(FIONBIO)); 87 : value_(static_cast<detail::ioctl_arg_type>(value)) 94 return static_cast<int>(ASIO_OS_DEF(FIONREAD)); 100 value_ = static_cast<detail::ioctl_arg_type>(value); 106 return static_cast<std::size_t>(value_);
|
/external/webrtc/webrtc/common_audio/resampler/ |
push_resampler.cc | 51 static_cast<size_t>(src_sample_rate_hz / 100); 53 static_cast<size_t>(dst_sample_rate_hz / 100); 80 return static_cast<int>(src_length); 97 return static_cast<int>(dst_length_mono * num_channels_); 99 return static_cast<int>(
|
/external/webrtc/webrtc/test/ |
fake_decoder.cc | 25 frame_.CreateEmptyFrame(static_cast<int>(width), 26 static_cast<int>(height), 27 static_cast<int>(width), 28 static_cast<int>((width + 1) / 2), 29 static_cast<int>((width + 1) / 2));
|
rtp_file_writer.cc | 42 uint16_t len = static_cast<uint16_t>(packet->length + kPacketHeaderSize); 43 uint16_t plen = static_cast<uint16_t>(packet->original_length); 68 uint8_t tmp = static_cast<uint8_t>((in >> shifts) & 0xFF); 77 uint8_t tmp = static_cast<uint8_t>((in >> 8) & 0xFF); 81 tmp = static_cast<uint8_t>(in & 0xFF);
|
/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
frametovalues.cpp | 31 unsigned char* pixelPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 32 unsigned char* grayPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(grayBuffer)); 48 *(grayPtr+idx) = static_cast<unsigned char>(gray); 57 unsigned char* pixelPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 58 unsigned char* rgbPtr = static_cast<unsigned char*>(env->GetDirectBufferAddress(rgbBuffer));
|
histogram.cpp | 34 int bin = clamp(0, static_cast<int>(static_cast<float>(i * numBins) / 255.0f), numBins - 1); 41 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 42 int* pHist = static_cast<int*>(env->GetDirectBufferAddress(histogramBuffer)); 48 pMask = static_cast<unsigned char*>(env->GetDirectBufferAddress(maskBuffer)); 73 unsigned char* pixelIn = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 74 float* histOut = static_cast<float*>(env->GetDirectBufferAddress(histogramBuffer)); 88 int index = static_cast<int>(s * sScaler) * hBins + static_cast<int>(h * hScaler); 97 unsigned char* pixelIn = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)) [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.overview/ |
launch.pass.cpp | 25 static_assert(static_cast<int>(std::launch::any) == 26 (static_cast<int>(std::launch::async) | static_cast<int>(std::launch::deferred)), ""); 41 static_assert(static_cast<int>(std::launch::async) == 1, ""); 42 static_assert(static_cast<int>(std::launch::deferred) == 2, "");
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.assign/ |
assign_value.pass.cpp | 42 assert(static_cast<bool>(opt) == true); 49 assert(static_cast<bool>(opt) == true); 56 assert(static_cast<bool>(opt) == true); 62 assert(static_cast<bool>(opt) == true); 68 assert(static_cast<bool>(opt) == true);
|
/ndk/sources/cxx-stl/llvm-libc++abi/libcxxabi/src/Unwind/ |
libunwind.cpp | 50 static_cast<void *>(cursor), 51 static_cast<void *>(context)); 161 static_cast<void *>(cursor), regNum, 162 static_cast<void *>(value)); 176 static_cast<void *>(cursor), regNum, (long long)value); 195 static_cast<void *>(cursor), regNum, 196 static_cast<void *>(value)); 211 static_cast<void *>(cursor), regNum, value); 214 static_cast<void *>(cursor), regNum, value); 227 _LIBUNWIND_TRACE_API("unw_step(cursor=%p)\n", static_cast<void *>(cursor)) [all...] |
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/ |
probability_utils.h | 47 const float stepSize = static_cast<float>(MAX_PROBABILITY - unigramProbability) 50 + static_cast<int>(static_cast<float>(bigramProbability + 1) * stepSize); 55 const float probability = static_cast<float>(MAX_PROBABILITY) 60 return std::min(static_cast<int>(probability + 0.5f), MAX_PROBABILITY);
|
/external/pdfium/xfa/src/fwl/src/core/ |
fwl_noteimp.cpp | 50 CFWL_WidgetMgr* pWidgetMgr = static_cast<CFWL_WidgetMgr*>(FWL_GetWidgetMgr());
60 CFWL_MsgKey* pMsgKey = static_cast<CFWL_MsgKey*>(pMessage);
65 static_cast<CFWL_FormImp*>(m_pForm)->GetAccelerator();
118 if (FWL_EVTHASH_Mouse == static_cast<CFWL_Event*>(pNote)->GetClassID()) {
119 CFWL_EvtMouse* pMouse = static_cast<CFWL_EvtMouse*>(pNote);
141 pEventTarget->ProcessEvent(static_cast<CFWL_Event*>(pNote));
150 pDelegate->OnProcessMessage(static_cast<CFWL_Message*>(pNote));
215 static_cast<IFWL_NoteLoop*>(m_noteLoopQueue.GetAt(pos - 1));
241 pWidget ? static_cast<CFWL_FormImp*>(pWidget->GetImpl()) : nullptr;
244 static_cast<CFWL_WidgetImp*>(pFocus->GetImpl()); [all...] |
/art/compiler/utils/arm/ |
assembler_thumb2.cc | 250 DCHECK_EQ(static_cast<size_t>(literal.GetLabel()->Position()), buffer_.Size()); 278 DCHECK_EQ(static_cast<size_t>(table.GetLabel()->Position()), buffer_.Size()); 330 encoding |= B12 | (static_cast<int32_t>(cond) << 8) | ((offset >> 1) & 0xff); 347 encoding |= (static_cast<int32_t>(cond) << 22) | ((offset & 0x3f000) << (16 - 12)) | 366 return B15 | B13 | B12 | B8 | (cond == NE ? B11 : 0) | static_cast<int32_t>(rn) | 379 return B14 | B10 | (static_cast<int32_t>(rm) << 3) | 380 (static_cast<int32_t>(rdn) & 7) | ((static_cast<int32_t>(rdn) & 8) << 4); 386 (static_cast<int32_t>(rd) << 8) | 403 (static_cast<int32_t>(rd) << 8) | static_cast<int32_t>(mod_imm) [all...] |
/external/libgdx/extensions/gdx-box2d/gdx-box2d/jni/Box2D/Dynamics/Joints/ |
b2Joint.cpp | 46 joint = new (mem) b2DistanceJoint(static_cast<const b2DistanceJointDef*>(def));
53 joint = new (mem) b2MouseJoint(static_cast<const b2MouseJointDef*>(def));
60 joint = new (mem) b2PrismaticJoint(static_cast<const b2PrismaticJointDef*>(def));
67 joint = new (mem) b2RevoluteJoint(static_cast<const b2RevoluteJointDef*>(def));
74 joint = new (mem) b2PulleyJoint(static_cast<const b2PulleyJointDef*>(def));
81 joint = new (mem) b2GearJoint(static_cast<const b2GearJointDef*>(def));
88 joint = new (mem) b2WheelJoint(static_cast<const b2WheelJointDef*>(def));
95 joint = new (mem) b2WeldJoint(static_cast<const b2WeldJointDef*>(def));
102 joint = new (mem) b2FrictionJoint(static_cast<const b2FrictionJointDef*>(def));
109 joint = new (mem) b2RopeJoint(static_cast<const b2RopeJointDef*>(def)); [all...] |
/external/llvm/lib/ExecutionEngine/RuntimeDyld/Targets/ |
RuntimeDyldCOFFI386.h | 117 RE.Sections.SectionA == static_cast<uint32_t>(-1) 121 assert(static_cast<int32_t>(Result) <= INT32_MAX && 123 assert(static_cast<int32_t>(Result) >= INT32_MIN && 138 assert(static_cast<int32_t>(Result) <= INT32_MAX && 140 assert(static_cast<int32_t>(Result) >= INT32_MIN && 153 assert(static_cast<int32_t>(Result) <= INT32_MAX && 155 assert(static_cast<int32_t>(Result) >= INT32_MIN && 166 assert(static_cast<int32_t>(RE.SectionID) <= INT16_MAX && 168 assert(static_cast<int32_t>(RE.SectionID) >= INT16_MIN && 177 assert(static_cast<int32_t>(RE.Addend) <= INT32_MAX & [all...] |
/external/llvm/lib/Support/Windows/ |
RWMutex.inc | 79 fpInitializeSRWLock(static_cast<PSRWLOCK>(data_)); 82 InitializeCriticalSection(static_cast<LPCRITICAL_SECTION>(data_)); 88 DeleteCriticalSection(static_cast<LPCRITICAL_SECTION>(data_)); 95 fpAcquireSRWLockShared(static_cast<PSRWLOCK>(data_)); 97 EnterCriticalSection(static_cast<LPCRITICAL_SECTION>(data_)); 104 fpReleaseSRWLockShared(static_cast<PSRWLOCK>(data_)); 106 LeaveCriticalSection(static_cast<LPCRITICAL_SECTION>(data_)); 113 fpAcquireSRWLockExclusive(static_cast<PSRWLOCK>(data_)); 115 EnterCriticalSection(static_cast<LPCRITICAL_SECTION>(data_)); 122 fpReleaseSRWLockExclusive(static_cast<PSRWLOCK>(data_)) [all...] |
/external/v8/src/base/ |
division-by-constant.cc | 24 STATIC_ASSERT(static_cast<T>(0) < static_cast<T>(-1)); 25 DCHECK(d != static_cast<T>(-1) && d != 0 && d != 1); 26 const unsigned bits = static_cast<unsigned>(sizeof(T)) * 8; 27 const T min = (static_cast<T>(1) << (bits - 1)); 62 STATIC_ASSERT(static_cast<T>(0) < static_cast<T>(-1)); 64 const unsigned bits = static_cast<unsigned>(sizeof(T)) * 8; 65 const T ones = ~static_cast<T>(0) >> leading_zeros; 66 const T min = static_cast<T>(1) << (bits - 1) [all...] |
/external/vulkan-validation-layers/libs/glm/detail/ |
_noise.hpp | 38 return x - floor(x * static_cast<T>(1.0) / static_cast<T>(289.0)) * static_cast<T>(289.0); 44 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x); 50 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x); 56 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x); 62 return mod289(((x * static_cast<T>(34)) + static_cast<T>(1)) * x) [all...] |
/bionic/tests/ |
__cxa_thread_atexit_test.cpp | 46 class_with_dtor.set_message(*static_cast<std::string*>(arg)); 95 std::string* call_sequence = static_cast<std::string*>(arg); 100 std::string* call_sequence = static_cast<std::string*>(arg); 105 std::string* call_sequence = static_cast<std::string*>(arg); 111 std::string* call_sequence = static_cast<std::string*>(arg); 116 std::string* call_sequence = static_cast<std::string*>(arg); 121 std::string* call_sequence = static_cast<std::string*>(arg);
|
/external/eigen/test/ |
diagonal.cpp | 43 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1)); 45 VERIFY_IS_APPROX(m2.template diagonal<N1>()[0], static_cast<Scalar>(6) * m1.template diagonal<N1>()[0]); 50 VERIFY_IS_APPROX(m2.template diagonal<N2>()[0], static_cast<Scalar>(6) * m1.template diagonal<N2>()[0]); 53 VERIFY_IS_APPROX(m2.template diagonal<N1>(), static_cast<Scalar>(2) * m1.diagonal(N1)); 55 VERIFY_IS_APPROX(m2.diagonal(N1)[0], static_cast<Scalar>(6) * m1.diagonal(N1)[0]); 58 VERIFY_IS_APPROX(m2.template diagonal<N2>(), static_cast<Scalar>(2) * m1.diagonal(N2)); 60 VERIFY_IS_APPROX(m2.diagonal(N2)[0], static_cast<Scalar>(6) * m1.diagonal(N2)[0]);
|
/external/libbrillo/brillo/glib/ |
object_unittest.cc | 66 SetRetrieveTest(static_cast<uint32_t>(10)); 94 char* a = static_cast<char*>(::g_malloc(sizeof(item))); 107 char* a = static_cast<char*>(::g_malloc(sizeof(item))); 116 char* b = static_cast<char*>(::g_malloc(sizeof(item))); 127 char* a[] = { static_cast<char*>(::g_malloc(1)), 128 static_cast<char*>(::g_malloc(1)), static_cast<char*>(::g_malloc(1)) };
|
/external/libchrome/base/ |
atomicops_internals_x86_msvc.h | 34 static_cast<LONG>(new_value), 35 static_cast<LONG>(old_value)); 36 return static_cast<Atomic32>(result); 43 static_cast<LONG>(new_value)); 44 return static_cast<Atomic32>(result); 51 static_cast<LONG>(increment)) + increment; 136 static_cast<LONGLONG>(increment)) + increment;
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.ctor/ |
in_place_t.pass.cpp | 68 static_assert(static_cast<bool>(opt) == true, ""); 81 assert(static_cast<bool>(opt) == true); 86 assert(static_cast<bool>(opt) == true); 91 assert(static_cast<bool>(opt) == true); 96 static_assert(static_cast<bool>(opt) == true, ""); 109 static_assert(static_cast<bool>(opt) == true, ""); 122 static_assert(static_cast<bool>(opt) == true, "");
|