Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 34) 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()
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 …]
Dlayered_filter_fast_f32.rscript9 // 1. The depth value varies between 1 and number of depth levels. 0 is reserved
11 // 2. The depth value represents inverse depth. Larger depths are closer to the
13 // 3. The depth values are grouped into several blending layers.
14 // 4. The focal layer (i.e., the global variable g_focal_layer) is the depth
20 // @param in an input RGBD pixel with @in.a being quantized inverse depth.
42 // back-most to the focal depth. This image buffer is padded.
54 // In the first pass from back-most to focal depth, g_fuzzy_image holds the
57 // In the second pass from front-most to focal depth, g_fuzzy_image accumulates
69 // The depth level that is in focus.
72 // For depth d, let n = d-g_target_layer.back_depth be the relative depth index.
[all …]
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 …]
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).
DLayerInfo.java27 LayerInfo(int depth) { in LayerInfo() argument
28 frontDepth = depth; in LayerInfo()
29 backDepth = depth; in LayerInfo()
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()
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)
Dlayered_filter_fast_d1new.rscript9 // 1. The depth value varies between 1 and number of depth levels. 0 is reserved
11 // 2. The depth value represents inverse depth. Larger depths are closer to the
13 // 3. The depth values are grouped into several blending layers.
14 // 4. The focal layer (i.e., the global variable g_focal_layer) is the depth
20 // @param in an input RGBD pixel with @in.a being quantized inverse depth.
45 // back-most to the focal depth. This image buffer is padded.
55 // In the first pass from back-most to focal depth, g_fuzzy_image holds the
58 // In the second pass from front-most to focal depth, g_fuzzy_image accumulates
67 // The depth level that is in focus.
242 // the sharp depth.
[all …]
DRefocusFilter.java179 private static int getKernelRadius(int depth, BlurStack blurStack) { in getKernelRadius() argument
181 .computeKernelRadiusFromDiskRadius(blurStack.getDiskRadius(depth)); in getKernelRadius()
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()
DDepthTransform.java42 public int quantize(float depth); in quantize() argument
/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/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/provider/src/android/provider/cts/
DSettingsPanelTest.java90 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in cleanUp()
201 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in internetPanel_seeMoreButton_launchesIntoSettings()
285 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchPanel()
293 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in launchPanel()
299 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in pressDone()
307 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in pressSeeMore()
/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/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/common/device-side/util-axt/src/com/android/compatibility/common/util/
DMediaUtils.java130 int depth = 1; in getTestName() local
131 while (index + depth < stack.length in getTestName()
132 && stack[index + depth].getMethodName().equals("invoke") in getTestName()
133 && stack[index + depth].getClassName().equals( in getTestName()
135 ++depth; in getTestName()
137 if (depth > 1) { in getTestName()
140 if (index + depth < stack.length) { in getTestName()
141 if (stack[index + depth].getClassName().startsWith("android.test.")) { in getTestName()
144 if (stack[index + depth].getMethodName().equals("runMethod")) { in getTestName()
/cts/tests/tests/location/src/android/location/cts/
DScanningSettingsTest.java105 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchScanningSettings()
113 mDevice.wait(Until.hasObject(By.pkg(SETTINGS_PACKAGE).depth(0)), TIMEOUT); in launchScanningSettings()
/cts/tests/camera/libctscamera2jni/
DAndroid.mk26 dynamic-depth-validate-jni.cpp

12