/external/webkit/Source/WebCore/platform/graphics/chromium/cc/ |
CCCanvasLayerImpl.cpp | 55 GraphicsContext3D* context = layerRenderer()->context(); local 56 GLC(context, context->activeTexture(GraphicsContext3D::TEXTURE0)); 57 GLC(context, context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_textureId)); 59 GLC(context, context->blendFunc(sfactor, GraphicsContext3D::ONE_MINUS_SRC_ALPHA)); 61 GLC(context, context->uniform1i(program->fragmentShader().samplerLocation(), 0)) [all...] |
/external/webkit/Source/WebCore/platform/graphics/gpu/ |
ConvolutionShader.cpp | 42 ConvolutionShader::ConvolutionShader(GraphicsContext3D* context, unsigned program, int kernelWidth) 43 : Shader(context, program) 45 , m_matrixLocation(context->getUniformLocation(program, "matrix")) 46 , m_texMatrixLocation(context->getUniformLocation(program, "texMatrix")) 47 , m_kernelLocation(context->getUniformLocation(program, "kernel")) 48 , m_imageLocation(context->getUniformLocation(program, "image")) 49 , m_imageIncrementLocation(context->getUniformLocation(program, "imageIncrement")) 50 , m_positionLocation(context->getAttribLocation(program, "position")) 54 PassOwnPtr<ConvolutionShader> ConvolutionShader::create(GraphicsContext3D* context, int kernelWidth) 93 unsigned program = loadProgram(context, vertexShaderSource, fragmentShaderSource) [all...] |
/external/webkit/Source/WebCore/platform/graphics/gpu/qt/ |
DrawingBufferQt.cpp | 34 DrawingBuffer::DrawingBuffer(GraphicsContext3D* context, 38 : m_context(context) 42 , m_fbo(context->createFramebuffer()) 57 m_colorBuffer = context->createTexture(); 58 context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_colorBuffer); 59 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MAG_FILTER, GraphicsContext3D::LINEAR); 60 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MIN_FILTER, GraphicsContext3D::LINEAR); 61 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_S, GraphicsContext3D::CLAMP_TO_EDGE); 62 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_T, GraphicsContext3D::CLAMP_TO_EDGE); 63 context->bindTexture(GraphicsContext3D::TEXTURE_2D, 0) [all...] |
/external/webkit/Source/WebCore/platform/graphics/gtk/ |
DrawingBufferGtk.cpp | 36 DrawingBuffer::DrawingBuffer(GraphicsContext3D* context, 40 : m_context(context) 44 , m_fbo(context->createFramebuffer()) 57 m_colorBuffer = context->createTexture(); 58 context->bindTexture(GraphicsContext3D::TEXTURE_2D, m_colorBuffer); 59 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MAG_FILTER, GraphicsContext3D::LINEAR); 60 context->texParameterf(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_MIN_FILTER, GraphicsContext3D::LINEAR); 61 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_S, GraphicsContext3D::CLAMP_TO_EDGE); 62 context->texParameteri(GraphicsContext3D::TEXTURE_2D, GraphicsContext3D::TEXTURE_WRAP_T, GraphicsContext3D::CLAMP_TO_EDGE); 63 context->bindTexture(GraphicsContext3D::TEXTURE_2D, 0) [all...] |
/external/webkit/Source/WebCore/platform/gtk/ |
DragImageGtk.cpp | 52 RefPtr<cairo_t> context = adoptRef(cairo_create(scaledSurface)); local 53 cairo_scale(context.get(), scale.width(), scale.height()); 54 cairo_pattern_set_extend(cairo_get_source(context.get()), CAIRO_EXTEND_PAD); 55 cairo_pattern_set_filter(cairo_get_source(context.get()), CAIRO_FILTER_BEST); 56 cairo_set_operator(context.get(), CAIRO_OPERATOR_SOURCE); 57 cairo_set_source_surface(context.get(), image, 0, 0); 58 cairo_paint(context.get()); 69 RefPtr<cairo_t> context = adoptRef(cairo_create(image)); 70 cairo_set_operator(context.get(), CAIRO_OPERATOR_DEST_IN); 71 cairo_set_source_rgba(context.get(), 0, 0, 0, fraction) [all...] |
/external/webkit/Source/WebKit2/UIProcess/API/C/ |
WKContextPrivate.h | 47 WK_EXPORT void _WKContextSetAdditionalPluginsDirectory(WKContextRef context, WKStringRef pluginsDirectory); 49 WK_EXPORT void _WKContextRegisterURLSchemeAsEmptyDocument(WKContextRef context, WKStringRef urlScheme); 51 WK_EXPORT void _WKContextSetAlwaysUsesComplexTextCodePath(WKContextRef context, bool alwaysUseComplexTextCodePath); 53 WK_EXPORT void WKContextRegisterURLSchemeAsSecure(WKContextRef context, WKStringRef urlScheme); 55 WK_EXPORT void WKContextSetDomainRelaxationForbiddenForURLScheme(WKContextRef context, WKStringRef urlScheme); 57 WK_EXPORT void WKContextSetIconDatabasePath(WKContextRef context, WKStringRef iconDatabasePath); 61 WK_EXPORT void WKContextSetDatabaseDirectory(WKContextRef context, WKStringRef databaseDirectory); 62 WK_EXPORT void WKContextSetLocalStorageDirectory(WKContextRef context, WKStringRef localStorageDirectory); 66 WK_EXPORT void WKContextDisableProcessTermination(WKContextRef context); 67 WK_EXPORT void WKContextEnableProcessTermination(WKContextRef context); [all...] |
/external/webkit/Tools/DumpRenderTree/gtk/ |
TextInputController.cpp | 41 static JSValueRef setMarkedTextCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 45 return JSValueMakeUndefined(context); 48 return JSValueMakeUndefined(context); 50 JSStringRef string = JSValueToStringCopy(context, arguments[0], exception); 51 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); 58 int start = static_cast<int>(JSValueToNumber(context, arguments[1], exception)); 59 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); 61 int end = static_cast<int>(JSValueToNumber(context, arguments[2], exception)); 62 g_return_val_if_fail((!exception || !*exception), JSValueMakeUndefined(context)); 66 return JSValueMakeUndefined(context); [all...] |
PlainTextController.cpp | 40 static JSValueRef plainTextCallback(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 42 g_return_val_if_fail(argumentCount == 1, JSValueMakeUndefined(context)); 43 WebKitDOMRange* kitRange = DumpRenderTreeSupportGtk::jsValueToDOMRange(context, arguments[0]); 44 g_return_val_if_fail(kitRange, JSValueMakeUndefined(context)); 48 return JSValueMakeString(context, jsText.get()); 51 JSObjectRef makePlainTextController(JSContextRef context) 64 return JSObjectMake(context, plainTextControllerClass, 0);
|
/frameworks/base/core/java/android/widget/ |
ResourceCursorAdapter.java | 19 import android.content.Context; 45 * @param context The context where the ListView associated with this adapter is running 51 public ResourceCursorAdapter(Context context, int layout, Cursor c) { 52 super(context, c); 54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 59 * {@link CursorAdapter#CursorAdapter(Context, Cursor, boolean)}; it is recommended 60 * you not use this, but instead {@link #ResourceCursorAdapter(Context, int, Cursor, int)} [all...] |
/frameworks/support/v4/java/android/support/v4/widget/ |
ResourceCursorAdapter.java | 19 import android.content.Context; 47 * @param context The context where the ListView associated with this adapter is running 53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { 54 super(context, c); 56 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); 61 * {@link CursorAdapter#CursorAdapter(Context, Cursor, boolean)}; it is recommended 62 * you not use this, but instead {@link #ResourceCursorAdapter(Context, int, Cursor, int)} [all...] |
/packages/apps/Browser/src/com/android/browser/search/ |
SearchEngines.java | 20 import android.content.Context; 32 public static SearchEngine getDefaultSearchEngine(Context context) { 33 return DefaultSearchEngine.create(context); 36 public static List<SearchEngineInfo> getSearchEngineInfos(Context context) { 38 Resources res = context.getResources(); 42 SearchEngineInfo info = new SearchEngineInfo(context, name); 48 public static SearchEngine get(Context context, String name) [all...] |
/packages/apps/Contacts/src/com/android/contacts/ |
ContactsSearchManager.java | 33 * An extra that provides context for search UI and defines the scope for 41 public static void startSearch(Activity context, String initialQuery) { 42 context.startActivity(buildIntent(context, initialQuery, null)); 45 public static void startSearchForResult(Activity context, String initialQuery, 47 context.startActivityForResult( 48 buildIntent(context, initialQuery, originalRequest), requestCode); 51 public static void startSearch(Activity context, String initialQuery, 53 context.startActivity(buildIntent(context, initialQuery, originalRequest)) [all...] |
/packages/providers/MediaProvider/src/com/android/providers/media/ |
MediaScannerReceiver.java | 21 import android.content.Context; 32 public void onReceive(Context context, Intent intent) { 37 scan(context, MediaProvider.INTERNAL_VOLUME); 38 scan(context, MediaProvider.EXTERNAL_VOLUME); 49 scan(context, MediaProvider.EXTERNAL_VOLUME); 52 scanFile(context, path); 58 private void scan(Context context, String volume) { 61 context.startService [all...] |
MtpReceiver.java | 20 import android.content.Context; 31 public void onReceive(Context context, Intent intent) { 34 final Intent usbState = context.registerReceiver( 37 handleUsbState(context, usbState); 40 handleUsbState(context, intent); 44 private void handleUsbState(Context context, Intent intent) { 51 intent = new Intent(context, MtpService.class); 55 context.startService(intent) [all...] |
/cts/apps/CtsVerifier/src/com/android/cts/verifier/p2p/testcase/ |
GoNegReqTestSuite.java | 21 import android.content.Context; 32 * @param context 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { 36 initialize(context); 42 * @param context 46 public static ReqTestCase getTestCase(Context context, 48 initialize(context); 58 private static void initialize(Context context) [all...] |
P2pClientTestSuite.java | 21 import android.content.Context; 32 * @param context 35 public static ArrayList<ReqTestCase> getTestSuite(Context context) { 36 initialize(context); 42 * @param context 46 public static ReqTestCase getTestCase(Context context, 48 initialize(context); 58 private static void initialize(Context context) [all...] |
/external/webkit/Tools/DumpRenderTree/win/ |
MD5.cpp | 62 void MD5_Init(MD5_CTX* context) 64 init()(context); 67 void MD5_Update(MD5_CTX* context, unsigned char* input, unsigned length) 69 update()(context, input, length); 72 void MD5_Final(unsigned char hash[16], MD5_CTX* context) 74 final()(context); 77 hash[i] = context->digest[i];
|
/external/webkit/Tools/WebKitTestRunner/InjectedBundle/Bindings/ |
JSWrapper.h | 37 static JSValueRef wrap(JSContextRef context, JSWrappable* object); 38 static JSWrappable* unwrap(JSContextRef context, JSValueRef value); 44 inline JSValueRef toJS(JSContextRef context, JSWrappable* impl) 46 return JSWrapper::wrap(context, impl); 49 inline void setProperty(JSContextRef context, JSObjectRef object, const char* propertyName, JSWrappable* value, JSPropertyAttributes attributes, JSValueRef* exception) 52 JSObjectSetProperty(context, object, propertyNameString.get(), JSWrapper::wrap(context, value), attributes, exception);
|
/packages/apps/Browser/src/com/android/browser/widget/ |
BookmarkWidgetProxy.java | 22 import android.content.Context; 31 public void onReceive(Context context, Intent intent) { 33 BookmarkThumbnailWidgetService.changeFolder(context, intent); 35 startActivity(context, 37 null, context, BrowserActivity.class)); 41 startActivity(context, view); 45 void startActivity(Context context, Intent intent) { 48 context.startActivity(intent) [all...] |
/packages/apps/Stk/src/com/android/stk/ |
StkAppInstaller.java | 22 import android.content.Context; 32 static void install(Context context) { 33 setAppState(context, true); 36 static void unInstall(Context context) { 37 setAppState(context, false); 40 private static void setAppState(Context context, boolean install) { 41 if (context == null) [all...] |
/external/webkit/Source/WebCore/platform/graphics/cairo/ |
FontCairo.cpp | 46 static void prepareContextForGlyphDrawing(cairo_t* context, const SimpleFontData* font, const FloatPoint& point) 49 cairo_set_scaled_font(context, font->platformData().scaledFont()); 52 cairo_transform(context, &mat); 54 cairo_translate(context, point.x(), point.y()); 57 static void drawGlyphsToContext(cairo_t* context, const SimpleFontData* font, GlyphBufferGlyph* glyphs, int numGlyphs) 59 cairo_show_glyphs(context, glyphs, numGlyphs); 62 cairo_translate(context, font->syntheticBoldOffset(), 0); 63 cairo_show_glyphs(context, glyphs, numGlyphs); 64 cairo_translate(context, -font->syntheticBoldOffset(), 0); 78 cairo_t* context = graphicsContext->platformContext()->cr() local [all...] |
/external/libvpx/libvpx/nestegg/include/nestegg/ |
nestegg.h | 84 /** User supplied IO context. */ 134 typedef void (* nestegg_log)(nestegg * context, unsigned int severity, char const * format, ...); 136 /** Initialize a nestegg context. During initialization the parser will 139 @param context Storage for the new nestegg context. @see nestegg_destroy 140 @param io User supplied IO context. 144 int nestegg_init(nestegg ** context, nestegg_io io, nestegg_log callback); 146 /** Destroy a nestegg context and free associated memory. 147 @param context #nestegg context to be freed. @see nestegg_init * [all...] |
/external/webkit/Source/ThirdParty/ANGLE/src/libGLESv2/ |
main.cpp | 40 current->context = NULL; 76 void makeCurrent(Context *context, egl::Display *display, egl::Surface *surface) 80 current->context = context; 83 if (context && display && surface) 85 context->makeCurrent(display, surface); 89 Context *getContext() 93 return current->context; 114 gl::Context *context = glGetCurrentContext() local [all...] |
/frameworks/av/libvideoeditor/osal/inc/ |
M4OSA_FileWriter.h | 47 /** Get the reader context for read & write file. (M4OSA_Context*)*/ 72 M4OSA_ERR (*openWrite) (M4OSA_Context* context, 76 M4OSA_ERR (*writeData) (M4OSA_Context context, 80 M4OSA_ERR (*seek) (M4OSA_Context context, 84 M4OSA_ERR (*Flush) (M4OSA_Context context); 85 M4OSA_ERR (*closeWrite) (M4OSA_Context context); 86 M4OSA_ERR (*setOption) (M4OSA_Context context, 90 M4OSA_ERR (*getOption) (M4OSA_Context context, 100 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteOpen (M4OSA_Context* context, 104 M4OSAL_FILE_EXPORT_TYPE M4OSA_ERR M4OSA_fileWriteData (M4OSA_Context context, [all...] |
/frameworks/base/core/java/android/app/admin/ |
DeviceAdminReceiver.java | 24 import android.content.Context; 34 * {@link BroadcastReceiver#onReceive(Context, Intent) BroadcastReceiver.onReceive()} 68 * handle this in {@link DeviceAdminReceiver#onEnabled(Context, Intent)}. To be 102 * handle this in {@link DeviceAdminReceiver#onDisabled(Context, Intent)}. Note 181 public DevicePolicyManager getManager(Context context) { 185 mManager = (DevicePolicyManager)context.getSystemService( 186 Context.DEVICE_POLICY_SERVICE); 195 public ComponentName getWho(Context context) { [all...] |