Home
last modified time | relevance | path

Searched refs:mCtx (Results 1 – 25 of 109) sorted by relevance

12345

/frameworks/rs/tests/java_api/RSTest_CompatLibLegacy/src/com/android/rs/test/
DRSTestCore.java31 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 …]
DUnitTest.java28 protected Context mCtx; field in UnitTest
42 mCtx = ctx; in UnitTest()
/frameworks/base/tests/net/java/android/net/
DNetworkStackTest.java44 @Mock Context mCtx; field in NetworkStackTest
52 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_GRANTED); in testCheckNetworkStackPermission()
53 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission()
55 checkNetworkStackPermission(mCtx); in testCheckNetworkStackPermission()
56 checkNetworkStackPermissionOr(mCtx, OTHER_PERMISSION); in testCheckNetworkStackPermission()
58 when(mCtx.checkCallingOrSelfPermission(eq(NETWORK_STACK))).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission()
59 when(mCtx.checkCallingOrSelfPermission(eq(PERMISSION_MAINLINE_NETWORK_STACK))) in testCheckNetworkStackPermission()
61 checkNetworkStackPermission(mCtx); in testCheckNetworkStackPermission()
62 checkNetworkStackPermissionOr(mCtx, OTHER_PERMISSION); in testCheckNetworkStackPermission()
64 when(mCtx.checkCallingOrSelfPermission(any())).thenReturn(PERMISSION_DENIED); in testCheckNetworkStackPermission()
[all …]
DConnectivityManagerTest.java75 @Mock Context mCtx; field in ConnectivityManagerTest
208 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRelease()
235 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testCallbackRecycling()
277 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in noDoubleCallbackRegistration()
284 when(mCtx.getApplicationInfo()).thenReturn(info); in noDoubleCallbackRegistration()
303 ConnectivityManager manager = new ConnectivityManager(mCtx, mService); in testArgumentValidation()
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
DRSoVTestCore.java30 ListActivity mCtx; field in RSoVTestCore
33 mCtx = ctx; in RSoVTestCore()
57 unitTests.add(new UT_invert(this, mCtx)); in init()
58 unitTests.add(new UT_modulo(this, mCtx)); in init()
59 unitTests.add(new UT_multi_kernel(this, mCtx)); in init()
60 unitTests.add(new UT_multi_input(this, mCtx)); in init()
61 unitTests.add(new UT_global_query(this, mCtx)); in init()
62 unitTests.add(new UT_global(this, mCtx)); in init()
79 … testAdapter = new ArrayAdapter<UnitTest>(mCtx, android.R.layout.simple_list_item_1, unitTests); in init()
80 mCtx.setListAdapter(testAdapter); in init()
[all …]
DUnitTest.java29 protected Context mCtx; field in UnitTest
45 mCtx = ctx; in UnitTest()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp35 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()
DrsCpuScript.cpp238 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 …]
DrsCpuScriptGroup.cpp28 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_14/src/com/android/rs/test/
DRSTestCore.java32 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 …]
DRSTestView.java44 private Context mCtx; field in RSTestView
48 mCtx = context; in RSTestView()
61 mRender = new RSTestCore(mCtx); in surfaceChanged()
DUnitTest.java28 protected Context mCtx; field in UnitTest
42 mCtx = ctx; in UnitTest()
/frameworks/rs/tests/java_api/RsTest_16/src/com/android/rs/test/
DRSTestCore.java32 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 …]
DRSTestView.java44 private Context mCtx; field in RSTestView
48 mCtx = context; in RSTestView()
61 mRender = new RSTestCore(mCtx); in surfaceChanged()
DUnitTest.java28 protected Context mCtx; field in UnitTest
42 mCtx = ctx; in UnitTest()
/frameworks/compile/slang/
Dslang_rs_context.cpp56 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 …]
Dslang_rs_object_ref_count.cpp1448 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 …]
Dslang_rs_object_ref_count.h105 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/
DRSTestCore.java32 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()
DRSTestView.java44 private Context mCtx; field in RSTestView
48 mCtx = context; in RSTestView()
61 mRender = new RSTestCore(mCtx); in surfaceChanged()
DUnitTest.java28 protected Context mCtx; field in UnitTest
42 mCtx = ctx; in UnitTest()
/frameworks/av/media/libstagefright/codecs/on2/dec/
DSoftVPX.cpp53 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/
DLingerMonitorTest.java76 @Mock Context mCtx; field in LingerMonitorTest
84 when(mCtx.getResources()).thenReturn(mResources); in setUp()
85 when(mCtx.getPackageName()).thenReturn("com.android.server.connectivity"); in setUp()
87 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, HIGH_RATE_LIMIT); in setUp()
189 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, HIGH_DAILY_LIMIT, LOW_RATE_LIMIT); in testRateLimiting()
215 mMonitor = new TestableLingerMonitor(mCtx, mNotifier, LOW_DAILY_LIMIT, HIGH_RATE_LIMIT); in testDailyLimiting()
358 caps, 50, mCtx, null, mMisc, mConnService, mNetd, mDnsResolver, mNMS, in nai()
/frameworks/av/media/mtp/
DMtpFfsHandle.cpp283 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/rs/tests/java_api/RsMinimalTest/src/com/android/rs/minimaltest/
DUnitTest.java64 private Context mCtx; field in UnitTest
74 mCtx = ctx; in UnitTest()
95 RenderScript rs = RenderScript.create(mCtx); in createRenderScript()

12345