/external/llvm/test/Bindings/OCaml/ |
target.ml | 17 let context = global_context () var 18 let i32_type = Llvm.i32_type context 19 let i64_type = Llvm.i64_type context 34 let m = create_module context filename 46 let sty = struct_type context [| i32_type; i64_type |] in 51 assert_equal (DL.intptr_type context dl) i32_type; 53 assert_equal (DL.qualified_intptr_type context 0 dl) i32_type;
|
/external/mesa3d/src/amd/common/ |
ac_llvm_util.h | 48 LLVMContextRef context; member in struct:ac_llvm_context 65 ac_llvm_context_init(struct ac_llvm_context *ctx, LLVMContextRef context);
|
/external/mesa3d/src/gallium/drivers/llvmpipe/ |
lp_test_printf.c | 64 LLVMTypeRef args[1] = { LLVMIntTypeInContext(gallivm->context, 32) }; 65 LLVMValueRef func = LLVMAddFunction(module, "test_printf", LLVMFunctionType(LLVMVoidTypeInContext(gallivm->context), args, 1, 0)); 67 LLVMBasicBlockRef block = LLVMAppendBasicBlockInContext(gallivm->context, func, "entry"); 73 lp_build_printf(gallivm, "print 5 6: %d %d\n", LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 5, 0), 74 LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 6, 0)); 77 lp_build_assert(gallivm, LLVMConstInt(LLVMInt32TypeInContext(gallivm->context), 1, 0), "assert(1)"); 92 LLVMContextRef context; local 98 context = LLVMContextCreate(); 99 gallivm = gallivm_create("test_module", context); 112 LLVMContextDispose(context); [all...] |
/external/mesa3d/src/gallium/state_trackers/wgl/ |
stw_ext_context.c | 47 * remaps the context IDs returned by our stw_create_context_attribs() 60 HGLRC context; local 165 /* Call wglCreateContext to get a valid context ID */ 166 context = wglCreateContext_func(hDC); 168 if (context) { 169 /* Now replace the context we just created with a new one that reflects 176 dhglrc = stw_dev->callbacks.wglCbGetDhglrc(context); 182 dhglrc = (DHGLRC) context; 191 wglDeleteContext_func(context); 192 context = 0 [all...] |
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/ |
test_blocks.c | 46 XvMCContext context; local 78 assert(XvMCCreateContext(display, port_num, surface_type_id, width, height, XVMC_DIRECT, &context) == Success); 79 assert(XvMCCreateSurface(display, &context, &surface) == Success); 81 /* Test NULL context */ 84 assert(XvMCCreateBlocks(display, &context, 0, &blocks) == BadValue); 86 assert(XvMCCreateBlocks(display, &context, min_required_blocks, &blocks) == Success); 87 /* Test context id assigned and correct */ 88 assert(blocks.context_id == context.context_id); 93 /* Test NULL context */ 96 assert(XvMCCreateMacroBlocks(display, &context, 0, ¯oblocks) == BadValue) [all...] |
/external/pdfium/core/fxge/apple/ |
fx_quartz_device.cpp | 39 CGContextRef context = CGBitmapContextCreate( local 43 return context; 69 CGContextRef context = (CGContextRef)graphics; 70 CGFloat ty = CGBitmapContextGetHeight(context) - matrix->f; 72 context, CGAffineTransformMake(matrix->a, matrix->b, matrix->c, matrix->d, 86 CGContextRef context = (CGContextRef)graphics; 87 CGContextSetFont(context, (CGFontRef)font); 88 CGContextSetFontSize(context, fontSize); 90 CGAffineTransform m = CGContextGetTextMatrix(context); 94 CGContextSetTextMatrix(context, m) [all...] |
/external/robolectric/v1/src/main/java/com/xtremelabs/robolectric/shadows/ |
ShadowLayoutInflater.java | 4 import android.content.Context; 24 private Context context; field in class:ShadowLayoutInflater 26 private static LayoutInflater bind(LayoutInflater layoutInflater, Context context) { 27 shadowOf(layoutInflater).context = context; 32 public static LayoutInflater from(Context context) { 33 return bind(instances.getInstance(context), context) [all...] |
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowAbsSpinnerTest.java | 6 import android.content.Context; 19 private Context context; field in class:ShadowAbsSpinnerTest 26 context = RuntimeEnvironment.application; 27 spinner = new Spinner(context); 30 arrayAdapter = new MyArrayAdapter(this.context, testItems); 67 public MyArrayAdapter(Context context, String[] testItems) { 68 super(context, android.R.layout.simple_spinner_item, testItems);
|
ShadowAppWidgetHostTest.java | 10 import android.content.Context; 21 private Context context; field in class:ShadowAppWidgetHostTest 25 context = RuntimeEnvironment.application; 26 appWidgetHost = new AppWidgetHost(context, 404); 32 assertThat(shadowAppWidgetHost.getContext()).isSameAs(context); 42 AppWidgetHostView hostView = appWidgetHost.createView(context, 0, null); 48 AppWidgetHostView hostView = appWidgetHost.createView(context, 0, null); 49 assertThat(hostView.getContext()).isSameAs(context); 54 AppWidgetHostView hostView = appWidgetHost.createView(context, 765, null) [all...] |
ShadowDateFormatTest.java | 21 private Application context; field in class:ShadowDateFormatTest 25 context = RuntimeEnvironment.application; 36 assertThat(getTimeFormat(context).format(date)).isEqualTo("07:48:03"); 47 assertThat(getDateFormat(context).format(date)).isEqualTo("Jan-12-1970"); 58 assertThat(getDateFormat(context).format(date)).isEqualTo("Dec-31-1970"); 69 assertThat(getLongDateFormat(context).format(date)).isEqualTo("January 12, 1970"); 80 assertThat(getLongDateFormat(context).format(date)).isEqualTo("December 31, 1970");
|
ShadowEditTextPreferenceTest.java | 7 import android.content.Context; 22 private Context context; field in class:ShadowEditTextPreferenceTest 26 context = RuntimeEnvironment.application; 27 preference = new EditTextPreference(context); 32 preference = new EditTextPreference(context);
|
/external/robolectric-shadows/shadows/framework/src/main/java/org/robolectric/shadows/ |
ShadowAppWidgetHost.java | 6 import android.content.Context; 17 private Context context; field in class:ShadowAppWidgetHost 22 public void __constructor__(Context context, int hostId) { 23 this.context = context; 27 public Context getContext() { 28 return context; 45 public AppWidgetHostView createView(Context context, int appWidgetId [all...] |
ShadowTextToSpeech.java | 3 import android.content.Context; 11 private Context context; field in class:ShadowTextToSpeech 18 public void __constructor__(Context context, TextToSpeech.OnInitListener listener) { 19 this.context = context; 35 public Context getContext() { 36 return context;
|
/external/selinux/gui/ |
fcontextPage.py | 33 class context: class in inherits: 151 scon = context(scontext)
|
/external/selinux/libselinux/utils/ |
selabel_lookup_best_match.c | 28 " Find best matching context for the specified path using one link.\n\n", 57 char *validate = NULL, *path = NULL, *context = NULL, *file = NULL; local 126 rc = selabel_lookup_best_match_raw(hnd, &context, path, 129 rc = selabel_lookup_best_match(hnd, &context, path, 138 "failed to find a valid context.\n"); 142 "failed to validate context, or path / mode " 150 printf("Best match context: %s\n", context); 151 freecon(context);
|
/external/skia/gm/ |
simple_magnification.cpp | 15 static sk_sp<SkImage> make_image(GrContext* context, int size, GrSurfaceOrigin origin) { 16 if (context) { 18 sk_sp<SkSurface> surf(SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii, 0, 104 GrContext* context = canvas->getGrContext(); variable 106 sk_sp<SkImage> bottomLImg = make_image(context, kImgSize, kBottomLeft_GrSurfaceOrigin); 107 sk_sp<SkImage> topLImg = make_image(context, kImgSize, kTopLeft_GrSurfaceOrigin);
|
texdata.cpp | 75 GrContext* context = canvas->getGrContext(); local 76 if (!context) { 80 GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); 94 desc.fConfig = SkImageInfo2GrPixelConfig(ii, *context->caps()); 103 sk_sp<GrSurfaceContext> tContext = context->contextPriv().makeWrappedSurfaceContext(
|
/external/skia/tests/ |
PrimitiveProcessorTest.cpp | 113 GrContext* context = ctxInfo.grContext(); local 115 GrGpu* gpu = context->contextPriv().getGpu(); 118 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( 123 ERRORF(reporter, "Could not create render target context."); 126 int attribCnt = context->caps()->maxVertexAttributes(); 131 context->flush(); 132 context->resetGpuStats(); 143 context->flush(); 148 context->resetGpuStats(); 150 context->flush() [all...] |
TraceMemoryDumpTest.cpp | 57 void ValidateMemoryDumps(skiatest::Reporter* reporter, GrContext* context, size_t size, 60 context->dumpMemoryStatistics(&dump_with_wrapped); 65 context->dumpMemoryStatistics(&dump_no_wrapped); 76 GrContext* context = ctxInfo.grContext(); local 77 GrGLGpu* gpu = static_cast<GrGLGpu*>(context->contextPriv().getGpu()); 82 ValidateMemoryDumps(reporter, context, kMemorySize, true /* isOwned */); 86 GrContext* context = ctxInfo.grContext(); local 87 GrGLGpu* gpu = static_cast<GrGLGpu*>(context->contextPriv().getGpu()); 108 ValidateMemoryDumps(reporter, context, texture->gpuMemorySize(), true /* isOwned */); 112 GrContext* context = ctxInfo.grContext() local 137 GrContext* context = ctxInfo.grContext(); local 159 GrContext* context = ctxInfo.grContext(); local [all...] |
/external/skia/tools/gpu/gl/mac/ |
CreatePlatformGLTestContext_mac.cpp | 19 auto context = CGLGetCurrentContext(); local 20 return [context] { CGLSetCurrentContext(context); }; 73 SkDebugf("Context could not create GL interface.\n"); 78 SkDebugf("Context could not validate GL interface.\n"); 98 // This will ensure that the context is immediately deleted.
|
/external/skqp/gm/ |
deferredtextureimage.cpp | 23 GrContext* context = canvas->getGrContext(); local 24 if (!context) { 28 sk_sp<GrContextThreadSafeProxy> proxy(context->threadSafeProxy()); 50 context, memory.data(), SkBudgeted::kNo); 74 context, memory.data(), SkBudgeted::kNo); 82 GrContext* context = canvas->getGrContext(); local 83 if (!context) { 87 sk_sp<GrContextThreadSafeProxy> proxy(context->threadSafeProxy()); 105 context, memory.data(), SkBudgeted::kNo);
|
simple_magnification.cpp | 14 static sk_sp<SkImage> make_image(GrContext* context, int size, GrSurfaceOrigin origin) { 15 if (context) { 17 sk_sp<SkSurface> surf(SkSurface::MakeRenderTarget(context, SkBudgeted::kYes, ii, 0, 103 GrContext* context = canvas->getGrContext(); variable 105 sk_sp<SkImage> bottomLImg = make_image(context, kImgSize, kBottomLeft_GrSurfaceOrigin); 106 sk_sp<SkImage> topLImg = make_image(context, kImgSize, kTopLeft_GrSurfaceOrigin);
|
texdata.cpp | 75 GrContext* context = canvas->getGrContext(); local 76 if (!context) { 80 GrProxyProvider* proxyProvider = context->contextPriv().proxyProvider(); 94 desc.fConfig = SkImageInfo2GrPixelConfig(ii, *context->caps()); 102 sk_sp<GrSurfaceContext> tContext = context->contextPriv().makeWrappedSurfaceContext(
|
/external/skqp/src/gpu/ |
GrBackendTextureImageGenerator.cpp | 43 GrContext* context = texture->getContext(); local 45 // Attach our texture to this context's resource cache. This ensures that deletion will happen 46 // in the correct thread/context. This adds the only ref to the texture that will persist from 48 context->contextPriv().getResourceCache()->insertCrossContextGpuResource(texture.get()); 55 info, texture.get(), origin, context->uniqueID(), std::move(semaphore), backendTexture)); 89 GrContext* context, const SkImageInfo& info, const SkIPoint& origin, 91 SkASSERT(context); 93 if (context->contextPriv().getBackend() != fBackendTexture.backend()) { 97 auto proxyProvider = context->contextPriv().proxyProvider(); 102 if (fRefHelper->fBorrowingContextID != context->uniqueID()) [all...] |
/external/skqp/tests/ |
PrimitiveProcessorTest.cpp | 113 GrContext* context = ctxInfo.grContext(); local 115 GrGpu* gpu = context->contextPriv().getGpu(); 118 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( 123 ERRORF(reporter, "Could not create render target context."); 126 int attribCnt = context->caps()->maxVertexAttributes(); 131 context->flush(); 132 context->resetGpuStats(); 143 context->flush(); 148 context->resetGpuStats(); 150 context->flush() [all...] |