/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/ |
D | RSTestCore.java | 31 ListActivity mCtx; field in RSTestCore 34 mCtx = ctx; in RSTestCore() 60 unitTests.add(new UT_apitest(this, mRes, mCtx)); in init() 61 unitTests.add(new UT_primitives(this, mRes, mCtx)); in init() 62 unitTests.add(new UT_instance(this, mRes, mCtx)); in init() 63 unitTests.add(new UT_constant(this, mRes, mCtx)); in init() 64 unitTests.add(new UT_vector(this, mRes, mCtx)); in init() 65 unitTests.add(new UT_unsigned(this, mRes, mCtx)); in init() 66 unitTests.add(new UT_array_init(this, mRes, mCtx)); in init() 67 unitTests.add(new UT_array_alloc(this, mRes, mCtx)); in init() [all …]
|
D | UnitTest.java | 28 protected Context mCtx; field in UnitTest 42 mCtx = ctx; in UnitTest()
|
/frameworks/base/tests/net/common/java/android/net/ |
D | NetworkStackTest.java | 54 @Mock Context mCtx; field in NetworkStackTest 63 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_GRANTED); in testCheckNetworkStackPermission() 64 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission() 66 checkNetworkStackPermission(mCtx); in testCheckNetworkStackPermission() 67 checkNetworkStackPermissionOr(mCtx, OTHER_PERMISSION); in testCheckNetworkStackPermission() 69 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission() 70 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission() 72 checkNetworkStackPermission(mCtx); in testCheckNetworkStackPermission() 73 checkNetworkStackPermissionOr(mCtx, OTHER_PERMISSION); in testCheckNetworkStackPermission() 75 when(mCtx.checkCallingOrSelfPermission(any())).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission() [all …]
|
/frameworks/rs/cpu_ref/ |
D | rsCpuIntrinsic.cpp | 35 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeFunction() 40 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeRoot() 46 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in invokeInit() 51 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalVar() 58 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalVarWithElemDims() 63 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalBind() 68 mCtx->getContext()->setError(RS_ERROR_FATAL_DRIVER, in setGlobalObj() 107 RsdCpuScriptImpl * oldTLS = mCtx->setTLS(this); in invokeForEach() 108 mCtx->launchForEach(ains, inLen, aout, sc, &mtls); in invokeForEach() 109 mCtx->setTLS(oldTLS); in invokeForEach()
|
D | rsCpuScript.cpp | 238 mCtx = ctx; in RsdCpuScriptImpl() 307 mCtx->lockMutex(); in init() 314 mCtx->unlockMutex(); in init() 320 if (mCtx->getContext()->getContextType() == RS_CONTEXT_TYPE_DEBUG) { in init() 324 int optLevel = mCtx->getContext()->getOptLevel(); in init() 332 bool emitGlobalInfo = mCtx->getEmbedGlobalInfo(); in init() 333 bool emitGlobalInfoSkipConstant = mCtx->getEmbedGlobalInfoSkipConstant(); in init() 355 mCtx->unlockMutex(); in init() 392 mCtx->unlockMutex(); in init() 399 mCtx->getContext()->getDriverName(), cacheDir, resName, reuse, in init() [all …]
|
D | rsCpuScriptGroup.cpp | 28 mCtx = ctx; in CpuScriptGroupImpl() 209 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() 231 mCtx->launchForEach(ains, inLen, outs[ct], nullptr, &mtls); in execute() 260 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() 276 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute() 284 mCtx->launchForEach(ains, inLen, outs[0], nullptr, &mtls); in execute() 289 RsdCpuScriptImpl *si = (RsdCpuScriptImpl *)mCtx->lookupScript(s); in execute()
|
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/ |
D | RSTestCore.java | 32 Context mCtx; field in RSTestCore 35 mCtx = ctx; in RSTestCore() 67 unitTests.add(new UT_primitives(this, mRes, mCtx)); in init() 68 unitTests.add(new UT_vector(this, mRes, mCtx)); in init() 69 unitTests.add(new UT_rsdebug(this, mRes, mCtx)); in init() 70 unitTests.add(new UT_rstime(this, mRes, mCtx)); in init() 71 unitTests.add(new UT_rstypes(this, mRes, mCtx)); in init() 72 unitTests.add(new UT_alloc(this, mRes, mCtx)); in init() 73 unitTests.add(new UT_refcount(this, mRes, mCtx)); in init() 74 unitTests.add(new UT_foreach(this, mRes, mCtx)); in init() [all …]
|
D | RSTestView.java | 44 private Context mCtx; field in RSTestView 48 mCtx = context; in RSTestView() 61 mRender = new RSTestCore(mCtx); in surfaceChanged()
|
D | UnitTest.java | 28 protected Context mCtx; field in UnitTest 42 mCtx = ctx; in UnitTest()
|
/frameworks/rs/tests/java_api/RsTest_14/src/com/android/rs/test/ |
D | RSTestCore.java | 32 Context mCtx; field in RSTestCore 35 mCtx = ctx; in RSTestCore() 67 unitTests.add(new UT_primitives(this, mRes, mCtx)); in init() 68 unitTests.add(new UT_vector(this, mRes, mCtx)); in init() 69 unitTests.add(new UT_rsdebug(this, mRes, mCtx)); in init() 70 unitTests.add(new UT_rstime(this, mRes, mCtx)); in init() 71 unitTests.add(new UT_rstypes(this, mRes, mCtx)); in init() 72 unitTests.add(new UT_alloc(this, mRes, mCtx)); in init() 73 unitTests.add(new UT_refcount(this, mRes, mCtx)); in init() 74 unitTests.add(new UT_foreach(this, mRes, mCtx)); in init() [all …]
|
D | RSTestView.java | 44 private Context mCtx; field in RSTestView 48 mCtx = context; in RSTestView() 61 mRender = new RSTestCore(mCtx); in surfaceChanged()
|
D | UnitTest.java | 28 protected Context mCtx; field in UnitTest 42 mCtx = ctx; in UnitTest()
|
/frameworks/compile/slang/ |
D | slang_rs_context.cpp | 56 mCtx(Ctx), in RSContext() 175 clang::TranslationUnitDecl *TUDecl = mCtx.getTranslationUnitDecl(); in processExportType() 219 mAllocationType = mCtx.getTypeDeclType(TD); in setAllocationType() 223 mScriptCallType = mCtx.getTypeDeclType(TD); in setScriptCallType() 233 clang::TranslationUnitDecl *TUDecl = mCtx.getTranslationUnitDecl(); in processExports() 358 const clang::QualType VoidPtrType = mCtx.getPointerType(mCtx.VoidTy); in markUsedByReducePragma() 364 mCtx, DC, Loc, Loc, in markUsedByReducePragma() 365 &mCtx.Idents.get(std::string(".rs.reduce_fn.") + FD->getNameAsString()), in markUsedByReducePragma() 367 mCtx.getTrivialTypeSourceInfo(VoidPtrType), in markUsedByReducePragma() 372 clang::DeclRefExpr *const DRE = clang::DeclRefExpr::Create(mCtx, in markUsedByReducePragma() [all …]
|
D | slang_rs_object_ref_count.cpp | 1448 RSObjectRefCount::CreateParameterGuard(mCtx, FD, Param, NewStmts); in HandleParamsAndLocals() 1462 clang::CompoundStmt *NewBody = BuildCompoundStmt(mCtx, NewStmts, Loc); in HandleParamsAndLocals() 1585 clang::IdentifierInfo *II = &mCtx.Idents.get(ss.str()); in VisitCallExpr() 1588 mCtx, // AST context in VisitCallExpr() 1594 mCtx.getTrivialTypeSourceInfo(RetTy), // Type info in VisitCallExpr() 1598 TempVarDecl->markUsed(mCtx); in VisitCallExpr() 1601 mCtx, Decls, sizeof(Decls) / sizeof(*Decls)); in VisitCallExpr() 1602 clang::DeclStmt* DS = new (mCtx) clang::DeclStmt(DGR, Loc, Loc); in VisitCallExpr() 1604 getCurrentScope()->InsertStmt(mCtx, DS); in VisitCallExpr() 1607 mCtx, // AST context in VisitCallExpr() [all …]
|
D | slang_rs_object_ref_count.h | 105 clang::ASTContext &mCtx; variable 158 : mCtx(C), RSInitFD(false), mTempID(0) { in RSObjectRefCount() 163 GetRSRefCountingFunctions(mCtx); in Init()
|
/frameworks/rs/tests/java_api/RsTest_11/src/com/android/rs/test/ |
D | RSTestCore.java | 32 Context mCtx; field in RSTestCore 35 mCtx = ctx; in RSTestCore() 67 unitTests.add(new UT_primitives(this, mRes, mCtx)); in init() 68 unitTests.add(new UT_rsdebug(this, mRes, mCtx)); in init() 69 unitTests.add(new UT_rstime(this, mRes, mCtx)); in init() 70 unitTests.add(new UT_rstypes(this, mRes, mCtx)); in init() 71 unitTests.add(new UT_math(this, mRes, mCtx)); in init() 72 unitTests.add(new UT_fp_mad(this, mRes, mCtx)); in init()
|
D | RSTestView.java | 44 private Context mCtx; field in RSTestView 48 mCtx = context; in RSTestView() 61 mRender = new RSTestCore(mCtx); in surfaceChanged()
|
D | UnitTest.java | 28 protected Context mCtx; field in UnitTest 42 mCtx = ctx; in UnitTest()
|
/frameworks/av/media/libstagefright/codecs/on2/dec/ |
D | SoftVPX.cpp | 53 mCtx(NULL), in SoftVPX() 93 mCtx = new vpx_codec_ctx_t; in initDecoder() 106 (vpx_codec_ctx_t *)mCtx, in initDecoder() 117 vpx_codec_destroy((vpx_codec_ctx_t *)mCtx); in destroyDecoder() 118 delete (vpx_codec_ctx_t *)mCtx; in destroyDecoder() 119 mCtx = NULL; in destroyDecoder() 132 if (vpx_codec_decode((vpx_codec_ctx_t *)mCtx, NULL, 0, NULL, 0)) { in outputBuffers() 144 while ((mImg = vpx_codec_get_frame((vpx_codec_ctx_t *)mCtx, &iter))) { in outputBuffers() 151 mImg = vpx_codec_get_frame((vpx_codec_ctx_t *)mCtx, &iter); in outputBuffers() 303 (vpx_codec_ctx_t *)mCtx, inHeader->pBuffer + inHeader->nOffset, in onQueueFilled()
|
/frameworks/base/tests/net/java/com/android/server/connectivity/ |
D | LingerMonitorTest.java | 76 @Mock Context mCtx; field in LingerMonitorTest 83 when(mCtx.getResources()).thenReturn(mResources); in setUp() 84 when(mCtx.getPackageName()).thenReturn("com.android.server.connectivity"); in setUp() 86 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp() 188 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, LOW_RATE_LIMIT); in testRateLimiting() 214 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, LOW_DAILY_LIMIT, HIGH_RATE_LIMIT); in testDailyLimiting() 357 caps, 50, mCtx, null, null /* config */, mConnService, mNetd, mDnsResolver, mNMS, in nai()
|
/frameworks/av/media/mtp/ |
D | MtpFfsHandle.cpp | 283 memset(&mCtx, 0, sizeof(mCtx)); in start() 284 if (io_setup(AIO_BUFS_MAX, &mCtx) < 0) { in start() 299 io_destroy(mCtx); in close() 335 … int this_events = TEMP_FAILURE_RETRY(io_getevents(mCtx, 0, AIO_BUFS_MAX, events, &ZERO_TIMEOUT)); in waitEvents() 384 if (io_cancel(mCtx, iocb[j], nullptr) != -1 || errno != EINPROGRESS) { in cancelEvents() 394 int evs = TEMP_FAILURE_RETRY(io_getevents(mCtx, num_events, AIO_BUFS_MAX, events, nullptr)); in cancelEvents() 427 ret = io_submit(mCtx, buf->actual, buf->iocb.data()); in iobufSubmit()
|
/frameworks/base/tests/net/java/android/net/ |
D | ConnectivityManagerTest.java | 75 @Mock Context mCtx; field in ConnectivityManagerTest 208 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRelease() 236 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRecycling() 280 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in noDoubleCallbackRegistration() 287 when(mCtx.getApplicationInfo()).thenReturn(info); in noDoubleCallbackRegistration() 307 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testArgumentValidation()
|
/frameworks/rs/tests/java_api/RSUnitTests/src/com/android/rs/unittest/ |
D | UnitTest.java | 64 private Context mCtx; field in UnitTest 74 mCtx = ctx; in UnitTest() 95 RenderScript rs = RenderScript.create(mCtx); in createRenderScript()
|
/frameworks/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/ |
D | UnitTest.java | 64 private Context mCtx; field in UnitTest 74 mCtx = ctx; in UnitTest() 95 RenderScript rs = RenderScript.create(mCtx); in createRenderScript()
|
/frameworks/rs/tests/java_api/RSUnitTests/supportlibsrc_gen/com/android/rs/unittest/ |
D | UnitTest.java | 67 private Context mCtx; field in UnitTest 77 mCtx = ctx; in UnitTest() 98 RenderScript rs = RenderScript.create(mCtx); in createRenderScript()
|