/external/clang/test/SemaCXX/ |
vector.cpp | 82 // static_cast 83 (void)static_cast<char16>(ll16); 84 (void)static_cast<char16_e>(ll16); 85 (void)static_cast<longlong16>(ll16); 86 (void)static_cast<longlong16_e>(ll16); 87 (void)static_cast<char16>(ll16e); 88 (void)static_cast<char16_e>(ll16e); // expected-error{{static_cast from 'longlong16_e' to 'char16_e' is not allowed}} 89 (void)static_cast<longlong16>(ll16e); 90 (void)static_cast<longlong16_e>(ll16e) [all...] |
overloaded-builtin-operators.cpp | 47 (void)static_cast<yes&>(islong(s + l)); 48 (void)static_cast<no&>(islong(s + s)); 55 (void)static_cast<yes&>(islong(s % l)); 56 (void)static_cast<yes&>(islong(l << s)); 57 (void)static_cast<no&>(islong(s << l)); 58 (void)static_cast<yes&>(islong(e1 % l)); 59 // FIXME: should pass (void)static_cast<no&>(islong(e1 % e2));
|
/external/webkit/Source/WebCore/bindings/js/ |
JSWebGLRenderingContextCustom.cpp | 140 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(obj->impl()); 183 return toJS(exec, globalObject, static_cast<WebKitLoseContext*>(extension)); 185 return toJS(exec, globalObject, static_cast<OESStandardDerivatives*>(extension)); 187 return toJS(exec, globalObject, static_cast<OESTextureFloat*>(extension)); 189 return toJS(exec, globalObject, static_cast<OESVertexArrayObject*>(extension)); 199 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(impl()); 209 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(impl()); 234 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(impl()); 253 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(impl()); 277 WebGLRenderingContext* context = static_cast<WebGLRenderingContext*>(impl()) [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.4.3/i686-linux/include/c++/4.4.3/bits/ |
char_traits.h | 130 { return static_cast<char_type>(__c); } 134 { return static_cast<int_type>(__c); } 142 { return static_cast<int_type>(_CHAR_TRAITS_EOF); } 189 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 267 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 271 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 275 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 279 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 283 { return static_cast<char_type>(__c); } 289 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
/prebuilts/gcc/linux-x86/host/i686-linux-glibc2.7-4.6/i686-linux/include/c++/4.6.x-google/bits/ |
char_traits.h | 125 { return static_cast<char_type>(__c); } 129 { return static_cast<int_type>(__c); } 137 { return static_cast<int_type>(_GLIBCXX_STDIO_EOF); } 184 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 265 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 269 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 273 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 277 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 281 { return static_cast<char_type>(__c); } 287 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
forward_list.tcc | 44 _Node* __curr = static_cast<_Node*>(__lst._M_impl._M_head._M_next); 50 __curr = static_cast<_Node*>(__curr->_M_next); 73 _Node* __curr = static_cast<_Node*>(__pos->_M_next); 86 _Node* __curr = static_cast<_Node*>(__pos->_M_next); 90 __curr = static_cast<_Node*>(__curr->_M_next); 293 _Node* __curr = static_cast<_Node*>(&this->_M_impl._M_head); 296 while (_Node* __tmp = static_cast<_Node*>(__curr->_M_next)) 309 __curr = static_cast<_Node*>(__curr->_M_next); 322 _Node* __curr = static_cast<_Node*>(&this->_M_impl._M_head); 323 while (_Node* __tmp = static_cast<_Node*>(__curr->_M_next) [all...] |
/prebuilts/gcc/linux-x86/host/x86_64-linux-glibc2.7-4.6/x86_64-linux/include/c++/4.6.x-google/bits/ |
char_traits.h | 125 { return static_cast<char_type>(__c); } 129 { return static_cast<int_type>(__c); } 137 { return static_cast<int_type>(_GLIBCXX_STDIO_EOF); } 184 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 265 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 269 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 273 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 277 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 281 { return static_cast<char_type>(__c); } 287 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
forward_list.tcc | 44 _Node* __curr = static_cast<_Node*>(__lst._M_impl._M_head._M_next); 50 __curr = static_cast<_Node*>(__curr->_M_next); 73 _Node* __curr = static_cast<_Node*>(__pos->_M_next); 86 _Node* __curr = static_cast<_Node*>(__pos->_M_next); 90 __curr = static_cast<_Node*>(__curr->_M_next); 293 _Node* __curr = static_cast<_Node*>(&this->_M_impl._M_head); 296 while (_Node* __tmp = static_cast<_Node*>(__curr->_M_next)) 309 __curr = static_cast<_Node*>(__curr->_M_next); 322 _Node* __curr = static_cast<_Node*>(&this->_M_impl._M_head); 323 while (_Node* __tmp = static_cast<_Node*>(__curr->_M_next) [all...] |
/prebuilts/ndk/android-ndk-r5/sources/cxx-stl/gnu-libstdc++/include/bits/ |
char_traits.h | 130 { return static_cast<char_type>(__c); } 134 { return static_cast<int_type>(__c); } 142 { return static_cast<int_type>(_CHAR_TRAITS_EOF); } 189 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 267 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 271 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 275 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 279 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 283 { return static_cast<char_type>(__c); } 289 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
/prebuilts/ndk/android-ndk-r6/sources/cxx-stl/gnu-libstdc++/include/bits/ |
char_traits.h | 130 { return static_cast<char_type>(__c); } 134 { return static_cast<int_type>(__c); } 142 { return static_cast<int_type>(_CHAR_TRAITS_EOF); } 189 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 267 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 271 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 275 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 279 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 283 { return static_cast<char_type>(__c); } 289 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
/prebuilts/ndk/android-ndk-r7/sources/cxx-stl/gnu-libstdc++/include/bits/ |
char_traits.h | 130 { return static_cast<char_type>(__c); } 134 { return static_cast<int_type>(__c); } 142 { return static_cast<int_type>(_CHAR_TRAITS_EOF); } 189 return static_cast<_CharT*>(__builtin_memmove(__s1, __s2, 267 { return static_cast<const char_type*>(__builtin_memchr(__s, __a, __n)); } 271 { return static_cast<char_type*>(__builtin_memmove(__s1, __s2, __n)); } 275 { return static_cast<char_type*>(__builtin_memcpy(__s1, __s2, __n)); } 279 { return static_cast<char_type*>(__builtin_memset(__s, __a, __n)); } 283 { return static_cast<char_type>(__c); } 289 { return static_cast<int_type>(static_cast<unsigned char>(__c)); [all...] |
/external/chromium/base/ |
pickle.cc | 36 DCHECK_GE(static_cast<size_t>(header_size), sizeof(Header)); 47 if (data_len >= static_cast<int>(sizeof(Header))) 50 if (header_size_ > static_cast<unsigned int>(data_len)) 239 if (len > INT_MAX / static_cast<int>(sizeof(wchar_t))) 303 if (!WriteInt(static_cast<int>(value.size()))) 306 return WriteBytes(value.data(), static_cast<int>(value.size())); 310 if (!WriteInt(static_cast<int>(value.size()))) 314 static_cast<int>(value.size() * sizeof(wchar_t))); 318 if (!WriteInt(static_cast<int>(value.size()))) 322 static_cast<int>(value.size()) * sizeof(char16)) [all...] |
string_piece.cc | 52 return result != ptr_ + length_ ? static_cast<size_t>(result - ptr_) : npos; 64 return result != last ? static_cast<size_t>(result - ptr_) : npos; 93 table[static_cast<unsigned char>(data[i])] = true; 109 if (lookup[static_cast<unsigned char>(ptr_[i])]) { 131 if (!lookup[static_cast<unsigned char>(ptr_[i])]) { 161 if (lookup[static_cast<unsigned char>(ptr_[i])]) 185 if (!lookup[static_cast<unsigned char>(ptr_[i])])
|
/external/chromium/chrome/browser/autofill/ |
name_field_unittest.cc | 57 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 98 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 131 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 161 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 199 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 232 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 270 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 311 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()); 344 ASSERT_EQ(static_cast<NameField*>(NULL), field_.get()); 377 ASSERT_NE(static_cast<NameField*>(NULL), field_.get()) [all...] |
/external/chromium/chrome/browser/ui/gtk/ |
rounded_window.cc | 48 delete static_cast<RoundedWindowData*>(data); 91 int y = static_cast<int>(sqrt(static_cast<double>( 119 int y = static_cast<int>(sqrt(static_cast<double>( 145 int y = static_cast<int>(sqrt(static_cast<double>( 174 int y = static_cast<int>(sqrt(static_cast<double>( 204 RoundedWindowData* data = static_cast<RoundedWindowData*> [all...] |
/external/webkit/Source/WebCore/svg/ |
SVGFontFaceElement.cpp | 130 return static_cast<unsigned>(ceilf(value.toFloat())); 135 return static_cast<int>(ceilf(getAttribute(x_heightAttr).toFloat())); 223 return static_cast<int>(ceilf(ascentValue.toFloat())); 228 return static_cast<int>(unitsPerEm()) - static_cast<int>(ceilf(vertOriginY.toFloat())); 232 return static_cast<int>(ceilf(unitsPerEm() * 0.8f)); 245 int descent = static_cast<int>(ceilf(descentValue.toFloat())); 252 return static_cast<int>(ceilf(vertOriginY.toFloat())); 256 return static_cast<int>(ceilf(unitsPerEm() * 0.2f)); 279 srcElement = static_cast<SVGFontFaceSrcElement*>(child) [all...] |
/external/webkit/Source/WebCore/websockets/ |
WebSocketChannel.cpp | 74 if (Page* page = static_cast<Document*>(m_context)->page()) 240 LOG(Network, "WebSocket buffer overflow (%lu+%lu)", static_cast<unsigned long>(m_bufferSize), static_cast<unsigned long>(len)); 253 m_context->addMessage(JSMessageSource, LogMessageType, ErrorMessageLevel, makeString("WebSocket frame (at ", String::number(static_cast<unsigned long>(newBufferSize)), " bytes) is too long."), 0, m_handshake.clientOrigin(), 0); 286 Document* document = static_cast<Document*>(m_context); 297 LOG(Network, "remaining in read buf %lu", static_cast<unsigned long>(m_bufferSize)); 314 unsigned char frameByte = static_cast<unsigned char>(*p++); 320 LOG(Network, "frame length overflow %lu", static_cast<unsigned long>(length)); 325 unsigned char msgByte = static_cast<unsigned char>(*p); 328 LOG(Network, "frame length overflow %lu+%u", static_cast<unsigned long>(newLength), lengthMsgByte) [all...] |
/external/chromium/webkit/glue/ |
multipart_response_delegate_unittest.cc | 220 static_cast<int>(no_start_boundary.length()), 221 static_cast<int>(no_start_boundary.length())); 225 EXPECT_EQ(static_cast<int>(no_start_boundary.length()), 239 static_cast<int>(no_end_boundary.length()), 240 static_cast<int>(no_end_boundary.length())); 244 EXPECT_EQ(static_cast<int>(no_end_boundary.length()), 251 EXPECT_EQ(static_cast<int>(no_end_boundary.length()), 261 static_cast<int>(no_boundaries.length()), 262 static_cast<int>(no_boundaries.length())); 266 EXPECT_EQ(static_cast<int>(no_boundaries.length()) [all...] |
/external/v8/src/ |
fixed-dtoa.cc | 51 uint32_t part = static_cast<uint32_t>(accumulator & kMask32); 57 part = static_cast<uint32_t>(accumulator & kMask32); 89 int result = static_cast<int>(high_bits_ >> (power - 64)); 90 high_bits_ -= static_cast<uint64_t>(result) << (power - 64); 95 int result = static_cast<int>(part_low + part_high); 108 return static_cast<int>(high_bits_ >> (position - 64)) & 1; 110 return static_cast<int>(low_bits_ >> position) & 1; 162 uint32_t part2 = static_cast<uint32_t>(number % kTen7); 164 uint32_t part1 = static_cast<uint32_t>(number % kTen7); 165 uint32_t part0 = static_cast<uint32_t>(number / kTen7) [all...] |
atomicops_internals_x86_msvc.h | 44 static_cast<LONG>(new_value), 45 static_cast<LONG>(old_value)); 46 return static_cast<Atomic32>(result); 53 static_cast<LONG>(new_value)); 54 return static_cast<Atomic32>(result); 61 static_cast<LONG>(increment)) + increment; 144 static_cast<LONGLONG>(increment)) + increment;
|
/external/webkit/Source/WebKit/wx/ |
WebView.h | 370 wxWebViewNewWindowEvent( wxWindow* win = static_cast<wxWindow*>(NULL)); 387 wxWebViewRightClickEvent( wxWindow* win = static_cast<wxWindow*>(NULL)); 499 wxWebViewReceivedTitleEvent( wxWindow* win = static_cast<wxWindow*>(NULL)); 519 wxWebViewWindowObjectClearedEvent( wxWindow* win = static_cast<wxWindow*>(NULL)); 533 wxWebViewContentsChangedEvent(wxWindow* win = static_cast<wxWindow*>(0)); 543 wxWebViewSelectionChangedEvent(wxWindow* win = static_cast<wxWindow*>(0)); 608 static_cast<wxObject*>(NULL)), 616 static_cast<wxObject*>(NULL)), 624 static_cast<wxObject*>(NULL)), 632 static_cast<wxObject*>(NULL)) [all...] |
/external/chromium/chrome/browser/prefs/ |
pref_value_store.cc | 110 if (GetValueFromStore(name.c_str(), static_cast<PrefStoreType>(i), 192 i <= static_cast<size_t>(last_checked_store); ++i) { 193 if (PrefValueInStore(name, static_cast<PrefStoreType>(i))) 202 if (PrefValueInStore(name, static_cast<PrefStoreType>(i))) 203 return static_cast<PrefStoreType>(i); 213 const PrefStore* store = GetPrefStore(static_cast<PrefStoreType>(store_type)); 253 GetPrefStore(static_cast<PrefStoreType>(i));
|
/external/chromium/crypto/ |
sha2_unittest.cc | 25 EXPECT_EQ(expected1[i], static_cast<int>(output1[i])); 31 EXPECT_EQ(expected1[i], static_cast<int>(output_truncated1[i])); 50 EXPECT_EQ(expected1[i], static_cast<uint8>(output1[i])); 69 EXPECT_EQ(expected2[i], static_cast<int>(output2[i])); 75 EXPECT_EQ(expected2[i], static_cast<int>(output_truncated2[i])); 93 EXPECT_EQ(expected3[i], static_cast<int>(output3[i])); 99 EXPECT_EQ(expected3[i], static_cast<int>(output_truncated3[i]));
|
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/ |
ShaderLang.cpp | 31 return static_cast<int>(maxLen) + 1; 54 if (index < 0 || index >= static_cast<int>(varList.size())) 115 TShHandleBase* base = static_cast<TShHandleBase*>(ConstructCompiler(type, spec)); 134 TShHandleBase* base = static_cast<TShHandleBase*>(handle); 173 TShHandleBase* base = static_cast<TShHandleBase*>(handle); 210 TShHandleBase* base = static_cast<TShHandleBase*>(handle); 226 TShHandleBase* base = static_cast<TShHandleBase*>(handle);
|
/external/webkit/Source/ThirdParty/ANGLE/src/libEGL/ |
libEGL.cpp | 133 egl::Display *display = static_cast<egl::Display*>(dpy); 164 egl::Display *display = static_cast<egl::Display*>(dpy); 184 egl::Display *display = static_cast<egl::Display*>(dpy); 221 egl::Display *display = static_cast<egl::Display*>(dpy); 258 egl::Display *display = static_cast<egl::Display*>(dpy); 296 egl::Display *display = static_cast<egl::Display*>(dpy); 325 egl::Display *display = static_cast<egl::Display*>(dpy); 392 egl::Display *display = static_cast<egl::Display*>(dpy); 418 egl::Display *display = static_cast<egl::Display*>(dpy); 443 egl::Display *display = static_cast<egl::Display*>(dpy) [all...] |