/frameworks/rs/ |
D | rsRuntime.h | 30 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 …]
|
D | rs_hal.h | 76 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 …]
|
D | rsContext.cpp | 45 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 …]
|
D | rsProgramVertex.h | 30 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 …]
|
D | rsScriptC_LibGL.cpp | 45 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 …]
|
D | rsAllocation.h | 111 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 …]
|
D | rsFBOCache.h | 33 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);
|
D | rsScriptC.h | 34 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 *);
|
D | rsScriptC_Lib.cpp | 78 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/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 19 import static android.content.Context.DEVICE_ID_DEFAULT; 77 @DisabledOnRavenwood(blockedBy = Context.class) 79 final Context systemContext = in testDisplayIdForSystemContext() 86 @DisabledOnRavenwood(blockedBy = Context.class) 88 final Context systemUiContext = in testDisplayIdForSystemUiContext() 95 @DisabledOnRavenwood(blockedBy = Context.class) 97 final Context testContext = in testDisplayIdForTestContext() 104 @DisabledOnRavenwood(blockedBy = Context.class) 106 final Context testContext = in testDisplayIdForDefaultDisplayContext() 109 final Context defaultDisplayContext = in testDisplayIdForDefaultDisplayContext() [all …]
|
/frameworks/layoutlib/bridge/src/com/android/layoutlib/bridge/android/ |
D | ApplicationContext.java | 24 import android.content.Context; 61 public class ApplicationContext extends Context { 62 private final WeakReference<Context> mContextRef; 64 public ApplicationContext(Context context) { in ApplicationContext() 70 Context context = mContextRef.get(); in getAssets() 79 Context context = mContextRef.get(); in getResources() 88 Context context = mContextRef.get(); in getPackageManager() 97 Context context = mContextRef.get(); in getContentResolver() 106 Context context = mContextRef.get(); in getMainLooper() 114 public Context getApplicationContext() { in getApplicationContext() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ConnectionRecord.java | 26 import android.content.Context; 64 Context.BIND_AUTO_CREATE, 65 Context.BIND_DEBUG_UNBIND, 66 Context.BIND_NOT_FOREGROUND, 67 Context.BIND_IMPORTANT_BACKGROUND, 68 Context.BIND_ABOVE_CLIENT, 69 Context.BIND_ALLOW_OOM_MANAGEMENT, 70 Context.BIND_WAIVE_PRIORITY, 71 Context.BIND_IMPORTANT, 72 Context.BIND_ADJUST_WITH_ACTIVITY, [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/dagger/ |
D | FrameworkServicesModule.java | 47 import android.content.Context; 143 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager() 149 static ActivityManager provideActivityManager(Context context) { in provideActivityManager() 155 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager() 161 static Optional<SystemUpdateManager> provideSystemUpdateManager(Context context) { in provideSystemUpdateManager() 168 static AmbientContextManager provideAmbientContextManager(Context context) { in provideAmbientContextManager() 174 public AmbientDisplayConfiguration provideAmbientDisplayConfiguration(Context context) { in provideAmbientDisplayConfiguration() 180 static AppOpsManager provideAppOpsManager(Context context) { in provideAppOpsManager() 186 static AudioManager provideAudioManager(Context context) { in provideAudioManager() 192 static CaptioningManager provideCaptioningManager(Context context) { in provideCaptioningManager() [all …]
|
/frameworks/compile/slang/ |
D | slang_rs_export_foreach.cpp | 55 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 …]
|
D | slang_rs_export_type.cpp | 183 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 …]
|
D | slang_rs_export_var.cpp | 29 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/core/java/android/app/ |
D | SystemServiceRegistry.java | 73 import android.content.Context; 330 registerService(Context.ACCESSIBILITY_SERVICE, AccessibilityManager.class, in registerService() 337 registerService(Context.CAPTIONING_SERVICE, CaptioningManager.class, in registerService() 344 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService() 348 IBinder b = ServiceManager.getServiceOrThrow(Context.ACCOUNT_SERVICE); in registerService() 353 registerService(Context.ACTIVITY_SERVICE, ActivityManager.class, in registerService() 360 registerService(Context.ACTIVITY_TASK_SERVICE, ActivityTaskManager.class, in registerService() 367 registerService(Context.URI_GRANTS_SERVICE, UriGrantsManager.class, in registerService() 375 registerService(Context.ALARM_SERVICE, AlarmManager.class, in registerService() 379 IBinder b = ServiceManager.getServiceOrThrow(Context.ALARM_SERVICE); in registerService() [all …]
|
/frameworks/base/packages/SettingsLib/SpaPrivileged/src/com/android/settingslib/spaprivileged/framework/common/ |
D | Contexts.kt | 25 import android.content.Context 33 val Context.activityManager get() = getSystemService(ActivityManager::class.java)!! constant 36 val Context.alarmManager get() = getSystemService(AlarmManager::class.java)!! constant 39 val Context.appHibernationManager get() = getSystemService(AppHibernationManager::class.java)!! constant 42 val Context.appOpsManager get() = getSystemService(AppOpsManager::class.java)!! constant 45 val Context.crossProfileApps get() = getSystemService(CrossProfileApps::class.java)!! constant 48 val Context.devicePolicyManager get() = getSystemService(DevicePolicyManager::class.java)!! constant 51 val Context.domainVerificationManager constant 55 val Context.permissionControllerManager constant 59 val Context.storageStatsManager get() = getSystemService(StorageStatsManager::class.java)!! constant [all …]
|
/frameworks/rs/driver/ |
D | rsdBcc.h | 23 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 …]
|
D | rsdAllocation.h | 80 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 …]
|
/frameworks/base/core/java/android/hardware/input/ |
D | InputSettings.java | 36 import android.content.Context; 107 public static int getPointerSpeed(Context context) { in getPointerSpeed() 125 public static void setPointerSpeed(Context context, int speed) { in setPointerSpeed() 149 public static float getMaximumObscuringOpacityForTouch(Context context) { in getMaximumObscuringOpacityForTouch() 182 @NonNull Context context, in setMaximumObscuringOpacityForTouch() 196 public static boolean isStylusEverUsed(@NonNull Context context) { in isStylusEverUsed() 207 public static void setStylusEverUsed(@NonNull Context context, boolean stylusEverUsed) { in setStylusEverUsed() 224 public static int getTouchpadPointerSpeed(@NonNull Context context) { in getTouchpadPointerSpeed() 242 public static void setTouchpadPointerSpeed(@NonNull Context context, int speed) { in setTouchpadPointerSpeed() 262 public static boolean useTouchpadNaturalScrolling(@NonNull Context context) { in useTouchpadNaturalScrolling() [all …]
|
/frameworks/base/services/core/java/com/android/server/biometrics/sensors/ |
D | BiometricUtils.java | 19 import android.content.Context; 29 List<T> getBiometricsForUser(Context context, int userId); in getBiometricsForUser() 30 void addBiometricForUser(Context context, int userId, T identifier); in addBiometricForUser() 31 void removeBiometricForUser(Context context, int userId, int biometricId); in removeBiometricForUser() 32 void renameBiometricForUser(Context context, int userId, int biometricId, CharSequence name); in renameBiometricForUser() 33 CharSequence getUniqueName(Context context, int userId); in getUniqueName() 34 void setInvalidationInProgress(Context context, int userId, boolean inProgress); in setInvalidationInProgress() 35 boolean isInvalidationInProgress(Context context, int userId); in isInvalidationInProgress()
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 25 import android.content.Context; 94 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState() 102 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow() 118 public static boolean checkInternetPermissionNoThrow(Context context, String message) { in checkInternetPermissionNoThrow() 136 Context context, String message) { in checkCallingOrSelfReadNonDangerousPhoneStateNoThrow() 170 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() 195 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState() 204 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId() 227 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub() 248 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneStateOnAnyActiveSub() [all …]
|
/frameworks/base/core/java/com/android/internal/policy/ |
D | DecorContext.java | 21 import android.content.Context; 46 private WeakReference<Context> mContext; 49 public DecorContext(Context baseContext, PhoneWindow phoneWindow) { in DecorContext() 54 final Context displayContext; in DecorContext() 68 final Context context = phoneWindow.getContext(); in setPhoneWindow() 75 if (Context.WINDOW_SERVICE.equals(name)) { in getSystemService() 78 final Context context = mContext.get(); in getSystemService() 79 if (Context.CONTENT_CAPTURE_MANAGER_SERVICE.equals(name)) { in getSystemService() 92 Context context = mContext.get(); in getResources() 109 Context context = mContext.get(); in getAutofillOptions() [all …]
|
/frameworks/base/errorprone/tests/res/android/app/ |
D | PendingIntent.java | 19 import android.content.Context; 30 public static PendingIntent getActivity(Context context, int requestCode, in getActivity() 35 public static PendingIntent getActivityAsUser(Context context, int requestCode, in getActivityAsUser() 40 public static PendingIntent getActivities(Context context, int requestCode, in getActivities() 45 public static PendingIntent getActivitiesAsUser(Context context, int requestCode, in getActivitiesAsUser() 50 public static PendingIntent getBroadcast(Context context, int requestCode, in getBroadcast() 55 public static PendingIntent getBroadcastAsUser(Context context, int requestCode, in getBroadcastAsUser() 60 public static PendingIntent getService(Context context, int requestCode, in getService() 65 public static PendingIntent getForegroundService(Context context, int requestCode, in getForegroundService()
|