Searched refs:tb (Results 1 - 25 of 77) sorted by relevance

1234

/frameworks/base/core/tests/coretests/src/android/util/
H A DTokenBucketTest.java63 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 DBatteryStatsTimeBaseTest.java74 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 DMandelbrot.java31 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 DLaunchTest.java34 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 DInfiniteLoop.cpp32 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 DMultipleRSFiles.cpp30 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 DWaitAttach.cpp29 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 Djninodebugwaitattach.cpp38 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 Dcompute.cpp12 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 DResize.java37 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 DBlur25.java72 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 DBlur25G.java61 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 DColorCube.java39 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 DGrain.java73 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 DBranchingFunCalls.cpp29 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 Djnibranchingfuncalls.cpp38 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 Djnidebugwaitattach.cpp38 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 Djniinfiniteloop.cpp39 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 Djnimultiplersfiles.cpp39 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 DBlur25.java81 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 DBlur25G.java67 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 DColorCube.java47 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 DGrain.java78 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 DColorCube.java47 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 DGrain.java73 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());

Completed in 377 milliseconds

1234