Home
last modified time | relevance | path

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

12345678910>>...90

/external/icu4c/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/webkit/Source/ThirdParty/ANGLE/src/compiler/
Dglslang.y29 #define YYLEX_PARAM context->scanner
34 %parse-param {TParseContext* context}
70 extern void yyerror(TParseContext* context, const char* reason);
73 if (context->shaderType != SH_FRAGMENT_SHADER && \
74 context->shaderType != SH_VERTEX_SHADER) { \
75 context->error(L, " supported in vertex/fragment shaders only ", S, "", ""); \
76 context->recover(); \
81 if (context->shaderType != SH_VERTEX_SHADER) { \
82 context->error(L, " supported in vertex shaders only ", S, "", ""); \
83 context->recover(); \
[all …]
Dglslang_tab.cpp273 #define YYLEX_PARAM context->scanner
342 extern void yyerror(TParseContext* context, const char* reason);
345 if (context->shaderType != SH_FRAGMENT_SHADER && \
346 context->shaderType != SH_VERTEX_SHADER) { \
347 context->error(L, " supported in vertex/fragment shaders only ", S, "", ""); \
348 context->recover(); \
353 if (context->shaderType != SH_VERTEX_SHADER) { \
354 context->error(L, " supported in vertex shaders only ", S, "", ""); \
355 context->recover(); \
360 if (context->shaderType != SH_FRAGMENT_SHADER) { \
[all …]
Dglslang.l61 TParseContext* context = yyextra; variable
97 "float" { context->lexAfterType = true; return(FLOAT_TYPE); }
98 "int" { context->lexAfterType = true; return(INT_TYPE); }
99 "void" { context->lexAfterType = true; return(VOID_TYPE); }
100 "bool" { context->lexAfterType = true; return(BOOL_TYPE); }
107 "mat2" { context->lexAfterType = true; return(MATRIX2); }
108 "mat3" { context->lexAfterType = true; return(MATRIX3); }
109 "mat4" { context->lexAfterType = true; return(MATRIX4); }
111 "vec2" { context->lexAfterType = true; return (VEC2); }
112 "vec3" { context->lexAfterType = true; return (VEC3); }
[all …]
/external/webkit/Source/WebKit/chromium/tests/
DTransparencyWinTest.cpp50 static void drawNativeRect(GraphicsContext* context, in drawNativeRect() argument
53 SkCanvas* canvas = context->platformContext()->canvas(); in drawNativeRect()
67 static Color getPixelAt(GraphicsContext* context, int x, int y) in getPixelAt() argument
69 …const SkBitmap& bitmap = context->platformContext()->canvas()->getTopDevice()->accessBitmap(false); in getPixelAt()
75 static void clearTopLayerAlphaChannel(GraphicsContext* context) in clearTopLayerAlphaChannel() argument
77 …SkBitmap& bitmap = const_cast<SkBitmap&>(context->platformContext()->canvas()->getTopDevice()->acc… in clearTopLayerAlphaChannel()
86 static void clearTopLayerAlphaPixel(GraphicsContext* context, int x, int y) in clearTopLayerAlphaPixel() argument
88 …SkBitmap& bitmap = const_cast<SkBitmap&>(context->platformContext()->canvas()->getTopDevice()->acc… in clearTopLayerAlphaPixel()
108 helper.init(src->context(), in TEST()
113 EXPECT_TRUE(src->context() == helper.context()); in TEST()
[all …]
/external/webkit/Source/JavaScriptCore/API/tests/
Dtestapi.c50 static JSGlobalContextRef context; variable
54 if (JSValueToBoolean(context, value) != expectedValue) { in assertEqualsAsBoolean()
62 double number = JSValueToNumber(context, value, NULL); in assertEqualsAsNumber()
75 JSStringRef valueAsString = JSValueToStringCopy(context, value, NULL); in assertEqualsAsUTF8String()
100 JSStringRef valueAsString = JSValueToStringCopy(context, value, NULL); in assertEqualsAsCharactersPtr()
141 static bool MyObject_hasProperty(JSContextRef context, JSObjectRef object, JSStringRef propertyName) in MyObject_hasProperty() argument
143 UNUSED_PARAM(context); in MyObject_hasProperty()
158 static JSValueRef MyObject_getProperty(JSContextRef context, JSObjectRef object, JSStringRef proper… in MyObject_getProperty() argument
160 UNUSED_PARAM(context); in MyObject_getProperty()
164 return JSValueMakeNumber(context, 1); in MyObject_getProperty()
[all …]
DJSNode.c36 static JSValueRef JSNode_appendChild(JSContextRef context, JSObjectRef function, JSObjectRef thisOb… in JSNode_appendChild() argument
41 if (!JSValueIsObjectOfClass(context, thisObject, JSNode_class(context))) { in JSNode_appendChild()
43 *exception = JSValueMakeString(context, message); in JSNode_appendChild()
45 … else if (argumentCount < 1 || !JSValueIsObjectOfClass(context, arguments[0], JSNode_class(context in JSNode_appendChild()
47 *exception = JSValueMakeString(context, message); in JSNode_appendChild()
51 Node* child = JSObjectGetPrivate(JSValueToObject(context, arguments[0], NULL)); in JSNode_appendChild()
56 return JSValueMakeUndefined(context); in JSNode_appendChild()
59 static JSValueRef JSNode_removeChild(JSContextRef context, JSObjectRef function, JSObjectRef thisOb… in JSNode_removeChild() argument
65 if (JSValueIsObjectOfClass(context, thisObject, JSNode_class(context))) { in JSNode_removeChild()
66 if (JSValueIsObjectOfClass(context, arguments[0], JSNode_class(context))) { in JSNode_removeChild()
[all …]
/external/dbus/bus/
Dbus.c75 BusContext *context; member
83 BusContext *context; in server_get_context() local
96 context = bd->context; in server_get_context()
100 return context; in server_get_context()
121 BusContext *context; in add_server_watch() local
123 context = server_get_context (server); in add_server_watch()
125 return _dbus_loop_add_watch (context->loop, in add_server_watch()
135 BusContext *context; in remove_server_watch() local
137 context = server_get_context (server); in remove_server_watch()
139 _dbus_loop_remove_watch (context->loop, in remove_server_watch()
[all …]
Dbus.h81 dbus_bool_t bus_context_reload_config (BusContext *context,
83 void bus_context_shutdown (BusContext *context);
84 BusContext* bus_context_ref (BusContext *context);
85 void bus_context_unref (BusContext *context);
86 dbus_bool_t bus_context_get_id (BusContext *context,
88 const char* bus_context_get_type (BusContext *context);
89 const char* bus_context_get_address (BusContext *context);
90 const char* bus_context_get_servicehelper (BusContext *context);
91 dbus_bool_t bus_context_get_systemd_activation (BusContext *context);
92 BusRegistry* bus_context_get_registry (BusContext *context);
[all …]
Dconfig-loader-expat.c41 process_content (ExpatParseContext *context) in process_content() argument
43 if (context->failed) in process_content()
46 if (_dbus_string_get_length (&context->content) > 0) in process_content()
48 if (!bus_config_parser_content (context->parser, in process_content()
49 &context->content, in process_content()
50 context->error)) in process_content()
52 context->failed = TRUE; in process_content()
55 _dbus_string_set_length (&context->content, 0); in process_content()
66 ExpatParseContext *context = userData; in expat_StartElementHandler() local
74 if (context->failed) in expat_StartElementHandler()
[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/webkit/Tools/DumpRenderTree/
DLayoutTestController.cpp101 static JSValueRef dumpApplicationCacheDelegateCallbacksCallback(JSContextRef context, JSObjectRef f… in dumpApplicationCacheDelegateCallbacksCallback() argument
105 return JSValueMakeUndefined(context); in dumpApplicationCacheDelegateCallbacksCallback()
108 static JSValueRef dumpAsPDFCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObj… in dumpAsPDFCallback() argument
112 return JSValueMakeUndefined(context); in dumpAsPDFCallback()
115 static JSValueRef dumpAsTextCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisOb… in dumpAsTextCallback() argument
121 …controller->setGeneratePixelResults(argumentCount > 0 ? JSValueToBoolean(context, arguments[0]) : … in dumpAsTextCallback()
123 return JSValueMakeUndefined(context); in dumpAsTextCallback()
126 static JSValueRef dumpBackForwardListCallback(JSContextRef context, JSObjectRef function, JSObjectR… in dumpBackForwardListCallback() argument
130 return JSValueMakeUndefined(context); in dumpBackForwardListCallback()
133 static JSValueRef dumpChildFramesAsTextCallback(JSContextRef context, JSObjectRef function, JSObjec… in dumpChildFramesAsTextCallback() argument
[all …]
DAccessibilityUIElement.cpp39 static JSValueRef allAttributesCallback(JSContextRef context, JSObjectRef function, JSObjectRef thi… in allAttributesCallback() argument
42 return JSValueMakeString(context, attributes.get()); in allAttributesCallback()
45 static JSValueRef attributesOfLinkedUIElementsCallback(JSContextRef context, JSObjectRef function, … in attributesOfLinkedUIElementsCallback() argument
48 return JSValueMakeString(context, linkedUIDescription.get()); in attributesOfLinkedUIElementsCallback()
51 static JSValueRef attributesOfDocumentLinksCallback(JSContextRef context, JSObjectRef function, JSO… in attributesOfDocumentLinksCallback() argument
54 return JSValueMakeString(context, linkedUIDescription.get()); in attributesOfDocumentLinksCallback()
57 static JSValueRef attributesOfChildrenCallback(JSContextRef context, JSObjectRef function, JSObject… in attributesOfChildrenCallback() argument
60 return JSValueMakeString(context, childrenDescription.get()); in attributesOfChildrenCallback()
63 static JSValueRef parameterizedAttributeNamesCallback(JSContextRef context, JSObjectRef function, J… in parameterizedAttributeNamesCallback() argument
66 return JSValueMakeString(context, parameterizedAttributeNames.get()); in parameterizedAttributeNamesCallback()
[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/webkit/Source/WebCore/platform/graphics/chromium/cc/
DCCVideoLayerImpl.cpp106 GraphicsContext3D* context = layerRenderer()->context(); in drawYUV() local
111 GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE1)); in drawYUV()
112 GLC(context, context->bindTexture(GraphicsContext3D::TEXTURE_2D, yTexture.id)); in drawYUV()
113 GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE2)); in drawYUV()
114 GLC(context, context->bindTexture(GraphicsContext3D::TEXTURE_2D, uTexture.id)); in drawYUV()
115 GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE3)); in drawYUV()
116 GLC(context, context->bindTexture(GraphicsContext3D::TEXTURE_2D, vTexture.id)); in drawYUV()
123 …GLC(context, context->uniform1f(program->vertexShader().yWidthScaleFactorLocation(), yWidthScaleFa… in drawYUV()
124 …GLC(context, context->uniform1f(program->vertexShader().uvWidthScaleFactorLocation(), uvWidthScale… in drawYUV()
126 GLC(context, context->uniform1i(program->fragmentShader().yTextureLocation(), 1)); in drawYUV()
[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/webkit/Tools/DumpRenderTree/gtk/
DTextInputController.cpp41 static JSValueRef setMarkedTextCallback(JSContextRef context, JSObjectRef function, JSObjectRef thi… in setMarkedTextCallback() argument
45 return JSValueMakeUndefined(context); in setMarkedTextCallback()
48 return JSValueMakeUndefined(context); in setMarkedTextCallback()
50 JSStringRef string = JSValueToStringCopy(context, arguments[0], exception); in setMarkedTextCallback()
51 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); in setMarkedTextCallback()
58 int start = static_cast<int>(JSValueToNumber(context, arguments[1], exception)); in setMarkedTextCallback()
59 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); in setMarkedTextCallback()
61 int end = static_cast<int>(JSValueToNumber(context, arguments[2], exception)); in setMarkedTextCallback()
62 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); in setMarkedTextCallback()
66 return JSValueMakeUndefined(context); in setMarkedTextCallback()
[all …]
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/
DlibGLESv2.cpp44 gl::Context *context = gl::getContext(); in glActiveTexture() local
46 if (context) in glActiveTexture()
48 context->setActiveSampler(texture - GL_TEXTURE0); in glActiveTexture()
63 gl::Context *context = gl::getContext(); in glAttachShader() local
65 if (context) in glAttachShader()
67 gl::Program *programObject = context->getProgram(program); in glAttachShader()
68 gl::Shader *shaderObject = context->getShader(shader); in glAttachShader()
72 if (context->getShader(program)) in glAttachShader()
84 if (context->getProgram(shader)) in glAttachShader()
117 gl::Context *context = gl::getContext(); in glBindAttribLocation() local
[all …]
/external/webkit/Source/WebCore/platform/graphics/cairo/
DFontCairo.cpp46 static void prepareContextForGlyphDrawing(cairo_t* context, const SimpleFontData* font, const Float… in prepareContextForGlyphDrawing() argument
49 cairo_set_scaled_font(context, font->platformData().scaledFont()); in prepareContextForGlyphDrawing()
52 cairo_transform(context, &mat); in prepareContextForGlyphDrawing()
54 cairo_translate(context, point.x(), point.y()); in prepareContextForGlyphDrawing()
57 static void drawGlyphsToContext(cairo_t* context, const SimpleFontData* font, GlyphBufferGlyph* gly… in drawGlyphsToContext() argument
59 cairo_show_glyphs(context, glyphs, numGlyphs); in drawGlyphsToContext()
62 cairo_translate(context, font->syntheticBoldOffset(), 0); in drawGlyphsToContext()
63 cairo_show_glyphs(context, glyphs, numGlyphs); in drawGlyphsToContext()
64 cairo_translate(context, -font->syntheticBoldOffset(), 0); in drawGlyphsToContext()
78 cairo_t* context = graphicsContext->platformContext()->cr(); in drawGlyphsShadow() local
[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/webkit/Source/WebCore/platform/gtk/
DRenderThemeGtk3.cpp87 GRefPtr<GtkStyleContext> context = adoptGRef(gtk_style_context_new()); in getStyleContext() local
88 gtk_style_context_set_path(context.get(), path); in getStyleContext()
91 result.first->second = context; in getStyleContext()
92 return context.get(); in getStyleContext()
126 static void adjustRectForFocus(GtkStyleContext* context, IntRect& rect) in adjustRectForFocus() argument
129 gtk_style_context_get_style(context, in adjustRectForFocus()
137 GtkStyleContext* context = 0; in adjustRepaintRect() local
143context = getStyleContext(part == CheckboxPart ? GTK_TYPE_CHECK_BUTTON : GTK_TYPE_RADIO_BUTTON); in adjustRepaintRect()
146 gtk_style_context_get_style(context, "indicator-spacing", &indicatorSpacing, NULL); in adjustRepaintRect()
152context = getStyleContext(part == SliderThumbHorizontalPart ? GTK_TYPE_HSCALE : GTK_TYPE_VSCALE); in adjustRepaintRect()
[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/webkit/Source/WebKit2/UIProcess/API/C/
DWKContext.h55 typedef void (*WKContextDidNavigateWithNavigationDataCallback)(WKContextRef context, WKPageRef page…
56 typedef void (*WKContextDidPerformClientRedirectCallback)(WKContextRef context, WKPageRef page, WKU…
57 typedef void (*WKContextDidPerformServerRedirectCallback)(WKContextRef context, WKPageRef page, WKU…
58 typedef void (*WKContextDidUpdateHistoryTitleCallback)(WKContextRef context, WKPageRef page, WKStri…
59 typedef void (*WKContextPopulateVisitedLinksCallback)(WKContextRef context, const void *clientInfo);
73 typedef void (*WKContextDownloadDidStartCallback)(WKContextRef context, WKDownloadRef download, con…
74 typedef void (*WKContextDownloadDidReceiveAuthenticationChallengeCallback)(WKContextRef context, WK…
75 typedef void (*WKContextDownloadDidReceiveResponseCallback)(WKContextRef context, WKDownloadRef dow…
76 typedef void (*WKContextDownloadDidReceiveDataCallback)(WKContextRef context, WKDownloadRef downloa…
77 typedef bool (*WKContextDownloadShouldDecodeSourceDataOfMIMETypeCallback)(WKContextRef context, WKD…
[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/webkit/Source/JavaScriptCore/parser/
DJSParser.cpp222 …class TreeBuilder> ALWAYS_INLINE TreeConstDeclList parseConstDeclarationList(TreeBuilder& context);
652 ASTBuilder context(m_globalData, m_lexer); in parseProgram() local
656 SourceElements* sourceElements = parseSourceElements<CheckForStrictMode>(context); in parseProgram()
661 CodeFeatures features = context.features(); in parseProgram()
671 …m_globalData->parser->didFinishParsing(sourceElements, context.varDeclarations(), context.funcDecl… in parseProgram()
672 m_lastLine, context.numConstants(), capturedVariables); in parseProgram()
681 …ode mode, class TreeBuilder> TreeSourceElements JSParser::parseSourceElements(TreeBuilder& context) in parseSourceElements() argument
683 TreeSourceElements sourceElements = context.createSourceElements(); in parseSourceElements()
688 while (TreeStatement statement = parseStatement(context, directive)) { in parseSourceElements()
703 context.appendStatement(sourceElements, statement); in parseSourceElements()
[all …]

12345678910>>...90