/cts/tests/tests/renderscript/src/android/renderscript/cts/ |
D | MatrixTest.rscript | 3 #define EXPECT(row, col, a, b) \ 8 rsDebug(" row: ", row); \ 23 // Set each cell to 100 * row + col 24 for (int row = 0; row < 2; row++) { 26 rsMatrixSet(&m2, col, row, row * 100.f + col); 30 for (int row = 0; row < 3; row++) { 32 rsMatrixSet(&m3, col, row, row * 100.f + col); 36 for (int row = 0; row < 4; row++) { 38 rsMatrixSet(&m4, col, row, row * 100.f + col); 43 for (int row = 0; row < 2; row++) { [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/activities/ |
D | GridActivity.java | 95 public EditText getCell(int row, int column) { in getCell() argument 96 return mCells[row - 1][column - 1]; in getCell() 103 public void onCell(int row, int column, Visitor<EditText> v) { in onCell() argument 104 final EditText cell = getCell(row, column); in onCell() 108 public void focusCell(int row, int column) { in focusCell() argument 109 onCell(row, column, EditText::requestFocus); in focusCell() 112 public void clearCell(int row, int column) { in clearCell() argument 113 onCell(row, column, (c) -> c.setText("")); in clearCell() 116 public void setText(int row, int column, String text) { in setText() argument 117 onCell(row, column, (c) -> c.setText(text)); in setText() [all …]
|
/cts/tests/tests/contactsprovider/gal/src/android/provider/cts/contacts/galprovider/ |
D | CtsGalProvider.java | 122 Object[] row; in handleDirectories() local 125 row = new Object[projection.length]; in handleDirectories() 130 row[i] = ACCOUNT_NAME; in handleDirectories() 132 row[i] = ACCOUNT_TYPE; in handleDirectories() 134 row[i] = ""; in handleDirectories() 136 row[i] = DISPLAY_NAME; in handleDirectories() 138 row[i] = Directory.EXPORT_SUPPORT_NONE; in handleDirectories() 140 row[i] = Directory.SHORTCUT_SUPPORT_NONE; in handleDirectories() 142 row[i] = Directory.PHOTO_SUPPORT_NONE; in handleDirectories() 145 cursor.addRow(row); in handleDirectories() [all …]
|
/cts/tests/autofillservice/src/android/autofillservice/cts/commontests/ |
D | AbstractGridActivityTestCase.java | 55 protected void focusCell(int row, int column) throws TimeoutException { 56 mUiBot.waitForWindowChange(() -> mActivity.focusCell(row, column)); 62 protected void focusCellNoWindowChange(int row, int column) { 65 event = mUiBot.waitForWindowChange(() -> mActivity.focusCell(row, column), 72 + " column %d row %d, but event happened: %s", row, column, event));
|
/cts/tests/surfacecontrol/surfacevalidator/src/android/view/cts/surfacevalidator/ |
D | PixelChecker.java | 47 for (int row = boundsToCheck.top; row < boundsToCheck.bottom; row++) { in getNumMatchingPixels() 48 buffer.position(rowStride * row + boundsToCheck.left * PIXEL_STRIDE); in getNumMatchingPixels() 65 for (int row = boundsToCheck.top; row < boundsToCheck.bottom; row++) { in isEmpty() 66 buffer.position(rowStride * row + boundsToCheck.left * PIXEL_STRIDE); in isEmpty()
|
D | RectChecker.java | 83 for (int row = startY; row < endY; row++) { in validatePlaneForTarget() 84 buffer.position(rowStride * row + startX); in validatePlaneForTarget()
|
/cts/hostsidetests/devicepolicy/app/ContactDirectoryProvider/src/com/android/cts/contactdirectoryprovider/ |
D | DirectoryProvider.java | 121 final Object[] row = new Object[projection.length]; in query() local 125 row[i] = account.name; in query() 127 row[i] = TEST_ACCOUNT_TYPE; in query() 129 row[i] = R.string.directory_resource_id; in query() 131 row[i] = prefix + DEFAULT_DISPLAY_NAME; in query() 133 row[i] = Directory.EXPORT_SUPPORT_SAME_ACCOUNT_ONLY; in query() 135 row[i] = Directory.SHORTCUT_SUPPORT_NONE; in query() 138 cursor.addRow(row); in query() 161 final Object[] row = new Object[projection.length]; in query() local 165 row[i] = -1; in query() [all …]
|
/cts/tests/tests/view/src/android/view/cts/util/ |
D | DrawingUtils.java | 73 for (int row = 0; row < viewHeight; row++) { in assertAllPixelsOfColor() 74 bitmap.getPixels(rowPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor() 75 goldenBitmap.getPixels(rowGoldenPixels, 0, viewWidth, 0, row, viewWidth, 1); in assertAllPixelsOfColor() 86 + "] but at position (" + row + "," + column + ") found [" in assertAllPixelsOfColor()
|
/cts/tests/tests/widget/src/android/widget/cts/ |
D | GridLayoutTest.java | 224 int row = i + 1; in populate() local 225 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(0)); in populate() 231 table[row][0] = v; in populate() 248 int row = i + 1; in populate() local 250 GridLayout.LayoutParams lp = new GridLayout.LayoutParams(spec(row), spec(col)); in populate() 254 v.setTextSize(10 + 5 * row * col); in populate() 256 table[row][col] = v; in populate() 262 private void verifyCellAlignment(int row, int col, Alignment a, View v0, View v1, in verifyCellAlignment() argument 266 assertEquals("View at row " + row + ", column " + col + " was not " + a.name + in verifyCellAlignment() 284 int row = i + 1; in verifyGridAlignment() local [all …]
|
D | ResourceCursorTreeAdapterTest.java | 170 Object[] row = new Object[colCount + 1]; in createTestCursor() local 173 row[j] = "" + rowCount + "" + colCount; in createTestCursor() 175 row[colCount] = i; in createTestCursor() 176 cursor.addRow(row); in createTestCursor()
|
D | ResourceCursorAdapterTest.java | 178 Object[] row = new Object[colCount + 1]; in createTestCursor() local 181 row[j] = "" + i + "" + j; in createTestCursor() 183 row[colCount] = i; in createTestCursor() 184 cursor.addRow(row); in createTestCursor()
|
D | SimpleCursorTreeAdapterTest.java | 208 Object[] row = new Object[colCount + 1]; in createTestCursor() local 211 row[j] = prefix + i + "" + j; in createTestCursor() 213 row[colCount] = i; in createTestCursor() 214 cursor.addRow(row); in createTestCursor()
|
/cts/hostsidetests/appsecurity/test-apps/DocumentProvider/src/com/android/cts/documentprovider/ |
D | MyDocumentsProvider.java | 88 RowBuilder row = result.newRow(); in queryRoots() local 89 row.add(Root.COLUMN_ROOT_ID, "local"); in queryRoots() 90 row.add(Root.COLUMN_FLAGS, Root.FLAG_LOCAL_ONLY | Root.FLAG_SUPPORTS_SEARCH); in queryRoots() 91 row.add(Root.COLUMN_TITLE, "CtsLocal"); in queryRoots() 92 row.add(Root.COLUMN_SUMMARY, "CtsLocalSummary"); in queryRoots() 93 row.add(Root.COLUMN_DOCUMENT_ID, "doc:local"); in queryRoots() 95 row = result.newRow(); in queryRoots() 96 row.add(Root.COLUMN_ROOT_ID, "create"); in queryRoots() 97 row.add(Root.COLUMN_FLAGS, Root.FLAG_SUPPORTS_CREATE | Root.FLAG_SUPPORTS_IS_CHILD); in queryRoots() 98 row.add(Root.COLUMN_TITLE, "CtsCreate"); in queryRoots() [all …]
|
/cts/tests/tests/content/src/android/content/cts/ |
D | TestPagingContentProvider.java | 148 private void fillRow(RowBuilder row, int pos) { in fillRow() argument 149 row.add(COLUMN_POS, pos); in fillRow() 150 row.add(COLUMN_A, "--aaa--" + pos); in fillRow() 151 row.add(COLUMN_B, "**bbb**" + pos); in fillRow() 152 row.add(COLUMN_C, "^^ccc^^" + pos); in fillRow() 153 row.add(COLUMN_D, "##ddd##" + pos); in fillRow()
|
/cts/hostsidetests/statsdatom/src/android/cts/statsdatom/statsd/ |
D | BufferDebug.java | 68 for (int row = 0; row < rows; row++) { in toHex() 69 writeRow(str, buf, row * WIDTH, WIDTH, max); in toHex()
|
/cts/apps/CtsVerifier/include/colorchecker/ |
D | testingimage.h | 40 int getPixelValue(int row, int column, int channel) const; 41 Vec3i getPixelValue(int row, int column) const;
|
/cts/tests/tests/database/src/android/database/sqlite/cts/ |
D | SQLiteRawStatementTest.java | 190 for (int row = 0; row < 9; row++) { in testInsert() 191 int vi = row * 3; in testInsert() 192 double vd = row * 2.5; in testInsert() 193 String vt = String.format("text%02dvalue", row); in testInsert() 194 long vl = Long.MAX_VALUE - row; in testInsert() 244 final int row = 3; in testInsert() local 245 assertEquals(3 * row, vi); in testInsert() 246 assertEquals(2.5 * row, vd, 0.1); in testInsert() 248 assertEquals(Long.MAX_VALUE - row, vl); in testInsert()
|
/cts/apps/CtsVerifier/src/com/android/cts/verifier/features/ |
D | FeatureSummaryActivity.java | 350 HashMap<String, Object> row = new HashMap<String, Object>(); in onCreate() local 351 listViewData.add(row); in onCreate() 372 row.put("feature", f.name); in onCreate() 373 row.put("icon", statusIcon); in onCreate() 380 HashMap<String, Object> row = new HashMap<String, Object>(); in onCreate() local 381 listViewData.add(row); in onCreate() 382 row.put("feature", feature); in onCreate() 386 row.put("icon", R.drawable.fs_error); in onCreate() 390 row.put("icon", R.drawable.fs_warning); in onCreate()
|
/cts/tests/tests/media/common/jni/ |
D | codec-utils-jni.cpp | 275 const uint8_t *row = img->plane[ix].buffer + img->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_getImageChecksumAlder32() local 277 const uint8_t *col = row; in Java_android_media_cts_CodecUtils_getImageChecksumAlder32() 283 row += img->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_getImageChecksumAlder32() 303 const uint8_t *row = img->plane[ix].buffer + img->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_getImageChecksumMD5() local 305 const uint8_t *col = row; in Java_android_media_cts_CodecUtils_getImageChecksumMD5() 311 row += img->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_getImageChecksumMD5() 353 uint8_t *row = const_cast<uint8_t *>(tgt->plane[ix].buffer) + tgt->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_copyFlexYUVImage() local 355 uint8_t *col = row; in Java_android_media_cts_CodecUtils_copyFlexYUVImage() 363 row += tgt->plane[ix].rowInc; in Java_android_media_cts_CodecUtils_copyFlexYUVImage() 378 const uint8_t *row = img->plane[ix].buffer + img->plane[ix].cropOffs; in Java_android_media_cts_CodecUtils_fillImageRectWithYUV() local [all …]
|
/cts/apps/CameraITS/utils/ |
D | capture_read_noise_utils.py | 73 row = [data_row[0]['iso']] 74 row.append(data_row[0]['iso']**2) 75 row.extend([stats['mean'] for stats in data_row]) 76 row.extend([stats['var'] for stats in data_row]) 77 row.extend([stats['norm_var'] for stats in data_row]) 79 writer.writerow(row)
|
/cts/tests/tests/contactsprovider/src/android/provider/cts/contacts/ |
D | Contacts_PeopleTest.java | 96 for (Uri row : mRowsAdded) { in tearDown() 97 mProvider.delete(row, null, null); in tearDown() 101 for (Uri row : mPeopleRowsAdded) { in tearDown() 102 mProvider.delete(row, null, null); in tearDown() 106 for (Uri row : mGroupRowsAdded) { in tearDown() 107 mProvider.delete(row, null, null); in tearDown()
|
D | ContactsContract_RawContactsTest.java | 212 String[] row = RawContactUtil.queryByRawContactId(mResolver, rawContactid, in testRawContactCreate_noAccountUsesLocalAccount() local 218 assertEquals(RawContacts.getLocalAccountName(mContext), row[0]); in testRawContactCreate_noAccountUsesLocalAccount() local 219 assertEquals(RawContacts.getLocalAccountType(mContext), row[1]); in testRawContactCreate_noAccountUsesLocalAccount() local 239 String[] row = RawContactUtil.queryByRawContactId(mResolver, rawContact.getId(), in testRawContactCreate_nullAccountUsesLocalAccount() local 246 assertEquals(RawContacts.getLocalAccountName(mContext), row[0]); in testRawContactCreate_nullAccountUsesLocalAccount() local 247 assertEquals(RawContacts.getLocalAccountType(mContext), row[1]); in testRawContactCreate_nullAccountUsesLocalAccount() local
|
/cts/tests/tests/provider/src/android/provider/cts/ |
D | UserDictionary_WordsTest.java | 58 for (Uri row : mAddedBackup) { in tearDown() 59 mContentResolver.delete(row, null, null); in tearDown()
|
/cts/common/device-side/bedstead/nene/src/main/java/com/android/bedstead/nene/utils/ |
D | BitmapUtils.java | 186 for (int row = 0; row < height; ++row) { in compareBitmapsMse() 188 int idx = row * width + col; in compareBitmapsMse()
|
/cts/tests/tests/graphics/src/android/graphics/cts/ |
D | YuvImageTest.java | 583 for (int row = 0; row < height; ++row) { in convertArgbsToYuvs() 585 int idx = row * width + col; in convertArgbsToYuvs() 588 if ((row & 1) == 0 && (col & 1) == 0) { in convertArgbsToYuvs() 589 int offset = row / 2 * width + col / 2 * 2; in convertArgbsToYuvs() 598 for (int row = 0; row < height; ++row) { in convertArgbsToYuvs() 600 int idx = row * width + col; in convertArgbsToYuvs()
|