Home
last modified time | relevance | path

Searched refs:rows (Results 1 – 25 of 52) sorted by relevance

123

/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCursorTest.java88 Set<Integer> rows = new HashSet<Integer>(); in testFillWindow() local
93 rows.add(j); // store in a hashtable so we can verify the results from cursor later on in testFillWindow()
97 assertEquals(N, rows.size()); in testFillWindow()
109 assertTrue(rows.contains(val)); in testFillWindow()
110 assertTrue(rows.remove(val)); in testFillWindow()
113 assertTrue(rows.isEmpty()); in testFillWindow()
116 rows = new HashSet<Integer>(); in testFillWindow()
120 rows.add(j); in testFillWindow()
129 assertEquals(M, rows.size()); in testFillWindow()
134 assertTrue(rows.contains(val)); in testFillWindow()
[all …]
/frameworks/base/tools/aapt/
DImages.cpp39 image_info() : rows(NULL), is9Patch(false), in image_info()
43 if (rows && rows != allocRows) { in ~image_info()
44 free(rows); in ~image_info()
65 png_bytepp rows; member
143 outImageInfo->rows = (png_bytepp)malloc( in read_png()
146 outImageInfo->allocRows = outImageInfo->rows; in read_png()
148 png_set_rows(read_ptr, read_info, outImageInfo->rows); in read_png()
152 outImageInfo->rows[i] = (png_bytep) in read_png()
156 png_read_image(read_ptr, outImageInfo->rows); in read_png()
287 png_bytepp rows, int offset, int height, bool transparent, bool required, in get_vertical_ticks() argument
[all …]
/frameworks/base/tools/aapt2/compile/
DPng.cpp40 for (png_bytep row : rows) { in ~PngInfo()
59 std::vector<png_bytep> rows; member
150 outInfo->rows.resize(outInfo->height); in readPng()
152 outInfo->rows[i] = new png_byte[rowBytes]; in readPng()
155 png_read_image(readPtr, outInfo->rows.data()); in readPng()
275 const png_byte* row = imageInfo.rows[j]; in analyze_image()
413 const png_byte* row = imageInfo.rows[j]; in analyze_image()
586 png_bytepp rows; in writePng() local
592 rows = info->rows.data(); in writePng()
594 rows = outRows; in writePng()
[all …]
DNinePatch.cpp136 explicit HorizontalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in HorizontalImageLine() argument
138 : rows_(rows), xoffset_(xoffset), yoffset_(yoffset), length_(length) {} in HorizontalImageLine()
159 explicit VerticalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in VerticalImageLine() argument
161 : rows_(rows), xoffset_(xoffset), yoffset_(yoffset), length_(length) {} in VerticalImageLine()
178 explicit DiagonalImageLine(uint8_t** rows, int32_t xoffset, int32_t yoffset, in DiagonalImageLine() argument
180 : rows_(rows), in DiagonalImageLine()
302 static uint32_t GetRegionColor(uint8_t** rows, const Bounds& region) { in GetRegionColor() argument
305 NinePatch::PackRGBA(rows[region.top] + region.left * 4); in GetRegionColor()
307 const uint8_t* row = rows[y]; in GetRegionColor()
342 uint8_t** rows, const std::vector<Range>& horizontal_stretch_regions, in CalculateRegionColors() argument
[all …]
DPngCrunch.cpp273 output_image->rows = std::unique_ptr<uint8_t* []>(new uint8_t*[height]); in ReadPng()
275 output_image->rows[h] = output_image->data.get() + (h * row_bytes); in ReadPng()
279 png_read_image(read_ptr, output_image->rows.get()); in ReadPng()
535 const uint8_t* row = image->rows[y]; in WritePng()
647 png_const_bytep in_row = image->rows[y]; in WritePng()
672 png_const_bytep in_row = image->rows[y]; in WritePng()
709 png_const_bytep in_row = image->rows[y]; in WritePng()
736 png_write_image(write_ptr, image->rows.get()); in WritePng()
DImage.h40 std::unique_ptr<uint8_t* []> rows; variable
117 static std::unique_ptr<NinePatch> Create(uint8_t** rows, const int32_t width,
/frameworks/base/tools/preload/
Dsorttable.js47 the.appendChild(table.rows[0]);
53 if (table.tHead.rows.length != 1) return; // can't cope with two header rows
60 for (var i=0; i<table.rows.length; i++) {
61 if (table.rows[i].className.search(/\bsortbottom\b/) != -1) {
62 sortbottomrows[sortbottomrows.length] = table.rows[i];
78 headrow = table.tHead.rows[0].cells;
146 rows = this.sorttable_tbody.rows;
147 for (var j=0; j<rows.length; j++) {
148 row_array[row_array.length] = [sorttable.getInnerText(rows[j].cells[col]), rows[j]];
169 for (var i=0; i<table.tBodies[0].rows.length; i++) {
[all …]
/frameworks/ml/nn/runtime/test/specs/V1_0/
Dhashtable_lookup_quant8.mod.py19 rows = 3 variable
22 table = [x for x in range(rows * features)]
23 for i in range(rows):
31 value = Input("value", "TENSOR_QUANT8_ASYMM", "{%d, %d}, 0.5f, 0" % (rows, features))
Dhashtable_lookup_float.mod.py19 rows = 3 variable
22 table = [x for x in range(rows * features)]
23 for i in range(rows):
31 value = Input("value", "TENSOR_FLOAT32", "{%d, %d}" % (rows, features))
Dembedding_lookup.mod.py18 rows = 3 variable
22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
/frameworks/ml/nn/runtime/test/specs/V1_3/
Dembedding_lookup_v1_3.mod.py18 rows = 3 variable
22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
31 "{%d, %d, %d}" % (rows, columns, features))
Dembedding_lookup_quant8_signed.mod.py18 rows = 3 variable
22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
31 "{%d, %d, %d}" % (rows, columns, features))
/frameworks/ml/nn/runtime/test/specs/V1_1/
Dembedding_lookup_relaxed.mod.py18 rows = 3 variable
22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
30 value = Input("value", "TENSOR_FLOAT32", "{%d, %d, %d}" % (rows, columns, features))
Dhashtable_lookup_float_relaxed.mod.py19 rows = 3 variable
22 table = [x for x in range(rows * features)]
23 for i in range(rows):
31 value = Input("value", "TENSOR_FLOAT32", "{%d, %d}" % (rows, features))
/frameworks/ml/nn/runtime/test/specs/V1_2/
Dembedding_lookup_v1_2.mod.py18 rows = 3 variable
22 actual_values = [x for x in range(rows * columns * features)]
23 for i in range(rows):
31 "{%d, %d, %d}" % (rows, columns, features))
/frameworks/base/packages/SystemUI/src/com/android/systemui/globalactions/
DListGridLayout.java158 int rows = getRowCount(); in getParentViewIndex() local
160 sublistIndex = (int) Math.floor(index / rows); in getParentViewIndex()
162 sublistIndex = index % rows; in getParentViewIndex()
DGlobalActionsGridLayout.java149 int rows = getListView().getRowCount(); in getAnimationDistance() local
152 return rows * gridItemSize / 2; in getAnimationDistance()
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java74 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure() local
75 for (int row = 0; row < rows; row++) { in onMeasure()
104 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout() local
106 for (int row = 0; row < rows; row++) { in onLayout()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java147 public RowsAdapterBuilder configRows(int rows) { in configRows() argument
148 mRows = rows; in configRows()
209 int rows = activity.getIntent().getIntExtra(EXTRA_ROWS, DEFAULT_ROWS); in initRowsAdapterBuilder() local
214 builder.configRows(rows) in initRowsAdapterBuilder()
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsBroadcastUndelivered.java234 int rows = contentResolver.delete(InboundSmsHandler.sRawUriPermanentDelete, in scanRawTable() local
236 if (rows == 0) { in scanRawTable()
239 Rlog.d(TAG, "Deleted " + rows + " rows from raw table for incomplete " in scanRawTable()
243 if (rows > 0) { in scanRawTable()
245 metrics.writeDroppedIncomingMultipartSms(phoneId, message.mFormat, rows, in scanRawTable()
/frameworks/base/startop/scripts/app_startup/lib/
Ddata_frame.py126 rows = []
129 rows.append(row.copy())
131 df._rows = rows
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java69 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
71 mRows = checkArgumentPositive(rows, "rows must be positive"); in LensShadingMap()
/frameworks/base/tests/JankBench/scripts/
Ditr_collect.py29 rows = db.execute(QUERY_BAD_FRAME)
32 for row in rows:
/frameworks/opt/net/wifi/service/java/com/android/server/wifi/util/
DMatrix.java33 public Matrix(int rows, int cols) { in Matrix() argument
34 n = rows; in Matrix()
36 mem = new double[rows * cols]; in Matrix()
/frameworks/rs/
DrsFont.cpp266 uint32_t endY = startY + bitmap->rows; in updateGlyphCache()
271 glyph->mBitmapHeight = bitmap->rows; in updateGlyphCache()
417 if ((uint32_t)bitmap->rows > mCacheLines[mCacheLines.size()-1]->mMaxHeight) { in cacheBitmap()
418 …ont size to large to fit in cache. width, height = %i, %i", (int)bitmap->width, (int)bitmap->rows); in cacheBitmap()
448 …LOGE("Bitmap doesn't fit in cache. width, height = %i, %i", (int)bitmap->width, (int)bitmap->rows); in cacheBitmap()
457 uint32_t endY = startY + bitmap->rows; in cacheBitmap()
841 if ((uint32_t)bitmap->rows > mMaxHeight) { in fitBitmap()

123