Home
last modified time | relevance | path

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

123456789

/frameworks/rs/java/tests/RsTest_11/src/com/android/rs/test/
DUnitTest.java37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
42 mCtx = ctx; in UnitTest()
47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
48 this(rstc, n, 0, ctx); in UnitTest()
51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
52 this (rstc, "<Unknown>", ctx); in UnitTest()
55 protected UnitTest(Context ctx) { in UnitTest() argument
56 this (null, ctx); in UnitTest()
/frameworks/rs/java/tests/RsTest_16/src/com/android/rs/test/
DUnitTest.java37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
42 mCtx = ctx; in UnitTest()
47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
48 this(rstc, n, 0, ctx); in UnitTest()
51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
52 this (rstc, "<Unknown>", ctx); in UnitTest()
55 protected UnitTest(Context ctx) { in UnitTest() argument
56 this (null, ctx); in UnitTest()
/frameworks/rs/java/tests/RsTest_14/src/com/android/rs/test/
DUnitTest.java37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
42 mCtx = ctx; in UnitTest()
47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
48 this(rstc, n, 0, ctx); in UnitTest()
51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
52 this (rstc, "<Unknown>", ctx); in UnitTest()
55 protected UnitTest(Context ctx) { in UnitTest() argument
56 this (null, ctx); in UnitTest()
/frameworks/rs/java/tests/RSTest_CompatLib/src/com/android/rs/test/
DUnitTest.java37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
42 mCtx = ctx; in UnitTest()
47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
48 this(rstc, n, 0, ctx); in UnitTest()
51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
52 this (rstc, "<Unknown>", ctx); in UnitTest()
55 protected UnitTest(Context ctx) { in UnitTest() argument
56 this (null, ctx); in UnitTest()
/frameworks/rs/java/tests/RsTest/src/com/android/rs/test/
DUnitTest.java37 protected UnitTest(RSTestCore rstc, String n, int initResult, Context ctx) { in UnitTest() argument
42 mCtx = ctx; in UnitTest()
47 protected UnitTest(RSTestCore rstc, String n, Context ctx) { in UnitTest() argument
48 this(rstc, n, 0, ctx); in UnitTest()
51 protected UnitTest(RSTestCore rstc, Context ctx) { in UnitTest() argument
52 this (rstc, "<Unknown>", ctx); in UnitTest()
55 protected UnitTest(Context ctx) { in UnitTest() argument
56 this (null, ctx); in UnitTest()
/frameworks/base/core/java/android/app/
DContextImpl.java280 public Object getService(ContextImpl ctx) { in getService() argument
281 ArrayList<Object> cache = ctx.mServiceCache; in getService()
298 service = createService(ctx); in getService()
308 public Object createService(ContextImpl ctx) { in createService() argument
348 public Object createService(ContextImpl ctx) {
349 return new WallpaperManager(ctx.getOuterContext(),
350 ctx.mMainThread.getHandler());
355 public Object getService(ContextImpl ctx) { in registerService()
356 return AccessibilityManager.getInstance(ctx); in registerService() argument
360 public Object getService(ContextImpl ctx) { in registerService() argument
[all …]
/frameworks/base/media/jni/
Dandroid_media_ImageReader.cpp211 JNIImageReaderContext *ctx; in ImageReader_getContext() local
212 ctx = reinterpret_cast<JNIImageReaderContext *> in ImageReader_getContext()
214 return ctx; in ImageReader_getContext()
220 JNIImageReaderContext* const ctx = ImageReader_getContext(env, thiz); in ImageReader_getCpuConsumer() local
221 if (ctx == NULL) { in ImageReader_getCpuConsumer()
225 return ctx->getCpuConsumer(); in ImageReader_getCpuConsumer()
231 JNIImageReaderContext* const ctx = ImageReader_getContext(env, thiz); in ImageReader_getProducer() local
232 if (ctx == NULL) { in ImageReader_getProducer()
236 return ctx->getProducer(); in ImageReader_getProducer()
240 jobject thiz, sp<JNIImageReaderContext> ctx) in ImageReader_setNativeContext() argument
[all …]
/frameworks/base/packages/Keyguard/src/com/android/keyguard/
DDisappearAnimationUtils.java29 public DisappearAnimationUtils(Context ctx) { in DisappearAnimationUtils() argument
30 this(ctx, DEFAULT_APPEAR_DURATION, in DisappearAnimationUtils()
32 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.linear_out_slow_in)); in DisappearAnimationUtils()
35 public DisappearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in DisappearAnimationUtils() argument
37 super(ctx, duration, translationScaleFactor, delayScaleFactor, interpolator); in DisappearAnimationUtils()
DAppearAnimationUtils.java39 public AppearAnimationUtils(Context ctx) { in AppearAnimationUtils() argument
40 this(ctx, DEFAULT_APPEAR_DURATION, in AppearAnimationUtils()
42 AnimationUtils.loadInterpolator(ctx, android.R.interpolator.linear_out_slow_in)); in AppearAnimationUtils()
45 public AppearAnimationUtils(Context ctx, long duration, float translationScaleFactor, in AppearAnimationUtils() argument
48 mStartTranslation = ctx.getResources().getDimensionPixelOffset( in AppearAnimationUtils()
/frameworks/minikin/libs/minikin/
DLayout.cpp97 void doLayout(Layout* layout, LayoutContext* ctx, const FontCollection* collection) const { in doLayout() argument
100 ctx->clearHbFonts(); in doLayout()
101 layout->doLayoutRun(mChars, mStart, mCount, mNchars, mIsRtl, ctx); in doLayout()
131 Layout* get(LayoutCacheKey& key, LayoutContext* ctx, const FontCollection* collection) { in get() argument
136 key.doLayout(layout, ctx, collection); in get()
389 int Layout::findFace(FakedFont face, LayoutContext* ctx) { in findFace() argument
399 if (ctx != NULL) { in findFace()
400 hb_font_t* font = create_hb_font(face.font, &ctx->paint); in findFace()
401 ctx->hbFonts.push_back(font); in findFace()
523 LayoutContext ctx; in doLayout() local
[all …]
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DResizingTextView.java53 public ResizingTextView(Context ctx, AttributeSet attrs, int defStyleAttr, int defStyleRes) { in ResizingTextView() argument
54 super(ctx, attrs, defStyleAttr); in ResizingTextView()
55 TypedArray a = ctx.obtainStyledAttributes(attrs, R.styleable.lbResizingTextView, in ResizingTextView()
74 public ResizingTextView(Context ctx, AttributeSet attrs, int defStyleAttr) { in ResizingTextView() argument
75 this(ctx, attrs, defStyleAttr, 0); in ResizingTextView()
78 public ResizingTextView(Context ctx, AttributeSet attrs) { in ResizingTextView() argument
81 this(ctx, attrs, android.R.attr.textViewStyle); in ResizingTextView()
84 public ResizingTextView(Context ctx) { in ResizingTextView() argument
85 this(ctx, null); in ResizingTextView()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsicLUT.cpp36 RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, const Script *s, const Element *e);
82 RsdCpuScriptIntrinsicLUT::RsdCpuScriptIntrinsicLUT(RsdCpuReferenceImpl *ctx, in RsdCpuScriptIntrinsicLUT() argument
84 : RsdCpuScriptIntrinsic(ctx, s, e, RS_SCRIPT_INTRINSIC_ID_LUT) { in RsdCpuScriptIntrinsicLUT()
101 RsdCpuScriptImpl * rsdIntrinsic_LUT(RsdCpuReferenceImpl *ctx, in rsdIntrinsic_LUT() argument
104 return new RsdCpuScriptIntrinsicLUT(ctx, s, e); in rsdIntrinsic_LUT()
/frameworks/native/opengl/libs/EGL/
Degl_tls.cpp36 : error(EGL_SUCCESS), ctx(0), logCallWithNoContext(EGL_TRUE) { in egl_tls_t()
135 void egl_tls_t::setContext(EGLContext ctx) { in setContext() argument
137 getTLS()->ctx = ctx; in setContext()
146 return tls->ctx; in getContext()
DeglApi.cpp664 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
672 ContextRef _c(dp.get(), ctx); in eglDestroyContext()
676 egl_context_t * const c = get_context(ctx); in eglDestroyContext()
685 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
695 if ( (ctx != EGL_NO_CONTEXT) || (read != EGL_NO_SURFACE) || in eglMakeCurrent()
701 ContextRef _c(dp.get(), ctx); in eglMakeCurrent()
706 if ((ctx != EGL_NO_CONTEXT) && !_c.get()) { in eglMakeCurrent()
724 if (ctx != EGL_NO_CONTEXT) { in eglMakeCurrent()
725 c = get_context(ctx); in eglMakeCurrent()
756 draw, read, ctx, in eglMakeCurrent()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/recents/views/
DTaskView.java265 void startEnterRecentsAnimation(final ViewAnimation.TaskViewEnterContext ctx) { in startEnterRecentsAnimation() argument
266 final TaskViewTransform transform = ctx.currentTaskTransform; in startEnterRecentsAnimation()
280 ctx.postAnimationTrigger.decrementOnAnimationEnd()); in startEnterRecentsAnimation()
287 ctx.postAnimationTrigger.decrementOnAnimationEnd()); in startEnterRecentsAnimation()
289 ctx.postAnimationTrigger.increment(); in startEnterRecentsAnimation()
296 if (ctx.currentTaskOccludesLaunchTarget) { in startEnterRecentsAnimation()
309 ctx.postAnimationTrigger.decrement(); in startEnterRecentsAnimation()
313 ctx.postAnimationTrigger.increment(); in startEnterRecentsAnimation()
320 int frontIndex = (ctx.currentStackViewCount - ctx.currentStackViewIndex - 1); in startEnterRecentsAnimation()
332 .setUpdateListener(ctx.updateListener) in startEnterRecentsAnimation()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/
DNotificationViewWrapper.java32 public static NotificationViewWrapper wrap(Context ctx, View v) { in wrap() argument
36 return new NotificationMediaViewWrapper(ctx, v); in wrap()
38 return new NotificationTemplateViewWrapper(ctx, v); in wrap()
DNotificationMediaViewWrapper.java27 protected NotificationMediaViewWrapper(Context ctx, View view) { in NotificationMediaViewWrapper() argument
28 super(ctx, view); in NotificationMediaViewWrapper()
/frameworks/minikin/include/minikin/
DLayout.h110 int findFace(FakedFont face, LayoutContext* ctx);
114 bool isRtl, LayoutContext* ctx, size_t dstStart);
118 bool isRtl, LayoutContext* ctx, size_t bufStart);
122 bool isRtl, LayoutContext* ctx);
/frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/phone/
DUnlockMethodCache.java46 private UnlockMethodCache(Context ctx) { in UnlockMethodCache() argument
47 mLockPatternUtils = new LockPatternUtils(ctx); in UnlockMethodCache()
48 mKeyguardUpdateMonitor = KeyguardUpdateMonitor.getInstance(ctx); in UnlockMethodCache()
49 KeyguardUpdateMonitor.getInstance(ctx).registerCallback(mCallback); in UnlockMethodCache()
DVelocityTrackerFactory.java33 public static VelocityTrackerInterface obtain(Context ctx) { in obtain() argument
34 String tracker = ctx.getResources().getString(R.string.velocity_tracker_impl); in obtain()
/frameworks/base/core/tests/coretests/src/android/net/
DSSLSessionCacheTest.java41 final SSLContext ctx = SSLContext.getDefault(); in testInstall_compatibleContext() local
43 final ClientSessionContext clientCtx = (ClientSessionContext) ctx.getClientSessionContext(); in testInstall_compatibleContext()
46 SSLSessionCache.install(new SSLSessionCache(mock), ctx); in testInstall_compatibleContext()
51 SSLSessionCache.install(null, ctx); in testInstall_compatibleContext()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DRenderScriptThunker.java50 RenderScriptThunker(Context ctx) { in RenderScriptThunker() argument
51 super(ctx); in RenderScriptThunker()
55 public static RenderScript create(Context ctx, int sdkVersion) { in create() argument
57 RenderScriptThunker rs = new RenderScriptThunker(ctx); in create()
60 Object[] args = {ctx, new Integer(sdkVersion)}; in create()
/frameworks/native/opengl/libagl/
Degl.cpp131 static inline egl_context_t* context(EGLContext ctx) { in context()
132 ogles_context_t* const gl = static_cast<ogles_context_t*>(ctx); in context()
149 EGLContext ctx; member
177 : magic(MAGIC), dpy(dpy), config(config), ctx(0), zombie(false) in egl_surface_t()
1582 if (surface->ctx) { in eglDestroySurface()
1675 EGLBoolean eglDestroyContext(EGLDisplay dpy, EGLContext ctx) in eglDestroyContext() argument
1679 egl_context_t* c = egl_context_t::context(ctx); in eglDestroyContext()
1682 ogles_uninit((ogles_context_t*)ctx); in eglDestroyContext()
1687 EGLSurface read, EGLContext ctx) in eglMakeCurrent() argument
1710 if ((read == EGL_NO_SURFACE && draw == EGL_NO_SURFACE) && (ctx != EGL_NO_CONTEXT)) in eglMakeCurrent()
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScriptGL.java172 public RenderScriptGL(Context ctx, SurfaceConfig sc) { in RenderScriptGL() argument
173 super(ctx); in RenderScriptGL()
176 int sdkVersion = ctx.getApplicationInfo().targetSdkVersion; in RenderScriptGL()
181 int dpi = ctx.getResources().getDisplayMetrics().densityDpi; in RenderScriptGL()
/frameworks/base/core/java/android/net/
DProxy.java112 public static final java.net.Proxy getProxy(Context ctx, String url) { in getProxy() argument
137 public static final String getHost(Context ctx) { in getHost() argument
138 java.net.Proxy proxy = getProxy(ctx, null); in getHost()
154 public static final int getPort(Context ctx) { in getPort() argument
155 java.net.Proxy proxy = getProxy(ctx, null); in getPort()

123456789