/external/clang/test/SemaCXX/ |
warn-cast-align.cpp | 8 a = static_cast<char*>(P); 29 a = static_cast<char*>(P); 35 b = static_cast<short*>(P); 41 c = static_cast<int*>(P);
|
cast-conversion.cpp | 19 static_cast<B>(10); // expected-error {{no matching conversion for static_cast from 'int' to 'B'}} 44 static_cast<float*>(f0<0>()); // expected-error{{ambiguous}} 73 return static_cast<long long>(a); // expected-error {{ambiguous conversion for static_cast from 'AmbiguousCast' to 'long long'}}
|
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/thread/futures/futures.overview/ |
future_errc.pass.cpp | 24 static_assert(static_cast<int>(std::future_errc::broken_promise) == 0, ""); 25 static_assert(static_cast<int>(std::future_errc::future_already_retrieved) == 1, ""); 26 static_assert(static_cast<int>(std::future_errc::promise_already_satisfied) == 2, ""); 27 static_assert(static_cast<int>(std::future_errc::no_state) == 3, "");
|
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/ext/pb_ds/detail/resize_policy/ |
hash_load_check_resize_trigger_imp.hpp | 155 static_cast<unsigned long>(new_size) << " " << 156 static_cast<unsigned long>(m_load_min) << " " << 157 static_cast<unsigned long>(m_load_max) << " " << 158 static_cast<unsigned long>(m_next_shrink_size) << " " << 159 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl; 181 static_cast<unsigned long>(new_size) << " " << 182 static_cast<unsigned long>(m_load_min) << " " << 183 static_cast<unsigned long>(m_load_max) << " " << 184 static_cast<unsigned long>(m_next_shrink_size) << " " << 185 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl [all...] |
/prebuilts/ndk/5/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/resize_policy/ |
hash_load_check_resize_trigger_imp.hpp | 155 static_cast<unsigned long>(new_size) << " " << 156 static_cast<unsigned long>(m_load_min) << " " << 157 static_cast<unsigned long>(m_load_max) << " " << 158 static_cast<unsigned long>(m_next_shrink_size) << " " << 159 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl; 181 static_cast<unsigned long>(new_size) << " " << 182 static_cast<unsigned long>(m_load_min) << " " << 183 static_cast<unsigned long>(m_load_max) << " " << 184 static_cast<unsigned long>(m_next_shrink_size) << " " << 185 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl [all...] |
/prebuilts/ndk/6/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/resize_policy/ |
hash_load_check_resize_trigger_imp.hpp | 155 static_cast<unsigned long>(new_size) << " " << 156 static_cast<unsigned long>(m_load_min) << " " << 157 static_cast<unsigned long>(m_load_max) << " " << 158 static_cast<unsigned long>(m_next_shrink_size) << " " << 159 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl; 181 static_cast<unsigned long>(new_size) << " " << 182 static_cast<unsigned long>(m_load_min) << " " << 183 static_cast<unsigned long>(m_load_max) << " " << 184 static_cast<unsigned long>(m_next_shrink_size) << " " << 185 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl [all...] |
/prebuilts/ndk/7/sources/cxx-stl/gnu-libstdc++/include/ext/pb_ds/detail/resize_policy/ |
hash_load_check_resize_trigger_imp.hpp | 155 static_cast<unsigned long>(new_size) << " " << 156 static_cast<unsigned long>(m_load_min) << " " << 157 static_cast<unsigned long>(m_load_max) << " " << 158 static_cast<unsigned long>(m_next_shrink_size) << " " << 159 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl; 181 static_cast<unsigned long>(new_size) << " " << 182 static_cast<unsigned long>(m_load_min) << " " << 183 static_cast<unsigned long>(m_load_max) << " " << 184 static_cast<unsigned long>(m_next_shrink_size) << " " << 185 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl [all...] |
/prebuilts/ndk/8/sources/cxx-stl/gnu-libstdc++/4.4.3/include/ext/pb_ds/detail/resize_policy/ |
hash_load_check_resize_trigger_imp.hpp | 155 static_cast<unsigned long>(new_size) << " " << 156 static_cast<unsigned long>(m_load_min) << " " << 157 static_cast<unsigned long>(m_load_max) << " " << 158 static_cast<unsigned long>(m_next_shrink_size) << " " << 159 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl; 181 static_cast<unsigned long>(new_size) << " " << 182 static_cast<unsigned long>(m_load_min) << " " << 183 static_cast<unsigned long>(m_load_max) << " " << 184 static_cast<unsigned long>(m_next_shrink_size) << " " << 185 static_cast<unsigned long>(m_next_grow_size) << " " << std::endl [all...] |
/sdk/emulator/opengl/host/libs/Translator/include/GLcommon/ |
GLESmacros.h | 10 GLEScmContext *ctx = static_cast<GLEScmContext *>(s_eglIface->getGLESContext()); \ 15 GLESv2Context *ctx = static_cast<GLESv2Context *>(s_eglIface->getGLESContext()); \ 25 GLEScmContext *ctx = static_cast<GLEScmContext *>(s_eglIface->getGLESContext()); \ 30 GLESv2Context *ctx = static_cast<GLESv2Context *>(s_eglIface->getGLESContext()); \
|
/external/chromium_org/third_party/WebKit/Source/core/page/ |
Screen.cpp | 53 long height = static_cast<long>(screenRect(m_frame->view()).height()); 58 return static_cast<unsigned>(height); 65 long width = static_cast<long>(screenRect(m_frame->view()).width()); 70 return static_cast<unsigned>(width); 77 return static_cast<unsigned>(screenDepth(m_frame->view())); 84 return static_cast<unsigned>(screenDepth(m_frame->view())); 94 return static_cast<int>(screenAvailableRect(m_frame->view()).x()); 104 return static_cast<int>(screenAvailableRect(m_frame->view()).y()); 114 return static_cast<unsigned>(screenAvailableRect(m_frame->view()).height()); 124 return static_cast<unsigned>(screenAvailableRect(m_frame->view()).width()) [all...] |
/external/chromium_org/url/ |
url_canon_stdstring.h | 39 cur_len_ = static_cast<int>(str_->size()); // Append to existing data. 42 buffer_len_ = static_cast<int>(str_->size()); 75 url_parse::Component(0, static_cast<int>(s.length()))); 79 url_parse::Component(0, static_cast<int>(s.length()))); 83 url_parse::Component(0, static_cast<int>(s.length()))); 87 url_parse::Component(0, static_cast<int>(s.length()))); 91 url_parse::Component(0, static_cast<int>(s.length()))); 95 url_parse::Component(0, static_cast<int>(s.length()))); 99 url_parse::Component(0, static_cast<int>(s.length()))); 103 url_parse::Component(0, static_cast<int>(s.length()))) [all...] |
/art/runtime/mirror/ |
dex_cache_test.cc | 51 static_cast<uint32_t>(dex_cache->GetStrings()->GetLength())); 53 static_cast<uint32_t>(dex_cache->GetResolvedTypes()->GetLength())); 55 static_cast<uint32_t>(dex_cache->GetResolvedMethods()->GetLength())); 57 static_cast<uint32_t>(dex_cache->GetResolvedFields()->GetLength())); 59 static_cast<uint32_t>(dex_cache->GetInitializedStaticStorage()->GetLength()));
|
/external/chromium_org/ppapi/cpp/dev/ |
printing_dev.cc | 28 return static_cast<Printing_Dev*>(object)->QuerySupportedPrintOutputFormats(); 37 return static_cast<Printing_Dev*>(object)->PrintBegin(*print_settings); 47 return static_cast<Printing_Dev*>(object)->PrintPages( 55 static_cast<Printing_Dev*>(object)->PrintEnd(); 64 static_cast<Printing_Dev*>(object)->IsPrintScalingDisabled();
|
/frameworks/base/native/android/ |
looper.cpp | 37 static_cast<Looper*>(looper)->incStrong((void*)ALooper_acquire); 41 static_cast<Looper*>(looper)->decStrong((void*)ALooper_acquire); 67 static_cast<Looper*>(looper)->wake(); 72 return static_cast<Looper*>(looper)->addFd(fd, ident, events, callback, data); 76 return static_cast<Looper*>(looper)->removeFd(fd);
|
/packages/inputmethods/LatinIME/native/jni/src/suggest/core/layout/ |
geometry_utils.h | 37 return atan2f(static_cast<float>(dy), static_cast<float>(dx)); 52 return static_cast<int>(hypotf(static_cast<float>(x1 - x2), static_cast<float>(y1 - y2)));
|
/external/chromium_org/third_party/libjingle/source/talk/base/ |
basictypes.h | 147 #define UNUSED(x) Unused(static_cast<const void*>(&x)) 148 #define UNUSED2(x, y) Unused(static_cast<const void*>(&x)); \ 149 Unused(static_cast<const void*>(&y)) 150 #define UNUSED3(x, y, z) Unused(static_cast<const void*>(&x)); \ 151 Unused(static_cast<const void*>(&y)); \ 152 Unused(static_cast<const void*>(&z)) 153 #define UNUSED4(x, y, z, a) Unused(static_cast<const void*>(&x)); \ 154 Unused(static_cast<const void*>(&y)); \ 155 Unused(static_cast<const void*>(&z)); \ 156 Unused(static_cast<const void*>(&a) [all...] |
/device/generic/goldfish/camera/ |
Converters.h | 82 #define R16(rgb) static_cast<uint8_t>(rgb & kRed5) 83 #define G16(rgb) static_cast<uint8_t>((rgb & kGreen6) >> 5) 84 #define B16(rgb) static_cast<uint8_t>((rgb & kBlue5) >> 11) 86 #define R16_32(rgb) static_cast<uint8_t>(((rgb & kRed5) << 3) | ((rgb & kRed5) >> 2)) 87 #define G16_32(rgb) static_cast<uint8_t>(((rgb & kGreen6) >> 3) | ((rgb & kGreen6) >> 9)) 88 #define B16_32(rgb) static_cast<uint8_t>(((rgb & kBlue5) >> 8) | ((rgb & kBlue5) >> 14)) 90 #define R32(rgb) static_cast<uint8_t>(rgb & kRed8) 91 #define G32(rgb) static_cast<uint8_t>(((rgb & kGreen8) >> 8) & 0xff) 92 #define B32(rgb) static_cast<uint8_t>(((rgb & kBlue8) >> 16) & 0xff) 94 #define RGB565(r, g, b) static_cast<uint16_t>((((static_cast<uint16_t>(b) << 6) | g) << 5) | r [all...] |
/external/chromium_org/third_party/WebKit/Source/core/platform/graphics/filters/ |
FELighting.cpp | 62 const static unsigned char cOpaqueAlpha = static_cast<unsigned char>(0xff); 71 int center = static_cast<int>(pixels->item(offset + cAlphaChannelOffset)); 72 int right = static_cast<int>(pixels->item(offset + cPixelSize + cAlphaChannelOffset)); 74 int bottom = static_cast<int>(pixels->item(offset + cAlphaChannelOffset)); 75 int bottomRight = static_cast<int>(pixels->item(offset + cPixelSize + cAlphaChannelOffset)); 82 int left = static_cast<int>(pixels->item(offset - cPixelSize + cAlphaChannelOffset)); 83 int center = static_cast<int>(pixels->item(offset + cAlphaChannelOffset)); 84 int right = static_cast<int>(pixels->item(offset + cPixelSize + cAlphaChannelOffset)); 86 int bottomLeft = static_cast<int>(pixels->item(offset - cPixelSize + cAlphaChannelOffset)); 87 int bottom = static_cast<int>(pixels->item(offset + cAlphaChannelOffset)) [all...] |
/external/webrtc/src/modules/audio_processing/ |
noise_suppression_impl.cc | 67 Handle* my_handle = static_cast<Handle*>(handle(i)); 69 err = WebRtcNs_Process(static_cast<Handle*>(handle(i)), 75 err = WebRtcNsx_Process(static_cast<Handle*>(handle(i)), 145 return WebRtcNs_Free(static_cast<Handle*>(handle)); 147 return WebRtcNsx_Free(static_cast<Handle*>(handle)); 153 return WebRtcNs_Init(static_cast<Handle*>(handle), apm_->sample_rate_hz()); 155 return WebRtcNsx_Init(static_cast<Handle*>(handle), apm_->sample_rate_hz()); 161 return WebRtcNs_set_policy(static_cast<Handle*>(handle), 164 return WebRtcNsx_set_policy(static_cast<Handle*>(handle),
|
/external/chromium_org/content/browser/indexed_db/ |
list_set_unittest.cc | 53 EXPECT_EQ(static_cast<size_t>(0), set.size()); 61 EXPECT_EQ(static_cast<size_t>(5), set.size()); 65 EXPECT_EQ(static_cast<size_t>(4), set.size()); 70 EXPECT_EQ(static_cast<size_t>(3), set.size()); 87 EXPECT_EQ(static_cast<size_t>(0), set.size()); 114 EXPECT_EQ(static_cast<size_t>(0), set.size()); 124 EXPECT_EQ(static_cast<size_t>(3), set.size()); 141 EXPECT_EQ(static_cast<size_t>(0), set.size()); 154 EXPECT_EQ(static_cast<size_t>(0), set.size()); 164 EXPECT_EQ(static_cast<size_t>(3), set.size()) [all...] |
/external/chromium_org/content/browser/speech/ |
speech_recognizer_impl_android.cc | 103 static_cast<JNIEnv*>(NULL), static_cast<jobject>(NULL))); 115 static_cast<JNIEnv*>(NULL), static_cast<jobject>(NULL))); 126 static_cast<JNIEnv*>(NULL), static_cast<jobject>(NULL))); 137 static_cast<JNIEnv*>(NULL), static_cast<jobject>(NULL))); 160 options[i], static_cast<double>(scores[i]))); 179 static_cast<JNIEnv*>(NULL), static_cast<jobject>(NULL), error)) [all...] |
/external/chromium_org/third_party/WebKit/Source/core/css/ |
LengthFunctions.cpp | 35 return static_cast<int>(minimumValueForLength(length, maximumValue, renderView, roundPercentages)); 40 return static_cast<int>(valueForLength(length, maximumValue, renderView, roundPercentages)); 50 return static_cast<LayoutUnit>(round(maximumValue * length.percent() / 100.0f)); 52 return static_cast<float>(maximumValue * length.percent() / 100.0f); 57 return static_cast<LayoutUnit>(renderView->viewportSize().width() * length.viewportPercentageLength() / 100.0f); 61 return static_cast<LayoutUnit>(renderView->viewportSize().height() * length.viewportPercentageLength() / 100.0f); 66 return static_cast<LayoutUnit>(std::min(viewportSize.width(), viewportSize.height()) * length.viewportPercentageLength() / 100.0f); 72 return static_cast<LayoutUnit>(std::max(viewportSize.width(), viewportSize.height()) * length.viewportPercentageLength() / 100.0f); 128 return static_cast<float>(maximumValue * length.percent() / 100.0f); 131 return static_cast<float>(maximumValue) [all...] |
/ndk/sources/cxx-stl/gabi++/tests/ |
catch_class_03.cpp | 80 assert(static_cast<C1&>(a).id_ == 4); 81 assert(static_cast<C2&>(a).id_ == 3); 82 assert(static_cast<B&>(static_cast<C1&>(a)).id_ == 2); 83 assert(static_cast<B&>(static_cast<C2&>(a)).id_ == 1); 102 assert(static_cast<const C1&>(a).id_ == 4); 103 assert(static_cast<const C2&>(a).id_ == 3); 104 assert(static_cast<const B&>(static_cast<const C1&>(a)).id_ == 2) [all...] |
/frameworks/rs/ |
rsScript.cpp | 156 Script *s = static_cast<Script *>(vs); 157 Allocation *a = static_cast<Allocation *>(va); 184 Script *s = static_cast<Script *>(vs); 193 static_cast<const Allocation *>(vain), static_cast<Allocation *>(vaout), 199 Script *s = static_cast<Script *>(vs); 205 Script *s = static_cast<Script *>(vs); 210 Script *s = static_cast<Script *>(vs); 215 Script *s = static_cast<Script *>(vs); 220 Script *s = static_cast<Script *>(vs) [all...] |
/external/chromium_org/base/memory/ |
aligned_memory.h | 24 // float* my_array = static_cast<float*>(AlignedAlloc(size, alignment)); 32 // static_cast<float*>(AlignedAlloc(size, alignment))); 59 void* void_data() { return static_cast<void*>(data_); } \ 61 return static_cast<const void*>(data_); \ 64 Type* data_as() { return static_cast<Type*>(void_data()); } \ 67 return static_cast<const Type*>(void_data()); \
|