/frameworks/base/core/tests/coretests/src/android/util/ |
H A D | TokenBucketTest.java | 63 TokenBucket tb = new TokenBucket(FILL_DELTA_VERY_LONG, 100, 10); 64 drain(tb, 10); 66 tb.reset(50); 67 drain(tb, 50); 69 tb.reset(50); 70 getOneByOne(tb, 10); 71 assertTrue(tb.has()); 73 tb.reset(30); 74 drain(tb, 30); 79 TokenBucket tb 143 getOneByOne(TokenBucket tb, int n) argument 153 assertEmpty(TokenBucket tb) argument 159 drain(TokenBucket tb, int n) argument [all...] |
/frameworks/base/core/tests/coretests/src/com/android/internal/os/ |
H A D | BatteryStatsTimeBaseTest.java | 74 TestTimeBase tb = new TestTimeBase(); 78 tb.setRunning(true, 100, 10000); 79 tb.setRunning(false, 200, 11000); 80 Assert.assertEquals(100, tb.getUptimeStart()); 81 Assert.assertEquals(10000, tb.getRealtimeStart()); 89 tb.add(observer1); 90 tb.add(observer2); 91 tb.add(observer3); 92 Assert.assertTrue(tb.hasObserver(observer1)); 93 Assert.assertTrue(tb [all...] |
/frameworks/rs/tests/java_api/ComputePerf/src/com/example/android/rs/computeperf/ |
H A D | Mandelbrot.java | 31 Type.Builder tb = new Type.Builder(rs, Element.U8_4(rs)); 32 tb.setX(mScript.get_gDimX()); 33 tb.setY(mScript.get_gDimY()); 34 mAllocationXY = Allocation.createTyped(rs, tb.create());
|
H A D | LaunchTest.java | 34 Type.Builder tb = new Type.Builder(rs, Element.U8(rs)); 35 tb.setX(dim); 36 tb.setY(dim); 37 mAllocationXY = Allocation.createTyped(rs, tb.create());
|
/frameworks/rs/tests/lldb/cpp/InfiniteLoop/ |
H A D | InfiniteLoop.cpp | 32 Type::Builder tb(rs, e); 33 tb.setX(size); 34 tb.setY(size); 35 auto t = tb.create();
|
/frameworks/rs/tests/lldb/cpp/MultipleRSFiles/ |
H A D | MultipleRSFiles.cpp | 30 Type::Builder tb(rs, e); 31 tb.setX(size); 32 tb.setY(size); 33 auto t = tb.create();
|
/frameworks/rs/tests/lldb/cpp/WaitAttach/ |
H A D | WaitAttach.cpp | 29 Type::Builder tb(rs, e); 30 tb.setX(size); 31 tb.setY(size); 32 auto t = tb.create();
|
/frameworks/rs/tests/lldb/jni/NoDebugWaitAttach/jninodebugwaitattach/ |
H A D | jninodebugwaitattach.cpp | 38 Type::Builder tb(rs, e); 39 tb.setX(size); 40 tb.setY(size); 41 auto t = tb.create();
|
/frameworks/rs/tests/cpp_api/cppf16/ |
H A D | compute.cpp | 12 Type::Builder tb(rs, e); 13 tb.setX(dimX); 15 tb.setY(dimY); 17 tb.setZ(dimZ); 19 sp<const Type> t = tb.create();
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
H A D | Resize.java | 37 Type.Builder tb = new Type.Builder(mRS, mInPixelsAllocation.getElement()); 38 tb.setX((int)(mWidth * scale)); 39 tb.setY((int)(mHeight * scale)); 40 Type t = tb.create();
|
H A D | Blur25.java | 72 Type.Builder tb = new Type.Builder(mRS, Element.F32_4(mRS)); 73 tb.setX(width); 74 tb.setY(height); 75 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 76 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
|
H A D | Blur25G.java | 61 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 62 tb.setX(width); 63 tb.setY(height); 64 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 65 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
|
H A D | ColorCube.java | 39 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); 40 tb.setX(sx); 41 tb.setY(sy); 42 tb.setZ(sz); 43 Type t = tb.create();
|
H A D | Grain.java | 73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 74 tb.setX(noiseW); 75 tb.setY(noiseH); 76 mNoise = Allocation.createTyped(mRS, tb.create()); 77 mNoise2 = Allocation.createTyped(mRS, tb.create());
|
/frameworks/rs/tests/lldb/cpp/BranchingFunCalls/ |
H A D | BranchingFunCalls.cpp | 29 Type::Builder tb(rs, e); 30 tb.setX(size); 31 tb.setY(size); 32 auto t = tb.create();
|
/frameworks/rs/tests/lldb/jni/BranchingFunCalls/jnibranchingfuncalls/ |
H A D | jnibranchingfuncalls.cpp | 38 Type::Builder tb(rs, e); 39 tb.setX(size); 40 tb.setY(size); 41 auto t = tb.create();
|
/frameworks/rs/tests/lldb/jni/DebugWaitAttach/jnidebugwaitattach/ |
H A D | jnidebugwaitattach.cpp | 38 Type::Builder tb(rs, e); 39 tb.setX(size); 40 tb.setY(size); 41 auto t = tb.create();
|
/frameworks/rs/tests/lldb/jni/InfiniteLoop/jniinfiniteloop/ |
H A D | jniinfiniteloop.cpp | 39 Type::Builder tb(rs, e); 40 tb.setX(size); 41 tb.setY(size); 42 auto t = tb.create();
|
/frameworks/rs/tests/lldb/jni/MultipleRSFiles/jnimultiplersfiles/ |
H A D | jnimultiplersfiles.cpp | 39 Type::Builder tb(rs, e); 40 tb.setX(size); 41 tb.setY(size); 42 auto t = tb.create();
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
H A D | Blur25.java | 81 Type.Builder tb; 83 tb = new Type.Builder(mRS, Element.F16_4(mRS)); 85 tb = new Type.Builder(mRS, Element.F32_4(mRS)); 86 tb.setX(width); 87 tb.setY(height); 88 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 89 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
|
H A D | Blur25G.java | 67 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 68 tb.setX(width); 69 tb.setY(height); 70 mScratchPixelsAllocation1 = Allocation.createTyped(mRS, tb.create()); 71 mScratchPixelsAllocation2 = Allocation.createTyped(mRS, tb.create());
|
H A D | ColorCube.java | 47 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); 48 tb.setX(sx); 49 tb.setY(sy); 50 tb.setZ(sz); 51 Type t = tb.create();
|
H A D | Grain.java | 78 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 79 tb.setX(noiseW); 80 tb.setY(noiseH); 81 mNoise = Allocation.createTyped(mRS, tb.create()); 82 mNoise2 = Allocation.createTyped(mRS, tb.create());
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
H A D | ColorCube.java | 47 Type.Builder tb = new Type.Builder(mRS, Element.U8_4(mRS)); 48 tb.setX(sx); 49 tb.setY(sy); 50 tb.setZ(sz); 51 Type t = tb.create();
|
H A D | Grain.java | 73 Type.Builder tb = new Type.Builder(mRS, Element.U8(mRS)); 74 tb.setX(noiseW); 75 tb.setY(noiseH); 76 mNoise = Allocation.createTyped(mRS, tb.create()); 77 mNoise2 = Allocation.createTyped(mRS, tb.create());
|