/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
D | BatteryStatsTimeBaseTest.java | 75 TestTimeBase tb = new TestTimeBase(); in testRunning() local 79 tb.setRunning(true, 100, 10000); in testRunning() 80 tb.setRunning(false, 200, 11000); in testRunning() 81 Assert.assertEquals(100, tb.getUptimeStart()); in testRunning() 82 Assert.assertEquals(10000, tb.getRealtimeStart()); in testRunning() 90 tb.add(observer1); in testRunning() 91 tb.add(observer2); in testRunning() 92 tb.add(observer3); in testRunning() 93 Assert.assertTrue(tb.hasObserver(observer1)); in testRunning() 94 Assert.assertTrue(tb.hasObserver(observer2)); in testRunning() [all …]
|
/frameworks/base/core/tests/coretests/src/com/android/internal/util/ |
D | TokenBucketTest.java | 64 TokenBucket tb = new TokenBucket(FILL_DELTA_VERY_LONG, 100, 10); in testReset() local 65 drain(tb, 10); in testReset() 67 tb.reset(50); in testReset() 68 drain(tb, 50); in testReset() 70 tb.reset(50); in testReset() 71 getOneByOne(tb, 10); in testReset() 72 assertTrue(tb.has()); in testReset() 74 tb.reset(30); in testReset() 75 drain(tb, 30); in testReset() 80 TokenBucket tb = new TokenBucket(delta, 10, 0); in testFill() local [all …]
|
/frameworks/rs/tests/java_api/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/cpp_api/cppbasic/ |
D | compute.cpp | 21 Type::Builder tb(rs, e); in test_compute() local 22 tb.setX(128); in test_compute() 23 tb.setY(128); in test_compute() 24 sp<const Type> t = tb.create(); in test_compute() 78 Type::Builder tb(rs, e); in test_compute() local 79 tb.setX(xDim); in test_compute() 80 tb.setY(yDim); in test_compute() 81 sp<const Type> t = tb.create(); in test_compute()
|
/frameworks/rs/tests/cpp_api/cppbasic-shared/ |
D | compute.cpp | 21 Type::Builder tb(rs, e); in test_compute() local 22 tb.setX(128); in test_compute() 23 tb.setY(128); in test_compute() 24 sp<const Type> t = tb.create(); in test_compute() 78 Type::Builder tb(rs, e); in test_compute() local 79 tb.setX(xDim); in test_compute() 80 tb.setY(yDim); in test_compute() 81 sp<const Type> t = tb.create(); in test_compute()
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | Blur25.java | 81 Type.Builder tb; in createTest() local 83 tb = new Type.Builder(mRS, Element.F16_4(mRS)); in createTest() 85 tb = new Type.Builder(mRS, Element.F32_4(mRS)); in createTest() 86 tb.setX(width); in createTest() 87 tb.setY(height); in createTest() 88 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); in createTest() 89 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()
|
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 | 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/tests/cpp_api/cppf16/ |
D | compute.cpp | 12 Type::Builder tb(rs, e); in testAllocationCreation() local 13 tb.setX(dimX); in testAllocationCreation() 15 tb.setY(dimY); in testAllocationCreation() 17 tb.setZ(dimZ); in testAllocationCreation() 19 sp<const Type> t = tb.create(); in testAllocationCreation()
|
/frameworks/rs/tests/java_api/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()
|
/frameworks/rs/tests/lldb/cpp/InfiniteLoop/ |
D | InfiniteLoop.cpp | 32 Type::Builder tb(rs, e); in main() local 33 tb.setX(size); in main() 34 tb.setY(size); in main() 35 auto t = tb.create(); in main()
|
/frameworks/rs/tests/lldb/cpp/WaitAttach/ |
D | WaitAttach.cpp | 29 Type::Builder tb(rs, e); in main() local 30 tb.setX(size); in main() 31 tb.setY(size); in main() 32 auto t = tb.create(); in main()
|
/frameworks/rs/tests/lldb/cpp/MultipleRSFiles/ |
D | MultipleRSFiles.cpp | 30 Type::Builder tb(rs, e); in main() local 31 tb.setX(size); in main() 32 tb.setY(size); in main() 33 auto t = tb.create(); in main()
|
/frameworks/rs/tests/java_api/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()
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
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 | 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()
|
/frameworks/rs/tests/lldb/jni/InfiniteLoop/jniinfiniteloop/ |
D | jniinfiniteloop.cpp | 39 Type::Builder tb(rs, e); in Java_com_android_rs_jniinfiniteloop_MainActivity_nativeRS() local 40 tb.setX(size); in Java_com_android_rs_jniinfiniteloop_MainActivity_nativeRS() 41 tb.setY(size); in Java_com_android_rs_jniinfiniteloop_MainActivity_nativeRS() 42 auto t = tb.create(); in Java_com_android_rs_jniinfiniteloop_MainActivity_nativeRS()
|
/frameworks/rs/tests/lldb/jni/NoDebugWaitAttach/jninodebugwaitattach/ |
D | jninodebugwaitattach.cpp | 38 Type::Builder tb(rs, e); in Java_com_android_rs_jninodebugwaitattach_MainActivity_nativeRS() local 39 tb.setX(size); in Java_com_android_rs_jninodebugwaitattach_MainActivity_nativeRS() 40 tb.setY(size); in Java_com_android_rs_jninodebugwaitattach_MainActivity_nativeRS() 41 auto t = tb.create(); in Java_com_android_rs_jninodebugwaitattach_MainActivity_nativeRS()
|
/frameworks/rs/tests/lldb/cpp/BranchingFunCalls/ |
D | BranchingFunCalls.cpp | 29 Type::Builder tb(rs, e); in main() local 30 tb.setX(size); in main() 31 tb.setY(size); in main() 32 auto t = tb.create(); in main()
|
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/jnidebugwaitattach/ |
D | jnidebugwaitattach.cpp | 38 Type::Builder tb(rs, e); in Java_com_android_rs_jnidebugwaitattach_MainActivity_nativeRS() local 39 tb.setX(size); in Java_com_android_rs_jnidebugwaitattach_MainActivity_nativeRS() 40 tb.setY(size); in Java_com_android_rs_jnidebugwaitattach_MainActivity_nativeRS() 41 auto t = tb.create(); in Java_com_android_rs_jnidebugwaitattach_MainActivity_nativeRS()
|
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/jnimultiplersfiles/ |
D | jnimultiplersfiles.cpp | 39 Type::Builder tb(rs, e); in Java_com_android_rs_jnimultiplersfiles_MainActivity_nativeRS() local 40 tb.setX(size); in Java_com_android_rs_jnimultiplersfiles_MainActivity_nativeRS() 41 tb.setY(size); in Java_com_android_rs_jnimultiplersfiles_MainActivity_nativeRS() 42 auto t = tb.create(); in Java_com_android_rs_jnimultiplersfiles_MainActivity_nativeRS()
|