Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 3747) sorted by relevance

12345678910>>...150

/external/chromium_org/third_party/WebKit/Source/web/tests/
DGraphicsContextTest.cpp76 GraphicsContext context(&canvas); in TEST() local
77 context.setTrackOpaqueRegion(true); in TEST()
82 context.fillRect(FloatRect(10, 10, 90, 90), opaque, CompositeSourceOver); in TEST()
83 EXPECT_EQ_RECT(IntRect(10, 10, 90, 90), context.opaqueRegion().asRect()); in TEST()
84 EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect()); in TEST()
86 context.fillRect(FloatRect(10, 10, 90, 90), alpha, CompositeSourceOver); in TEST()
87 EXPECT_EQ_RECT(IntRect(10, 10, 90, 90), context.opaqueRegion().asRect()); in TEST()
88 EXPECT_PIXELS_MATCH(bitmap, context.opaqueRegion().asRect()); in TEST()
90 context.fillRect(FloatRect(99, 13, 10, 90), opaque, CompositePlusLighter); in TEST()
91 EXPECT_EQ_RECT(IntRect(10, 10, 90, 90), context.opaqueRegion().asRect()); in TEST()
[all …]
DTransparencyWinTest.cpp51 static Color getPixelAt(GraphicsContext* context, int x, int y) in getPixelAt() argument
53 const SkBitmap& bitmap = context->layerBitmap(); in getPixelAt()
59 static void clearTopLayerAlphaChannel(GraphicsContext* context) in clearTopLayerAlphaChannel() argument
61 SkBitmap& bitmap = const_cast<SkBitmap&>(context->layerBitmap()); in clearTopLayerAlphaChannel()
70 static void clearTopLayerAlphaPixel(GraphicsContext* context, int x, int y) in clearTopLayerAlphaPixel() argument
72 SkBitmap& bitmap = const_cast<SkBitmap&>(context->layerBitmap()); in clearTopLayerAlphaPixel()
92 helper.init(src->context(), in TEST()
97 EXPECT_TRUE(src->context() == helper.context()); in TEST()
105 src->context()->save(); in TEST()
106 src->context()->scale(FloatSize(2.0, 0.5)); in TEST()
[all …]
/external/icu4c/i18n/
DdecContext.c45 U_CAPI decContext * U_EXPORT2 uprv_decContextClearStatus(decContext *context, uInt mask) { in uprv_decContextClearStatus() argument
46 context->status&=~mask; in uprv_decContextClearStatus()
47 return context; in uprv_decContextClearStatus()
63 U_CAPI decContext * U_EXPORT2 uprv_decContextDefault(decContext *context, Int kind) { in uprv_decContextDefault() argument
65 context->digits=9; /* 9 digits */ in uprv_decContextDefault()
66 context->emax=DEC_MAX_EMAX; /* 9-digit exponents */ in uprv_decContextDefault()
67 context->emin=DEC_MIN_EMIN; /* .. balanced */ in uprv_decContextDefault()
68 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ in uprv_decContextDefault()
69 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault()
70 context->status=0; /* cleared */ in uprv_decContextDefault()
[all …]
/external/chromium_org/third_party/angle/src/compiler/
Dglslang.y43 #define YYLEX_PARAM context->scanner
48 %parse-param {TParseContext* context}
89 extern void yyerror(YYLTYPE* yylloc, TParseContext* context, const char* reason);
108 if (context->shaderType != SH_VERTEX_SHADER) { \
109 context->error(L, " supported in vertex shaders only ", S); \
110 context->recover(); \
115 if (context->shaderType != SH_FRAGMENT_SHADER) { \
116 context->error(L, " supported in fragment shaders only ", S); \
117 context->recover(); \
189 context->error(@1, "undeclared identifier", $1.string->c_str());
[all …]
Dglslang_tab.cpp93 #define YYLEX_PARAM context->scanner
299 int yyparse (TParseContext* context);
311 extern void yyerror(YYLTYPE* yylloc, TParseContext* context, const char* reason);
330 if (context->shaderType != SH_VERTEX_SHADER) { \
331 context->error(L, " supported in vertex shaders only ", S); \
332 context->recover(); \
337 if (context->shaderType != SH_FRAGMENT_SHADER) { \
338 context->error(L, " supported in fragment shaders only ", S); \
339 context->recover(); \
1362 yyerror (&yylloc, context, YY_("syntax error: cannot back up")); \
[all …]
/external/chromium_org/third_party/icu/source/i18n/
DdecContext.c54 U_CAPI decContext * U_EXPORT2 uprv_decContextClearStatus(decContext *context, uInt mask) { in uprv_decContextClearStatus() argument
55 context->status&=~mask; in uprv_decContextClearStatus()
56 return context; in uprv_decContextClearStatus()
72 U_CAPI decContext * U_EXPORT2 uprv_decContextDefault(decContext *context, Int kind) { in uprv_decContextDefault() argument
74 context->digits=9; /* 9 digits */ in uprv_decContextDefault()
75 context->emax=DEC_MAX_EMAX; /* 9-digit exponents */ in uprv_decContextDefault()
76 context->emin=DEC_MIN_EMIN; /* .. balanced */ in uprv_decContextDefault()
77 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ in uprv_decContextDefault()
78 context->traps=DEC_Errors; /* all but informational */ in uprv_decContextDefault()
79 context->status=0; /* cleared */ in uprv_decContextDefault()
[all …]
/external/chromium_org/chrome/browser/chromeos/login/screens/
Dscreen_context_unittest.cc27 ScreenContext& context() { return *context_.get(); } in context() function in chromeos::ScreenContextTest
34 ASSERT_FALSE(context().HasChanges()); in TEST_F()
36 ASSERT_FALSE(context().HasKey("key0")); in TEST_F()
38 bool rv = context().SetBoolean("key0", true); in TEST_F()
40 ASSERT_TRUE(context().HasKey("key0")); in TEST_F()
41 ASSERT_TRUE(context().GetBoolean("key0")); in TEST_F()
42 ASSERT_TRUE(context().GetBoolean("key0", false)); in TEST_F()
43 ASSERT_TRUE(context().HasChanges()); in TEST_F()
45 rv = context().SetBoolean("key0", true); in TEST_F()
48 rv = context().SetBoolean("key0", false); in TEST_F()
[all …]
/external/chromium_org/ppapi/c/
Dppb_opengles2.h39 void (*ActiveTexture)(PP_Resource context, GLenum texture);
40 void (*AttachShader)(PP_Resource context, GLuint program, GLuint shader);
42 PP_Resource context, GLuint program, GLuint index, const char* name);
43 void (*BindBuffer)(PP_Resource context, GLenum target, GLuint buffer);
45 PP_Resource context, GLenum target, GLuint framebuffer);
47 PP_Resource context, GLenum target, GLuint renderbuffer);
48 void (*BindTexture)(PP_Resource context, GLenum target, GLuint texture);
50 PP_Resource context, GLclampf red, GLclampf green, GLclampf blue,
52 void (*BlendEquation)(PP_Resource context, GLenum mode);
54 PP_Resource context, GLenum modeRGB, GLenum modeAlpha);
[all …]
/external/apache-xml/src/main/java/org/apache/xml/dtm/ref/
DDTMDefaultBaseTraversers.java211 public int next(int context, int current) in next() argument
226 public int next(int context, int current, int expandedTypeID) in next() argument
256 public int first(int context) in first() argument
258 return context; in first()
273 public int first(int context, int expandedTypeID) in first() argument
275 return (getExpandedTypeID(context) == expandedTypeID) in first()
276 ? context : next(context, context, expandedTypeID); in first()
294 public int next(int context, int current) in next() argument
296 return (context == current) in next()
297 ? getFirstAttribute(context) : getNextAttribute(current); in next()
[all …]
/external/chromium_org/components/browser_context_keyed_service/
Dbrowser_context_keyed_service_factory.cc16 content::BrowserContext* context, TestingFactoryFunction testing_factory) { in SetTestingFactory() argument
21 bool add_context = ArePreferencesSetOn(context); in SetTestingFactory()
26 BrowserContextShutdown(context); in SetTestingFactory()
27 BrowserContextDestroyed(context); in SetTestingFactory()
30 MarkPreferencesSetOn(context); in SetTestingFactory()
32 testing_factories_[context] = testing_factory; in SetTestingFactory()
37 content::BrowserContext* context, in SetTestingFactoryAndUse() argument
40 SetTestingFactory(context, testing_factory); in SetTestingFactoryAndUse()
41 return GetServiceForBrowserContext(context, true); in SetTestingFactoryAndUse()
55 content::BrowserContext* context, in GetServiceForBrowserContext() argument
[all …]
Drefcounted_browser_context_keyed_service_factory.cc14 content::BrowserContext* context, in SetTestingFactory() argument
20 bool add_context = ArePreferencesSetOn(context); in SetTestingFactory()
25 BrowserContextShutdown(context); in SetTestingFactory()
26 BrowserContextDestroyed(context); in SetTestingFactory()
29 MarkPreferencesSetOn(context); in SetTestingFactory()
31 testing_factories_[context] = testing_factory; in SetTestingFactory()
36 content::BrowserContext* context, in SetTestingFactoryAndUse() argument
39 SetTestingFactory(context, testing_factory); in SetTestingFactoryAndUse()
40 return GetServiceForBrowserContext(context, true); in SetTestingFactoryAndUse()
57 content::BrowserContext* context, in GetServiceForBrowserContext() argument
[all …]
/external/ipsec-tools/src/racoon/missing/crypto/sha2/
Dsha2.c334 void SHA256_Init(SHA256_CTX* context) { in SHA256_Init() argument
335 if (context == (SHA256_CTX*)0) { in SHA256_Init()
338 bcopy(sha256_initial_hash_value, context->state, SHA256_DIGEST_LENGTH); in SHA256_Init()
339 bzero(context->buffer, SHA256_BLOCK_LENGTH); in SHA256_Init()
340 context->bitcount = 0; in SHA256_Init()
380 void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) { in SHA256_Transform() argument
385 W256 = (sha2_word32*)context->buffer; in SHA256_Transform()
388 a = context->state[0]; in SHA256_Transform()
389 b = context->state[1]; in SHA256_Transform()
390 c = context->state[2]; in SHA256_Transform()
[all …]
/external/chromium_org/cc/test/
Dtest_web_graphics_context_3d_unittest.cc15 static bool check_parameter_value(TestWebGraphicsContext3D* context, in check_parameter_value() argument
19 context->getTexParameteriv(GL_TEXTURE_2D, pname, &actual_value); in check_parameter_value()
23 static void expect_default_parameter_values(TestWebGraphicsContext3D* context) { in expect_default_parameter_values() argument
24 EXPECT_TRUE(check_parameter_value(context, GL_TEXTURE_MAG_FILTER, GL_LINEAR)); in expect_default_parameter_values()
26 context, GL_TEXTURE_MIN_FILTER, GL_NEAREST_MIPMAP_LINEAR)); in expect_default_parameter_values()
27 EXPECT_TRUE(check_parameter_value(context, GL_TEXTURE_WRAP_S, GL_REPEAT)); in expect_default_parameter_values()
28 EXPECT_TRUE(check_parameter_value(context, GL_TEXTURE_WRAP_T, GL_REPEAT)); in expect_default_parameter_values()
30 context, GL_TEXTURE_POOL_CHROMIUM, GL_TEXTURE_POOL_UNMANAGED_CHROMIUM)); in expect_default_parameter_values()
31 EXPECT_TRUE(check_parameter_value(context, GL_TEXTURE_USAGE_ANGLE, GL_NONE)); in expect_default_parameter_values()
35 scoped_ptr<TestWebGraphicsContext3D> context( in TEST() local
[all …]
/external/chromium_org/v8/test/cctest/
Dtest-decls.cc57 Local<Context> context = Local<Context>::New(isolate, context_); in ~DeclarationContext() local
58 context->Exit(); in ~DeclarationContext()
81 virtual void PostInitializeContext(Handle<Context> context) {} in PostInitializeContext() argument
128 Local<Context> context = Context::New(isolate, in InitializeIfNeeded() local
132 context_.Reset(isolate, context); in InitializeIfNeeded()
133 context->Enter(); in InitializeIfNeeded()
135 PostInitializeContext(context); in InitializeIfNeeded()
181 DeclarationContext* context = GetInstance(info.Data()); in HandleGet() local
182 context->get_count_++; in HandleGet()
183 info.GetReturnValue().Set(context->Get(key)); in HandleGet()
[all …]
/external/v8/test/cctest/
Dtest-decls.cc158 DeclarationContext* context = GetInstance(info); in HandleGet() local
159 context->get_count_++; in HandleGet()
160 return context->Get(key); in HandleGet()
167 DeclarationContext* context = GetInstance(info); in HandleSet() local
168 context->set_count_++; in HandleSet()
169 return context->Set(key, value); in HandleSet()
175 DeclarationContext* context = GetInstance(info); in HandleQuery() local
176 context->query_count_++; in HandleQuery()
177 return context->Query(key); in HandleQuery()
207 { DeclarationContext context; in TEST() local
[all …]
/external/chromium_org/third_party/WebKit/Source/core/html/canvas/
DWebGLDrawBuffers.cpp34 WebGLDrawBuffers::WebGLDrawBuffers(WebGLRenderingContext* context) in WebGLDrawBuffers() argument
35 : WebGLExtension(context) in WebGLDrawBuffers()
38 context->graphicsContext3D()->extensions()->ensureEnabled("GL_EXT_draw_buffers"); in WebGLDrawBuffers()
50 PassRefPtr<WebGLDrawBuffers> WebGLDrawBuffers::create(WebGLRenderingContext* context) in create() argument
52 return adoptRef(new WebGLDrawBuffers(context)); in create()
56 bool WebGLDrawBuffers::supported(WebGLRenderingContext* context) in supported() argument
58 Extensions3D* extensions = context->graphicsContext3D()->extensions(); in supported()
60 && satisfiesWebGLRequirements(context)); in supported()
105 GraphicsContext3D* context = webglContext->graphicsContext3D(); in satisfiesWebGLRequirements() local
110 context->getIntegerv(Extensions3D::MAX_DRAW_BUFFERS_EXT, &maxDrawBuffers); in satisfiesWebGLRequirements()
[all …]
/external/chromium_org/tools/cr/
Dmain.py35 context = cr.Context(
41 context.AddSubParser(command)
44 if context.autocompleting:
46 cr.autocomplete.Complete(context)
49 context.ParseArgs(True)
50 cr.plugin.Activate(context)
52 command = cr.Command.GetActivePlugin(context)
55 command.EarlyArgProcessing(context)
57 cr.plugin.Activate(context)
59 found_build_dir = cr.base.client.LoadConfig(context)
[all …]
/external/chromium_org/third_party/angle/src/libGLESv2/
DlibGLESv2.cpp265 gl::Context *context = gl::getNonLostContext(); in glActiveTexture() local
267 if (context) in glActiveTexture()
269 …if (texture < GL_TEXTURE0 || texture > GL_TEXTURE0 + context->getMaximumCombinedTextureImageUnits(… in glActiveTexture()
274 context->setActiveSampler(texture - GL_TEXTURE0); in glActiveTexture()
289 gl::Context *context = gl::getNonLostContext(); in glAttachShader() local
291 if (context) in glAttachShader()
293 gl::Program *programObject = context->getProgram(program); in glAttachShader()
294 gl::Shader *shaderObject = context->getShader(shader); in glAttachShader()
298 if (context->getShader(program)) in glAttachShader()
310 if (context->getProgram(shader)) in glAttachShader()
[all …]
/external/chromium_org/cc/output/
Dprogram_binding.cc30 bool ProgramBindingBase::Init(GLES2Interface* context, in Init() argument
34 vertex_shader_id_ = LoadShader(context, GL_VERTEX_SHADER, vertex_shader); in Init()
39 LoadShader(context, GL_FRAGMENT_SHADER, fragment_shader); in Init()
41 context->DeleteShader(vertex_shader_id_); in Init()
47 CreateShaderProgram(context, vertex_shader_id_, fragment_shader_id_); in Init()
51 bool ProgramBindingBase::Link(GLES2Interface* context) { in Link() argument
52 context->LinkProgram(program_); in Link()
53 CleanupShaders(context); in Link()
58 context->GetProgramiv(program_, GL_LINK_STATUS, &linked); in Link()
65 void ProgramBindingBase::Cleanup(GLES2Interface* context) { in Cleanup() argument
[all …]
/external/qemu/distrib/sdl-1.2.15/src/file/
DSDL_rwops.c48 static int SDLCALL win32_file_open(SDL_RWops *context, const char *filename, const char *mode) in win32_file_open() argument
58 if (!context) in win32_file_open()
61 context->hidden.win32io.h = INVALID_HANDLE_VALUE; /* mark this as unusable */ in win32_file_open()
62 context->hidden.win32io.buffer.data = NULL; in win32_file_open()
63 context->hidden.win32io.buffer.size = 0; in win32_file_open()
64 context->hidden.win32io.buffer.left = 0; in win32_file_open()
82 context->hidden.win32io.buffer.data = (char *)SDL_malloc(READAHEAD_BUFFER_SIZE); in win32_file_open()
83 if (!context->hidden.win32io.buffer.data) { in win32_file_open()
95 SDL_free(context->hidden.win32io.buffer.data); in win32_file_open()
96 context->hidden.win32io.buffer.data = NULL; in win32_file_open()
[all …]
/external/chromium_org/third_party/WebKit/Source/web/
DWebScrollbarThemePainter.cpp51 GraphicsContext context(canvas); in paintScrollbarBackground() local
52 context.setCertainlyOpaque(false); in paintScrollbarBackground()
53 m_theme->paintScrollbarBackground(&context, m_scrollbar); in paintScrollbarBackground()
58 GraphicsContext context(canvas); in paintTrackBackground() local
59 context.setCertainlyOpaque(false); in paintTrackBackground()
60 m_theme->paintTrackBackground(&context, m_scrollbar, IntRect(rect)); in paintTrackBackground()
65 GraphicsContext context(canvas); in paintBackTrackPart() local
66 context.setCertainlyOpaque(false); in paintBackTrackPart()
67 m_theme->paintTrackPiece(&context, m_scrollbar, IntRect(rect), WebCore::BackTrackPart); in paintBackTrackPart()
72 GraphicsContext context(canvas); in paintForwardTrackPart() local
[all …]
/external/chromium_org/third_party/WebKit/Source/platform/graphics/
DCrossfadeGeneratedImage.cpp46 void CrossfadeGeneratedImage::drawCrossfade(GraphicsContext* context) in drawCrossfade() argument
57 GraphicsContextStateSaver stateSaver(*context); in drawCrossfade()
59 context->clip(IntRect(IntPoint(), m_crossfadeSize)); in drawCrossfade()
60 context->beginTransparencyLayer(1); in drawCrossfade()
63 context->save(); in drawCrossfade()
65 context->scale(FloatSize( in drawCrossfade()
69 context->setAlpha(inversePercentage); in drawCrossfade()
70 context->drawImage(m_fromImage, IntPoint()); in drawCrossfade()
71 context->restore(); in drawCrossfade()
74 context->save(); in drawCrossfade()
[all …]
/external/qemu/
Dcpu-exec.c855 # define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext->ss.eip)) argument
856 # define TRAP_sig(context) ((context)->uc_mcontext->es.trapno) argument
857 # define ERROR_sig(context) ((context)->uc_mcontext->es.err) argument
858 # define MASK_sig(context) ((context)->uc_sigmask) argument
862 # define EIP_sig(context) ((context)->uc_mcontext.__gregs[_REG_EIP]) argument
863 # define TRAP_sig(context) ((context)->uc_mcontext.__gregs[_REG_TRAPNO]) argument
864 # define ERROR_sig(context) ((context)->uc_mcontext.__gregs[_REG_ERR]) argument
865 # define MASK_sig(context) ((context)->uc_sigmask) argument
869 # define EIP_sig(context) (*((unsigned long*)&(context)->uc_mcontext.mc_eip)) argument
870 # define TRAP_sig(context) ((context)->uc_mcontext.mc_trapno) argument
[all …]
/external/opencv/cxcore/src/
Dcxerror.cpp76 CvContext* context = (CvContext*)malloc( sizeof(*context) ); in icvCreateContext() local
78 context->err_mode = CV_ErrModeLeaf; in icvCreateContext()
79 context->err_code = CV_StsOk; in icvCreateContext()
81 context->error_callback = CV_DEFAULT_ERROR_CALLBACK; in icvCreateContext()
82 context->userdata = 0; in icvCreateContext()
84 return context; in icvCreateContext()
88 icvDestroyContext(CvContext* context) in icvDestroyContext() argument
90 free(context); in icvDestroyContext()
104 CvContext* context; in icvGetContext() local
114 context = (CvContext*)TlsGetValue( g_TlsIndex ); in icvGetContext()
[all …]
/external/chromium_org/content/browser/fileapi/
Dobfuscated_file_util_unittest.cc175 scoped_ptr<FileSystemOperationContext> context( in LimitedContext() local
177 context->set_allowed_bytes_growth(allowed_bytes_growth); in LimitedContext()
178 return context.Pass(); in LimitedContext()
188 FileSystemOperationContext* context; in NewContext() local
190 context = file_system->NewOperationContext(); in NewContext()
192 context = sandbox_file_system_.NewOperationContext(); in NewContext()
194 context->set_allowed_bytes_growth(1024 * 1024); in NewContext()
195 context->set_change_observers(change_observers()); in NewContext()
196 return context; in NewContext()
273 scoped_ptr<FileSystemOperationContext> context(NewContext(NULL)); in PathExists() local
[all …]

12345678910>>...150