Home
last modified time | relevance | path

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

123

/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()
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()
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).
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_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 …]
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 …]
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 …]
DDepthTransform.java42 public int quantize(float depth); in quantize() argument
DRefocusFilter.java179 private static int getKernelRadius(int depth, BlurStack blurStack) { in getKernelRadius() argument
181 .computeKernelRadiusFromDiskRadius(blurStack.getDiskRadius(depth)); in getKernelRadius()
/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/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/appop/src/android/app/appops/cts/
DHistoricalAppopsTest.kt314 private fun testHistoricalAggregationSomeLevelsDeep(depth: Int) { in <lambda>()
323 val chunkCount = (computeSlotCount(depth + 1) in <lambda>()
330 val intervalBeginMillis = computeIntervalBeginRawMillis(depth) in <lambda>()
331 val intervalEndMillis = computeIntervalBeginRawMillis(depth + 1) in <lambda>()
334 val expectedOpCount = ((computeSlotCount(depth + 1) - computeSlotCount(depth)) in <lambda>()
339 private fun testGetHistoricalPackageOpsForegroundAtDepth(depth: Int) { in <lambda>()
360 for (d in depth downTo 0) { in <lambda>()
378 if (depth > 0) { in <lambda>()
618 private fun computeIntervalDurationMillis(depth: Int): Long { in <lambda>()
620 (depth + 1).toDouble()).toLong() * SNAPSHOT_INTERVAL_MILLIS in <lambda>()
[all …]
/cts/tests/camera/libctscamera2jni/
DAndroid.bp26 "dynamic-depth-validate-jni.cpp",
46 // Flags related to dynamic depth
62 // Dynamic depth libraries
/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.java95 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in cleanUp()
248 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in launchPanel()
256 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in launchPanel()
267 mDevice.wait(Until.hasObject(By.pkg(mLauncherPackage).depth(0)), TIMEOUT); in pressDone()
272 mDevice.wait(Until.hasObject(By.pkg(mSettingsPackage).depth(0)), TIMEOUT); in pressSeeMore()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-0706/src/android/security/cts/CVE_2021_0706/
DDeviceTest.java52 assumeNotNull(mDevice.wait(Until.hasObject(By.pkg(TEST_PACKAGE).depth(0)), TIMEOUT_MS)); in testDisablePlugin()
57 assumeNotNull(mDevice.wait(Until.gone(By.pkg(TEST_PACKAGE).depth(0)), TIMEOUT_MS)); in testDisablePlugin()
/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/tests/tests/companion/uicommon/src/android/companion/cts/uicommon/
DCompanionDeviceManagerUi.kt131 private val ASSOCIATION_REVOKE_APP_UI = By.pkg(ASSOCIATION_REVOKE_APP_NAME).depth(0) in click()
133 private val NOTIFICATION_UI = By.pkg(NOTIFICATION_PACKAGE_NAME).depth(0) in click()
135 private val NOTIFICATION_UI_AUTO = By.pkg(NOTIFICATION_PACKAGE_NAME_AUTO).depth(0) in click()
/cts/hostsidetests/securitybulletin/test-apps/CVE-2021-39701/src/android/security/cts/CVE_2021_39701/
DDeviceTest.java75 device.wait(Until.hasObject(By.pkg(applicationName).depth(0)), timeoutMs)); in testService()
91 device.wait(Until.hasObject(By.pkg(applicationName).depth(0)), timeoutMs)); in testService()
98 device.wait(Until.hasObject(By.pkg(applicationName).depth(0)), timeoutMs)); in testService()
/cts/hostsidetests/securitybulletin/test-apps/BUG-182810085/src/android/security/cts/BUG_182810085/
DDeviceTest.java102 UiObject2 view = waitForView(By.pkg(Constants.TEST_APP_PACKAGE).depth(0)); in launchTestApp()
113 UiObject2 activityInstance = waitForView(By.pkg("com.android.car.settings").depth(0)); in launchTapjackedActivity()

123