/packages/apps/Camera2/src/com/android/camera/app/ |
AppManagerFactory.java | 30 public static synchronized AppManagerFactory getInstance(Context ctx) { 32 sFactory = new AppManagerFactory(ctx); 41 private AppManagerFactory(Context ctx) { 42 mPanoramaStitchingManager = new PanoramaStitchingManager(ctx); 43 mGcamProcessingManager = new PlaceholderManager(ctx);
|
/external/chromium_org/third_party/mesa/src/src/gallium/tests/graw/ |
occlusion-query.c | 91 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve); 92 info.ctx->bind_vertex_elements_state(info.ctx, handle); 97 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, 103 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); 121 handle = graw_parse_vertex_shader(info->ctx, text); 126 info->ctx->bind_vs_state(info->ctx, handle) [all...] |
/external/e2fsprogs/lib/ext2fs/ |
block.c | 39 #define check_for_ro_violation_return(ctx, ret) \ 41 if (((ctx)->flags & BLOCK_FLAG_READ_ONLY) && \ 43 (ctx)->errcode = EXT2_ET_RO_BLOCK_ITERATE; \ 49 #define check_for_ro_violation_goto(ctx, ret, label) \ 51 if (((ctx)->flags & BLOCK_FLAG_READ_ONLY) && \ 53 (ctx)->errcode = EXT2_ET_RO_BLOCK_ITERATE; \ 60 int ref_offset, struct block_context *ctx) 66 limit = ctx->fs->blocksize >> 2; 67 if (!(ctx->flags & BLOCK_FLAG_DEPTH_TRAVERSE) && 68 !(ctx->flags & BLOCK_FLAG_DATA_ONLY) 311 struct block_context ctx; local [all...] |
/external/mesa3d/src/gallium/tests/graw/ |
occlusion-query.c | 91 handle = info.ctx->create_vertex_elements_state(info.ctx, 2, ve); 92 info.ctx->bind_vertex_elements_state(info.ctx, handle); 97 vbuf.buffer = pipe_buffer_create_with_data(info.ctx, 103 info.ctx->set_vertex_buffers(info.ctx, 1, &vbuf); 121 handle = graw_parse_vertex_shader(info->ctx, text); 126 info->ctx->bind_vs_state(info->ctx, handle) [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/drivers/dri/nouveau/ |
nouveau_context.h | 87 #define to_nouveau_context(ctx) ((struct nouveau_context *)(ctx)) 89 #define context_dev(ctx) \ 90 (to_nouveau_context(ctx)->screen->device) 91 #define context_chipset(ctx) \ 92 (context_dev(ctx)->chipset) 93 #define context_chan(ctx) \ 94 (to_nouveau_context(ctx)->hw.chan) 95 #define context_client(ctx) \ 96 (to_nouveau_context(ctx)->hw.client [all...] |
nv04_state_raster.c | 116 nv04_defer_control(struct gl_context *ctx, int emit) 118 context_dirty(ctx, CONTROL); 122 nv04_emit_control(struct gl_context *ctx, int emit) 124 struct nv04_context *nv04 = to_nv04_context(ctx); 125 int cull = ctx->Polygon.CullFaceMode; 126 int front = ctx->Polygon.FrontFace; 134 if (ctx->Color.DitherFlag) 138 if (!ctx->Polygon.CullFlag) 148 if (ctx->Depth.Test) 150 if (ctx->Depth.Mask [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/main/ |
drawtex.c | 35 draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z, 38 if (!ctx->Extensions.OES_draw_texture) { 39 _mesa_error(ctx, GL_INVALID_OPERATION, 44 _mesa_error(ctx, GL_INVALID_VALUE, "glDrawTex(width or height <= 0)"); 48 _mesa_set_vp_override(ctx, GL_TRUE); 50 if (ctx->NewState) 51 _mesa_update_state(ctx); 53 ASSERT(ctx->Driver.DrawTex); 54 ctx->Driver.DrawTex(ctx, x, y, z, width, height) [all...] |
arrayobj.c | 66 lookup_arrayobj(struct gl_context *ctx, GLuint id) 72 _mesa_HashLookup(ctx->Array.Objects, id); 82 unbind_array_object_vbos(struct gl_context *ctx, struct gl_array_object *obj) 87 _mesa_reference_buffer_object(ctx, &obj->VertexAttrib[i].BufferObj, NULL); 98 _mesa_new_array_object( struct gl_context *ctx, GLuint name ) 102 _mesa_initialize_array_object(ctx, obj, name); 114 _mesa_delete_array_object( struct gl_context *ctx, struct gl_array_object *obj ) 116 (void) ctx; 117 unbind_array_object_vbos(ctx, obj); 118 _mesa_reference_buffer_object(ctx, &obj->ElementArrayBufferObj, NULL) [all...] |
shaderobj.h | 46 _mesa_init_shader_state(struct gl_context * ctx); 49 _mesa_free_shader_state(struct gl_context *ctx); 53 _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr, 57 _mesa_lookup_shader(struct gl_context *ctx, GLuint name); 60 _mesa_lookup_shader_err(struct gl_context *ctx, GLuint name, const char *caller); 65 _mesa_reference_shader_program(struct gl_context *ctx, 69 _mesa_init_shader(struct gl_context *ctx, struct gl_shader *shader); 72 _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type); 75 _mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog); 78 _mesa_lookup_shader_program(struct gl_context *ctx, GLuint name) [all...] |
nvprogram.c | 64 GET_CURRENT_CONTEXT(ctx); 65 ASSERT_OUTSIDE_BEGIN_END(ctx); 68 _mesa_error(ctx, GL_INVALID_ENUM, "glExecuteProgramNV"); 72 FLUSH_VERTICES(ctx, _NEW_PROGRAM); 74 vprog = gl_vertex_program(_mesa_lookup_program(ctx, id)); 77 _mesa_error(ctx, GL_INVALID_OPERATION, "glExecuteProgramNV"); 81 _mesa_problem(ctx, "glExecuteProgramNV() not supported"); 96 GET_CURRENT_CONTEXT(ctx); 97 ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE); 100 _mesa_error(ctx, GL_INVALID_VALUE, "glAreProgramsResidentNV(n)") [all...] |
bufferobj.c | 63 * \param ctx the GL context 69 get_buffer_target(struct gl_context *ctx, GLenum target) 73 if (!_mesa_is_desktop_gl(ctx) && !_mesa_is_gles3(ctx) 79 return &ctx->Array.ArrayBufferObj; 81 return &ctx->Array.ArrayObj->ElementArrayBufferObj; 83 return &ctx->Pack.BufferObj; 85 return &ctx->Unpack.BufferObj; 87 return &ctx->CopyReadBuffer; 89 return &ctx->CopyWriteBuffer [all...] |
/external/mesa3d/src/mesa/drivers/dri/nouveau/ |
nouveau_context.h | 87 #define to_nouveau_context(ctx) ((struct nouveau_context *)(ctx)) 89 #define context_dev(ctx) \ 90 (to_nouveau_context(ctx)->screen->device) 91 #define context_chipset(ctx) \ 92 (context_dev(ctx)->chipset) 93 #define context_chan(ctx) \ 94 (to_nouveau_context(ctx)->hw.chan) 95 #define context_client(ctx) \ 96 (to_nouveau_context(ctx)->hw.client [all...] |
nv04_state_raster.c | 116 nv04_defer_control(struct gl_context *ctx, int emit) 118 context_dirty(ctx, CONTROL); 122 nv04_emit_control(struct gl_context *ctx, int emit) 124 struct nv04_context *nv04 = to_nv04_context(ctx); 125 int cull = ctx->Polygon.CullFaceMode; 126 int front = ctx->Polygon.FrontFace; 134 if (ctx->Color.DitherFlag) 138 if (!ctx->Polygon.CullFlag) 148 if (ctx->Depth.Test) 150 if (ctx->Depth.Mask [all...] |
/external/mesa3d/src/mesa/main/ |
drawtex.c | 35 draw_texture(struct gl_context *ctx, GLfloat x, GLfloat y, GLfloat z, 38 if (!ctx->Extensions.OES_draw_texture) { 39 _mesa_error(ctx, GL_INVALID_OPERATION, 44 _mesa_error(ctx, GL_INVALID_VALUE, "glDrawTex(width or height <= 0)"); 48 _mesa_set_vp_override(ctx, GL_TRUE); 50 if (ctx->NewState) 51 _mesa_update_state(ctx); 53 ASSERT(ctx->Driver.DrawTex); 54 ctx->Driver.DrawTex(ctx, x, y, z, width, height) [all...] |
arrayobj.c | 66 lookup_arrayobj(struct gl_context *ctx, GLuint id) 72 _mesa_HashLookup(ctx->Array.Objects, id); 82 unbind_array_object_vbos(struct gl_context *ctx, struct gl_array_object *obj) 87 _mesa_reference_buffer_object(ctx, &obj->VertexAttrib[i].BufferObj, NULL); 98 _mesa_new_array_object( struct gl_context *ctx, GLuint name ) 102 _mesa_initialize_array_object(ctx, obj, name); 114 _mesa_delete_array_object( struct gl_context *ctx, struct gl_array_object *obj ) 116 (void) ctx; 117 unbind_array_object_vbos(ctx, obj); 118 _mesa_reference_buffer_object(ctx, &obj->ElementArrayBufferObj, NULL) [all...] |
shaderobj.h | 46 _mesa_init_shader_state(struct gl_context * ctx); 49 _mesa_free_shader_state(struct gl_context *ctx); 53 _mesa_reference_shader(struct gl_context *ctx, struct gl_shader **ptr, 57 _mesa_lookup_shader(struct gl_context *ctx, GLuint name); 60 _mesa_lookup_shader_err(struct gl_context *ctx, GLuint name, const char *caller); 65 _mesa_reference_shader_program(struct gl_context *ctx, 69 _mesa_init_shader(struct gl_context *ctx, struct gl_shader *shader); 72 _mesa_new_shader(struct gl_context *ctx, GLuint name, GLenum type); 75 _mesa_init_shader_program(struct gl_context *ctx, struct gl_shader_program *prog); 78 _mesa_lookup_shader_program(struct gl_context *ctx, GLuint name) [all...] |
nvprogram.c | 64 GET_CURRENT_CONTEXT(ctx); 65 ASSERT_OUTSIDE_BEGIN_END(ctx); 68 _mesa_error(ctx, GL_INVALID_ENUM, "glExecuteProgramNV"); 72 FLUSH_VERTICES(ctx, _NEW_PROGRAM); 74 vprog = gl_vertex_program(_mesa_lookup_program(ctx, id)); 77 _mesa_error(ctx, GL_INVALID_OPERATION, "glExecuteProgramNV"); 81 _mesa_problem(ctx, "glExecuteProgramNV() not supported"); 96 GET_CURRENT_CONTEXT(ctx); 97 ASSERT_OUTSIDE_BEGIN_END_WITH_RETVAL(ctx, GL_FALSE); 100 _mesa_error(ctx, GL_INVALID_VALUE, "glAreProgramsResidentNV(n)") [all...] |
/external/chromium_org/third_party/mesa/src/src/gallium/drivers/nv30/ |
nv30_push.c | 86 emit_vertices_i08(struct push_context *ctx, unsigned start, unsigned count) 88 uint8_t *elts = (uint8_t *)ctx->idxbuf + start; 91 unsigned push = MIN2(count, ctx->packet_vertex_limit); 95 if (ctx->primitive_restart) 96 nr = prim_restart_search_i08(elts, push, ctx->restart_index); 98 size = ctx->vertex_words * nr; 100 BEGIN_NI04(ctx->push, NV30_3D(VERTEX_DATA), size); 102 ctx->translate->run_elts8(ctx->translate, elts, nr, 0, ctx->push->cur) 200 struct push_context ctx; local [all...] |
/external/mesa3d/src/gallium/drivers/nv30/ |
nv30_push.c | 86 emit_vertices_i08(struct push_context *ctx, unsigned start, unsigned count) 88 uint8_t *elts = (uint8_t *)ctx->idxbuf + start; 91 unsigned push = MIN2(count, ctx->packet_vertex_limit); 95 if (ctx->primitive_restart) 96 nr = prim_restart_search_i08(elts, push, ctx->restart_index); 98 size = ctx->vertex_words * nr; 100 BEGIN_NI04(ctx->push, NV30_3D(VERTEX_DATA), size); 102 ctx->translate->run_elts8(ctx->translate, elts, nr, 0, ctx->push->cur) 200 struct push_context ctx; local [all...] |
/external/e2fsprogs/e2fsck/ |
pass3.c | 44 static void check_root(e2fsck_t ctx); 45 static int check_directory(e2fsck_t ctx, ext2_ino_t ino, 47 static void fix_dotdot(e2fsck_t ctx, ext2_ino_t ino, ext2_ino_t parent); 52 void e2fsck_pass3(e2fsck_t ctx) 54 ext2_filsys fs = ctx->fs; 63 init_resource_track(&rtrack, ctx->fs->io); 70 if (!(ctx->options & E2F_OPT_PREEN)) 71 fix_problem(ctx, PR_3_PASS_HEADER, &pctx); 80 fix_problem(ctx, PR_3_ALLOCATE_IBITMAP_ERROR, &pctx); 81 ctx->flags |= E2F_FLAG_ABORT 597 e2fsck_t ctx; member in struct:fix_dotdot_struct 683 e2fsck_t ctx; member in struct:expand_dir_struct 698 e2fsck_t ctx; local [all...] |
/external/chromium_org/third_party/openssl/openssl/crypto/pkcs7/ |
bio_ber.c | 129 BIO_BER_CTX *ctx; local 131 ctx=(BIO_BER_CTX *)OPENSSL_malloc(sizeof(BIO_BER_CTX)); 132 if (ctx == NULL) return(0); 134 memset((char *)ctx,0,sizeof(BIO_BER_CTX)); 137 bi->ptr=(char *)ctx; 156 int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx) 170 if (ctx->buf_off != 0) 172 p=ctx->buf; 173 j=ctx->buf_off; 174 n=ctx->buf_len-j 229 BIO_BER_CTX *ctx; local 276 BIO_ENC_CTX *ctx; local 331 BIO_ENC_CTX *ctx,*dctx; local 451 BIO_ENC_CTX *ctx; local [all...] |
/external/openssl/crypto/pkcs7/ |
bio_ber.c | 129 BIO_BER_CTX *ctx; local 131 ctx=(BIO_BER_CTX *)OPENSSL_malloc(sizeof(BIO_BER_CTX)); 132 if (ctx == NULL) return(0); 134 memset((char *)ctx,0,sizeof(BIO_BER_CTX)); 137 bi->ptr=(char *)ctx; 156 int bio_ber_get_header(BIO *bio, BIO_BER_CTX *ctx) 170 if (ctx->buf_off != 0) 172 p=ctx->buf; 173 j=ctx->buf_off; 174 n=ctx->buf_len-j 229 BIO_BER_CTX *ctx; local 276 BIO_ENC_CTX *ctx; local 331 BIO_ENC_CTX *ctx,*dctx; local 451 BIO_ENC_CTX *ctx; local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/swrast/ |
s_feedback.c | 37 feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv) 45 win[2] = v->attrib[FRAG_ATTRIB_WPOS][2] / ctx->DrawBuffer->_DepthMaxF; 48 _mesa_feedback_vertex(ctx, win, color, vtc); 56 _swrast_feedback_triangle(struct gl_context *ctx, const SWvertex *v0, 59 if (!_swrast_culltriangle(ctx, v0, v1, v2)) { 60 _mesa_feedback_token(ctx, (GLfloat) (GLint) GL_POLYGON_TOKEN); 61 _mesa_feedback_token(ctx, (GLfloat) 3); /* three vertices */ 63 if (ctx->Light.ShadeModel == GL_SMOOTH) { 64 feedback_vertex(ctx, v0, v0); 65 feedback_vertex(ctx, v1, v1) [all...] |
/external/mesa3d/src/mesa/swrast/ |
s_feedback.c | 37 feedback_vertex(struct gl_context * ctx, const SWvertex * v, const SWvertex * pv) 45 win[2] = v->attrib[FRAG_ATTRIB_WPOS][2] / ctx->DrawBuffer->_DepthMaxF; 48 _mesa_feedback_vertex(ctx, win, color, vtc); 56 _swrast_feedback_triangle(struct gl_context *ctx, const SWvertex *v0, 59 if (!_swrast_culltriangle(ctx, v0, v1, v2)) { 60 _mesa_feedback_token(ctx, (GLfloat) (GLint) GL_POLYGON_TOKEN); 61 _mesa_feedback_token(ctx, (GLfloat) 3); /* three vertices */ 63 if (ctx->Light.ShadeModel == GL_SMOOTH) { 64 feedback_vertex(ctx, v0, v0); 65 feedback_vertex(ctx, v1, v1) [all...] |
/system/core/libmincrypt/ |
sha.c | 38 static void SHA1_Transform(SHA_CTX* ctx) { 41 uint8_t* p = ctx->buf; 56 A = ctx->state[0]; 57 B = ctx->state[1]; 58 C = ctx->state[2]; 59 D = ctx->state[3]; 60 E = ctx->state[4]; 81 ctx->state[0] += A; 82 ctx->state[1] += B; 83 ctx->state[2] += C 150 SHA_CTX ctx; local [all...] |