Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 31) sorted by relevance

12

/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
Dlayer_info_fast.rsh6 // Front and back depth values of this layer.
24 static inline int ValidDepth(int depth) { return (depth != 0); }
26 static inline int NotInFrontOfTheLayer(int depth,
28 return (depth <= layer_info_f2.s0);
31 static inline int OnTheLayer(int depth, const int2 layer_info_i2) {
32 //return (layer_info->back_depth <= depth && depth <= layer_info->front_depth);
33 return (layer_info_i2.s1 <= depth && depth <= layer_info_i2.s0);
37 int depth, const int2 layer_info_f2) {
38 //return (depth != 0) & (depth <= layer_info->front_depth);
39 return (depth != 0) & (depth <= layer_info_f2.s0);
[all …]
Dlayer_info.rsh6 // Front and back depth values of this layer.
24 static inline int ValidDepth(int depth) { return (depth != 0); }
26 static inline int NotInFrontOfTheLayer(int depth,
28 return (depth <= layer_info->front_depth);
31 static inline int OnTheLayer(int depth, const LayerInfo_t *layer_info) {
32 return (layer_info->back_depth <= depth && depth <= layer_info->front_depth);
36 int depth, const LayerInfo_t *layer_info) {
37 return (depth != 0) & (depth <= layer_info->front_depth);
40 static inline int ValidDepthNotOnTheLayer(int depth,
42 return (depth != 0) &
[all …]
DBlurStack.java103 public float getDiskRadius(int depth) { in getDiskRadius() argument
104 return diskRadiusArray[depth - MIN_DEPTH]; in getDiskRadius()
260 for (int depth = MIN_DEPTH; depth <= MAX_DEPTH; ++depth) { in computeDiskRadius()
262 depthTransform.reconstruct(stackDepthToOpenglDepth(depth)); in computeDiskRadius()
269 diskRadiusArray[depth - MIN_DEPTH] = Math.min(radius, MAX_DISC_RADIUS); in computeDiskRadius()
291 for (int depth = MAX_DEPTH; depth > frontFocalDepth; --depth, ++layer) { in generateOneLayerForEachDepth()
292 layerInfo[layer] = new LayerInfo(depth); in generateOneLayerForEachDepth()
301 for (int depth = backFocalDepth - 1; depth >= MIN_DEPTH; --depth, ++layer) { in generateOneLayerForEachDepth()
302 layerInfo[layer] = new LayerInfo(depth); in generateOneLayerForEachDepth()
DLayerInfo.java27 LayerInfo(int depth) { in LayerInfo() argument
28 frontDepth = depth; in LayerInfo()
29 backDepth = depth; in LayerInfo()
Dlayered_filter_d1new_helper.rsh34 // depth of the closest pixel to sharp->dilated_depth.
37 // may not be in the depth range of the target layer.
52 int depth = sharp_input_actual_depth; // Get meta data actual_depth
66 // Updates min_dist and corresponding depth.
68 depth = cond ? sharp_actual_depth : depth;
77 // If sharp->matte > 0, depth must be within the depth range of this layer.
78 rsSetElementAt_uchar(g_sharp_dilated_depth, (uchar)depth, index_sharp_meta);
93 int depth = sharp_input_actual_depth; // Get meta data actual_depth
107 // Updates min_dist and corresponding depth.
109 depth = cond ? sharp_actual_depth : depth;
[all …]
Dpixel_format_f32.rsh7 // 1. Initially, it stores the input color (red, green, blue) and the depth
16 // 3. After each layer is processed from back-most layer to focal depth layer,
20 // 4. After each layer is processed from front-most layer to focal depth layer,
42 // For active pixels, dilated_depth is the same as actual depth;
43 // For inactive pixels with non-zero matte, dilated_depth is the depth of the
45 // For other pixels, 0 (invalid depth).
DKernelDataForRenderScript.java123 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() local
124 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
145 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() local
146 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
Dlayered_filter_f32_helper.rsh17 // depth of the closest pixel to sharp->dilated_depth.
20 // may not be in the depth range of the target layer.
33 int depth = sharp->actual_depth;
46 // Updates min_dist and corresponding depth.
48 depth = cond ? sharp_nbr->actual_depth : depth;
57 // If sharp->matte > 0, depth must be within the depth range of this layer.
58 sharp->dilated_depth = (uchar)depth;
62 // the sharp depth.
76 // Gets the visibility probability lookup table for the target layer depth.
115 // the sharp depth.
[all …]
Dluts_for_speedup_f32.rsh11 // depth y is visible in the presence of a pixel with depth x.
41 // For a depth value within the focal layer, only depth values in front
43 // is, a depth value x that has a larger value (closer to the camera)
DRefocusFilter.java179 private static int getKernelRadius(int depth, BlurStack blurStack) { in getKernelRadius() argument
181 .computeKernelRadiusFromDiskRadius(blurStack.getDiskRadius(depth)); in getKernelRadius()
DDepthTransform.java42 public int quantize(float depth); in quantize() argument
DRGBZ.java160 private Bitmap setAlphaChannelFromBitmap(Bitmap depth, Bitmap orig, Bitmap dest) { in setAlphaChannelFromBitmap() argument
167 depth.getPixels(depth_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
Dlayered_filter_fast_f32.rs342 const int depth = sharp->dilated_depth;
343 if (depth == 0) {
367 g_kernel_info + depth - g_target_layer.back_depth;
404 const int depth = sharp->dilated_depth;
406 if (depth == 0) {
Dlayered_filter_fast_d1new.rs473 uchar depth = rsGetElementAt_uchar(g_sharp_dilated_depth, index);
475 if (depth == 0) {
498 …const float4 alloc_kernel_info = rsGetElementAt_float4(galloc_kernel_info, depth - g_target_layer_…
590 uchar depth = rsGetElementAt_uchar(g_sharp_dilated_depth, index);
592 if (depth == 0) {
/cts/tests/framework/base/windowmanager/src/android/server/wm/intent/
DLaunchSequence.java76 int depth(); in depth() method
189 public int depth() { in depth() method in LaunchSequence.ConsecutiveLaunch
190 return mPrevious.depth() + 1; in depth()
196 int launchSite = mLaunchFrom.map(LaunchSequence::depth).orElse(this.depth() - 1); in fold()
227 public int depth() { in depth() method in LaunchSequence.RootLaunch
/cts/tests/tests/provider/src/android/provider/cts/
DSettingsPanelTest.java76 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in cleanUp()
162 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in internetPanel_doneClosesPanel()
178 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in volumePanel_doneClosesPanel()
194 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in nfcPanel_doneClosesPanel()
210 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in wifiPanel_doneClosesPanel()
226 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in internetPanel_seeMoreButton_launchesIntoSettings()
244 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in volumePanel_seeMoreButton_launchesIntoSettings()
262 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in nfcPanel_seeMoreButton_launchesIntoSettings()
280 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in wifiPanel_seeMoreButton_launchesIntoSettings()
308 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchPanel()
[all …]
/cts/tests/tests/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt202 private fun testHistoricalAggregationSomeLevelsDeep(depth: Int) { in <lambda>()
211 val chunkCount = (computeSlotCount(depth + 1) in <lambda>()
218 val intervalBeginMillis = computeIntervalBeginRawMillis(depth) in <lambda>()
219 val intervalEndMillis = computeIntervalBeginRawMillis(depth + 1) in <lambda>()
222 val expectedOpCount = ((computeSlotCount(depth + 1) - computeSlotCount(depth)) in <lambda>()
227 private fun testGetHistoricalPackageOpsForegroundAtDepth(depth: Int) { in <lambda>()
248 for (d in depth downTo 0) { in <lambda>()
266 if (depth > 0) { in <lambda>()
464 private fun computeIntervalDurationMillis(depth: Int): Long { in <lambda>()
466 (depth + 1).toDouble()).toLong() * SNAPSHOT_INTERVAL_MILLIS in <lambda>()
[all …]
/cts/hostsidetests/sustainedperf/shadertoy_android/src/
DGLtestView.java76 public GLtestView(Context context, boolean translucent, int depth, int stencil) { in GLtestView() argument
78 init(translucent, depth, stencil); in GLtestView()
81 private void init(boolean translucent, int depth, int stencil) { in init() argument
103 new ConfigChooser(8, 8, 8, 8, depth, stencil) : in init()
104 new ConfigChooser(5, 6, 5, 0, depth, stencil) ); in init()
135 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument
140 mDepthSize = depth; in ConfigChooser()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
DAllocationCopyToTest.java410 int depth = random.nextInt(64); in test_Allocationcopy3DRangeTo_Byte() local
418 int zcount = depth - zoff; in test_Allocationcopy3DRangeTo_Byte()
426 typeBuilder.setX(width).setY(height).setZ(depth); in test_Allocationcopy3DRangeTo_Byte()
447 int depth = random.nextInt(64); in test_Allocationcopy3DRangeTo_Short_Helper() local
455 int zcount = depth - zoff; in test_Allocationcopy3DRangeTo_Short_Helper()
466 typeBuilder.setX(width).setY(height).setZ(depth); in test_Allocationcopy3DRangeTo_Short_Helper()
492 int depth = random.nextInt(64); in test_Allocationcopy3DRangeTo_Int() local
500 int zcount = depth - zoff; in test_Allocationcopy3DRangeTo_Int()
511 typeBuilder.setX(width).setY(height).setZ(depth); in test_Allocationcopy3DRangeTo_Int()
532 int depth = random.nextInt(64); in test_Allocationcopy3DRangeTo_Float() local
[all …]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/d1new/
DKernelDataForRenderScriptd1new.java62 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptd1new() local
63 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScriptd1new()
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/f32/
DKernelDataForRenderScriptF32.java63 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScriptF32() local
64 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScriptF32()
/cts/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java128 int depth = 1; in getTestName() local
129 while (index + depth < stack.length in getTestName()
130 && stack[index + depth].getMethodName().equals("invoke") in getTestName()
131 && stack[index + depth].getClassName().equals( in getTestName()
133 ++depth; in getTestName()
135 if (depth > 1) { in getTestName()
138 if (index + depth < stack.length) { in getTestName()
139 if (stack[index + depth].getClassName().startsWith("android.test.")) { in getTestName()
142 if (stack[index + depth].getMethodName().equals("runMethod")) { in getTestName()
/cts/common/device-side/util/src/com/android/compatibility/common/util/
DMediaUtils.java129 int depth = 1; in getTestName() local
130 while (index + depth < stack.length in getTestName()
131 && stack[index + depth].getMethodName().equals("invoke") in getTestName()
132 && stack[index + depth].getClassName().equals( in getTestName()
134 ++depth; in getTestName()
136 if (depth > 1) { in getTestName()
139 if (index + depth < stack.length) { in getTestName()
140 if (stack[index + depth].getClassName().startsWith("android.test.")) { in getTestName()
143 if (stack[index + depth].getMethodName().equals("runMethod")) { in getTestName()
/cts/tests/camera/libctscamera2jni/
DAndroid.mk26 dynamic-depth-validate-jni.cpp
/cts/hostsidetests/appsecurity/test-apps/WriteExternalStorageApp/src/com/android/cts/writeexternalstorageapp/
DWriteExternalStorageTest.java187 int depth = 0; in testMountStatusWalkingUpTree() local
188 while (depth++ < 32) { in testMountStatusWalkingUpTree()

12