Home
last modified time | relevance | path

Searched refs:sContext (Results 1 – 25 of 36) sorted by relevance

12

/external/ims/rcs/presencepolling/src/com/android/service/ims/presence/
DPresenceSetting.java41 private static Context sContext = null; field in PresenceSetting
44 sContext = context; in init()
49 if (sContext != null) { in getCapabilityPollInterval()
50 ImsManager imsManager = ImsManager.getInstance(sContext, 0); in getCapabilityPollInterval()
72 if (sContext != null) { in getCapabilityCacheExpiration()
73 ImsManager imsManager = ImsManager.getInstance(sContext, 0); in getCapabilityCacheExpiration()
95 if (sContext != null) { in getPublishTimer()
96 ImsManager imsManager = ImsManager.getInstance(sContext, 0); in getPublishTimer()
118 if (sContext != null) { in getPublishTimerExtended()
119 ImsManager imsManager = ImsManager.getInstance(sContext, 0); in getPublishTimerExtended()
[all …]
/external/skqp/tests/
DSRGBReadWritePixelsTest.cpp178 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
182 if (!sContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
190 if (sContext->writePixels(iiSRGBA, origData, 0, 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
195 read_and_check_pixels(reporter, sContext.get(), origData, iiSRGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
198 read_and_check_pixels(reporter, sContext.get(), origData, iiRGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
206 if (sContext->writePixels(iiRGBA, origData, 0, 0, 0)) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
208 read_and_check_pixels(reporter, sContext.get(), origData, iiSRGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
211 read_and_check_pixels(reporter, sContext.get(), origData, iiRGBA, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
219 sContext = context->contextPriv().makeDeferredSurfaceContext(desc, in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
223 if (!sContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DIntTextureTest.cpp79 sk_sp<GrSurfaceContext> sContext; in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
89 sContext = context->contextPriv().makeWrappedSurfaceContext(std::move(proxy)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
90 if (!sContext) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
98 bool success = context->contextPriv().readSurfacePixels(sContext.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 bool success = context->contextPriv().readSurfacePixels(sContext.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 bool success = context->contextPriv().readSurfacePixels(sContext.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
129 sContext.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
140 sContext->asSurfaceProxy())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
163 sContext->asSurfaceProxy())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
173 sContext->asSurfaceProxy())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DVkUploadPixelsTests.cpp81 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
85 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
93 result = sContext->writePixels(dstInfo, srcBuffer, 0, 2, 10); in basic_texture_test()
98 result = sContext->readPixels(dstInfo, dstBuffer, 0, 2, 10); in basic_texture_test()
112 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
116 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
124 result = sContext->writePixels(dstInfo, srcBuffer, 0, 5, 4); in basic_texture_test()
129 result = sContext->readPixels(dstInfo, dstBuffer, 0, 5, 4); in basic_texture_test()
DReadWriteAlphaTest.cpp70 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
86 bool result = sContext->writePixels(ii, alphaData, 0, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
95 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
181 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
192 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp63 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in runFPTest() local
65 REPORTER_ASSERT(reporter, sContext); in runFPTest()
67 bool result = context->contextPriv().readSurfacePixels(sContext.get(), in runFPTest()
DPackedConfigsTextureTest.cpp127 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in run_test() local
130 SkAssertResult(sContext->readPixels(dstInfo, readBuffer.begin(), 0, 0, 0)); in run_test()
DReadPixelsTest.cpp412 sk_sp<GrSurfaceContext> sContext) { in test_readpixels_texture() argument
431 bool success = sContext->readPixels(bmp.info(), bmp.getPixels(), in test_readpixels_texture()
470 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
473 test_readpixels_texture(reporter, std::move(sContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tests/
DVkUploadPixelsTests.cpp81 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
85 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
93 result = sContext->writePixels(dstInfo, srcBuffer, 0, 2, 10); in basic_texture_test()
98 result = sContext->readPixels(dstInfo, dstBuffer, 0, 2, 10); in basic_texture_test()
112 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext(proxy); in basic_texture_test() local
116 bool result = sContext->readPixels(dstInfo, dstBuffer, 0, 0, 0); in basic_texture_test()
124 result = sContext->writePixels(dstInfo, srcBuffer, 0, 5, 4); in basic_texture_test()
129 result = sContext->readPixels(dstInfo, dstBuffer, 0, 5, 4); in basic_texture_test()
DReadWriteAlphaTest.cpp76 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
92 bool result = sContext->writePixels(ii, alphaData, 0, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
102 result = sContext->readPixels(ii, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
200 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
211 bool result = sContext->readPixels(dstInfo, readback.get(), rowBytes, 0, 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DFloatingPointTextureTest.cpp63 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in runFPTest() local
65 REPORTER_ASSERT(reporter, sContext); in runFPTest()
68 sContext.get(), 0, 0, DEV_W, DEV_H, colorType, nullptr, readBuffer.begin(), 0); in runFPTest()
DPackedConfigsTextureTest.cpp127 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in run_test() local
130 SkAssertResult(sContext->readPixels(dstInfo, readBuffer.begin(), 0, 0, 0)); in run_test()
DReadPixelsTest.cpp412 sk_sp<GrSurfaceContext> sContext) { in test_readpixels_texture() argument
431 bool success = sContext->readPixels(bmp.info(), bmp.getPixels(), in test_readpixels_texture()
470 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
473 test_readpixels_texture(reporter, std::move(sContext)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/autotest/client/site_tests/graphics_SanAngeles/src/
Dapp-linux.c73 static struct waffle_context *sContext; variable
136 sContext = waffle_context_create(sConfig, NULL); in initGraphics()
137 if (!sContext) in initGraphics()
147 ok = waffle_make_current(sDisplay, sWindow, sContext); in initGraphics()
175 if (!waffle_context_destroy(sContext)) in deinitGraphics()
/external/skqp/src/gpu/
DGrSWMaskHelper.cpp101 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( in toTextureProxy() local
106 if (!sContext || !sContext->asTextureProxy()) { in toTextureProxy()
111 if (!sContext->writePixels(ii, fPixels->addr(), fPixels->rowBytes(), 0, 0)) { in toTextureProxy()
115 return sContext->asTextureProxyRef(); in toTextureProxy()
DGrBlurUtils.cpp86 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( in sw_draw_with_mask_filter() local
91 if (!sContext) { in sw_draw_with_mask_filter()
96 if (!sContext->writePixels(ii, dstM.fImage, dstM.fRowBytes, 0, 0)) { in sw_draw_with_mask_filter()
101 dstM.fBounds, std::move(paint), sContext->asTextureProxyRef()); in sw_draw_with_mask_filter()
DGrResourceProvider.cpp147 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in createTexture() local
149 if (sContext) { in createTexture()
150 if (sContext->writePixels(srcInfo, mipLevel.fPixels, mipLevel.fRowBytes, 0, 0)) { in createTexture()
151 return sk_ref_sp(sContext->asTextureProxy()->priv().peekTexture()); in createTexture()
/external/skia/src/gpu/
DGrSWMaskHelper.cpp101 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( in toTextureProxy() local
106 if (!sContext || !sContext->asTextureProxy()) { in toTextureProxy()
111 if (!sContext->writePixels(ii, fPixels->addr(), fPixels->rowBytes(), 0, 0)) { in toTextureProxy()
115 return sContext->asTextureProxyRef(); in toTextureProxy()
DGrBlurUtils.cpp86 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeDeferredSurfaceContext( in sw_draw_with_mask_filter() local
91 if (!sContext) { in sw_draw_with_mask_filter()
96 if (!sContext->writePixels(ii, dstM.fImage, dstM.fRowBytes, 0, 0)) { in sw_draw_with_mask_filter()
101 dstM.fBounds, std::move(paint), sContext->asTextureProxyRef()); in sw_draw_with_mask_filter()
DGrResourceProvider.cpp140 sk_sp<GrSurfaceContext> sContext = context->contextPriv().makeWrappedSurfaceContext( in createTexture() local
142 if (!sContext) { in createTexture()
145 SkAssertResult(sContext->writePixels(srcInfo, mipLevel.fPixels, mipLevel.fRowBytes, 0, 0)); in createTexture()
146 return sk_ref_sp(sContext->asTextureProxy()->priv().peekTexture()); in createTexture()
/external/skqp/experimental/GLFWTest/
Dglfw_main.cpp19 GrContext* sContext = nullptr; variable
33 sContext = GrContext::MakeGL(nullptr).release(); in init_skia()
51 sSurface = SkSurface::MakeFromBackendRenderTarget(sContext, backendRenderTarget, in init_skia()
58 delete sContext; in cleanup_skia()
/external/skia/src/gpu/text/
DGrAtlasManager.cpp142 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in save_pixels() local
144 if (!sContext || !sContext->asTextureProxy()) { in save_pixels()
148 bool result = sContext->readPixels(ii, bm.getPixels(), bm.rowBytes(), 0, 0); in save_pixels()
/external/skia/src/image/
DSkImage_Gpu.cpp98 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in getROPixels() local
101 if (!sContext) { in getROPixels()
105 if (!sContext->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), 0, 0)) { in getROPixels()
244 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in onReadPixels() local
246 if (!sContext) { in onReadPixels()
250 if (!sContext->readPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, rec.fX, rec.fY, flags)) { in onReadPixels()
275 sk_sp<GrSurfaceContext> sContext(fContext->contextPriv().makeDeferredSurfaceContext( in onMakeSubset() local
280 if (!sContext) { in onMakeSubset()
284 if (!sContext->copy(fProxy.get(), subset, SkIPoint::Make(0, 0))) { in onMakeSubset()
290 fAlphaType, sContext->asTextureProxyRef(), in onMakeSubset()
/external/skqp/src/image/
DSkImage_Gpu.cpp97 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in getROPixels() local
100 if (!sContext) { in getROPixels()
104 if (!sContext->readPixels(pmap.info(), pmap.writable_addr(), pmap.rowBytes(), 0, 0)) { in getROPixels()
240 sk_sp<GrSurfaceContext> sContext = fContext->contextPriv().makeWrappedSurfaceContext( in onReadPixels() local
242 if (!sContext) { in onReadPixels()
246 if (!sContext->readPixels(rec.fInfo, rec.fPixels, rec.fRowBytes, rec.fX, rec.fY, flags)) { in onReadPixels()
271 sk_sp<GrSurfaceContext> sContext(fContext->contextPriv().makeDeferredSurfaceContext( in onMakeSubset() local
276 if (!sContext) { in onMakeSubset()
280 if (!sContext->copy(fProxy.get(), subset, SkIPoint::Make(0, 0))) { in onMakeSubset()
286 fAlphaType, sContext->asTextureProxyRef(), in onMakeSubset()
/external/skqp/src/gpu/text/
DGrAtlasGlyphCache.cpp146 sk_sp<GrSurfaceContext> sContext(context->contextPriv().makeWrappedSurfaceContext( in save_pixels() local
148 if (!sContext || !sContext->asTextureProxy()) { in save_pixels()
152 bool result = sContext->readPixels(ii, bm.getPixels(), bm.rowBytes(), 0, 0); in save_pixels()

12