Home
last modified time | relevance | path

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

12345678910>>...13

/cts/tests/tests/renderscript/src/android/renderscript/cts/
DVLoadTest.java31 final int w = 253; field in VLoadTest
58 int tmp[] = new int[w]; in createWalk()
59 boolean b[] = new boolean[w]; in createWalk()
60 int toCopy = w; in createWalk()
64 int x = random.nextInt(w); in createWalk()
67 while ((x < w) && b[x]) { in createWalk()
69 if (x >= w) { in createWalk()
76 if ((x+1 < w) && !b[x+1]) { in createWalk()
79 if ((x+2 < w) && !b[x+2]) { in createWalk()
82 if ((x+3 < w) && !b[x+3]) { in createWalk()
[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()
DIntrinsicBase.java75 protected Allocation makeAllocation(int w, int h, Element e, boolean clear) { in makeAllocation() argument
77 tb.setX(w); in makeAllocation()
91 protected Allocation makeAllocation(int w, int h, Element e) { in makeAllocation() argument
92 return makeAllocation(w, h, e, true); in makeAllocation()
95 protected void makeSource(int w, int h, Element e) { in makeSource() argument
96 mAllocSrc = makeAllocation(w, h, e); in makeSource()
103 float f[] = new float[w * h * vs]; in makeSource()
105 for (int x = 0; x < w; x++) { in makeSource()
107 f[(y * w + x) * vs + v] = r.nextFloat(); in makeSource()
115 byte f[] = new byte[w * h * vs]; in makeSource()
[all …]
DIntrinsicBlur.java48 private void initTest(int w, int h, Element e, Script.LaunchOptions lo) { in initTest() argument
49 makeBuffers(w, h, e); in initTest()
52 tb.setX(w); in initTest()
62 mScript.set_width(w); in initTest()
101 final int w = 97; in testU8_1() local
104 initTest(w, h, e, null); in testU8_1()
115 final int w = 97; in testU8_4() local
118 initTest(w, h, e, null); in testU8_4()
130 final int w = 97; in testU8_1C() local
133 Script.LaunchOptions lo = makeClipper(11, 11, w - 11, h - 11); in testU8_1C()
[all …]
DIntrinsicHistogram.java37 private void createAllocations(int inVSize, int outVSize, int w, int h) { in createAllocations() argument
56 tb.setX(w).setY(h); in createAllocations()
62 private void testNorm(int inVSize, int outVSize, int w, int h, boolean clip) { in testNorm() argument
63 createAllocations(inVSize, outVSize, w, h); in testNorm()
68 byte i[] = new byte[w * h * invs2]; in testNorm()
75 int x1 = 0, y1 = 0, x2 = w, y2 = h; in testNorm()
79 x2 = w - 11; in testNorm()
85 int ct = (y * w + x) * invs2; in testNorm()
185 private void testDot(int inVSize, int w, int h, boolean clip) { in testDot() argument
186 createAllocations(inVSize, 1, w, h); in testDot()
[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);
/cts/apps/CameraITS/pymodules/its/
Dimage.py65 w = cap["width"]
74 y = cap["data"][0:w*h]
75 u = cap["data"][w*h:w*h*5/4]
76 v = cap["data"][w*h*5/4:w*h*6/4]
77 return convert_yuv420_planar_to_rgb_image(y, u, v, w, h)
99 w = cap["width"]
101 img = numpy.ndarray(shape=(2*h*w*4,), dtype='<f', buffer=cap["data"])
102 analysis_image = img.reshape(2,h,w,4)
103 mean_image = analysis_image[0,:,:,:].reshape(h,w,4)
104 var_image = analysis_image[1,:,:,:].reshape(h,w,4)
[all …]
/cts/tests/accessibility/src/android/view/accessibility/cts/
DAccessibilityWindowInfoTest.java57 AccessibilityWindowInfo w = AccessibilityWindowInfo.obtain(); in testDefaultValues() local
58 assertEquals(0, w.getChildCount()); in testDefaultValues()
59 assertEquals(-1, w.getType()); in testDefaultValues()
60 assertEquals(-1, w.getLayer()); in testDefaultValues()
61 assertEquals(-1, w.getId()); in testDefaultValues()
62 assertEquals(0, w.describeContents()); in testDefaultValues()
63 assertNull(w.getParent()); in testDefaultValues()
64 assertNull(w.getRoot()); in testDefaultValues()
65 assertFalse(w.isAccessibilityFocused()); in testDefaultValues()
66 assertFalse(w.isActive()); in testDefaultValues()
[all …]
/cts/tests/admin/src/android/admin/cts/
DDevicePolicyManagerTest.java104 Log.w(TAG, "Skipping testGetActiveAdmins"); in testGetActiveAdmins()
115 Log.w(TAG, "Skipping testKeyguardDisabledFeatures"); in testKeyguardDisabledFeatures()
132 Log.w(TAG, "Skipping testRequestRemoteBugreport_failIfNotDeviceOwner"); in testRequestRemoteBugreport_failIfNotDeviceOwner()
145 Log.w(TAG, "Skipping testSetSecurityLoggingEnabled_failIfNotDeviceOwner"); in testSetSecurityLoggingEnabled_failIfNotDeviceOwner()
158 Log.w(TAG, "Skipping testIsSecurityLoggingEnabled_failIfNotDeviceOwner"); in testIsSecurityLoggingEnabled_failIfNotDeviceOwner()
171 Log.w(TAG, "Skipping testRetrieveSecurityLogs_failIfNotDeviceOwner"); in testRetrieveSecurityLogs_failIfNotDeviceOwner()
184 Log.w(TAG, "Skipping testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner"); in testRetrievePreRebootSecurityLogs_failIfNotDeviceOwner()
197 Log.w(TAG, "Skipping testSetNetworkLoggingEnabled_failIfNotDeviceOwner"); in testSetNetworkLoggingEnabled_failIfNotDeviceOwner()
210 Log.w(TAG, "Skipping testIsNetworkLoggingEnabled_failIfNotDeviceOwner"); in testIsNetworkLoggingEnabled_failIfNotDeviceOwner()
223 Log.w(TAG, "Skipping testRetrieveNetworkLogs_failIfNotDeviceOwner"); in testRetrieveNetworkLogs_failIfNotDeviceOwner()
[all …]
DDeviceAdminReceiverTest.java86 Log.w(TAG, "Skipping testOnReceivePasswordChanged"); in testOnReceivePasswordChanged()
98 Log.w(TAG, "Skipping testOnReceivePasswordFailed"); in testOnReceivePasswordFailed()
109 Log.w(TAG, "Skipping testOnReceivePasswordSucceeded"); in testOnReceivePasswordSucceeded()
120 Log.w(TAG, "Skipping testOnReceivePasswordExpiring"); in testOnReceivePasswordExpiring()
131 Log.w(TAG, "Skipping testOnReceiveEnabled"); in testOnReceiveEnabled()
142 Log.w(TAG, "Skipping testOnReceiveDisabled"); in testOnReceiveDisabled()
153 Log.w(TAG, "Skipping testOnReceiveBugreportSharingDeclined"); in testOnReceiveBugreportSharingDeclined()
164 Log.w(TAG, "Skipping testOnReceiveBugreportFailed"); in testOnReceiveBugreportFailed()
178 Log.w(TAG, "Skipping testOnReceiveBugreportShared"); in testOnReceiveBugreportShared()
191 Log.w(TAG, "Skipping testOnReceiveSecurityLogsAvailable"); in testOnReceiveSecurityLogsAvailable()
[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/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/hostsidetests/dumpsys/apps/storagedapp/src/com/android/server/cts/storaged/
DSimpleIOActivity.java34 FileWriter w = new FileWriter(testFile); in onStart() local
35 w.write(data); in onStart()
36 w.flush(); in onStart()
37 w.close(); in onStart()
/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/graphics/src/android/graphics/drawable/cts/
DAdaptiveIconDrawableTest.java353 final int w = a.getWidth(); in equalBitmaps() local
355 int[] aPix = new int[w * h]; in equalBitmaps()
356 int[] bPix = new int[w * h]; in equalBitmaps()
359 for (int i = 0; i < w; i++) { in equalBitmaps()
374 a.getPixels(aPix, 0, w, 0, 0, w, h); in equalBitmaps()
375 b.getPixels(bPix, 0, w, 0, 0, w, h); in equalBitmaps()
387 final int w = a.getWidth(); in findBitmapDifferences() local
389 int[] aPix = new int[w * h]; in findBitmapDifferences()
390 int[] bPix = new int[w * h]; in findBitmapDifferences()
392 a.getPixels(aPix, 0, w, 0, 0, w, h); in findBitmapDifferences()
[all …]
/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/tests/tests/media/libmediandkjni/
Dnative_media_encoder_jni.cpp262 int32_t w, int32_t h, int32_t colorFormat, in createMediaFormat() argument
269 AMediaFormat_setInt32(config.get(), AMEDIAFORMAT_KEY_WIDTH, w); in createMediaFormat()
279 static int32_t getOptimalBitrate(int w, int h) { in getOptimalBitrate() argument
280 return (w * h <= 640 * 480) ? 1000000 : in getOptimalBitrate()
281 (w * h <= 1280 * 720) ? 2000000 : in getOptimalBitrate()
282 (w * h <= 1920 * 1080) ? 6000000 : in getOptimalBitrate()
291 jstring jmime, int w, int h, in runNativeEncoderTest() argument
320 mime, w, h, kColorFormatSurface, in runNativeEncoderTest()
321 getOptimalBitrate(w, h), in runNativeEncoderTest()
330 w, h, kColorFormatSurface, fps, in runNativeEncoderTest()
[all …]
/cts/tests/tests/opengl/src/android/opengl/cts/
DGLSurfaceViewTest.java75 Log.w(TAG, "Pause/Resume (w/ delay) step " + i + " - pause"); in testPauseResumeWithDelay()
80 Log.w(TAG, "Pause/Resume (w/ delay) step " + i + " - resume"); in testPauseResumeWithDelay()
100 Log.w(TAG, "Pause/Resume (no delay) step " + i + " - pause"); in testPauseResumeWithoutDelay()
104 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/os/src/android/os/cts/
DSecurityPatchTest.java53 Log.w(TAG, "Skipping M+ Test."); in testSecurityPatchFound()
62 Log.w(TAG, "Skipping P+ Test"); in testVendorSecurityPatchFound()
70 Log.w(TAG, "Skipping M+ Test."); in testSecurityPatchesFormat()
77 Log.w(TAG, "Skipping P+ Test"); in testSecurityPatchesFormat()
101 Log.w(TAG, "Skipping M+ Test."); in testSecurityPatchDates()
112 Log.w(TAG, "Skipping P+ Test"); in testSecurityPatchDates()
/cts/tests/tests/media/src/android/media/cts/
DEncodeVirtualDisplayWithCompositionTest.java189 Log.w(TAG, "Trying resolution " + maxRes); in testRenderingMaxResolutionLocally()
209 Log.w(TAG, "Trying resolution " + maxRes); in testRenderingMaxResolutionRemotely()
239 private void runTestRenderingInSeparateThread(final int w, final int h, in runTestRenderingInSeparateThread() argument
241 runTestRenderingInSeparateThread(w, h, runRemotely, multipleWindows, /* degrees */ 0); in runTestRenderingInSeparateThread()
244 private void runTestRenderingInSeparateThread(final int w, final int h, in runTestRenderingInSeparateThread() argument
251 doTestRenderingOutput(w, h, runRemotely, multipleWindows, degrees); in runTestRenderingInSeparateThread()
266 private void doTestRenderingOutput(int w, int h, boolean runRemotely, boolean multipleWindows, in doTestRenderingOutput() argument
269 Log.i(TAG, "doTestRenderingOutput for w:" + w + " h:" + h); in doTestRenderingOutput()
274 MediaFormat decoderFormat = MediaFormat.createVideoFormat(MIME_TYPE, w, h); in doTestRenderingOutput()
278 mDecodingSurface = new OutputSurface(w, h); in doTestRenderingOutput()
[all …]

12345678910>>...13