Home
last modified time | relevance | path

Searched refs:SIZE (Results 1 – 25 of 28) sorted by relevance

12

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2019-2207/
Dpoc.cpp20 #define SIZE 16 macro
27 uint8_t data_len = SIZE * 6; in main()
28 uint8_t *data = (uint8_t *)malloc(SIZE); in main()
/cts/tests/tests/graphics/src/android/graphics/cts/
DComposeShaderTest.java45 private static final int SIZE = 255; field in ComposeShaderTest
50 LinearGradient blueGradient = new LinearGradient(0, 0, SIZE, 0, in testPorterDuff()
52 LinearGradient redGradient = new LinearGradient(0, 0, 0, SIZE, in testPorterDuff()
56 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in testPorterDuff()
62 for (int y = 0; y < SIZE; y++) { in testPorterDuff()
63 for (int x = 0; x < SIZE; x++) { in testPorterDuff()
83 LinearGradient blueGradient = new LinearGradient(0, 0, SIZE, 0, in testBlendMode()
85 LinearGradient redGradient = new LinearGradient(0, 0, 0, SIZE, in testBlendMode()
89 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in testBlendMode()
95 for (int y = 0; y < SIZE; y++) { in testBlendMode()
[all …]
DSweepGradientTest.java48 private static final int SIZE = 200; field in SweepGradientTest
49 private static final int CENTER = SIZE / 2;
61 mBitmap = Bitmap.createBitmap(SIZE, SIZE, Config.ARGB_8888); in setup()
72 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in test2Colors()
82 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testColorArray()
94 mCanvas.drawRect(new Rect(0, 0, SIZE, SIZE), mPaint); in testMultiColor()
/cts/tests/tests/transition/src/android/transition/cts/
DSharedElementCallbackTest.java48 final int SIZE = 10; in testSnapshot() local
50 Bitmap bitmap = Bitmap.createBitmap(SIZE, SIZE, Bitmap.Config.ARGB_8888, true, cs); in testSnapshot()
59 RectF screenBounds = new RectF(0, 0, SIZE, SIZE); in testSnapshot()
/cts/tests/tests/database/src/android/database/cts/
DCursorIndexOutOfBoundsExceptionTest.java35 int SIZE = 99; in testConstructors() local
37 String expected2 = "Index " + INDEX + " requested, with a size of " + SIZE; in testConstructors()
53 throw new CursorIndexOutOfBoundsException(INDEX, SIZE); in testConstructors()
/cts/tests/tests/renderscript/src/android/renderscript/cts/
Dsmall_structs.rscript72 #define CHAR_ARRAY_TEST(SIZE) \
73 typedef struct char_array_##SIZE { char bytes[SIZE]; } \
74 char_array_##SIZE; \
76 char_array_##SIZE RS_KERNEL \
77 modify_char_array_##SIZE(char_array_##SIZE in) { \
78 for (int i = 0; i < SIZE; ++i) { \
84 void verify_char_array_##SIZE(rs_allocation alloc) { \
86 struct char_array_##SIZE *elem = \
87 (struct char_array_##SIZE *) rsGetElementAt(alloc, i); \
88 for (int j = 0; j < SIZE; ++j) { \
/cts/tests/openglperf2/jni/primitive/shaderperf/
DShaderPerfRenderer.cpp124 const int SIZE = 256; in setUp() local
125 uint32_t* m = new uint32_t[SIZE]; in setUp()
128 for (int i = 0; i < SIZE; i++) { in setUp()
134 glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, SIZE, 1, 0, GL_RGBA, GL_UNSIGNED_BYTE, m); in setUp()
/cts/tests/mediaprovider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java102 public static final int SIZE = 2737870; field in MediaStoreAudioTestHelper.Audio1
126 values.put(Media.SIZE, SIZE); in getContentValues()
165 public static final int SIZE = 2737321; field in MediaStoreAudioTestHelper.Audio2
188 values.put(Media.SIZE, SIZE); in getContentValues()
DMediaStore_Audio_Playlists_MembersTest.java78 Members.SIZE,
107 Members.SIZE,
259 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioPlaylistsMembersExternal()
304 assertEquals(Audio2.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioPlaylistsMembersExternal()
DMediaStore_Video_MediaTest.java147 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal()
177 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
434 assertEquals(20716, c.getLong(c.getColumnIndex(VideoColumns.SIZE))); in testMetadata()
DMediaStore_Audio_Genres_MembersTest.java150 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioGenresMembersExternal()
DMediaStore_Audio_MediaTest.java145 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreAudioMedia()
DMediaStoreNotificationTest.java106 values.put(MediaStore.Images.Media.SIZE, 32); in testSimple()
DMediaStore_Images_MediaTest.java261 values.put(Media.SIZE, numBytes); in testStoreImagesMediaExternal()
290 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreImagesMediaExternal()
583 assertEquals(107704, c.getLong(c.getColumnIndex(ImageColumns.SIZE)));
DMediaStorePlacementTest.java107 values.put(MediaColumns.SIZE, 0); in testIgnored()
DMediaStorePendingTest.java468 values.put(MediaColumns.SIZE, file.length()); in testMatchingColumns()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java815 final int SIZE = 1024 * 1024; in testOpenProxyFileDescriptor_largeRead() local
817 new TestProxyFileDescriptorCallback(SIZE, "abcdefghijklmnopqrstuvwxyz"); in testOpenProxyFileDescriptor_largeRead()
818 final byte[] bytes = new byte[SIZE]; in testOpenProxyFileDescriptor_largeRead()
832 final int SIZE = 1024 * 1024; in testOpenProxyFileDescriptor_largeWrite() local
834 new TestProxyFileDescriptorCallback(SIZE, "abcdefghijklmnopqrstuvwxyz"); in testOpenProxyFileDescriptor_largeWrite()
835 final byte[] bytes = new byte[SIZE]; in testOpenProxyFileDescriptor_largeWrite()
836 for (int i = 0; i < SIZE; i++) { in testOpenProxyFileDescriptor_largeWrite()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/unittests/
DHotwordDetectedResultTest.java78 + HotwordDetectedResult.getMaxBundleSize() * Byte.SIZE; in testHotwordDetectedResult_totalSize()
80 assertThat(totalSize <= Utils.MAX_HOTWORD_DETECTED_RESULT_SIZE * Byte.SIZE).isTrue(); in testHotwordDetectedResult_totalSize()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java372 for (int i = 0; i < Integer.SIZE; i++) { in compareKeyFlags()
391 for (int i = 0; i < Integer.SIZE; i++) { in compareMotionFlags()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java1661 final Size SIZE = mStaticInfo.getAvailableSizesForFormatChecked(FORMAT, in discardFreeBuffersTestByCamera() local
1665 createDefaultImageReader(SIZE, FORMAT, MAX_NUM_IMAGES, mListener); in discardFreeBuffersTestByCamera()
1675 validateImage(SIZE, FORMAT, NUM_FRAME_VERIFIED, REPEATING, /*colorSpace*/ null); in discardFreeBuffersTestByCamera()
1676 validateCaptureResult(FORMAT, SIZE, listener, NUM_FRAME_VERIFIED); in discardFreeBuffersTestByCamera()
1682 validateImage(SIZE, FORMAT, NUM_FRAME_VERIFIED, REPEATING, /*colorSpace*/ null); in discardFreeBuffersTestByCamera()
1683 validateCaptureResult(FORMAT, SIZE, listener, NUM_FRAME_VERIFIED); in discardFreeBuffersTestByCamera()
1700 validateImage(SIZE, FORMAT, /*captureCount*/ 1, SINGLE, /*colorSpace*/ null); in discardFreeBuffersTestByCamera()
/cts/tests/PhotoPicker/src/android/photopicker/cts/
DCloudPhotoPickerTest.java300 assertThat(c.getLong(c.getColumnIndex(PickerMediaColumns.SIZE))) in testUriAccessWithValidProjection()
/cts/tests/tests/tv/src/android/media/tv/tuner/cts/
DTunerTest.java239 if (cap >= Integer.SIZE) { in getCapCount()
252 for (int i = 0; i < Integer.SIZE; i++) { in getPartialCap()
265 for (int i = 0; i < Integer.SIZE; i++) { in getFirstSupportedCap()
278 for (int i = 0; i < Integer.SIZE; i++) { in getFirstNonSupportedCap()
290 mRunningSmallestNumOfBits = Integer.SIZE; in reset()
303 for (int i = 0; i < Integer.SIZE - 1; i++) { in updateCapCounts()
/cts/tests/tests/tv/tuner/src/android/media/tv/tuner/cts/
DTunerTest.java238 if (cap >= Integer.SIZE) { in getCapCount()
251 for (int i = 0; i < Integer.SIZE; i++) { in getPartialCap()
264 for (int i = 0; i < Integer.SIZE; i++) { in getFirstSupportedCap()
277 for (int i = 0; i < Integer.SIZE; i++) { in getFirstNonSupportedCap()
289 mRunningSmallestNumOfBits = Integer.SIZE; in reset()
302 for (int i = 0; i < Integer.SIZE - 1; i++) { in updateCapCounts()
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java715 mediaStoreUri, MediaStore.MediaColumns.SIZE))); in testDownload_mediaScanned()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java2253 private final int[] mCounts = new int[ActivityCallback.SIZE];
2254 private final int[] mFirstIndexes = new int[ActivityCallback.SIZE];
2255 private final int[] mLastIndexes = new int[ActivityCallback.SIZE];

12