Home
last modified time | relevance | path

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

12345678910>>...114

/frameworks/rs/
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 …]
Drs_hal.h55 class Context; variable
118 bool (*initGraphics)(const Context *);
119 void (*shutdownGraphics)(const Context *);
120 bool (*setSurface)(const Context *, uint32_t w, uint32_t h, RsNativeWindow);
121 void (*swap)(const Context *);
123 void (*shutdownDriver)(Context *);
124 void (*setPriority)(const Context *, int32_t priority);
130 bool (*init)(const Context *rsc, ScriptC *s,
136 bool (*initIntrinsic)(const Context *rsc, Script *s,
140 void (*invokeFunction)(const Context *rsc, Script *s,
[all …]
DrsContext.cpp60 pthread_mutex_t Context::gInitMutex = PTHREAD_MUTEX_INITIALIZER;
61 pthread_mutex_t Context::gMessageMutex = PTHREAD_MUTEX_INITIALIZER;
62 pthread_mutex_t Context::gLibMutex = PTHREAD_MUTEX_INITIALIZER;
64 bool Context::initGLThread() { in initGLThread()
77 void Context::deinitEGL() { in deinitEGL()
83 Context::PushState::PushState(Context *con) { in PushState()
96 Context::PushState::~PushState() { in ~PushState()
109 uint32_t Context::runScript(Script *s) { in runScript()
116 uint32_t Context::runRootScript() { in runRootScript()
128 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.h111 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages,
114 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type);
122 void syncAll(Context *rsc, RsAllocationUsageType src);
124 …void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len…
126 void resize1D(Context *rsc, uint32_t dimX);
127 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
129 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
130 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
132 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
135 …void read(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, void *data, size_t sizeBytes);
[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 …]
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_Lib.cpp84 time_t rsrTime(Context *rsc, time_t *timer) { in rsrTime()
88 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { in rsrLocalTime()
102 int64_t rsrUptimeMillis(Context *rsc) { in rsrUptimeMillis()
110 int64_t rsrUptimeNanos(Context *rsc) { in rsrUptimeNanos()
118 float rsrGetDt(Context *rsc, const Script *sc) { in rsrGetDt()
132 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef()
145 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject()
157 void rsrClearObject(const Context *rsc, rs_object_base *dst) { in rsrClearObject()
169 void rsrSetObject(const Context *rsc, void *dst, ObjectBase *src) { in rsrSetObject()
183 void rsrSetObject(const Context *rsc, rs_object_base *dst, const ObjectBase *src) { in rsrSetObject()
[all …]
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,
54 virtual void serialize(Context *rsc, OStream *stream) const { } in serialize()
56 static Type *createFromStream(Context *rsc, IStream *stream) { return nullptr; } in createFromStream()
58 bool runCompiler(Context *rsc, const char *resName, const char *cacheDir,
62 void setupScript(Context *);
63 void setupGLState(Context *);
DrsScript.cpp23 Script::Script(Context *rsc) : ObjectBase(rsc) { in Script()
108 void Script::callUpdateCacheObject(const Context *rsc, void *dstObj) const { in callUpdateCacheObject()
122 ScriptKernelID::ScriptKernelID(Context *rsc, Script *s, int slot, int sig) in ScriptKernelID()
132 ScriptInvokeID::ScriptInvokeID(Context *rsc, Script *s, int slot) in ScriptInvokeID()
140 ScriptFieldID::ScriptFieldID(Context *rsc, Script *s, int slot) : in ScriptFieldID()
152 RsScriptKernelID rsi_ScriptKernelIDCreate(Context *rsc, RsScript vs, int slot, int sig) { in rsi_ScriptKernelIDCreate()
158 RsScriptInvokeID rsi_ScriptInvokeIDCreate(Context *rsc, RsScript vs, uint32_t slot) { in rsi_ScriptInvokeIDCreate()
164 RsScriptFieldID rsi_ScriptFieldIDCreate(Context *rsc, RsScript vs, int slot) { in rsi_ScriptFieldIDCreate()
170 void rsi_ScriptBindAllocation(Context * rsc, RsScript vs, RsAllocation va, uint32_t slot) { in rsi_ScriptBindAllocation()
176 void rsi_ScriptSetTimeZone(Context * rsc, RsScript vs, const char * timeZone, size_t length) { in rsi_ScriptSetTimeZone()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_foreach.cpp99 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructParams() argument
100 slangAssert(Context && FD); in validateAndConstructParams()
105 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) { in validateAndConstructParams()
108 Context->ReportError(FD->getLocation(), in validateAndConstructParams()
121 valid |= validateAndConstructKernelParams(Context, FD); in validateAndConstructParams()
123 valid |= validateAndConstructOldStyleParams(Context, FD); in validateAndConstructParams()
126 valid |= setSignatureMetadata(Context, FD); in validateAndConstructParams()
131 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructOldStyleParams() argument
132 slangAssert(Context && FD); in validateAndConstructOldStyleParams()
139 clang::ASTContext &C = Context->getASTContext(); in validateAndConstructOldStyleParams()
[all …]
Dslang_rs_export_type.cpp171 slang::RSContext *Context,
176 static void ReportTypeError(slang::RSContext *Context, in ReportTypeError() argument
185 Context->ReportError(TopLevelRecord->getLocation(), Message) in ReportTypeError()
188 Context->ReportError(ND->getLocation(), Message) << ND->getName() in ReportTypeError()
198 slang::RSContext *Context, in ConstantArrayTypeExportableHelper() argument
204 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
214 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
220 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
226 if (TypeExportableHelper(ElementType, SPS, Context, VD, in ConstantArrayTypeExportableHelper()
246 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/base/core/java/android/app/
DSystemServiceRegistry.java35 import android.content.Context;
141 registerService(Context.ACCESSIBILITY_SERVICE, AccessibilityManager.class, in registerService()
148 registerService(Context.CAPTIONING_SERVICE, CaptioningManager.class, in registerService()
155 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService()
159 IBinder b = ServiceManager.getService(Context.ACCOUNT_SERVICE); in registerService()
164 registerService(Context.ACTIVITY_SERVICE, ActivityManager.class, in registerService()
171 registerService(Context.ALARM_SERVICE, AlarmManager.class, in registerService()
175 IBinder b = ServiceManager.getService(Context.ALARM_SERVICE); in registerService()
180 registerService(Context.AUDIO_SERVICE, AudioManager.class, in registerService()
187 registerService(Context.MEDIA_ROUTER_SERVICE, MediaRouter.class, in registerService()
[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.h82 uint32_t rsdAllocationGrallocBits(const android::renderscript::Context *rsc,
84 bool rsdAllocationInit(const android::renderscript::Context *rsc,
87 bool rsdAllocationAdapterInit(const android::renderscript::Context *rsc,
89 void rsdAllocationDestroy(const android::renderscript::Context *rsc,
92 void rsdAllocationResize(const android::renderscript::Context *rsc,
95 void rsdAllocationSyncAll(const android::renderscript::Context *rsc,
98 void rsdAllocationMarkDirty(const android::renderscript::Context *rsc,
100 void rsdAllocationSetSurface(const android::renderscript::Context *rsc,
102 void rsdAllocationIoSend(const android::renderscript::Context *rsc,
104 void rsdAllocationIoReceive(const android::renderscript::Context *rsc,
[all …]
DrsdGL.h74 bool rsdGLSetInternalSurface(const android::renderscript::Context *rsc,
76 bool rsdGLInit(const android::renderscript::Context *rsc);
77 void rsdGLShutdown(const android::renderscript::Context *rsc);
78 bool rsdGLSetSurface(const android::renderscript::Context *rsc,
80 void rsdGLSwap(const android::renderscript::Context *rsc);
81 void rsdGLCheckError(const android::renderscript::Context *rsc,
83 void rsdGLSetPriority(const android::renderscript::Context *rsc,
85 void rsdGLClearColor(const android::renderscript::Context *rsc,
87 void rsdGLClearDepth(const android::renderscript::Context *rsc, float v);
88 void rsdGLFinish(const android::renderscript::Context *rsc);
[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_FOREGROUND_SERVICE_WHILE_AWAKE) != 0) { in toString()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java20 import android.content.Context;
60 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean()
64 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean()
68 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt()
72 public static void putInt(Context context, @Key String key, int value) { in putInt()
76 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong()
80 public static void putLong(Context context, @Key String key, long value) { in putLong()
84 public static String getString(Context context, @Key String key, String defaultValue) { in getString()
88 public static void putString(Context context, @Key String key, String value) { in putString()
92 public static Map<String, ?> getAll(Context context) { in getAll()
[all …]
/frameworks/base/core/java/com/android/internal/logging/
DMetricsLogger.java19 import android.content.Context;
33 public static void visible(Context context, int category) throws IllegalArgumentException { in visible()
40 public static void hidden(Context context, int category) throws IllegalArgumentException { in hidden()
47 public static void visibility(Context context, int category, boolean visibile) in visibility()
56 public static void visibility(Context context, int category, int vis) in visibility()
61 public static void action(Context context, int category) { in action()
65 public static void action(Context context, int category, int value) { in action()
69 public static void action(Context context, int category, boolean value) { in action()
73 public static void action(Context context, int category, String pkg) { in action()
81 public static void count(Context context, String name, int value) { in count()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java26 import android.content.Context;
292 public DevicePolicyManager getManager(Context context) { in getManager()
297 Context.DEVICE_POLICY_SERVICE); in getManager()
306 public ComponentName getWho(Context context) { in getWho()
327 public void onEnabled(Context context, Intent intent) { in onEnabled()
341 public CharSequence onDisableRequested(Context context, Intent intent) { in onDisableRequested()
353 public void onDisabled(Context context, Intent intent) { in onDisabled()
365 public void onPasswordChanged(Context context, Intent intent) { in onPasswordChanged()
376 public void onPasswordFailed(Context context, Intent intent) { in onPasswordFailed()
387 public void onPasswordSucceeded(Context context, Intent intent) { in onPasswordSucceeded()
[all …]
/frameworks/base/packages/SettingsLib/src/com/android/settingslib/bluetooth/
DLocalBluetoothManager.java19 import android.content.Context;
34 private final Context mContext;
37 private Context mForegroundActivity;
49 public static synchronized LocalBluetoothManager getInstance(Context context, in getInstance()
57 Context appContext = context.getApplicationContext(); in getInstance()
67 private LocalBluetoothManager(LocalBluetoothAdapter adapter, Context context) { in LocalBluetoothManager()
82 public Context getContext() { in getContext()
86 public Context getForegroundActivity() { in getForegroundActivity()
94 public synchronized void setForegroundActivity(Context context) { in setForegroundActivity()
119 void onBluetoothManagerInitialized(Context appContext, in onBluetoothManagerInitialized()
/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 …]
/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()

12345678910>>...114