Home
last modified time | relevance | path

Searched refs:w (Results 1 – 25 of 264) sorted by relevance

1234567891011

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DVLoadTest.java31 final int w = 253; field in VLoadTest
44 int tmp[] = new int[w]; in createWalk()
45 boolean b[] = new boolean[w]; in createWalk()
46 int toCopy = w; in createWalk()
50 int x = random.nextInt(w); in createWalk()
53 while ((x < w) && b[x]) { in createWalk()
55 if (x >= w) { in createWalk()
62 if ((x+1 < w) && !b[x+1]) { in createWalk()
65 if ((x+2 < w) && !b[x+2]) { in createWalk()
68 if ((x+3 < w) && !b[x+3]) { in createWalk()
[all …]
DIntrinsicBase.java63 protected Allocation makeAllocation(int w, int h, Element e, boolean clear) { in makeAllocation() argument
65 tb.setX(w); in makeAllocation()
79 protected Allocation makeAllocation(int w, int h, Element e) { in makeAllocation() argument
80 return makeAllocation(w, h, e, true); in makeAllocation()
83 protected void makeSource(int w, int h, Element e) { in makeSource() argument
87 mAllocSrc = makeAllocation(w, h, e); in makeSource()
94 float f[] = new float[w * h * vs]; in makeSource()
96 for (int x = 0; x < w; x++) { in makeSource()
98 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
106 byte f[] = new byte[w * h * vs]; in makeSource()
[all …]
DSampleTest.java41 int w = t.getY(); in createAlloc() local
42 if (w < 1) { in createAlloc()
43 w = 1; in createAlloc()
46 for (int ct = 0; ct < (8 * w); ct++) { in createAlloc()
49 w = (w + 1) >> 1; in createAlloc()
50 for (int ct = 0; ct < (4 * w); ct++) { in createAlloc()
53 w = (w + 1) >> 1; in createAlloc()
54 for (int ct = 0; ct < (2 * w); ct++) { in createAlloc()
57 w = (w + 1) >> 1; in createAlloc()
DIntrinsicBlur.java33 private void initTest(int w, int h, Element e, Script.LaunchOptions lo) { in initTest() argument
34 makeBuffers(w, h, e); in initTest()
37 tb.setX(w); in initTest()
47 mScript.set_width(w); in initTest()
86 final int w = 97; in testU8_1() local
89 initTest(w, h, e, null); in testU8_1()
100 final int w = 97; in testU8_4() local
103 initTest(w, h, e, null); in testU8_4()
115 final int w = 97; in testU8_1C() local
118 Script.LaunchOptions lo = makeClipper(11, 11, w - 11, h - 11); in testU8_1C()
[all …]
DIntrinsicHistogram.java26 private void createAllocations(int inVSize, int outVSize, int w, int h) { in createAllocations() argument
45 tb.setX(w).setY(h); in createAllocations()
51 private void testNorm(int inVSize, int outVSize, int w, int h, boolean clip) { in testNorm() argument
52 createAllocations(inVSize, outVSize, w, h); in testNorm()
57 byte i[] = new byte[w * h * invs2]; in testNorm()
64 int x1 = 0, y1 = 0, x2 = w, y2 = h; in testNorm()
68 x2 = w - 11; in testNorm()
74 int ct = (y * w + x) * invs2; in testNorm()
172 private void testDot(int inVSize, int w, int h, boolean clip) { in testDot() argument
173 createAllocations(inVSize, 1, w, h); in testDot()
[all …]
DComputeTest.java72 b4.w = 4; in testJavaVectorTypes()
77 assertTrue(b4.w == 4); in testJavaVectorTypes()
97 d4.w = 4.0; in testJavaVectorTypes()
102 assertTrue(d4.w == 4.0); in testJavaVectorTypes()
122 f4.w = 4.0f; in testJavaVectorTypes()
127 assertTrue(f4.w == 4.0f); in testJavaVectorTypes()
147 i4.w = 4; in testJavaVectorTypes()
152 assertTrue(i4.w == 4); in testJavaVectorTypes()
172 l4.w = 4; in testJavaVectorTypes()
177 assertTrue(l4.w == 4); in testJavaVectorTypes()
[all …]
Dfe_all.rs26 aout[0].w = ain[0].w + 1;
52 aout[0].w = ain[0].w + 1;
78 aout[0].w = ain[0].w + 1;
104 aout[0].w = ain[0].w + 1;
130 aout[0].w = ain[0].w + 1.0f;
156 aout[0].w = ain[0].w + 1.0;
Dverify.rs33 uint32_t w = rsAllocationGetDimX(in1);
36 for (uint32_t x=0; x < w; x++) {
42 e |= !compare_float(pref.w, ptst.w);
54 uint32_t w = rsAllocationGetDimX(in1);
57 for (uint32_t x=0; x < w; x++) {
74 uint32_t w = rsAllocationGetDimX(in1);
77 for (uint32_t x=0; x < w; x++) {
93 uint32_t w = rsAllocationGetDimX(in1);
96 for (uint32_t x=0; x < w; x++) {
112 uint32_t w = rsAllocationGetDimX(in1);
[all …]
Dkernel_all.rs28 r.w = ain.w + 1;
56 r.w = ain.w + 1;
84 r.w = ain.w + 1;
112 r.w = ain.w + 1;
140 r.w = ain.w + 1.0f;
168 r.w = ain.w + 1.0;
Dvector.rs58 _RS_ASSERT(f4.w == 5.99f);
71 _RS_ASSERT(d4.w == 5.99);
84 _RS_ASSERT(i8_4.w == 5);
97 _RS_ASSERT(u8_4.w == 5);
110 _RS_ASSERT(i16_4.w == 5);
123 _RS_ASSERT(u16_4.w == 5);
136 _RS_ASSERT(i32_4.w == 5);
149 _RS_ASSERT(u32_4.w == 5);
162 _RS_ASSERT(i64_4.w == 5);
175 _RS_ASSERT(u64_4.w == 5);
DIntrinsicColorMatrix.java26 private void subtest(int w, int h, Matrix4f mat, Float4 add, in subtest() argument
45 makeSource(w, h, ein); in subtest()
46 mAllocRef = makeAllocation(w, h, eout, true); in subtest()
47 mAllocDst = makeAllocation(w, h, eout, true); in subtest()
49 int x1 = 0, y1 = 0, x2 = w, y2 = h; in subtest()
53 x2 = w - 11; in subtest()
113 add.w = r.nextFloat() * (subtest - 1); in test()
/cts/apps/CameraITS/pymodules/its/
Dimage.py62 w = cap["width"]
71 y = cap["data"][0:w*h]
72 u = cap["data"][w*h:w*h*5/4]
73 v = cap["data"][w*h*5/4:w*h*6/4]
74 return convert_yuv420_planar_to_rgb_image(y, u, v, w, h)
95 w = cap["width"]
97 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
98 analysis_image = img.reshape(2,h,w,4)
99 mean_image = analysis_image[0,:,:,:].reshape(h,w,4)
100 var_image = analysis_image[1,:,:,:].reshape(h,w,4)
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityWindowInfoTest.java54 AccessibilityWindowInfo w = AccessibilityWindowInfo.obtain(); in testDefaultValues() local
55 assertEquals(0, w.getChildCount()); in testDefaultValues()
56 assertEquals(-1, w.getType()); in testDefaultValues()
57 assertEquals(-1, w.getLayer()); in testDefaultValues()
58 assertEquals(-1, w.getId()); in testDefaultValues()
59 assertEquals(0, w.describeContents()); in testDefaultValues()
60 assertNull(w.getParent()); in testDefaultValues()
61 assertNull(w.getRoot()); in testDefaultValues()
62 assertFalse(w.isAccessibilityFocused()); in testDefaultValues()
63 assertFalse(w.isActive()); in testDefaultValues()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java86 Log.w(TAG, "Skipping testGetActiveAdmins"); in testGetActiveAdmins()
97 Log.w(TAG, "Skipping testKeyguardDisabledFeatures"); in testKeyguardDisabledFeatures()
114 Log.w(TAG, "Skipping testRequestRemoteBugreport_failIfNotDeviceOwner"); in testRequestRemoteBugreport_failIfNotDeviceOwner()
127 Log.w(TAG, "Skipping testSetSecurityLoggingEnabled_failIfNotDeviceOwner"); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner()
140 Log.w(TAG, "Skipping testIsSecurityLoggingEnabled_failIfNotDeviceOwner"); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner()
153 Log.w(TAG, "Skipping testRetrieveSecurityLogs_failIfNotDeviceOwner"); in testRetrieveSecurityLogs_failIfNotDeviceOwner()
166 Log.w(TAG, "Skipping testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner"); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner()
179 Log.w(TAG, "Skipping testRemoveUser_failIfNotDeviceOwner"); in testRemoveUser_failIfNotDeviceOwner()
192 Log.w(TAG, "Skipping testSetApplicationHidden_failIfNotDeviceOrProfileOwner"); in testSetApplicationHidden_failIfNotDeviceOrProfileOwner()
205 Log.w(TAG, "Skipping testIsApplicationHidden_failIfNotDeviceOrProfileOwner"); in testIsApplicationHidden_failIfNotDeviceOrProfileOwner()
[all …]
/cts/apps/CtsVerifier/src/com/android/cts/verifier/sensors/
DMotionIndicatorView.java180 protected void onSizeChanged (int w, int h, int oldw, int oldh) { in onSizeChanged() argument
181 mXSize = w; in onSizeChanged()
184 mZBoundOut = new RectF(w/2-w/2.5f, h/2-w/2.5f, w/2+w/2.5f, h/2+w/2.5f); in onSizeChanged()
186 w/2-w/2.5f-ZRING_CURSOR_ADD, h/2-w/2.5f-ZRING_CURSOR_ADD, in onSizeChanged()
187 w/2+w/2.5f+ZRING_CURSOR_ADD, h/2+w/2.5f+ZRING_CURSOR_ADD); in onSizeChanged()
189 w/2-w/2.5f+ZRING_WIDTH, h/2-w/2.5f+ZRING_WIDTH, in onSizeChanged()
190 w/2+w/2.5f-ZRING_WIDTH, h/2+w/2.5f-ZRING_WIDTH); in onSizeChanged()
192 w/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD, h/2-w/2.5f+ZRING_WIDTH+ZRING_CURSOR_ADD, in onSizeChanged()
193 w/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD, h/2+w/2.5f-ZRING_WIDTH-ZRING_CURSOR_ADD); in onSizeChanged()
195 if (LOCAL_LOGV) Log.v(TAG, "New view size = ("+w+", "+h+")"); in onSizeChanged()
/cts/tests/tests/security/src/android/security/cts/
DMediaServerCrashTest.java62 Log.w(TAG, "onError " + what); in setUp()
104 Log.w(TAG, "testIfMediaServerDied: Timed out waiting for prepare"); in testIfMediaServerDied()
109 Log.w(TAG, "testIfMediaServerDied: Timed out waiting for Error/Completion"); in testIfMediaServerDied()
112 Log.w(TAG, "playback failed", e); in testIfMediaServerDied()
124 Log.w(TAG, "Can not convert dm to fl, skip checkIfMediaServerDiedForDrm"); in checkIfMediaServerDiedForDrm()
149 Log.w(TAG, "checkIfMediaServerDiedForDrm: Timed out waiting for Error/Completion"); in checkIfMediaServerDiedForDrm()
174 Log.w(TAG, "DrmManagerClient instance could not be created, context is Illegal."); in convertDmToFl()
177 Log.w(TAG, "DrmManagerClient didn't initialize properly."); in convertDmToFl()
182 Log.w(TAG, "Failed to create DrmManagerClient."); in convertDmToFl()
190 Log.w(TAG, "Conversion of Mimetype: " + MIMETYPE_DRM_MESSAGE in convertDmToFl()
[all …]
/cts/apps/CameraITS/tests/inprog/
Dtest_black_level.py63 w = cap["width"]
72 yimg = yimg[w/2-R:w/2+R, h/2-R:h/2+R]
73 uimg = uimg[w/4-R/2:w/4+R/2, w/4-R/2:w/4+R/2]
74 vimg = vimg[w/4-R/2:w/4+R/2, w/4-R/2:w/4+R/2]
/cts/tests/tests/renderscript/src/android/renderscript/cts/refocus/
DRGBZ.java161 int w = orig.getWidth(); in setAlphaChannelFromBitmap() local
163 int[] orig_data = new int[w*h]; in setAlphaChannelFromBitmap()
164 int[] depth_data = new int[w*h]; in setAlphaChannelFromBitmap()
166 orig.getPixels(orig_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
167 depth.getPixels(depth_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
174 dest.setPixels(orig_data, 0, w, 0, 0, w, h); in setAlphaChannelFromBitmap()
/cts/tests/tests/rscpp/librscpptest/
Dfe_all.rs26 aout[0].w = ain[0].w + 1;
52 aout[0].w = ain[0].w + 1;
78 aout[0].w = ain[0].w + 1;
104 aout[0].w = ain[0].w + 1;
130 aout[0].w = ain[0].w + 1.0f;
156 aout[0].w = ain[0].w + 1.0;
/cts/tests/tests/rscpp/src/android/cts/rscpp/
Dverify.rs39 uint32_t w = rsAllocationGetDimX(in1);
42 for (uint32_t x=0; x < w; x++) {
48 e |= !compare_float(pref.w, ptst.w);
61 uint32_t w = rsAllocationGetDimX(in1);
64 for (uint32_t x=0; x < w; x++) {
82 uint32_t w = rsAllocationGetDimX(in1);
85 for (uint32_t x=0; x < w; x++) {
102 uint32_t w = rsAllocationGetDimX(in1);
105 for (uint32_t x=0; x < w; x++) {
122 uint32_t w = rsAllocationGetDimX(in1);
[all …]
/cts/libs/deviceutil/src/android/cts/util/
DWidgetTestUtils.java56 int w = b1.getWidth(); in assertEquals() local
58 int s = w * h; in assertEquals()
62 b1.getPixels(pixels1, 0, w, 0, 0, w, h); in assertEquals()
63 b2.getPixels(pixels2, 0, w, 0, 0, w, h); in assertEquals()
/cts/tests/tests/graphics/src/android/opengl/cts/
DGLSurfaceViewTest.java70 Log.w(TAG, "Pause/Resume (w/ delay) step " + i + " - pause"); in testPauseResumeWithDelay()
75 Log.w(TAG, "Pause/Resume (w/ delay) step " + i + " - resume"); in testPauseResumeWithDelay()
94 Log.w(TAG, "Pause/Resume (no delay) step " + i + " - pause"); in testPauseResumeWithoutDelay()
98 Log.w(TAG, "Pause/Resume (no delay) step " + i + " - resume"); in testPauseResumeWithoutDelay()
/cts/tests/tests/security/res/raw/
Ddrm_uaf.dm20 …���W����ܘ�7P<R�$��q�y �`��0�D�/}ɏR&���P<���P���Ү��Y�Ã�@�r����<w!i8�[([�P4x9uHowٜ…
23 …-��f�C�r�ٗo)[� R�R�� <����Nn�i�J�w�-!TB^ 4늶�F �P<}���r0ߥ�:c/�͆�X/�'V��rAx <�)���������*…
25w�K�4��+��b�%���<@<�%�Հ��,�Ʊ����)���)�<_��<����v ~�<�r#O�d�!����6z�<�,����[�*��d�o�…
26 v�â@<����,;w�n�����}�+h���<y!��A��{I�����ge����齦@� <�
36 E�h�=�P<��������z�cF�^��F�@��=[��<U����ߥW7ϋ�l�](g@�7�<7�<�.�����jJ�4x��c�w�vď���…
40w��$#��1�f�o*i<��Z�O^y�$k'�Z:�s���I��F�P<�# �i�jP��ʸ�ٖgZ�bvȿ��<� l��Z?h���H��…
42 j���^r�` P�P<�w#�\^��o�ݵpB�Ӑ��3����<����<��&�Nl�i�ZT�w����\����W�>c�!0<��Z~��F��G��h��z5�:�…
45 ���(̌'�w"�_&45�@<�%-'�^�w�Ā!}#z"Q��z�eXt��<G
/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayWithCompositionTest.java156 Log.w(TAG, "Trying resolution " + maxRes); in testRenderingMaxResolutionLocally()
176 Log.w(TAG, "Trying resolution " + maxRes); in testRenderingMaxResolutionRemotely()
206 private void runTestRenderingInSeparateThread(final int w, final int h, in runTestRenderingInSeparateThread() argument
212 doTestRenderingOutput(w, h, runRemotely, multipleWindows); in runTestRenderingInSeparateThread()
227 private void doTestRenderingOutput(int w, int h, boolean runRemotely, boolean multipleWindows) in doTestRenderingOutput() argument
230 Log.i(TAG, "doTestRenderingOutput for w:" + w + " h:" + h); in doTestRenderingOutput()
235 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in doTestRenderingOutput()
236 mDecodingSurface = new OutputSurface(w, h); in doTestRenderingOutput()
242 mEncodingSurface = mEncodingHelper.startEncoding(w, h, in doTestRenderingOutput()
291 compositor.startComposition(mEncodingSurface, w, h, multipleWindows ? 3 : 1); in doTestRenderingOutput()
[all …]
/cts/tests/tests/util/src/android/util/cts/
DLogTest.java41 Log.w(TAG, msg); in testLogOperations()
42 Log.w(TAG, tr); in testLogOperations()
43 Log.w(TAG, msg, tr); in testLogOperations()

1234567891011