/frameworks/base/tests/Camera2Tests/SmartCamera/SimpleCamera/jni/ |
colorspace.cpp | 48 color.channel[kRed] = clamp(y + static_cast<int>(1.402 * v)); 49 color.channel[kGreen] = clamp(y - static_cast<int>(0.344 * u + 0.714 * v)); 50 color.channel[kBlue] = clamp(y + static_cast<int>(1.772 * u)); 58 uint8* const pInput = static_cast<uint8*>(env->GetDirectBufferAddress(input)); 59 Rgba* const pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); 97 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input)); 98 Rgba* pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); 112 Rgba* pInput = static_cast<Rgba*>(env->GetDirectBufferAddress(input)); 113 Rgba* pOutput = static_cast<Rgba*>(env->GetDirectBufferAddress(output)); 136 h = (g > b) ? static_cast<int>(scaler * (g - b) / delta) [all...] |
stats_scorer.cpp | 27 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 33 float val = static_cast<float>(pImg[i]); 47 unsigned char* pImg = static_cast<unsigned char*>(env->GetDirectBufferAddress(imageBuffer)); 48 int xStart = static_cast<int>(width * left); 49 int xEnd = static_cast<int>(width * right); 50 int yStart = static_cast<int>(height * top); 51 int yEnd = static_cast<int>(height * bottom); 59 float val = static_cast<float>(*(pImg + disp + x));
|
/external/v8/src/wasm/ |
wasm-macro-gen.h | 17 #define WASM_BLOCK(count, ...) kExprBlock, static_cast<byte>(count), __VA_ARGS__ 19 #define WASM_LOOP(count, ...) kExprLoop, static_cast<byte>(count), __VA_ARGS__ 23 #define WASM_BR(depth) kExprBr, static_cast<byte>(depth), kExprNop 25 kExprBrIf, static_cast<byte>(depth), cond, kExprNop 26 #define WASM_BRV(depth, val) kExprBr, static_cast<byte>(depth), val 28 kExprBrIf, static_cast<byte>(depth), cond, val 29 #define WASM_BREAK(depth) kExprBr, static_cast<byte>(depth + 1), kExprNop 30 #define WASM_CONTINUE(depth) kExprBr, static_cast<byte>(depth), kExprNop 31 #define WASM_BREAKV(depth, val) kExprBr, static_cast<byte>(depth + 1), val 37 kExprTableSwitch, static_cast<byte>(case_count), [all...] |
/external/clang/test/Analysis/ |
malloc-sizeof.cpp | 15 A* a = static_cast<A*>(malloc(sizeof(int))); // expected-warning {{Result of 'malloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'int'}} 20 A *x = static_cast<A*>(calloc(10, sizeof(void*))); // expected-warning {{Result of 'calloc' is converted to a pointer of type 'struct A', which is incompatible with sizeof operand type 'void *'}} 22 A **y = static_cast<A**>(calloc(10, sizeof(void*))); // no-warning
|
enum.cpp | 14 Foo f = static_cast<Foo>(i); 15 int j = static_cast<int>(f);
|
/external/clang/test/SemaCXX/ |
dependent-noexcept-unevaluated.cpp | 16 T tmp(static_cast<T&&>(x)); 17 x = static_cast<T&&>(y); 18 y = static_cast<T&&>(tmp);
|
invalid-instantiated-field-decl.cpp | 18 MinUs = (static_cast<unsigned int>(sizeof(T))*N + // expected-error {{invalid application of 'sizeof' to an incomplete type 'CallSite'}} 19 static_cast<unsigned int>(sizeof(U)) - 1) / 20 static_cast<unsigned int>(sizeof(U)),
|
/external/libcxx/test/std/experimental/optional/optional.object/optional.object.assign/ |
emplace.pass.cpp | 65 assert(static_cast<bool>(opt) == true); 71 assert(static_cast<bool>(opt) == true); 77 assert(static_cast<bool>(opt) == true); 83 assert(static_cast<bool>(opt) == true); 89 assert(static_cast<bool>(opt) == true); 95 assert(static_cast<bool>(opt) == true); 101 assert(static_cast<bool>(opt) == true); 107 assert(static_cast<bool>(opt) == true); 113 assert(static_cast<bool>(opt) == true); 119 assert(static_cast<bool>(opt) == true) [all...] |
/external/libcxx/test/std/experimental/utilities/tuple/tuple.apply/ |
return_type.pass.cpp | 32 int & f(index<5>) { return static_cast<int &>(my_int); } 33 int const & f(index<6>) { return static_cast<int const &>(my_int); } 34 int volatile & f(index<7>) { return static_cast<int volatile &>(my_int); } 35 int const volatile & f(index<8>) { return static_cast<int const volatile &>(my_int); } 37 int && f(index<9>) { return static_cast<int &&>(my_int); } 38 int const && f(index<10>) { return static_cast<int const &&>(my_int); } 39 int volatile && f(index<11>) { return static_cast<int volatile &&>(my_int); } 40 int const volatile && f(index<12>) { return static_cast<int const volatile &&>(my_int); } 42 int * f(index<13>) { return static_cast<int *>(&my_int); } 43 int const * f(index<14>) { return static_cast<int const *>(&my_int); [all...] |
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/optional/optional.object/optional.object.assign/ |
emplace.pass.cpp | 65 assert(static_cast<bool>(opt) == true); 71 assert(static_cast<bool>(opt) == true); 77 assert(static_cast<bool>(opt) == true); 83 assert(static_cast<bool>(opt) == true); 89 assert(static_cast<bool>(opt) == true); 95 assert(static_cast<bool>(opt) == true); 101 assert(static_cast<bool>(opt) == true); 107 assert(static_cast<bool>(opt) == true); 113 assert(static_cast<bool>(opt) == true); 119 assert(static_cast<bool>(opt) == true) [all...] |
/art/runtime/arch/arm64/ |
registers_arm64.cc | 42 os << "XRegister[" << static_cast<int>(rhs) << "]"; 51 os << "WRegister[" << static_cast<int>(rhs) << "]"; 58 os << "d" << static_cast<int>(rhs); 60 os << "DRegister[" << static_cast<int>(rhs) << "]"; 67 os << "s" << static_cast<int>(rhs); 69 os << "SRegister[" << static_cast<int>(rhs) << "]";
|
/external/opencv3/modules/imgproc/perf/ |
perf_remap.cpp | 48 map1.at<float>(j, i) = static_cast<float>(src.cols - i - 1); 49 map2.at<float>(j, i) = static_cast<float>(j); 52 map1.at<Vec2f>(j, i)[0] = static_cast<float>(src.cols - i - 1); 53 map1.at<Vec2f>(j, i)[1] = static_cast<float>(j); 56 map1.at<Vec2s>(j, i)[0] = static_cast<short>(src.cols - i - 1); 57 map1.at<Vec2s>(j, i)[1] = static_cast<short>(j);
|
/external/pdfium/third_party/base/numerics/ |
safe_conversions.h | 24 // checked_cast<> is analogous to static_cast<> for numeric types, 30 return static_cast<Dst>(value); 33 // saturated_cast<> is analogous to static_cast<> for numeric types, except 40 return static_cast<Dst>(value); 44 return static_cast<Dst>(value); 59 return static_cast<Dst>(value);
|
/external/v8/src/base/ |
safe_conversions.h | 26 // checked_cast<> is analogous to static_cast<> for numeric types, 32 return static_cast<Dst>(value); 35 // saturated_cast<> is analogous to static_cast<> for numeric types, except 42 return static_cast<Dst>(value); 46 return static_cast<Dst>(value); 61 return static_cast<Dst>(value);
|
sys-info.cc | 45 return static_cast<int>(result); 49 return static_cast<int>(system_info.dwNumberOfProcessors); 72 return static_cast<int64_t>(pages) * page_size; 79 int64_t result = static_cast<int64_t>(memory_info.ullTotalPhys); 87 return static_cast<int64_t>(stat_buf.st_size); 90 return static_cast<int64_t>(1) << 31; 93 return static_cast<int64_t>(result) * 1024L; 100 return static_cast<int64_t>(pages) * page_size;
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
geometry_utils.h | 37 return atan2f(static_cast<float>(dy), static_cast<float>(dx)); 44 delta -= (M_2PI_F * static_cast<int>(delta / M_2PI_F)); 54 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
|
/system/extras/simpleperf/ |
record_equal_test.h | 37 CheckMmapRecordDataEqual(static_cast<const MmapRecord&>(r1), static_cast<const MmapRecord&>(r2)); 39 CheckCommRecordDataEqual(static_cast<const CommRecord&>(r1), static_cast<const CommRecord&>(r2)); 41 CheckBuildIdRecordDataEqual(static_cast<const BuildIdRecord&>(r1), 42 static_cast<const BuildIdRecord&>(r2));
|
/art/compiler/linker/x86/ |
relative_patcher_x86.cc | 45 DCHECK_EQ((*code)[literal_offset + 0u], static_cast<uint8_t>(kDummy32BitOffset >> 0)); 46 DCHECK_EQ((*code)[literal_offset + 1u], static_cast<uint8_t>(kDummy32BitOffset >> 8)); 47 DCHECK_EQ((*code)[literal_offset + 2u], static_cast<uint8_t>(kDummy32BitOffset >> 16)); 48 DCHECK_EQ((*code)[literal_offset + 3u], static_cast<uint8_t>(kDummy32BitOffset >> 24)); 53 (*code)[literal_offset + 0u] = static_cast<uint8_t>(diff >> 0); 54 (*code)[literal_offset + 1u] = static_cast<uint8_t>(diff >> 8); 55 (*code)[literal_offset + 2u] = static_cast<uint8_t>(diff >> 16); 56 (*code)[literal_offset + 3u] = static_cast<uint8_t>(diff >> 24);
|
/art/compiler/utils/arm64/ |
managed_register_arm64.cc | 52 no = static_cast<int>(AsXRegister()); 54 no = static_cast<int>(AsWRegister()); 56 no = static_cast<int>(AsDRegister()); 58 no = static_cast<int>(AsSRegister()); 90 os << "XCore: " << static_cast<int>(AsXRegister()); 92 os << "WCore: " << static_cast<int>(AsWRegister()); 94 os << "DRegister: " << static_cast<int>(AsDRegister()); 96 os << "SRegister: " << static_cast<int>(AsSRegister());
|
/external/google-breakpad/src/common/android/ |
breakpad_getcontext_unittest.cc | 54 ASSERT_EQ(static_cast<size_t>(MCONTEXT_GREGS_OFFSET), 59 ASSERT_EQ(static_cast<size_t>(MCONTEXT_GREGS_OFFSET), 61 ASSERT_EQ(static_cast<size_t>(MCONTEXT_SP_OFFSET), 63 ASSERT_EQ(static_cast<size_t>(MCONTEXT_PC_OFFSET), 65 ASSERT_EQ(static_cast<size_t>(MCONTEXT_PSTATE_OFFSET), 67 ASSERT_EQ(static_cast<size_t>(MCONTEXT_EXTENSION_OFFSET), 70 ASSERT_EQ(static_cast<size_t>(MCONTEXT_GREGS_OFFSET), 73 ASSERT_EQ(static_cast<size_t>(MCONTEXT_##x##_OFFSET), \ 95 ASSERT_EQ(static_cast<size_t>(UCONTEXT_FPREGS_OFFSET), 98 ASSERT_EQ(static_cast<size_t>(UCONTEXT_FPREGS_MEM_OFFSET) [all...] |
/external/libgdx/extensions/gdx-bullet/jni/src/bullet/BulletCollision/CollisionDispatch/ |
btHashedSimplePairCache.cpp | 72 int hash = static_cast<int>(getHash(static_cast<unsigned int>(indexA), static_cast<unsigned int>(indexB)) & (m_overlappingPairArray.capacity()-1)); 129 int hashValue = static_cast<int>(getHash(static_cast<unsigned int>(indexA),static_cast<unsigned int>(indexB)) & (m_overlappingPairArray.capacity()-1)); // New hash value with new mask 141 int hash = static_cast<int>(getHash(static_cast<unsigned int>(indexA),static_cast<unsigned int>(indexB)) & (m_overlappingPairArray.capacity()-1)); // New hash value with new mask 160 hash = static_cast<int>(getHash(static_cast<unsigned int>(indexA),static_cast<unsigned int>(indexB)) & (m_overlapping (…) [all...] |
/external/sfntly/cpp/src/sfntly/table/ |
table.cc | 85 builder_raw = static_cast<Table::Builder*>( 89 builder_raw = static_cast<Table::Builder*>( 93 builder_raw = static_cast<Table::Builder*>( 96 builder_raw = static_cast<Table::Builder*>( 99 builder_raw = static_cast<Table::Builder*>( 102 builder_raw = static_cast<Table::Builder*>( 105 builder_raw = static_cast<Table::Builder*>( 108 builder_raw = static_cast<Table::Builder*>( 111 builder_raw = static_cast<Table::Builder*>( 114 builder_raw = static_cast<Table::Builder*> [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.11-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/pat_trie_/ |
find_fn_imps.hpp | 55 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_pointer>(p_nd)->value()), r_key)) 80 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 109 node_pointer p_next_nd = static_cast<inode_pointer>(p_nd)->get_child_node(b_it, e_it, this); 140 if (!synth_access_traits::cmp_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 149 static_cast<inode_pointer>(p_nd)->get_e_ind(); 152 static_cast<inode_pointer>(p_nd)->get_lower_bound_child_node( b_it, e_it, checked_ind, this); 212 return (synth_access_traits::begin(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 215 return static_cast<inode_const_pointer>(p_nd)->pref_b_it(); 224 return (synth_access_traits::end(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 227 return static_cast<inode_const_pointer>(p_nd)->pref_e_it() [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.15-4.8/x86_64-linux/include/c++/4.8/ext/pb_ds/detail/pat_trie_/ |
find_fn_imps.hpp | 55 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_pointer>(p_nd)->value()), r_key)) 80 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 109 node_pointer p_next_nd = static_cast<inode_pointer>(p_nd)->get_child_node(b_it, e_it, this); 140 if (!synth_access_traits::cmp_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 149 static_cast<inode_pointer>(p_nd)->get_e_ind(); 152 static_cast<inode_pointer>(p_nd)->get_lower_bound_child_node( b_it, e_it, checked_ind, this); 212 return (synth_access_traits::begin(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 215 return static_cast<inode_const_pointer>(p_nd)->pref_b_it(); 224 return (synth_access_traits::end(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 227 return static_cast<inode_const_pointer>(p_nd)->pref_e_it() [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-w64-mingw32-4.8/x86_64-w64-mingw32/include/c++/4.8.3/ext/pb_ds/detail/pat_trie_/ |
find_fn_imps.hpp | 55 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_pointer>(p_nd)->value()), r_key)) 80 if (synth_access_traits::equal_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 109 node_pointer p_next_nd = static_cast<inode_pointer>(p_nd)->get_child_node(b_it, e_it, this); 140 if (!synth_access_traits::cmp_keys(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()), r_key)) 149 static_cast<inode_pointer>(p_nd)->get_e_ind(); 152 static_cast<inode_pointer>(p_nd)->get_lower_bound_child_node( b_it, e_it, checked_ind, this); 212 return (synth_access_traits::begin(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 215 return static_cast<inode_const_pointer>(p_nd)->pref_b_it(); 224 return (synth_access_traits::end(PB_DS_V2F(static_cast<leaf_const_pointer>(p_nd)->value()))); 227 return static_cast<inode_const_pointer>(p_nd)->pref_e_it() [all...] |