Home
last modified time | relevance | path

Searched refs:Context (Results 1 – 25 of 2345) sorted by relevance

12345678910>>...94

/frameworks/rs/
Drs_hal.h27 class Context; variable
90 bool (*initGraphics)(const Context *);
91 void (*shutdownGraphics)(const Context *);
92 bool (*setSurface)(const Context *, uint32_t w, uint32_t h, RsNativeWindow);
93 void (*swap)(const Context *);
95 void (*shutdownDriver)(Context *);
97 void (*setPriority)(const Context *, int32_t priority);
103 bool (*init)(const Context *rsc, ScriptC *s,
109 bool (*initIntrinsic)(const Context *rsc, Script *s,
113 void (*invokeFunction)(const Context *rsc, Script *s,
[all …]
DrsRuntime.h34 void rsrAllocationSyncAll(Context *, Script *, Allocation *);
37 void rsrBindTexture(Context *, ProgramFragment *, uint32_t slot, Allocation *);
38 void rsrBindConstant(Context *, ProgramFragment *, uint32_t slot, Allocation *);
39 void rsrBindConstant(Context *, ProgramVertex*, uint32_t slot, Allocation *);
40 void rsrBindSampler(Context *, ProgramFragment *, uint32_t slot, Sampler *);
41 void rsrBindProgramStore(Context *, ProgramStore *);
42 void rsrBindProgramFragment(Context *, ProgramFragment *);
43 void rsrBindProgramVertex(Context *, ProgramVertex *);
44 void rsrBindProgramRaster(Context *, ProgramRaster *);
45 void rsrBindFrameBufferObjectColorTarget(Context *, Allocation *, uint32_t slot);
[all …]
DrsContext.cpp58 pthread_mutex_t Context::gInitMutex = PTHREAD_MUTEX_INITIALIZER;
59 pthread_mutex_t Context::gMessageMutex = PTHREAD_MUTEX_INITIALIZER;
60 pthread_mutex_t Context::gLibMutex = PTHREAD_MUTEX_INITIALIZER;
62 bool Context::initGLThread() { in initGLThread()
75 void Context::deinitEGL() { in deinitEGL()
81 Context::PushState::PushState(Context *con) { in PushState()
94 Context::PushState::~PushState() { in ~PushState()
107 uint32_t Context::runScript(Script *s) { in runScript()
114 uint32_t Context::runRootScript() { in runRootScript()
126 uint64_t Context::getTime() const { in getTime()
[all …]
DrsScriptC_LibGL.cpp49 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture()
55 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant()
61 void rsrBindConstant(Context *rsc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant()
67 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler()
73 void rsrBindProgramStore(Context *rsc, ProgramStore *ps) { in rsrBindProgramStore()
78 void rsrBindProgramFragment(Context *rsc, ProgramFragment *pf) { in rsrBindProgramFragment()
83 void rsrBindProgramVertex(Context *rsc, ProgramVertex *pv) { in rsrBindProgramVertex()
88 void rsrBindProgramRaster(Context *rsc, ProgramRaster *pr) { in rsrBindProgramRaster()
93 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget()
99 void rsrBindFrameBufferObjectDepthTarget(Context *rsc, Allocation *a) { in rsrBindFrameBufferObjectDepthTarget()
[all …]
DrsAllocation.h101 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages,
109 void syncAll(Context *rsc, RsAllocationUsageType src);
111 …void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len…
113 void resize1D(Context *rsc, uint32_t dimX);
114 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
116 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
117 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
119 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
122 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
123 … void read(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
[all …]
DrsProgramVertex.h30 ProgramVertex(Context *,const char * shaderText, size_t shaderLength,
35 virtual void setup(Context *rsc, ProgramVertexState *state);
37 void setProjectionMatrix(Context *, const rsc_Matrix *) const;
38 void getProjectionMatrix(Context *, rsc_Matrix *) const;
39 void setModelviewMatrix(Context *, const rsc_Matrix *) const;
40 void setTextureMatrix(Context *, const rsc_Matrix *) const;
42 void transformToScreen(Context *, float *v4out, const float *v3in) const;
44 virtual void serialize(Context *rsc, OStream *stream) const;
46 static ProgramVertex *createFromStream(Context *rsc, IStream *stream);
54 void init(Context *rsc);
[all …]
DrsScriptC_Lib.cpp84 time_t rsrTime(Context *rsc, time_t *timer) { in rsrTime()
88 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { in rsrLocalTime()
107 int64_t rsrUptimeMillis(Context *rsc) { in rsrUptimeMillis()
115 int64_t rsrUptimeNanos(Context *rsc) { in rsrUptimeNanos()
123 float rsrGetDt(Context *rsc, const Script *sc) { in rsrGetDt()
137 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef()
150 void rsrSetObject(const Context *rsc, void *dst, ObjectBase *src) { in rsrSetObject()
159 void rsrSetObject(const Context *rsc, rs_object_base *dst, const ObjectBase *src) { in rsrSetObject()
169 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject()
179 void rsrClearObject(const Context *rsc, rs_object_base *dst) { in rsrClearObject()
[all …]
DrsAdapter.cpp24 Adapter1D::Adapter1D(Context *rsc) : ObjectBase(rsc) { in Adapter1D()
28 Adapter1D::Adapter1D(Context *rsc, Allocation *a) : ObjectBase(rsc) { in Adapter1D()
40 void Adapter1D::data(Context *rsc, uint32_t x, uint32_t count, const void *data, size_t sizeBytes) { in data()
44 void Adapter1D::serialize(Context *rsc, OStream *stream) const { in serialize()
47 Adapter1D *Adapter1D::createFromStream(Context *rsc, IStream *stream) { in createFromStream()
54 RsAdapter1D rsi_Adapter1DCreate(Context *rsc) { in rsi_Adapter1DCreate()
60 void rsi_Adapter1DBindAllocation(Context *rsc, RsAdapter1D va, RsAllocation valloc) { in rsi_Adapter1DBindAllocation()
66 void rsi_Adapter1DSetConstraint(Context *rsc, RsAdapter1D va, RsDimension dim, uint32_t value) { in rsi_Adapter1DSetConstraint()
95 Adapter2D::Adapter2D(Context *rsc) : ObjectBase(rsc) { in Adapter2D()
99 Adapter2D::Adapter2D(Context *rsc, Allocation *a) : ObjectBase(rsc) { in Adapter2D()
[all …]
DrsFBOCache.h33 void init(Context *rsc);
34 void deinit(Context *rsc);
36 void bindColorTarget(Context *rsc, Allocation *a, uint32_t slot);
37 void bindDepthTarget(Context *, Allocation *a);
38 void resetAll(Context *);
40 void setup(Context *);
59 void checkError(Context *);
60 void setColorAttachment(Context *rsc);
61 void setDepthAttachment(Context *rsc);
DrsScriptC.h38 ScriptC(Context *);
41 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
43 virtual uint32_t run(Context *);
45 virtual void runForEach(Context *rsc,
53 virtual void runForEach(Context *rsc,
62 virtual void serialize(Context *rsc, OStream *stream) const { } in serialize()
64 static Type *createFromStream(Context *rsc, IStream *stream) { return NULL; } in createFromStream()
66 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
70 void setupScript(Context *);
71 void setupGLState(Context *);
DrsObjectBase.h27 class Context; variable
33 ObjectBase(Context *rsc);
51 Context * getContext() const {return mRSC;} in getContext()
54 static void zeroAllUserRef(Context *rsc);
55 static void freeAllChildren(Context *rsc);
56 static void dumpAll(Context *rsc);
59 virtual void serialize(Context *rsc, OStream *stream) const = 0;
62 static bool isValid(const Context *rsc, const ObjectBase *obj);
69 virtual void callUpdateCacheObject(const Context *rsc, void *dstObj) const;
76 Context *mRSC;
DrsMesh.h58 Mesh(Context *);
59 Mesh(Context *, uint32_t vertexBuffersCount, uint32_t primitivesCount);
62 virtual void serialize(Context *rsc, OStream *stream) const;
64 static Mesh *createFromStream(Context *rsc, IStream *stream);
78 void render(Context *) const;
79 void renderPrimitive(Context *, uint32_t primIndex) const;
80 void renderPrimitiveRange(Context *, uint32_t primIndex, uint32_t start, uint32_t len) const;
81 void uploadAll(Context *);
86 void computeBBox(Context *rsc);
DrsScriptIntrinsic.h33 ScriptIntrinsic(Context *);
36 bool init(Context *rsc, RsScriptIntrinsicID iid, Element *e);
39 virtual void serialize(Context *rsc, OStream *stream) const;
43 virtual void runForEach(Context *rsc,
51 virtual void runForEach(Context* rsc,
60 virtual void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len);
61 virtual void setupScript(Context *rsc);
62 virtual uint32_t run(Context *);
/frameworks/compile/slang/
Dslang_rs_export_foreach.cpp38 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructParams() argument
39 slangAssert(Context && FD); in validateAndConstructParams()
44 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) { in validateAndConstructParams()
47 Context->ReportError(FD->getLocation(), in validateAndConstructParams()
60 valid |= validateAndConstructKernelParams(Context, FD); in validateAndConstructParams()
62 valid |= validateAndConstructOldStyleParams(Context, FD); in validateAndConstructParams()
65 valid |= setSignatureMetadata(Context, FD); in validateAndConstructParams()
70 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructOldStyleParams() argument
71 slangAssert(Context && FD); in validateAndConstructOldStyleParams()
78 clang::ASTContext &C = Context->getASTContext(); in validateAndConstructOldStyleParams()
[all …]
Dslang_rs_export_type.cpp169 slang::RSContext *Context,
174 static void ReportTypeError(slang::RSContext *Context, in ReportTypeError() argument
183 Context->ReportError(TopLevelRecord->getLocation(), Message) in ReportTypeError()
186 Context->ReportError(ND->getLocation(), Message) << ND->getName() in ReportTypeError()
196 slang::RSContext *Context, in ConstantArrayTypeExportableHelper() argument
202 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
212 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
218 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
224 if (TypeExportableHelper(ElementType, SPS, Context, VD, in ConstantArrayTypeExportableHelper()
244 slang::RSContext *Context, in TypeExportableHelper() argument
[all …]
Dslang_rs_export_var.cpp29 RSExportVar::RSExportVar(RSContext *Context, in RSExportVar() argument
32 : RSExportable(Context, RSExportable::EX_VAR), in RSExportVar()
45 Initializer->EvaluateAsRValue(mInit, Context->getASTContext()); in RSExportVar()
49 if (Initializer->isNullPointerConstant(Context->getASTContext(), in RSExportVar()
53 if (!Initializer->EvaluateAsRValue(mInit, Context->getASTContext())) { in RSExportVar()
54 Context->ReportError(Initializer->getExprLoc(), in RSExportVar()
64 Context->ReportError(VD->getLocation(), in RSExportVar()
75 Context->getASTContext())) { in RSExportVar()
76 Context->ReportError(IList->getInit(i)->getExprLoc(), in RSExportVar()
85 Context->ReportError( in RSExportVar()
[all …]
/frameworks/rs/driver/
DrsdBcc.h23 bool rsdScriptInit(const android::renderscript::Context *, android::renderscript::ScriptC *,
26 bool rsdInitIntrinsic(const android::renderscript::Context *rsc,
31 void rsdScriptInvokeFunction(const android::renderscript::Context *dc,
37 void rsdScriptInvokeForEach(const android::renderscript::Context *rsc,
46 void rsdScriptInvokeForEachMulti(const android::renderscript::Context *rsc,
56 int rsdScriptInvokeRoot(const android::renderscript::Context *dc,
58 void rsdScriptInvokeInit(const android::renderscript::Context *dc,
60 void rsdScriptInvokeFreeChildren(const android::renderscript::Context *dc,
63 void rsdScriptSetGlobalVar(const android::renderscript::Context *,
66 void rsdScriptGetGlobalVar(const android::renderscript::Context *,
[all …]
DrsdAllocation.h79 uint32_t rsdAllocationGrallocBits(const android::renderscript::Context *rsc,
81 bool rsdAllocationInit(const android::renderscript::Context *rsc,
84 void rsdAllocationDestroy(const android::renderscript::Context *rsc,
87 void rsdAllocationResize(const android::renderscript::Context *rsc,
90 void rsdAllocationSyncAll(const android::renderscript::Context *rsc,
93 void rsdAllocationMarkDirty(const android::renderscript::Context *rsc,
95 void rsdAllocationSetSurface(const android::renderscript::Context *rsc,
97 void rsdAllocationIoSend(const android::renderscript::Context *rsc,
99 void rsdAllocationIoReceive(const android::renderscript::Context *rsc,
102 void rsdAllocationData1D(const android::renderscript::Context *rsc,
[all …]
DrsdGL.h77 bool rsdGLSetInternalSurface(const android::renderscript::Context *rsc,
79 bool rsdGLInit(const android::renderscript::Context *rsc);
80 void rsdGLShutdown(const android::renderscript::Context *rsc);
81 bool rsdGLSetSurface(const android::renderscript::Context *rsc,
83 void rsdGLSwap(const android::renderscript::Context *rsc);
84 void rsdGLCheckError(const android::renderscript::Context *rsc,
86 void rsdGLSetPriority(const android::renderscript::Context *rsc,
88 void rsdGLClearColor(const android::renderscript::Context *rsc,
90 void rsdGLClearDepth(const android::renderscript::Context *rsc, float v);
91 void rsdGLFinish(const android::renderscript::Context *rsc);
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java25 import android.content.Context;
239 public DevicePolicyManager getManager(Context context) { in getManager()
244 Context.DEVICE_POLICY_SERVICE); in getManager()
253 public ComponentName getWho(Context context) { in getWho()
274 public void onEnabled(Context context, Intent intent) { in onEnabled()
288 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested()
300 public void onDisabled(Context context, Intent intent) { in onDisabled()
312 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged()
323 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed()
334 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded()
[all …]
/frameworks/base/services/core/java/com/android/server/am/
DConnectionRecord.java21 import android.content.Context;
68 if ((flags&Context.BIND_AUTO_CREATE) != 0) { in toString()
71 if ((flags&Context.BIND_DEBUG_UNBIND) != 0) { in toString()
74 if ((flags&Context.BIND_NOT_FOREGROUND) != 0) { in toString()
77 if ((flags&Context.BIND_ABOVE_CLIENT) != 0) { in toString()
80 if ((flags&Context.BIND_ALLOW_OOM_MANAGEMENT) != 0) { in toString()
83 if ((flags&Context.BIND_WAIVE_PRIORITY) != 0) { in toString()
86 if ((flags&Context.BIND_IMPORTANT) != 0) { in toString()
89 if ((flags&Context.BIND_ADJUST_WITH_ACTIVITY) != 0) { in toString()
92 if ((flags&Context.BIND_VISIBLE) != 0) { in toString()
[all …]
/frameworks/compile/mclinker/lib/CodeGen/
DMCLDTargetMachine.cpp167 MCContext *Context = &MMI->getContext(); // Return the MCContext by-ref. in addPassesToGenerateCode() local
186 return Context; in addPassesToGenerateCode()
200 llvm::MCContext* Context = in addPassesToEmitFile() local
203 if (!Context) in addPassesToEmitFile()
212 assert(Context != 0 && "Failed to get MCContext"); in addPassesToEmitFile()
215 Context->setAllowTemporaryLabels(false); in addPassesToEmitFile()
219 Context)) in addPassesToEmitFile()
224 assert(Context != 0 && "Failed to get MCContext"); in addPassesToEmitFile()
227 Context->setAllowTemporaryLabels(false); in addPassesToEmitFile()
230 Context)) in addPassesToEmitFile()
[all …]
/frameworks/base/core/java/android/widget/
DResourceCursorAdapter.java19 import android.content.Context;
51 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter()
54 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
73 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter()
76 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
90 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter()
93 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
103 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView()
108 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView()
/frameworks/support/v4/java/android/support/v4/widget/
DResourceCursorAdapter.java19 import android.content.Context;
53 public ResourceCursorAdapter(Context context, int layout, Cursor c) { in ResourceCursorAdapter()
56 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
75 public ResourceCursorAdapter(Context context, int layout, Cursor c, boolean autoRequery) { in ResourceCursorAdapter()
78 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
92 public ResourceCursorAdapter(Context context, int layout, Cursor c, int flags) { in ResourceCursorAdapter()
95 mInflater = (LayoutInflater) context.getSystemService(Context.LAYOUT_INFLATER_SERVICE); in ResourceCursorAdapter()
105 public View newView(Context context, Cursor cursor, ViewGroup parent) { in newView()
110 public View newDropDownView(Context context, Cursor cursor, ViewGroup parent) { in newDropDownView()
/frameworks/support/v4/kitkat/android/support/v4/provider/
DDocumentsContractApi19.java20 import android.content.Context;
32 public static boolean isDocumentUri(Context context, Uri self) { in isDocumentUri()
36 public static String getName(Context context, Uri self) { in getName()
40 private static String getRawType(Context context, Uri self) { in getRawType()
44 public static String getType(Context context, Uri self) { in getType()
53 public static boolean isDirectory(Context context, Uri self) { in isDirectory()
57 public static boolean isFile(Context context, Uri self) { in isFile()
66 public static long lastModified(Context context, Uri self) { in lastModified()
70 public static long length(Context context, Uri self) { in length()
74 public static boolean canRead(Context context, Uri self) { in canRead()
[all …]

12345678910>>...94