Home
last modified time | relevance | path

Searched refs:tb (Results 1 – 25 of 595) sorted by relevance

12345678910>>...24

/frameworks/base/core/tests/coretests/src/com/android/internal/os/
DBatteryStatsTimeBaseTest.java74 TestTimeBase tb = new TestTimeBase(); in testRunning() local
78 tb.setRunning(true, 100, 10000); in testRunning()
79 tb.setRunning(false, 200, 11000); in testRunning()
80 Assert.assertEquals(100, tb.getUptimeStart()); in testRunning()
81 Assert.assertEquals(10000, tb.getRealtimeStart()); in testRunning()
89 tb.add(observer1); in testRunning()
90 tb.add(observer2); in testRunning()
91 tb.add(observer3); in testRunning()
92 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning()
93 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning()
[all …]
/frameworks/rs/java/tests/LivePreview/src/com/android/rs/livepreview/
DRsYuv.java78 Type.Builder tb = new Type.Builder(mRS, Element.RGBA_8888(mRS)); in reset() local
79 tb.setX(mWidth); in reset()
80 tb.setY(mHeight); in reset()
81 Type t = tb.create(); in reset()
86tb = new Type.Builder(mRS, Element.createPixel(mRS, Element.DataType.UNSIGNED_8, Element.DataKind.… in reset()
87 tb.setX(mWidth); in reset()
88 tb.setY(mHeight); in reset()
89 tb.setYuvFormat(android.graphics.ImageFormat.NV21); in reset()
90 mAllocationIn = Allocation.createTyped(mRS, tb.create(), Allocation.USAGE_SCRIPT); in reset()
/frameworks/rs/tests/cppbasic-shared/
Dcompute.cpp24 Type::Builder tb(rs, e); in test_compute() local
25 tb.setX(128); in test_compute()
26 tb.setY(128); in test_compute()
27 sp<const Type> t = tb.create(); in test_compute()
81 Type::Builder tb(rs, e); in test_compute() local
82 tb.setX(xDim); in test_compute()
83 tb.setY(yDim); in test_compute()
84 sp<const Type> t = tb.create(); in test_compute()
/frameworks/rs/tests/cppbasic/
Dcompute.cpp24 Type::Builder tb(rs, e); in test_compute() local
25 tb.setX(128); in test_compute()
26 tb.setY(128); in test_compute()
27 sp<const Type> t = tb.create(); in test_compute()
81 Type::Builder tb(rs, e); in test_compute() local
82 tb.setX(xDim); in test_compute()
83 tb.setY(yDim); in test_compute()
84 sp<const Type> t = tb.create(); in test_compute()
/frameworks/rs/tests/cppf16/
Dcompute.cpp9 Type::Builder tb(rs, e); in testAllocationCreation() local
10 tb.setX(dimX); in testAllocationCreation()
12 tb.setY(dimY); in testAllocationCreation()
14 tb.setZ(dimZ); in testAllocationCreation()
16 sp<const Type> t = tb.create(); in testAllocationCreation()
/frameworks/rs/java/tests/ImageProcessing2/src/com/android/rs/image/
DColorCube.java39 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); in initCube() local
40 tb.setX(sx); in initCube()
41 tb.setY(sy); in initCube()
42 tb.setZ(sz); in initCube()
43 Type t = tb.create(); in initCube()
DBlur25G.java61 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
62 tb.setX(width); in createTest()
63 tb.setY(height); in createTest()
64 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
65 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DGrain.java73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
74 tb.setX(noiseW); in createTest()
75 tb.setY(noiseH); in createTest()
76 mNoise = Allocation.createTyped(mRS, tb.create()); in createTest()
77 mNoise2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DBlur25.java72 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); in createTest() local
73 tb.setX(width); in createTest()
74 tb.setY(height); in createTest()
75 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
76 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DResize.java37 Type.Builder tb = new Type.Builder(mRS, mInPixelsAllocation.getElement()); in createTest() local
38 tb.setX((int)(mWidth * scale)); in createTest()
39 tb.setY((int)(mHeight * scale)); in createTest()
40 Type t = tb.create(); in createTest()
/frameworks/rs/java/tests/ImageProcessing_jb/src/com/android/rs/image/
DBlur25G.java67 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
68 tb.setX(width); in createTest()
69 tb.setY(height); in createTest()
70 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
71 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DColorCube.java47 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); in initCube() local
48 tb.setX(sx); in initCube()
49 tb.setY(sy); in initCube()
50 tb.setZ(sz); in initCube()
51 Type t = tb.create(); in initCube()
DBlur25.java76 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); in createTest() local
77 tb.setX(width); in createTest()
78 tb.setY(height); in createTest()
79 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
80 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DGrain.java78 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
79 tb.setX(noiseW); in createTest()
80 tb.setY(noiseH); in createTest()
81 mNoise = Allocation.createTyped(mRS, tb.create()); in createTest()
82 mNoise2 = Allocation.createTyped(mRS, tb.create()); in createTest()
/frameworks/rs/java/tests/ImageProcessing/src/com/android/rs/image/
DGrain.java73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
74 tb.setX(noiseW); in createTest()
75 tb.setY(noiseH); in createTest()
76 mNoise = Allocation.createTyped(mRS, tb.create()); in createTest()
77 mNoise2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DColorCube.java47 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); in initCube() local
48 tb.setX(sx); in initCube()
49 tb.setY(sy); in initCube()
50 tb.setZ(sz); in initCube()
51 Type t = tb.create(); in initCube()
DBlur25.java76 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); in createTest() local
77 tb.setX(width); in createTest()
78 tb.setY(height); in createTest()
79 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
80 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
DBlur25G.java67 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); in createTest() local
68 tb.setX(width); in createTest()
69 tb.setY(height); in createTest()
70 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest()
71 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create()); in createTest()
/frameworks/rs/java/tests/ComputePerf/src/com/example/android/rs/computeperf/
DMandelbrot.java31 Type.Builder tb = new Type.Builder(rs, Element.U8_4(rs)); in Mandelbrot() local
32 tb.setX(mScript.get_gDimX()); in Mandelbrot()
33 tb.setY(mScript.get_gDimY()); in Mandelbrot()
34 mAllocationXY = Allocation.createTyped(rs, tb.create()); in Mandelbrot()
DLaunchTest.java34 Type.Builder tb = new Type.Builder(rs, Element.U8(rs)); in LaunchTest() local
35 tb.setX(dim); in LaunchTest()
36 tb.setY(dim); in LaunchTest()
37 mAllocationXY = Allocation.createTyped(rs, tb.create()); in LaunchTest()
/frameworks/av/media/libstagefright/filters/
DRSFilter.cpp65 RSC::Type::Builder tb(mRS, e); in start() local
66 tb.setX(mWidth); in start()
67 tb.setY(mHeight); in start()
68 RSC::sp<const RSC::Type> t = tb.create(); in start()
DSaturationFilter.cpp56 RSC::Type::Builder tb(mRS, e); in start() local
57 tb.setX(mWidth); in start()
58 tb.setY(mHeight); in start()
59 RSC::sp<const RSC::Type> t = tb.create(); in start()
DIntrinsicBlurFilter.cpp56 RSC::Type::Builder tb(mRS, e); in start() local
57 tb.setX(mWidth); in start()
58 tb.setY(mHeight); in start()
59 RSC::sp<const RSC::Type> t = tb.create(); in start()
/frameworks/rs/tests/cppstrided/
Dcompute.cpp30 Type::Builder tb(rs, e); in main() local
31 tb.setX(numElems); in main()
32 tb.setY(numElems); in main()
33 sp<const Type> t = tb.create(); in main()
/frameworks/rs/tests/cppbasic-getpointer/
Dcompute.cpp28 Type::Builder tb(rs, e); in test_compute() local
29 tb.setX(DIMX); in test_compute()
30 tb.setY(DIMY); in test_compute()
31 sp<const Type> t = tb.create(); in test_compute()

12345678910>>...24