Home
last modified time | relevance | path

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

12

/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9561/
Dpoc.cpp22 #define SIZE 16 macro
29 const int32_t offset = SIZE - LENGTH; in main()
30 uint8_t* p_bytes = (uint8_t *)malloc(SIZE); in main()
34 memset(p_bytes, DEFAULT_VALUE, SIZE); in main()
/cts/hostsidetests/securitybulletin/securityPatch/CVE-2018-9563/
Dpoc.cpp22 #define SIZE 16 macro
29 const int32_t offset = SIZE - LENGTH; in main()
30 uint8_t* p_bytes = (uint8_t *)malloc(SIZE); in main()
34 memset(p_bytes, DEFAULT_VALUE, 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/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/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/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.java26 int SIZE = 99; in testConstructors() local
28 String expected2 = "Index " + INDEX + " requested, with a size of " + SIZE; in testConstructors()
44 throw new CursorIndexOutOfBoundsException(INDEX, SIZE); in testConstructors()
/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/tests/provider/src/android/provider/cts/media/
DMediaStoreAudioTestHelper.java103 public static final int SIZE = 2737870; field in MediaStoreAudioTestHelper.Audio1
127 values.put(Media.SIZE, SIZE); in getContentValues()
167 public static final int SIZE = 2737321; field in MediaStoreAudioTestHelper.Audio2
190 values.put(Media.SIZE, SIZE); in getContentValues()
DMediaStore_Audio_Playlists_MembersTest.java79 Members.SIZE,
108 Members.SIZE,
260 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioPlaylistsMembersExternal()
305 assertEquals(Audio2.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioPlaylistsMembersExternal()
DMediaStore_Video_MediaTest.java145 values.put(Media.SIZE, numBytes); in testStoreVideoMediaExternal()
175 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreVideoMediaExternal()
423 assertEquals(20716, c.getLong(c.getColumnIndex(VideoColumns.SIZE))); in testMetadata()
DMediaStore_Audio_MediaTest.java142 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreAudioMedia()
DMediaStore_Audio_Genres_MembersTest.java151 assertEquals(Audio1.SIZE, c.getInt(c.getColumnIndex(Members.SIZE))); in testStoreAudioGenresMembersExternal()
DMediaStoreNotificationTest.java108 values.put(MediaStore.Images.Media.SIZE, 32); in testSimple()
DMediaStore_Images_MediaTest.java257 values.put(Media.SIZE, numBytes); in testStoreImagesMediaExternal()
286 assertEquals(numBytes, c.getInt(c.getColumnIndex(Media.SIZE))); in testStoreImagesMediaExternal()
559 assertEquals(107704, c.getLong(c.getColumnIndex(ImageColumns.SIZE)));
DMediaStorePlacementTest.java107 values.put(MediaColumns.SIZE, 0); in testIgnored()
DMediaStorePendingTest.java467 values.put(MediaColumns.SIZE, file.length()); in testMatchingColumns()
/cts/tests/tests/voiceinteraction/src/android/voiceinteraction/cts/
DHotwordDetectedResultTest.java61 + HotwordDetectedResult.getMaxBundleSize() * Byte.SIZE; in testHotwordDetectedResult_totalSize()
63 assertThat(totalSize <= Utils.MAX_HOTWORD_DETECTED_RESULT_SIZE * Byte.SIZE).isTrue(); in testHotwordDetectedResult_totalSize()
/cts/tests/tests/os/src/android/os/storage/cts/
DStorageManagerTest.java726 final int SIZE = 1024 * 1024; in testOpenProxyFileDescriptor_largeRead() local
728 new TestProxyFileDescriptorCallback(SIZE, "abcdefghijklmnopqrstuvwxyz"); in testOpenProxyFileDescriptor_largeRead()
729 final byte[] bytes = new byte[SIZE]; in testOpenProxyFileDescriptor_largeRead()
742 final int SIZE = 1024 * 1024; in testOpenProxyFileDescriptor_largeWrite() local
744 new TestProxyFileDescriptorCallback(SIZE, "abcdefghijklmnopqrstuvwxyz"); in testOpenProxyFileDescriptor_largeWrite()
745 final byte[] bytes = new byte[SIZE]; in testOpenProxyFileDescriptor_largeWrite()
746 for (int i = 0; i < SIZE; i++) { in testOpenProxyFileDescriptor_largeWrite()
/cts/tests/camera/src/android/hardware/camera2/cts/
DImageReaderTest.java1031 final Size SIZE = mStaticInfo.getAvailableSizesForFormatChecked(FORMAT, in discardFreeBuffersTestByCamera() local
1035 createDefaultImageReader(SIZE, FORMAT, MAX_NUM_IMAGES, mListener); in discardFreeBuffersTestByCamera()
1045 validateImage(SIZE, FORMAT, NUM_FRAME_VERIFIED, REPEATING); in discardFreeBuffersTestByCamera()
1046 validateCaptureResult(FORMAT, SIZE, listener, NUM_FRAME_VERIFIED); in discardFreeBuffersTestByCamera()
1052 validateImage(SIZE, FORMAT, NUM_FRAME_VERIFIED, REPEATING); in discardFreeBuffersTestByCamera()
1053 validateCaptureResult(FORMAT, SIZE, listener, NUM_FRAME_VERIFIED); in discardFreeBuffersTestByCamera()
1070 validateImage(SIZE, FORMAT, /*captureCount*/1, SINGLE); in discardFreeBuffersTestByCamera()
/cts/tests/tests/view/src/android/view/cts/
DVerifyInputEventTest.java349 for (int i = 0; i < Integer.SIZE; i++) { in compareKeyFlags()
368 for (int i = 0; i < Integer.SIZE; i++) { in compareMotionFlags()
/cts/tests/framework/base/windowmanager/util/src/android/server/wm/
DActivityManagerTestBase.java2117 private final int[] mCounts = new int[ActivityCallback.SIZE];
2118 private final int[] mFirstIndexes = new int[ActivityCallback.SIZE];
2119 private final int[] mLastIndexes = new int[ActivityCallback.SIZE];
DCommandSession.java1040 public static final int SIZE = sValues.length;
/cts/tests/app/src/android/app/cts/
DDownloadManagerTest.java689 mediaStoreUri, MediaStore.MediaColumns.SIZE))); in testDownload_mediaScanned()

12