/frameworks/base/services/tests/servicestests/src/com/android/server/timedetector/ |
D | TimeDetectorStrategyImplTest.java | 73 private Script mScript; field in TimeDetectorStrategyImplTest 77 mScript = new Script(); in setUp() 82 mScript.pokeFakeClocks(ARBITRARY_CLOCK_INITIALIZATION_INFO) in testSuggestTelephonyTime_autoTimeEnabled() 89 mScript.generateTelephonyTimeSuggestion(slotIndex, testTime); in testSuggestTelephonyTime_autoTimeEnabled() 90 mScript.simulateTimePassing() in testSuggestTelephonyTime_autoTimeEnabled() 94 mScript.calculateTimeInMillisForNow(timeSuggestion.getUnixEpochTime()); in testSuggestTelephonyTime_autoTimeEnabled() 95 mScript.verifySystemClockWasSetAndResetCallTracking(expectedSystemClockMillis) in testSuggestTelephonyTime_autoTimeEnabled() 101 mScript.pokeFakeClocks(ARBITRARY_CLOCK_INITIALIZATION_INFO) in testSuggestTelephonyTime_emptySuggestionIgnored() 106 mScript.generateTelephonyTimeSuggestion(slotIndex, null); in testSuggestTelephonyTime_emptySuggestionIgnored() 107 mScript.simulateTelephonyTimeSuggestion(timeSuggestion) in testSuggestTelephonyTime_emptySuggestionIgnored() [all …]
|
/frameworks/rs/tests/java_api/ImageProcessing2/src/com/android/rs/image/ |
D | Posterize.java | 22 private ScriptC_posterize mScript; field in Posterize 30 mScript = new ScriptC_posterize(mRS); in createTest() 35 mScript.invoke_setParams(intensHigh, intensLow, in setParams() 38 mScript.set_intensityLow(intensLow); in setParams() 39 mScript.set_intensityHigh(intensHigh); in setParams() 40 mScript.set_color(new Short4((short)r, (short)g, (short)b, (short)255)); in setParams() 45 mScript.set_inputImage(mInPixelsAllocation); in runTest() 47 mScript.forEach_root(mInPixelsAllocation, mOutPixelsAllocation); in runTest() 49 mScript.forEach_root(mOutPixelsAllocation, mOutPixelsAllocation); in runTest() 51 mScript.forEach_root(mOutPixelsAllocation, mOutPixelsAllocation); in runTest() [all …]
|
D | Resize.java | 23 private ScriptC_resize mScript; field in Resize 44 mScript = new ScriptC_resize(mRS); in createTest() 45 mScript.set_gIn(mInPixelsAllocation); in createTest() 46 mScript.set_gWidthIn(mWidth); in createTest() 47 mScript.set_gHeightIn(mHeight); in createTest() 48 mScript.set_scale(1.f / scale); in createTest() 49 mScript.forEach_nearest(mScratchAllocation); in createTest() 52 mScript.set_gIn(mScratchAllocation); in createTest() 53 mScript.set_gWidthIn(t.getX()); in createTest() 54 mScript.set_gHeightIn(t.getY()); in createTest() [all …]
|
D | Mandelbrot.java | 26 private ScriptC_mandelbrot mScript; field in Mandelbrot 41 mScript.set_gMaxIteration(iters); in onBar1Changed() 51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() 54 mScript.set_lowerBoundX(lowerBoundX); in onBar2Changed() 64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() 67 mScript.set_lowerBoundY(lowerBoundY); in onBar3Changed() 78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed() 85 mScript = new ScriptC_mandelbrot(mRS); in createTest() 86 mScript.set_gDimX(width); in createTest() 87 mScript.set_gDimY(height); in createTest() [all …]
|
D | Grain.java | 27 private ScriptC_grain mScript; field in Grain 40 mScript.set_gNoiseStrength(s); in onBar1Changed() 44 mScript.set_gNoiseStrength(time % 1.f); in animateBars() 79 mScript = new ScriptC_grain(mRS); in createTest() 80 mScript.set_gWMask(noiseW - 1); in createTest() 81 mScript.set_gHMask(noiseH - 1); in createTest() 82 mScript.set_gNoiseStrength(0.5f); in createTest() 83 mScript.set_gBlendSource(mNoise); in createTest() 84 mScript.set_gNoise(mNoise2); in createTest() 88 mScript.forEach_genRand(mNoise); in runTest() [all …]
|
D | Blur25.java | 31 private ScriptC_threshold mScript; field in Blur25 57 mScript.invoke_setRadius((int)mRadius); in onBar1Changed() 78 mScript = new ScriptC_threshold(mRS); in createTest() 79 mScript.set_width(width); in createTest() 80 mScript.set_height(height); in createTest() 81 mScript.invoke_setRadius(MAX_RADIUS); in createTest() 83 mScript.set_InPixel(mInPixelsAllocation); in createTest() 84 mScript.set_ScratchPixel1(mScratchPixelsAllocation1); in createTest() 85 mScript.set_ScratchPixel2(mScratchPixelsAllocation2); in createTest() 93 mScript.forEach_copyIn(mInPixelsAllocation, mScratchPixelsAllocation1); in runTest() [all …]
|
D | Convolve3x3.java | 25 private ScriptC_convolve3x3 mScript; field in Convolve3x3 61 mScript = new ScriptC_convolve3x3(mRS); in createTest() 62 mScript.set_gCoeffs(f); in createTest() 63 mScript.set_gIn(mInPixelsAllocation); in createTest() 64 mScript.set_gWidth(mWidth); in createTest() 65 mScript.set_gHeight(mHeight); in createTest() 74 mScript.set_gCoeffs(f); in animateBars() 82 mScript.forEach_root(mOutPixelsAllocation); in runTest()
|
D | Vibrance.java | 20 private ScriptC_vibrance mScript; field in Vibrance 23 mScript = new ScriptC_vibrance(mRS); in createTest() 27 mScript.set_vibrance(50.f); in runTest() 28 mScript.invoke_prepareVibrance(); in runTest() 29 mScript.forEach_vibranceKernel(mInPixelsAllocation, mOutPixelsAllocation); in runTest()
|
/frameworks/rs/tests/java_api/ImageProcessing_jb/src/com/android/rs/image/ |
D | Histogram.java | 25 private ScriptC_histogram mScript; field in Histogram 37 mScript = new ScriptC_histogram(mRS); in createTest() 45 mScript.set_gWidth(w); in createTest() 46 mScript.set_gHeight(h); in createTest() 47 mScript.set_gStep(step); in createTest() 48 mScript.set_gSteps(steps); in createTest() 56 mScript.set_gSums(mSums); in createTest() 57 mScript.set_gSum(mSum); in createTest() 58 mScript.set_gSrc(mInPixelsAllocation); in createTest() 59 mScript.set_gDest(mOutPixelsAllocation); in createTest() [all …]
|
D | Posterize.java | 31 private ScriptC_posterize mScript; field in Posterize 39 mScript = new ScriptC_posterize(mRS); in createTest() 44 mScript.invoke_setParams(intensHigh, intensLow, in setParams() 47 mScript.set_intensityLow(intensLow); in setParams() 48 mScript.set_intensityHigh(intensHigh); in setParams() 49 mScript.set_color(new Short4((short)r, (short)g, (short)b, (short)255)); in setParams() 54 mScript.set_inputImage(mInPixelsAllocation); in runTest() 56 mScript.forEach_root(mInPixelsAllocation, mOutPixelsAllocation); in runTest() 58 mScript.forEach_root(mOutPixelsAllocation, mOutPixelsAllocation); in runTest() 60 mScript.forEach_root(mOutPixelsAllocation, mOutPixelsAllocation); in runTest() [all …]
|
D | Mandelbrot.java | 26 private ScriptC_mandelbrot mScript; field in Mandelbrot 41 mScript.set_gMaxIteration(iters); in onBar1Changed() 51 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() 54 mScript.set_lowerBoundX(lowerBoundX); in onBar2Changed() 64 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() 67 mScript.set_lowerBoundY(lowerBoundY); in onBar3Changed() 78 mScript.set_scaleFactor(scaleFactor); in onBar4Changed() 85 mScript = new ScriptC_mandelbrot(mRS); in createTest() 86 mScript.set_gDimX(width); in createTest() 87 mScript.set_gDimY(height); in createTest() [all …]
|
D | Resize.java | 32 private ScriptC_resize mScript; field in Resize 54 mScript = new ScriptC_resize(mRS); in createTest() 55 mScript.set_gIn(mInPixelsAllocation); in createTest() 56 mScript.set_gWidthIn(mWidth); in createTest() 57 mScript.set_gHeightIn(mHeight); in createTest() 58 mScript.set_scale(1.f / scale); in createTest() 59 mScript.forEach_nearest(mScratchAllocation); in createTest() 62 mScript.set_gIn(mScratchAllocation); in createTest() 63 mScript.set_gWidthIn(t.getX()); in createTest() 64 mScript.set_gHeightIn(t.getY()); in createTest() [all …]
|
D | Grain.java | 32 private ScriptC_grain mScript; field in Grain 45 mScript.set_gNoiseStrength(s); in onBar1Changed() 49 mScript.set_gNoiseStrength(time % 1.f); in animateBars() 84 mScript = new ScriptC_grain(mRS); in createTest() 85 mScript.set_gWMask(noiseW - 1); in createTest() 86 mScript.set_gHMask(noiseH - 1); in createTest() 87 mScript.set_gNoiseStrength(0.5f); in createTest() 88 mScript.set_gBlendSource(mNoise); in createTest() 89 mScript.set_gNoise(mNoise2); in createTest() 93 mScript.forEach_genRand(mNoise); in runTest() [all …]
|
D | Blur25.java | 36 private ScriptC_threshold mScript; field in Blur25 66 mScript.invoke_setRadius((int)mRadius); in onBar1Changed() 101 mScript = new ScriptC_threshold(mRS); in createTest() 102 mScript.set_width(width); in createTest() 103 mScript.set_height(height); in createTest() 105 mScript.invoke_setRadius(MAX_RADIUS); in createTest() 106 mScript.set_InPixel(mInPixelsAllocation); in createTest() 107 mScript.set_ScratchPixel1(mScratchPixelsAllocation1); in createTest() 108 mScript.set_ScratchPixel2(mScratchPixelsAllocation2); in createTest() 124 mScript.forEach_copyIn(mInPixelsAllocation, mScratchPixelsAllocation1); in runTest() [all …]
|
D | Vibrance.java | 20 private ScriptC_vibrance mScript; field in Vibrance 23 mScript = new ScriptC_vibrance(mRS); in createTest() 27 mScript.set_vibrance(50.f); in runTest() 28 mScript.invoke_prepareVibrance(); in runTest() 29 mScript.forEach_vibranceKernel(mInPixelsAllocation, mOutPixelsAllocation); in runTest()
|
D | Convolve3x3.java | 32 private ScriptC_convolve3x3 mScript; field in Convolve3x3 68 mScript = new ScriptC_convolve3x3(mRS); in createTest() 69 mScript.set_gCoeffs(f); in createTest() 70 mScript.set_gIn(mInPixelsAllocation); in createTest() 71 mScript.set_gWidth(mWidth); in createTest() 72 mScript.set_gHeight(mHeight); in createTest() 81 mScript.set_gCoeffs(f); in animateBars() 89 mScript.forEach_root(mOutPixelsAllocation); in runTest()
|
/frameworks/rs/tests/java_api/ImageProcessing/src/com/android/rs/image/ |
D | Histogram.java | 25 private ScriptC_histogram mScript; field in Histogram 31 mScript = new ScriptC_histogram(mRS); in createTest() 39 mScript.set_gWidth(w); in createTest() 40 mScript.set_gHeight(h); in createTest() 41 mScript.set_gStep(step); in createTest() 42 mScript.set_gSteps(steps); in createTest() 50 mScript.set_gSums(mSums); in createTest() 51 mScript.set_gSum(mSum); in createTest() 52 mScript.set_gSrc(mInPixelsAllocation); in createTest() 53 mScript.set_gDest(mOutPixelsAllocation); in createTest() [all …]
|
D | Blur25.java | 35 private ScriptC_threshold mScript; field in Blur25 61 mScript.invoke_setRadius((int)mRadius); in onBar1Changed() 82 mScript = new ScriptC_threshold(mRS); in createTest() 83 mScript.set_width(width); in createTest() 84 mScript.set_height(height); in createTest() 85 mScript.invoke_setRadius(MAX_RADIUS); in createTest() 87 mScript.set_InPixel(mInPixelsAllocation); in createTest() 88 mScript.set_ScratchPixel1(mScratchPixelsAllocation1); in createTest() 89 mScript.set_ScratchPixel2(mScratchPixelsAllocation2); in createTest() 97 mScript.forEach_copyIn(mInPixelsAllocation, mScratchPixelsAllocation1); in runTest() [all …]
|
D | Mandelbrot.java | 32 private ScriptC_mandelbrot mScript; field in Mandelbrot 47 mScript.set_gMaxIteration(iters); in onBar1Changed() 57 float scaleFactor = mScript.get_scaleFactor(); in onBar2Changed() 60 mScript.set_lowerBoundX(lowerBoundX); in onBar2Changed() 70 float scaleFactor = mScript.get_scaleFactor(); in onBar3Changed() 73 mScript.set_lowerBoundY(lowerBoundY); in onBar3Changed() 84 mScript.set_scaleFactor(scaleFactor); in onBar4Changed() 91 mScript = new ScriptC_mandelbrot(mRS); in createTest() 92 mScript.set_gDimX(width); in createTest() 93 mScript.set_gDimY(height); in createTest() [all …]
|
D | Resize.java | 32 private ScriptC_resize mScript; field in Resize 54 mScript = new ScriptC_resize(mRS); in createTest() 55 mScript.set_gIn(mInPixelsAllocation); in createTest() 56 mScript.set_gWidthIn(mWidth); in createTest() 57 mScript.set_gHeightIn(mHeight); in createTest() 58 mScript.set_scale(1.f / scale); in createTest() 59 mScript.forEach_nearest(mScratchAllocation); in createTest() 62 mScript.set_gIn(mScratchAllocation); in createTest() 63 mScript.set_gWidthIn(t.getX()); in createTest() 64 mScript.set_gHeightIn(t.getY()); in createTest() [all …]
|
D | Grain.java | 32 private ScriptC_grain mScript; field in Grain 45 mScript.set_gNoiseStrength(s); in onBar1Changed() 79 mScript = new ScriptC_grain(mRS); in createTest() 80 mScript.set_gWMask(noiseW - 1); in createTest() 81 mScript.set_gHMask(noiseH - 1); in createTest() 82 mScript.set_gNoiseStrength(0.5f); in createTest() 83 mScript.set_gBlendSource(mNoise); in createTest() 84 mScript.set_gNoise(mNoise2); in createTest() 88 mScript.forEach_genRand(mNoise); in runTest() 89 mScript.forEach_blend9(mNoise2); in runTest() [all …]
|
D | Mirror.java | 30 private ScriptC_mirror mScript; field in Mirror 35 mScript = new ScriptC_mirror(mRS); in createTest() 40 mScript.set_gIn(mInPixelsAllocation); in createTest() 41 mScript.set_gWidth(mWidth); in createTest() 42 mScript.set_gHeight(mHeight); in createTest() 46 mScript.forEach_mirror(mOutPixelsAllocation); in runTest()
|
D | Convolve3x3.java | 32 private ScriptC_convolve3x3 mScript; field in Convolve3x3 57 mScript = new ScriptC_convolve3x3(mRS); in createTest() 58 mScript.set_gCoeffs(f); in createTest() 59 mScript.set_gIn(mInPixelsAllocation); in createTest() 60 mScript.set_gWidth(mWidth); in createTest() 61 mScript.set_gHeight(mHeight); in createTest() 69 mScript.forEach_root(mOutPixelsAllocation); in runTest()
|
D | Vibrance.java | 24 private ScriptC_vibrance mScript; field in Vibrance 27 mScript = new ScriptC_vibrance(mRS); in createTest() 31 mScript.set_vibrance(50.f); in runTest() 32 mScript.invoke_prepareVibrance(); in runTest() 33 mScript.forEach_vibranceKernel(mInPixelsAllocation, mOutPixelsAllocation); in runTest()
|
/frameworks/rs/tests/java_api/LatencyBenchmark/src/com/example/android/rs/computebench/ |
D | Benchmark.java | 24 private ScriptC_compute_benchmark mScript; field in Benchmark 30 mScript = new ScriptC_compute_benchmark(mRS); in Benchmark() 42 mScript.forEach_root(ain, aout); in run() 48 mScript.set_empty_kern(mScript); in run() 49 mScript.set_in(ain); in run() 50 mScript.set_out(aout); in run() 53 mScript.invoke_emptyKernelLauncher(); in run()
|