Home
last modified time | relevance | path

Searched refs:sc (Results 1 – 25 of 88) sorted by relevance

1234

/frameworks/native/services/surfaceflinger/tests/
DTransaction_test.cpp32 static void fillSurfaceRGBA8(const sp<SurfaceControl>& sc, in fillSurfaceRGBA8() argument
35 sp<Surface> s = sc->getSurface(); in fillSurfaceRGBA8()
55 static void captureScreen(sp<ScreenCapture>* sc) { in captureScreen() argument
65 *sc = new ScreenCapture(w, h, heap); in captureScreen()
174 sp<ScreenCapture> sc; in TEST_F() local
177 ScreenCapture::captureScreen(&sc); in TEST_F()
178 sc->checkPixel( 0, 12, 63, 63, 195); in TEST_F()
179 sc->checkPixel( 75, 75, 195, 63, 63); in TEST_F()
180 sc->checkPixel(145, 145, 63, 63, 195); in TEST_F()
189 ScreenCapture::captureScreen(&sc); in TEST_F()
[all …]
/frameworks/base/packages/SystemUI/src/com/android/systemui/volume/
DVolumePanel.java502 final StreamControl sc = mStreamControls.valueAt(i); in dump() local
503 pw.print(" stream "); pw.print(sc.streamType); pw.print(":"); in dump()
504 if (sc.seekbarView != null) { in dump()
505 pw.print(" progress="); pw.print(sc.seekbarView.getProgress()); in dump()
506 pw.print(" of "); pw.print(sc.seekbarView.getMax()); in dump()
507 if (!sc.seekbarView.isEnabled()) pw.print(" (disabled)"); in dump()
509 if (sc.icon != null && sc.icon.isClickable()) pw.print(" (clickable)"); in dump()
591 StreamControl sc = mStreamControls.get(streamType); in getStreamMaxVolume() local
592 if (sc != null && sc.controller != null) { in getStreamMaxVolume()
593 PlaybackInfo ai = sc.controller.getPlaybackInfo(); in getStreamMaxVolume()
[all …]
/frameworks/rs/tests/cppbasic-shared/
Dcompute.cpp38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
41 sc->set_alloc(a1); in test_compute()
42 sc->set_elem(e); in test_compute()
43 sc->set_type(t); in test_compute()
44 sc->set_script(sc); in test_compute()
45 sc->set_script(NULL); in test_compute()
47 sc->set_sampler(samp); in test_compute()
57 sc->bind_failed(failed_alloc); in test_compute()
66 sc->forEach_root(ain, aout); in test_compute()
68 sc->invoke_foo(99, 3.1f); in test_compute()
[all …]
/frameworks/rs/tests/cppbasic/
Dcompute.cpp38 sp<ScriptC_mono> sc = new ScriptC_mono(rs); in test_compute() local
41 sc->set_alloc(a1); in test_compute()
42 sc->set_elem(e); in test_compute()
43 sc->set_type(t); in test_compute()
44 sc->set_script(sc); in test_compute()
45 sc->set_script(NULL); in test_compute()
47 sc->set_sampler(samp); in test_compute()
57 sc->bind_failed(failed_alloc); in test_compute()
66 sc->forEach_root(ain, aout); in test_compute()
68 sc->invoke_foo(99, 3.1f); in test_compute()
[all …]
/frameworks/av/media/libstagefright/codecs/aacenc/src/
Dbit_cnt.c48 Word16 bc11,sc; in count1_2_3_4_5_6_7_8_9_10_11() local
56 sc=0; in count1_2_3_4_5_6_7_8_9_10_11()
91 sc = sc + (t0>0) + (t1>0) + (t2>0) + (t3>0); in count1_2_3_4_5_6_7_8_9_10_11()
96 bitCount[3]=extract_h(bc3_4) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
97 bitCount[4]=extract_l(bc3_4) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
100 bitCount[7]=extract_h(bc7_8) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
101 bitCount[8]=extract_l(bc7_8) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
102 bitCount[9]=extract_h(bc9_10) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
103 bitCount[10]=extract_l(bc9_10) + sc; in count1_2_3_4_5_6_7_8_9_10_11()
104 bitCount[11]=bc11 + sc; in count1_2_3_4_5_6_7_8_9_10_11()
[all …]
/frameworks/base/rs/java/android/renderscript/
DRenderScriptGL.java74 public SurfaceConfig(SurfaceConfig sc) { in SurfaceConfig() argument
75 mDepthMin = sc.mDepthMin; in SurfaceConfig()
76 mDepthPref = sc.mDepthPref; in SurfaceConfig()
77 mStencilMin = sc.mStencilMin; in SurfaceConfig()
78 mStencilPref = sc.mStencilPref; in SurfaceConfig()
79 mColorMin = sc.mColorMin; in SurfaceConfig()
80 mColorPref = sc.mColorPref; in SurfaceConfig()
81 mAlphaMin = sc.mAlphaMin; in SurfaceConfig()
82 mAlphaPref = sc.mAlphaPref; in SurfaceConfig()
83 mSamplesMin = sc.mSamplesMin; in SurfaceConfig()
[all …]
DScript.java157 …rotected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
166 if (sc == null) { in forEach()
182 …hClipped(getID(mRS), slot, in_id, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
199 …ected void forEach(int slot, Allocation[] ains, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
212 if (sc == null) { in forEach()
230 …Clipped(getID(mRS), slot, in_ids, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
/frameworks/rs/cpu_ref/
DrsCpuIntrinsic.cpp78 uint32_t usrLen, const RsScriptCall *sc) { in preLaunch() argument
83 uint32_t usrLen, const RsScriptCall *sc) { in postLaunch() argument
91 const RsScriptCall *sc) { in invokeForEach() argument
94 preLaunch(slot, ain, aout, usr, usrLen, sc); in invokeForEach()
96 forEachMtlsSetup(ain, aout, usr, usrLen, sc, &mtls); in invokeForEach()
104 mCtx->launchThreads(ain, aout, sc, &mtls); in invokeForEach()
107 postLaunch(slot, ain, aout, usr, usrLen, sc); in invokeForEach()
116 const RsScriptCall *sc) { in invokeForEachMulti() argument
123 preLaunch(slot, ains[0], aout, usr, usrLen, sc); in invokeForEachMulti()
125 forEachMtlsSetup(ains, inLen, aout, usr, usrLen, sc, &mtls); in invokeForEachMulti()
[all …]
DrsCpuScript.cpp799 const RsScriptCall *sc, in forEachMtlsSetup() argument
842 if (!sc || (sc->xEnd == 0)) { in forEachMtlsSetup()
845 rsAssert(sc->xStart < mtls->fep.dimX); in forEachMtlsSetup()
846 rsAssert(sc->xEnd <= mtls->fep.dimX); in forEachMtlsSetup()
847 rsAssert(sc->xStart < sc->xEnd); in forEachMtlsSetup()
848 mtls->xStart = rsMin(mtls->fep.dimX, sc->xStart); in forEachMtlsSetup()
849 mtls->xEnd = rsMin(mtls->fep.dimX, sc->xEnd); in forEachMtlsSetup()
853 if (!sc || (sc->yEnd == 0)) { in forEachMtlsSetup()
856 rsAssert(sc->yStart < mtls->fep.dimY); in forEachMtlsSetup()
857 rsAssert(sc->yEnd <= mtls->fep.dimY); in forEachMtlsSetup()
[all …]
DrsCpuScript.h69 uint32_t usrLen, const RsScriptCall *sc);
72 uint32_t usrLen, const RsScriptCall *sc);
78 const RsScriptCall *sc);
86 const RsScriptCall* sc);
105 const RsScriptCall *sc, MTLaunchStruct *mtls);
109 const RsScriptCall *sc, MTLaunchStruct *mtls);
DrsCpuIntrinsic.h38 const RsScriptCall *sc);
46 const RsScriptCall *sc);
54 uint32_t usrLen, const RsScriptCall *sc);
57 uint32_t usrLen, const RsScriptCall *sc);
/frameworks/native/opengl/tests/lib/
DWindowSurface.cpp57 sp<SurfaceControl> sc = surfaceComposerClient->createSurface( in WindowSurface() local
60 if (sc == NULL || !sc->isValid()) { in WindowSurface()
66 err = sc->setLayer(0x7FFFFFFF); // always on top in WindowSurface()
72 err = sc->show(); in WindowSurface()
79 mSurfaceControl = sc; in WindowSurface()
/frameworks/support/v8/renderscript/java/src/android/support/v8/renderscript/
DScriptCThunker.java121 android.support.v8.renderscript.Script.LaunchOptions sc) { in thunkForEach() argument
124 if (sc != null) { in thunkForEach()
126 if (sc.getXEnd() > 0) lo.setX(sc.getXStart(), sc.getXEnd()); in thunkForEach()
127 if (sc.getYEnd() > 0) lo.setY(sc.getYStart(), sc.getYEnd()); in thunkForEach()
128 if (sc.getZEnd() > 0) lo.setZ(sc.getZStart(), sc.getZEnd()); in thunkForEach()
DScript.java261 …rotected void forEach(int slot, Allocation ain, Allocation aout, FieldPacker v, LaunchOptions sc) { in forEach() argument
263 mT.thunkForEach(slot, ain, aout, v, sc); in forEach()
272 if (sc == null) { in forEach()
288 …hClipped(getID(mRS), slot, in_id, out_id, params, sc.xstart, sc.xend, sc.ystart, sc.yend, sc.zstar… in forEach()
/frameworks/base/tests/RenderScriptTests/SceneGraph/src/com/android/testapp/
DSimpleAppView.java42 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in surfaceChanged() local
43 sc.setDepth(16, 24); in surfaceChanged()
44 sc.setSamples(1, 2, 1); in surfaceChanged()
45 mRS = createRenderScriptGL(sc); in surfaceChanged()
/frameworks/native/opengl/tests/hwc/
DhwcCommit.cpp268 } sc; member
502 measPtr->sc.minWidth = scMinWidth(format->format, measPtr->df.minDim); in main()
503 testPrintI(" scMinWidth: %u", measPtr->sc.minWidth); in main()
505 measPtr->sc.minHeight = scMinHeight(format->format, measPtr->df.minDim); in main()
506 testPrintI(" scMinHeight: %u", measPtr->sc.minHeight); in main()
508 measPtr->sc.maxWidth = scMaxWidth(format->format, measPtr->df.maxDim); in main()
509 testPrintI(" scMaxWidth: %s%u", (measPtr->sc.maxWidth in main()
511 measPtr->sc.maxWidth); in main()
513 measPtr->sc.maxHeight = scMaxHeight(format->format, measPtr->df.maxDim); in main()
514 testPrintI(" scMaxHeight: %s%u", (measPtr->sc.maxHeight in main()
[all …]
/frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/gsm/
DGSMTestHandler.java40 private SimulatedCommands sc; field in GSMTestHandler
54 sc = new SimulatedCommands(); in onLooperPrepared()
55 mGSMPhone = new GSMPhone(mContext, sc, new TestPhoneNotifier(), true); in onLooperPrepared()
88 return sc; in getSimulatedCommands()
/frameworks/base/rs/jni/
Dandroid_renderscript_RenderScript.cpp258 RsSurfaceConfig sc; in nContextCreateGL() local
259 sc.alphaMin = alphaMin; in nContextCreateGL()
260 sc.alphaPref = alphaPref; in nContextCreateGL()
261 sc.colorMin = colorMin; in nContextCreateGL()
262 sc.colorPref = colorPref; in nContextCreateGL()
263 sc.depthMin = depthMin; in nContextCreateGL()
264 sc.depthPref = depthPref; in nContextCreateGL()
265 sc.samplesMin = samplesMin; in nContextCreateGL()
266 sc.samplesPref = samplesPref; in nContextCreateGL()
267 sc.samplesQ = samplesQ; in nContextCreateGL()
[all …]
/frameworks/rs/
DrsScriptIntrinsic.cpp65 const RsScriptCall *sc) { in runForEach() argument
67 rsc->mHal.funcs.script.invokeForEach(rsc, this, slot, ain, aout, usr, usrBytes, sc); in runForEach()
77 const RsScriptCall* sc) { in runForEach() argument
79 … rsc->mHal.funcs.script.invokeForEachMulti(rsc, this, slot, ains, inLen, aout, usr, usrBytes, sc); in runForEach()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/imsphone/
DImsPhoneMmiCode.java330 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
331 if (sc == null) { in scToCallForwardReason()
335 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
337 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
339 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
341 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
343 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
345 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
396 isServiceCodeCallForwarding(String sc) { in isServiceCodeCallForwarding() argument
397 return sc != null && in isServiceCodeCallForwarding()
[all …]
/frameworks/opt/telephony/src/java/com/android/internal/telephony/gsm/
DGsmMmiCode.java418 scToCallForwardReason(String sc) { in scToCallForwardReason() argument
419 if (sc == null) { in scToCallForwardReason()
423 if (sc.equals(SC_CF_All)) { in scToCallForwardReason()
425 } else if (sc.equals(SC_CFU)) { in scToCallForwardReason()
427 } else if (sc.equals(SC_CFB)) { in scToCallForwardReason()
429 } else if (sc.equals(SC_CFNR)) { in scToCallForwardReason()
431 } else if (sc.equals(SC_CFNRy)) { in scToCallForwardReason()
433 } else if (sc.equals(SC_CF_All_Conditional)) { in scToCallForwardReason()
490 isServiceCodeCallForwarding(String sc) { in isServiceCodeCallForwarding() argument
491 return sc != null && in isServiceCodeCallForwarding()
[all …]
/frameworks/rs/tests/latency/
Dlatency.cpp73 sp<ScriptC_latency> sc = new ScriptC_latency(rs); in main() local
80 sc->forEach_root(ain, aout); in main()
95 sc->forEach_root(ain, aout); in main()
106 sc.clear(); in main()
/frameworks/base/tests/RenderScriptTests/MiscSamples/src/com/example/android/rs/miscsamples/
DRsRenderStatesView.java38 RenderScriptGL.SurfaceConfig sc = new RenderScriptGL.SurfaceConfig(); in ensureRenderScript() local
39 sc.setDepth(16, 24); in ensureRenderScript()
40 mRS = createRenderScriptGL(sc); in ensureRenderScript()
/frameworks/rs/driver/
DrsdBcc.cpp74 const RsScriptCall *sc) { in rsdScriptInvokeForEach() argument
77 cs->invokeForEach(slot, ain, aout, usr, usrLen, sc); in rsdScriptInvokeForEach()
88 const RsScriptCall *sc) { in rsdScriptInvokeForEachMulti() argument
91 cs->invokeForEachMulti(slot, ains, inLen, aout, usr, usrLen, sc); in rsdScriptInvokeForEachMulti()
157 const android::renderscript::Script *sc, in rsdScriptGetAllocationForPointer() argument
159 RsdCpuReference::CpuScript *cs = (RsdCpuReference::CpuScript *)sc->mHal.drv; in rsdScriptGetAllocationForPointer()
/frameworks/rs/tests/cppallocation/
Dcompute.cpp36 sp<ScriptC_multiply> sc = new ScriptC_multiply(rs); in main() local
45 sc->forEach_multiply(ain, aout); in main()
58 sc.clear(); in main()

1234