/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 | 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 | 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 | 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/packages/SystemUI/src/com/android/systemui/dagger/ |
D | FrameworkServicesModule.java | 35 import android.content.Context; 96 static AccessibilityManager provideAccessibilityManager(Context context) { in provideAccessibilityManager() 102 static ActivityManager provideActivityManager(Context context) { in provideActivityManager() 108 static AlarmManager provideAlarmManager(Context context) { in provideAlarmManager() 114 static AudioManager provideAudioManager(Context context) { in provideAudioManager() 120 static ColorDisplayManager provideColorDisplayManager(Context context) { in provideColorDisplayManager() 126 static ConnectivityManager provideConnectivityManagager(Context context) { in provideConnectivityManagager() 132 static ContentResolver provideContentResolver(Context context) { in provideContentResolver() 138 static DevicePolicyManager provideDevicePolicyManager(Context context) { in provideDevicePolicyManager() 150 static int provideDisplayId(Context context) { in provideDisplayId() [all …]
|
/frameworks/base/services/core/java/com/android/server/am/ |
D | ConnectionRecord.java | 23 import android.content.Context; 54 Context.BIND_AUTO_CREATE, 55 Context.BIND_DEBUG_UNBIND, 56 Context.BIND_NOT_FOREGROUND, 57 Context.BIND_IMPORTANT_BACKGROUND, 58 Context.BIND_ABOVE_CLIENT, 59 Context.BIND_ALLOW_OOM_MANAGEMENT, 60 Context.BIND_WAIVE_PRIORITY, 61 Context.BIND_IMPORTANT, 62 Context.BIND_ADJUST_WITH_ACTIVITY, [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 | 57 import android.content.Context; 270 registerService(Context.ACCESSIBILITY_SERVICE, AccessibilityManager.class, in registerService() 277 registerService(Context.CAPTIONING_SERVICE, CaptioningManager.class, in registerService() 284 registerService(Context.ACCOUNT_SERVICE, AccountManager.class, in registerService() 288 IBinder b = ServiceManager.getServiceOrThrow(Context.ACCOUNT_SERVICE); in registerService() 293 registerService(Context.ACTIVITY_SERVICE, ActivityManager.class, in registerService() 300 registerService(Context.ACTIVITY_TASK_SERVICE, ActivityTaskManager.class, in registerService() 307 registerService(Context.URI_GRANTS_SERVICE, UriGrantsManager.class, in registerService() 315 registerService(Context.ALARM_SERVICE, AlarmManager.class, in registerService() 319 IBinder b = ServiceManager.getServiceOrThrow(Context.ALARM_SERVICE); in registerService() [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 …]
|
D | rsdGL.h | 74 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/base/core/tests/coretests/src/android/content/ |
D | ContextTest.java | 57 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/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() 89 if (Context.DISPLAY_SERVICE.equals(name)) { in getSystemService() 99 Context context = mContext.get(); in getResources() [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/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()
|
/frameworks/opt/net/ims/tests/src/com/android/ims/ |
D | ContextFixture.java | 29 import android.content.Context; 52 private final Context mContext = spy(new FakeContext()); 95 case Context.TELEPHONY_SERVICE: in getSystemService() 97 case Context.CARRIER_CONFIG_SERVICE: in getSystemService() 99 case Context.CONNECTIVITY_SERVICE: in getSystemService() 101 case Context.TELEPHONY_SUBSCRIPTION_SERVICE: in getSystemService() 103 case Context.TELEPHONY_IMS_SERVICE: in getSystemService() 113 return Context.TELEPHONY_SUBSCRIPTION_SERVICE; in getSystemServiceName() 115 return Context.TELECOM_SERVICE; in getSystemServiceName() 117 return Context.CONNECTIVITY_SERVICE; in getSystemServiceName() [all …]
|
/frameworks/base/packages/SystemUI/src/com/android/systemui/ |
D | Prefs.java | 20 import android.content.Context; 120 public static boolean getBoolean(Context context, @Key String key, boolean defaultValue) { in getBoolean() 124 public static void putBoolean(Context context, @Key String key, boolean value) { in putBoolean() 128 public static int getInt(Context context, @Key String key, int defaultValue) { in getInt() 132 public static void putInt(Context context, @Key String key, int value) { in putInt() 136 public static long getLong(Context context, @Key String key, long defaultValue) { in getLong() 140 public static void putLong(Context context, @Key String key, long value) { in putLong() 144 public static String getString(Context context, @Key String key, String defaultValue) { in getString() 148 public static void putString(Context context, @Key String key, String value) { in putString() 152 public static void putStringSet(Context context, @Key String key, Set<String> value) { in putStringSet() [all …]
|
/frameworks/base/telephony/common/com/android/internal/telephony/ |
D | TelephonyPermissions.java | 23 import android.content.Context; 92 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneState() 100 Context context, int subId, String callingPackage, @Nullable String callingFeatureId, in checkCallingOrSelfReadPhoneStateNoThrow() 133 Context context, int subId, int pid, int uid, String callingPackage, in checkReadPhoneState() 158 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneState() 167 public static boolean checkCarrierPrivilegeForSubId(Context context, int subId) { in checkCarrierPrivilegeForSubId() 190 public static boolean checkReadPhoneStateOnAnyActiveSub(Context context, int pid, int uid, in checkReadPhoneStateOnAnyActiveSub() 211 AppOpsManager appOps = (AppOpsManager) context.getSystemService(Context.APP_OPS_SERVICE); in checkReadPhoneStateOnAnyActiveSub() 233 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, in checkCallingOrSelfReadDeviceIdentifiers() 259 public static boolean checkCallingOrSelfReadDeviceIdentifiers(Context context, int subId, in checkCallingOrSelfReadDeviceIdentifiers() [all …]
|