/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsTimeBaseTest.java | 74 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/ |
D | RsYuv.java | 78 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() 86 …tb = 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/ |
D | compute.cpp | 24 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/ |
D | compute.cpp | 24 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/ |
D | compute.cpp | 9 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/ |
D | ColorCube.java | 39 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()
|
D | Blur25G.java | 61 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()
|
D | Grain.java | 73 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()
|
D | Blur25.java | 72 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()
|
D | Resize.java | 37 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/ |
D | Blur25G.java | 67 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()
|
D | ColorCube.java | 47 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()
|
D | Blur25.java | 76 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()
|
D | Grain.java | 78 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/ |
D | Grain.java | 73 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()
|
D | ColorCube.java | 47 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()
|
D | Blur25.java | 76 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()
|
D | Blur25G.java | 67 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/ |
D | Mandelbrot.java | 31 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()
|
D | LaunchTest.java | 34 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/ |
D | RSFilter.cpp | 65 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()
|
D | SaturationFilter.cpp | 56 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()
|
D | IntrinsicBlurFilter.cpp | 56 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/ |
D | compute.cpp | 30 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/ |
D | compute.cpp | 28 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()
|