Home
last modified time | relevance | path

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

12345678910>>...139

/frameworks/rs/
DrsRuntime.h30 void rsrAllocationSyncAll(Context *, Script *, Allocation *);
33 void rsrBindTexture(Context *, ProgramFragment *, uint32_t slot, Allocation *);
34 void rsrBindConstant(Context *, ProgramFragment *, uint32_t slot, Allocation *);
35 void rsrBindConstant(Context *, ProgramVertex*, uint32_t slot, Allocation *);
36 void rsrBindSampler(Context *, ProgramFragment *, uint32_t slot, Sampler *);
37 void rsrBindProgramStore(Context *, ProgramStore *);
38 void rsrBindProgramFragment(Context *, ProgramFragment *);
39 void rsrBindProgramVertex(Context *, ProgramVertex *);
40 void rsrBindProgramRaster(Context *, ProgramRaster *);
41 void rsrBindFrameBufferObjectColorTarget(Context *, Allocation *, uint32_t slot);
[all …]
Drs_hal.h76 class Context; variable
142 int (*initGraphics)(const Context *);
143 void (*shutdownGraphics)(const Context *);
144 bool (*setSurface)(const Context *, uint32_t w, uint32_t h, RsNativeWindow);
145 void (*swap)(const Context *);
147 void (*shutdownDriver)(Context *);
148 void (*setPriority)(const Context *, int32_t priority);
154 bool (*init)(const Context *rsc, ScriptC *s,
160 bool (*initIntrinsic)(const Context *rsc, Script *s,
164 void (*invokeFunction)(const Context *rsc, Script *s,
[all …]
DrsContext.cpp45 pthread_mutex_t Context::gInitMutex = PTHREAD_MUTEX_INITIALIZER;
46 pthread_mutex_t Context::gMessageMutex = PTHREAD_MUTEX_INITIALIZER;
47 pthread_mutex_t Context::gLibMutex = PTHREAD_MUTEX_INITIALIZER;
49 bool Context::initGLThread() { in initGLThread()
64 void Context::deinitEGL() { in deinitEGL()
70 Context::PushState::PushState(Context *con) { in PushState()
83 Context::PushState::~PushState() { in ~PushState()
96 uint32_t Context::runScript(Script *s) { in runScript()
103 uint32_t Context::runRootScript() { in runRootScript()
115 uint64_t Context::getTime() const { in getTime()
[all …]
DrsScriptC_LibGL.cpp45 void rsrBindTexture(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindTexture()
51 void rsrBindConstant(Context *rsc, ProgramFragment *pf, uint32_t slot, Allocation *a) { in rsrBindConstant()
57 void rsrBindConstant(Context *rsc, ProgramVertex *pv, uint32_t slot, Allocation *a) { in rsrBindConstant()
63 void rsrBindSampler(Context *rsc, ProgramFragment *pf, uint32_t slot, Sampler *s) { in rsrBindSampler()
69 void rsrBindProgramStore(Context *rsc, ProgramStore *ps) { in rsrBindProgramStore()
74 void rsrBindProgramFragment(Context *rsc, ProgramFragment *pf) { in rsrBindProgramFragment()
79 void rsrBindProgramVertex(Context *rsc, ProgramVertex *pv) { in rsrBindProgramVertex()
84 void rsrBindProgramRaster(Context *rsc, ProgramRaster *pr) { in rsrBindProgramRaster()
89 void rsrBindFrameBufferObjectColorTarget(Context *rsc, Allocation *a, uint32_t slot) { in rsrBindFrameBufferObjectColorTarget()
95 void rsrBindFrameBufferObjectDepthTarget(Context *rsc, Allocation *a) { in rsrBindFrameBufferObjectDepthTarget()
[all …]
DrsAllocation.h111 static Allocation * createAllocation(Context *rsc, const Type *, uint32_t usages,
114 static Allocation * createAllocationStrided(Context *rsc, const Type *, uint32_t usages,
117 static Allocation * createAdapter(Context *rsc, const Allocation *alloc, const Type *type);
125 void syncAll(Context *rsc, RsAllocationUsageType src);
127 …void copyRange1D(Context *rsc, const Allocation *src, int32_t srcOff, int32_t destOff, int32_t len…
129 void resize1D(Context *rsc, uint32_t dimX);
130 void resize2D(Context *rsc, uint32_t dimX, uint32_t dimY);
132 …void data(Context *rsc, uint32_t xoff, uint32_t lod, uint32_t count, const void *data, size_t size…
133 … void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t lod, RsAllocationCubemapFace face,
135 void data(Context *rsc, uint32_t xoff, uint32_t yoff, uint32_t zoff, uint32_t lod,
[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 …]
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.h34 explicit ScriptC(Context *);
37 void Invoke(Context *rsc, uint32_t slot, const void *data, size_t len) override;
39 virtual uint32_t run(Context *);
41 void runForEach(Context *rsc,
50 void runReduce(Context *rsc, uint32_t slot,
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 *);
DrsScriptC_Lib.cpp78 time_t rsrTime(Context *rsc, time_t *timer) { in rsrTime()
82 tm* rsrLocalTime(Context *rsc, tm *local, time_t *timer) { in rsrLocalTime()
96 int64_t rsrUptimeMillis(Context *rsc) { in rsrUptimeMillis()
100 int64_t rsrUptimeNanos(Context *rsc) { in rsrUptimeNanos()
104 float rsrGetDt(Context *rsc, const Script *sc) { in rsrGetDt()
114 static void SetObjectRef(const Context *rsc, const ObjectBase *dst, const ObjectBase *src) { in SetObjectRef()
127 void rsrClearObject(const Context *rsc, void *dst) { in rsrClearObject()
151 void rsrClearObject(const Context *rsc, rs_object_base *dst) { in rsrClearObject()
156 void rsrSetObject(const Context *rsc, void *dst, ObjectBase *src) { in rsrSetObject()
170 void rsrSetObject(const Context *rsc, rs_object_base *dst, const ObjectBase *src) { in rsrSetObject()
[all …]
/frameworks/compile/slang/
Dslang_rs_export_foreach.cpp55 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructParams() argument
56 slangAssert(Context && FD); in validateAndConstructParams()
61 if (Context->getTargetAPI() < SLANG_JB_TARGET_API) { in validateAndConstructParams()
64 Context->ReportError(FD->getLocation(), in validateAndConstructParams()
77 valid &= validateAndConstructKernelParams(Context, FD); in validateAndConstructParams()
79 valid &= validateAndConstructOldStyleParams(Context, FD); in validateAndConstructParams()
82 valid &= setSignatureMetadata(Context, FD); in validateAndConstructParams()
87 RSContext *Context, const clang::FunctionDecl *FD) { in validateAndConstructOldStyleParams() argument
88 slangAssert(Context && FD); in validateAndConstructOldStyleParams()
95 clang::ASTContext &C = Context->getASTContext(); in validateAndConstructOldStyleParams()
[all …]
Dslang_rs_export_type.cpp183 slang::RSContext *Context,
189 static void ReportTypeError(slang::RSContext *Context, in ReportTypeError() argument
198 Context->ReportError(TopLevelRecord->getLocation(), Message) in ReportTypeError()
201 Context->ReportError(ND->getLocation(), Message) << ND->getName() in ReportTypeError()
211 slang::RSContext *Context, in ConstantArrayTypeExportableHelper() argument
218 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
228 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
234 ReportTypeError(Context, VD, TopLevelRecord, in ConstantArrayTypeExportableHelper()
240 if (TypeExportableHelper(ElementType, SPS, Context, VD, in ConstantArrayTypeExportableHelper()
260 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, VD->getLocation()), 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/services/core/java/com/android/server/am/
DConnectionRecord.java23 import android.content.Context;
53 Context.BIND_AUTO_CREATE,
54 Context.BIND_DEBUG_UNBIND,
55 Context.BIND_NOT_FOREGROUND,
56 Context.BIND_IMPORTANT_BACKGROUND,
57 Context.BIND_ABOVE_CLIENT,
58 Context.BIND_ALLOW_OOM_MANAGEMENT,
59 Context.BIND_WAIVE_PRIORITY,
60 Context.BIND_IMPORTANT,
61 Context.BIND_ADJUST_WITH_ACTIVITY,
[all …]
/frameworks/base/core/java/android/app/
DSystemServiceRegistry.java52 import android.content.Context;
246 registerService(Context.ACCESSIBILITY_SERVICE, AccessibilityManager.class, in registerService()
253 registerService(Context.CAPTIONING_SERVICE, CaptioningManager.class, in registerService()
260 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService()
264 IBinder b = ServiceManager.getServiceOrThrow(Context.ACCOUNT_SERVICE); in registerService()
269 registerService(Context.ACTIVITY_SERVICE, ActivityManager.class, in registerService()
276 registerService(Context.ACTIVITY_TASK_SERVICE, ActivityTaskManager.class, in registerService()
284 registerService(Context.URI_GRANTS_SERVICE, UriGrantsManager.class, in registerService()
292 registerService(Context.ALARM_SERVICE, AlarmManager.class, in registerService()
296 IBinder b = ServiceManager.getServiceOrThrow(Context.ALARM_SERVICE); in registerService()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/
DSystemServicesModule.java34 import android.content.Context;
86 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager()
92 static ActivityManager provideActivityManager(Context context) { in provideActivityManager()
98 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager()
104 static AudioManager provideAudioManager(Context context) { in provideAudioManager()
110 static ConnectivityManager provideConnectivityManagager(Context context) { in provideConnectivityManagager()
116 static ContentResolver provideContentResolver(Context context) { in provideContentResolver()
122 static DevicePolicyManager provideDevicePolicyManager(Context context) { in provideDevicePolicyManager()
128 static int provideDisplayId(Context context) { in provideDisplayId()
134 static DisplayManager provideDisplayManager(Context context) { in provideDisplayManager()
[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 rsdScriptInvokeReduce(const android::renderscript::Context *rsc,
54 void rsdScriptInvokeForEachMulti(const android::renderscript::Context *rsc,
64 int rsdScriptInvokeRoot(const android::renderscript::Context *dc,
66 void rsdScriptInvokeInit(const android::renderscript::Context *dc,
68 void rsdScriptInvokeFreeChildren(const android::renderscript::Context *dc,
71 void rsdScriptSetGlobalVar(const android::renderscript::Context *,
[all …]
DrsdAllocation.h80 uint32_t rsdAllocationGrallocBits(const android::renderscript::Context *rsc,
82 bool rsdAllocationInit(const android::renderscript::Context *rsc,
86 bool rsdAllocationInitStrided(const android::renderscript::Context *rsc,
90 bool rsdAllocationAdapterInit(const android::renderscript::Context *rsc,
92 void rsdAllocationDestroy(const android::renderscript::Context *rsc,
95 void rsdAllocationResize(const android::renderscript::Context *rsc,
98 void rsdAllocationSyncAll(const android::renderscript::Context *rsc,
101 void rsdAllocationMarkDirty(const android::renderscript::Context *rsc,
103 void rsdAllocationSetSurface(const android::renderscript::Context *rsc,
105 void rsdAllocationIoSend(const android::renderscript::Context *rsc,
[all …]
DrsdGL.h74 bool rsdGLSetInternalSurface(const android::renderscript::Context *rsc,
76 int32_t 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/opt/net/wifi/service/java/com/android/server/wifi/
DFrameworkFacade.java28 import android.content.Context;
53 private ContentResolver getContentResolver(Context context) { in getContentResolver()
60 private CarrierConfigManager getCarrierConfigManager(Context context) { in getCarrierConfigManager()
63 (CarrierConfigManager) context.getSystemService(Context.CARRIER_CONFIG_SERVICE); in getCarrierConfigManager()
68 private ActivityManager getActivityManager(Context context) { in getActivityManager()
71 (ActivityManager) context.getSystemService(Context.ACTIVITY_SERVICE); in getActivityManager()
90 public boolean setIntegerSetting(Context context, String name, int def) { in setIntegerSetting()
94 public int getIntegerSetting(Context context, String name, int def) { in getIntegerSetting()
98 public long getLongSetting(Context context, String name, long def) { in getLongSetting()
102 public boolean setStringSetting(Context context, String name, String def) { in setStringSetting()
[all …]
/frameworks/base/core/java/com/android/internal/policy/
DDecorContext.java21 import android.content.Context;
44 private WeakReference<Context> mContext;
47 public DecorContext(Context baseContext, PhoneWindow phoneWindow) { in DecorContext()
50 final Context displayContext = baseContext.createDisplayContext( in DecorContext()
58 final Context context = phoneWindow.getContext(); in setPhoneWindow()
65 if (Context.WINDOW_SERVICE.equals(name)) { in getSystemService()
68 final Context context = mContext.get(); in getSystemService()
69 if (Context.CONTENT_CAPTURE_MANAGER_SERVICE.equals(name)) { in getSystemService()
79 if (Context.DISPLAY_SERVICE.equals(name)) { in getSystemService()
89 Context context = mContext.get(); in getResources()
[all …]
/frameworks/base/core/tests/coretests/src/android/content/
DContextTest.java57 final Context systemContext = in testDisplayIdForSystemContext()
65 final Context systemUiContext = in testDisplayIdForSystemUiContext()
73 final Context testContext = in testDisplayIdForTestContext()
81 final Context testContext = in testDisplayIdForDefaultDisplayContext()
84 final Context defaultDisplayContext = in testDisplayIdForDefaultDisplayContext()
93 final Context testContext = in testStartActivityAsUserNullIntentNullUser()
100 final Context testContext = in testStartActivityAsUserNullIntentNonNullUser()
107 final Context testContext = in testStartActivityAsUserNonNullIntentNullUser()
114 final Context testContext = in testStartActivityAsUserNonNullIntentNonNullUser()
121 final Context appContext = ApplicationProvider.getApplicationContext(); in testIsUiContext_appContext_returnsFalse()
[all …]
/frameworks/base/core/java/android/app/admin/
DDeviceAdminReceiver.java30 import android.content.Context;
519 public @NonNull DevicePolicyManager getManager(@NonNull Context context) { in getManager()
524 Context.DEVICE_POLICY_SERVICE); in getManager()
533 public @NonNull ComponentName getWho(@NonNull Context context) { in getWho()
554 public void onEnabled(@NonNull Context context, @NonNull Intent intent) { in onEnabled()
568 public @Nullable CharSequence onDisableRequested(@NonNull Context context, in onDisableRequested()
581 public void onDisabled(@NonNull Context context, @NonNull Intent intent) { in onDisabled()
596 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent) { in onPasswordChanged()
610 public void onPasswordChanged(@NonNull Context context, @NonNull Intent intent, in onPasswordChanged()
627 public void onPasswordFailed(@NonNull Context context, @NonNull Intent intent) { in onPasswordFailed()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/
DPrefs.java20 import android.content.Context;
132 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean()
136 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean()
140 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt()
144 public static void putInt(Context context, @Key String key, int value) { in putInt()
148 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong()
152 public static void putLong(Context context, @Key String key, long value) { in putLong()
156 public static String getString(Context context, @Key String key, String defaultValue) { in getString()
160 public static void putString(Context context, @Key String key, String value) { in putString()
164 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet()
[all …]
/frameworks/base/telephony/common/com/android/internal/telephony/
DTelephonyPermissions.java23 import android.content.Context;
91 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState()
99 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow()
131 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState()
156 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState()
165 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId()
188 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub()
209 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneStateOnAnyActiveSub()
231 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, in checkCallingOrSelfReadDeviceIdentifiers()
255 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, int subId, in checkCallingOrSelfReadDeviceIdentifiers()
[all …]
/frameworks/base/tools/aapt2/
DStringPool.h55 class Context {
65 Context() = default;
66 Context(uint32_t p, const android::ConfigDescription& c) : priority(p), config(c) {} in Context() function
67 explicit Context(uint32_t p) : priority(p) {} in Context() function
68 explicit Context(const android::ConfigDescription& c) : priority(kNormalPriority), config(c) { in Context() function
87 const Context& GetContext() const;
112 const Context& GetContext() const;
125 Context context;
145 Context context;
169 Ref MakeRef(const android::StringPiece& str, const Context& context);
[all …]

12345678910>>...139