Home
last modified time | relevance | path

Searched refs:ctx (Results 1 – 25 of 48) sorted by relevance

12

/frameworks/base/opengl/libagl2/src/
Dshader.cpp28 GLES2_GET_CONST_CONTEXT(ctx); in glAttachShader()
29 ctx->iface->ShaderAttach(ctx->iface, n2p(program), n2s(shader)); in glAttachShader()
34 GLES2_GET_CONST_CONTEXT(ctx); in glBindAttribLocation()
35 ctx->iface->ShaderAttributeBind(n2p(program), index, name); in glBindAttribLocation()
41 GLES2_GET_CONST_CONTEXT(ctx); in glCreateShader()
42 return s2n(ctx->iface->ShaderCreate(ctx->iface, type)); in glCreateShader()
47 GLES2_GET_CONST_CONTEXT(ctx); in glCreateProgram()
48 return p2n(ctx->iface->ShaderProgramCreate(ctx->iface)); in glCreateProgram()
53 GLES2_GET_CONST_CONTEXT(ctx); in glCompileShader()
54 ctx->iface->ShaderCompile(ctx->iface, n2s(shader), NULL, NULL); in glCompileShader()
[all …]
Dvertex.cpp26 static inline void FetchElement(const GLES2Context * ctx, const unsigned index, in FetchElement() argument
32 if (ctx->vert.attribs[i].enabled) { in FetchElement()
33 const char * ptr = (const char *)ctx->vert.attribs[i].ptr; in FetchElement()
34 ptr += ctx->vert.attribs[i].stride * index; in FetchElement()
35 memcpy(elem->attributes + i, ptr, ctx->vert.attribs[i].size * sizeof(float)); in FetchElement()
36 size = ctx->vert.attribs[i].size; in FetchElement()
46 elem->attributes[i].x = ctx->vert.defaultAttribs[i].x; in FetchElement()
48 elem->attributes[i].y = ctx->vert.defaultAttribs[i].y; in FetchElement()
50 elem->attributes[i].z = ctx->vert.defaultAttribs[i].z; in FetchElement()
52 elem->attributes[i].w = ctx->vert.defaultAttribs[i].w; in FetchElement()
[all …]
Dstate.cpp27 GLES2_GET_CONST_CONTEXT(ctx); in glBlendColor()
28 ctx->iface->BlendColor(ctx->iface, red, green, blue, alpha); in glBlendColor()
33 GLES2_GET_CONST_CONTEXT(ctx); in glBlendEquation()
34 ctx->iface->BlendEquationSeparate(ctx->iface, mode, mode); in glBlendEquation()
39 GLES2_GET_CONST_CONTEXT(ctx); in glBlendEquationSeparate()
40 ctx->iface->BlendEquationSeparate(ctx->iface, modeRGB, modeAlpha); in glBlendEquationSeparate()
45 GLES2_GET_CONST_CONTEXT(ctx); in glBlendFunc()
46 ctx->iface->BlendFuncSeparate(ctx->iface, sfactor, dfactor, sfactor, dfactor); in glBlendFunc()
51 GLES2_GET_CONST_CONTEXT(ctx); in glBlendFuncSeparate()
52 ctx->iface->BlendFuncSeparate(ctx->iface, srcRGB, dstRGB, srcAlpha, dstAlpha); in glBlendFuncSeparate()
[all …]
Dtexture.cpp138 GLES2_GET_CONST_CONTEXT(ctx); in glActiveTexture()
140 assert(NELEM(ctx->tex.tmus) > index); in glActiveTexture()
142 ctx->tex.active = index; in glActiveTexture()
147 GLES2_GET_CONST_CONTEXT(ctx); in glBindTexture()
149 std::map<GLuint, GGLTexture *>::iterator it = ctx->tex.textures.find(texture); in glBindTexture()
151 if (it != ctx->tex.textures.end()) { in glBindTexture()
165 tex = ctx->tex.tex2D; in glBindTexture()
170 tex = ctx->tex.texCube; in glBindTexture()
176 if (texture <= ctx->tex.free) in glBindTexture()
177 ctx->tex.free = texture + 1; in glBindTexture()
[all …]
Dgles2context.h74 static inline egl_context_t* context(EGLContext ctx);
157 inline egl_context_t* egl_context_t::context(EGLContext ctx) in context() argument
159 GLES2Context* const gl = static_cast<GLES2Context*>(ctx); in context()
163 #define GLES2_GET_CONTEXT(ctx) GLES2Context * ctx = GLES2Context::get(); \ argument
165 #define GLES2_GET_CONST_CONTEXT(ctx) GLES2Context * ctx = GLES2Context::get(); \ argument
Degl.cpp111 EGLContext ctx; member
140 : magic(MAGIC), dpy(dpy), config(config), ctx(0) in egl_surface_t()
1631 if (surface->ctx) { in eglDestroySurface()
1634 surface->ctx = 0; in eglDestroySurface()
1731 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
1736 egl_context_t* c = egl_context_t::context(ctx); in eglDestroyContext()
1740 delete (GLES2Context*)ctx; in eglDestroyContext()
1745 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
1769 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT)) in eglMakeCurrent()
1772 if ((read != EGL_NO_SURFACE || draw != EGL_NO_SURFACE) && (ctx == EGL_NO_CONTEXT)) in eglMakeCurrent()
[all …]
/frameworks/base/tests/RenderScriptTests/tests/src/com/android/rs/test/
DUnitTest.java36 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
41 mCtx = ctx; in UnitTest()
46 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
47 this(rstc, n, 0, ctx); in UnitTest()
50 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
51 this (rstc, "<Unknown>", ctx); in UnitTest()
54 protected UnitTest(Context ctx) { in UnitTest() argument
55 this (null, ctx); in UnitTest()
DUT_rstypes.java26 protected UT_rstypes(RSTestCore rstc, Resources res, Context ctx) { in UT_rstypes() argument
27 super(rstc, "rsTypes", ctx); in UT_rstypes()
DUT_rsdebug.java26 protected UT_rsdebug(RSTestCore rstc, Resources res, Context ctx) { in UT_rsdebug() argument
27 super(rstc, "rsDebug", ctx); in UT_rsdebug()
DUT_math.java26 protected UT_math(RSTestCore rstc, Resources res, Context ctx) { in UT_math() argument
27 super(rstc, "Math", ctx); in UT_math()
DUT_rstime.java26 protected UT_rstime(RSTestCore rstc, Resources res, Context ctx) { in UT_rstime() argument
27 super(rstc, "rsTime", ctx); in UT_rstime()
DUT_fp_mad.java26 protected UT_fp_mad(RSTestCore rstc, Resources res, Context ctx) { in UT_fp_mad() argument
27 super(rstc, "Fp_Mad", ctx); in UT_fp_mad()
DUT_refcount.java26 protected UT_refcount(RSTestCore rstc, Resources res, Context ctx) { in UT_refcount() argument
27 super(rstc, "Refcount", ctx); in UT_refcount()
DUT_foreach.java27 protected UT_foreach(RSTestCore rstc, Resources res, Context ctx) { in UT_foreach() argument
28 super(rstc, "ForEach", ctx); in UT_foreach()
/frameworks/base/core/java/android/app/
DContextImpl.java180 public Object getService(ContextImpl ctx) { in getService() argument
181 ArrayList<Object> cache = ctx.mServiceCache; in getService()
198 service = createService(ctx); in getService()
208 public Object createService(ContextImpl ctx) { in createService() argument
248 public Object createService(ContextImpl ctx) {
249 return new WallpaperManager(ctx.getOuterContext(),
250 ctx.mMainThread.getHandler());
255 public Object getService(ContextImpl ctx) { in registerService()
256 return AccessibilityManager.getInstance(ctx); in registerService() argument
260 public Object createService(ContextImpl ctx) { in registerService()
[all …]
/frameworks/base/opengl/libs/EGL/
DeglApi.cpp536 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
544 ContextRef _c(ctx); in eglDestroyContext()
548 egl_context_t * const c = get_context(ctx); in eglDestroyContext()
579 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
589 if ( (ctx != EGL_NO_CONTEXT) || (read != EGL_NO_SURFACE) || in eglMakeCurrent()
595 ContextRef _c(ctx); in eglMakeCurrent()
600 if ((ctx != EGL_NO_CONTEXT) && !_c.get()) { in eglMakeCurrent()
618 if (ctx != EGL_NO_CONTEXT) { in eglMakeCurrent()
619 c = get_context(ctx); in eglMakeCurrent()
668 if (ctx != EGL_NO_CONTEXT) { in eglMakeCurrent()
[all …]
Degl_tls.cpp36 : error(EGL_SUCCESS), ctx(0), logCallWithNoContext(EGL_TRUE), dbg(0) { in egl_tls_t()
134 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument
136 getTLS()->ctx = ctx; in setContext()
144 return tls->ctx; in getContext()
Degl_tls.h38 EGLContext ctx; variable
52 static void setContext(EGLContext ctx);
/frameworks/media/libvideoeditor/vss/stagefrightshells/src/
DVideoEditorUtils.cpp299 AVCCodecSpecificContext ctx; in buildAVCCodecSpecificData() local
322 nextStartCode = parseParamSet(&ctx, tmp + 4, bytesLeft - 4, type, in buildAVCCodecSpecificData()
332 nextStartCode = parseParamSet(&ctx, tmp + 4, bytesLeft - 4, type, in buildAVCCodecSpecificData()
351 size_t nSeqParamSets = ctx.mSeqParamSets.size(); in buildAVCCodecSpecificData()
365 size_t nPicParamSets = ctx.mPicParamSets.size(); in buildAVCCodecSpecificData()
381 header[1] = ctx.mProfileIdc; // profile indication in buildAVCCodecSpecificData()
382 header[2] = ctx.mProfileCompatible; // profile compatibility in buildAVCCodecSpecificData()
383 header[3] = ctx.mLevelIdc; in buildAVCCodecSpecificData()
396 int nSequenceParamSets = ctx.mSeqParamSets.size(); in buildAVCCodecSpecificData()
399 for (List<AVCParamSet>::iterator it = ctx.mSeqParamSets.begin(); in buildAVCCodecSpecificData()
[all …]
/frameworks/base/opengl/libagl/
Degl.cpp125 static inline egl_context_t* context(EGLContext ctx) { in context()
126 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context()
143 EGLContext ctx; member
170 : magic(MAGIC), dpy(dpy), config(config), ctx(0) in egl_surface_t()
1558 if (surface->ctx) { in eglDestroySurface()
1561 surface->ctx = 0; in eglDestroySurface()
1650 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
1654 egl_context_t* c = egl_context_t::context(ctx); in eglDestroyContext()
1657 ogles_uninit((ogles_context_t*)ctx); in eglDestroyContext()
1662 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
[all …]
/frameworks/base/services/java/com/android/server/
DBootReceiver.java79 private void removeOldUpdatePackages(Context ctx) { in removeOldUpdatePackages() argument
81 ctx, OLD_UPDATER_PACKAGE, OLD_UPDATER_CLASS); in removeOldUpdatePackages()
84 private void logBootEvents(Context ctx) throws IOException { in logBootEvents() argument
85 final DropBoxManager db = (DropBoxManager) ctx.getSystemService(Context.DROPBOX_SERVICE); in logBootEvents()
86 final SharedPreferences prefs = ctx.getSharedPreferences("log_files", Context.MODE_PRIVATE); in logBootEvents()
/frameworks/base/opengl/java/com/google/android/gles_jni/
DEGLContextImpl.java26 public EGLContextImpl(int ctx) { in EGLContextImpl() argument
27 mEGLContext = ctx; in EGLContextImpl()
/frameworks/base/services/java/com/android/server/location/
DCountryDetectorBase.java39 public CountryDetectorBase(Context ctx) { in CountryDetectorBase() argument
40 mContext = ctx; in CountryDetectorBase()
/frameworks/base/core/java/android/net/
DProxy.java110 public static final java.net.Proxy getProxy(Context ctx, String url) { in getProxy() argument
119 sConnectivityManager = (ConnectivityManager)ctx.getSystemService( in getProxy()
145 public static final String getHost(Context ctx) { in getHost() argument
146 java.net.Proxy proxy = getProxy(ctx, null); in getHost()
162 public static final int getPort(Context ctx) { in getPort() argument
163 java.net.Proxy proxy = getProxy(ctx, null); in getPort()
/frameworks/base/graphics/java/android/renderscript/
DRenderScriptGL.java159 public RenderScriptGL(Context ctx, SurfaceConfig sc) { in RenderScriptGL() argument
160 super(ctx); in RenderScriptGL()
163 int sdkVersion = getTargetSdkVersion(ctx); in RenderScriptGL()
168 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL()

12