Home
last modified time | relevance | path

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

12

/frameworks/base/core/tests/coretests/src/android/database/sqlite/
DSQLiteCursorTest.java81 Set<Integer> rows = new HashSet<Integer>(); in testFillWindow() local
86 rows.add(j); // store in a hashtable so we can verify the results from cursor later on in testFillWindow()
90 assertEquals(N, rows.size()); in testFillWindow()
102 assertTrue(rows.contains(val)); in testFillWindow()
103 assertTrue(rows.remove(val)); in testFillWindow()
106 assertTrue(rows.isEmpty()); in testFillWindow()
109 rows = new HashSet<Integer>(); in testFillWindow()
113 rows.add(j); in testFillWindow()
122 assertEquals(M, rows.size()); in testFillWindow()
127 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.cpp39 for (png_bytep row : rows) { in ~PngInfo()
58 std::vector<png_bytep> rows; member
149 outInfo->rows.resize(outInfo->height); in readPng()
151 outInfo->rows[i] = new png_byte[rowBytes]; in readPng()
154 png_read_image(readPtr, outInfo->rows.data()); in readPng()
274 const png_byte* row = imageInfo.rows[j]; in analyze_image()
412 const png_byte* row = imageInfo.rows[j]; in analyze_image()
585 png_bytepp rows; in writePng() local
591 rows = info->rows.data(); in writePng()
593 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.cpp270 output_image->rows = std::unique_ptr<uint8_t* []>(new uint8_t*[height]); in ReadPng()
272 output_image->rows[h] = output_image->data.get() + (h * row_bytes); in ReadPng()
276 png_read_image(read_ptr, output_image->rows.get()); in ReadPng()
531 const uint8_t* row = image->rows[y]; in WritePng()
643 png_const_bytep in_row = image->rows[y]; in WritePng()
668 png_const_bytep in_row = image->rows[y]; in WritePng()
705 png_const_bytep in_row = image->rows[y]; in WritePng()
732 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/
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))
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))
/frameworks/base/packages/SystemUI/src/com/android/systemui/qs/
DPseudoGridView.java78 int rows = (children + mNumColumns - 1) / mNumColumns; in onMeasure() local
79 for (int row = 0; row < rows; row++) { in onMeasure()
108 int rows = (children + mNumColumns - 1) / mNumColumns; in onLayout() local
110 for (int row = 0; row < rows; row++) { in onLayout()
DTileLayout.java93 final int rows = (numTiles + mColumns - 1) / mColumns; in onMeasure() local
102 int height = (mCellHeight + mCellMargin) * rows + (mCellMarginTop - mCellMargin); in onMeasure()
DPagedTileLayout.java270 final int rows = getRows(); in updateResources() local
271 boolean changed = rows != mMaxRows; in updateResources()
273 mMaxRows = rows; in updateResources()
/frameworks/base/tests/UiBench/src/com/android/test/uibench/leanback/
DTestHelper.java145 public RowsAdapterBuilder configRows(int rows) { in configRows() argument
146 mRows = rows; in configRows()
207 int rows = activity.getIntent().getIntExtra(EXTRA_ROWS, DEFAULT_ROWS); in initRowsAdapterBuilder() local
212 builder.configRows(rows) in initRowsAdapterBuilder()
/frameworks/av/media/libstagefright/codecs/on2/h264dec/source/arm_neon_asm/
Dh264bsdWriteMacroblock.s118 VLD1 {qRow0, qRow1}, [data]! ;cb rows 0,1,2,3
120 VLD1 {qRow2, qRow3}, [data]! ;cb rows 4,5,6,7
122 VLD1 {qRow4, qRow5}, [data]! ;cr rows 0,1,2,3
124 VLD1 {qRow6, qRow7}, [data]! ;cr rows 4,5,6,7
/frameworks/opt/telephony/src/java/com/android/internal/telephony/
DSmsBroadcastUndelivered.java202 int rows = mResolver.delete(InboundSmsHandler.sRawUriPermanentDelete, in scanRawTable() local
204 if (rows == 0) { in scanRawTable()
207 Rlog.d(TAG, "Deleted " + rows + " rows from raw table for incomplete " in scanRawTable()
/frameworks/support/v17/leanback/src/android/support/v17/leanback/widget/
DGrid.java143 public static Grid createGrid(int rows) { in createGrid() argument
145 if (rows == 1) { in createGrid()
150 grid.setNumRows(rows); in createGrid()
/frameworks/base/core/java/android/hardware/camera2/params/
DLensShadingMap.java61 public LensShadingMap(final float[] elements, final int rows, final int columns) { in LensShadingMap() argument
63 mRows = checkArgumentPositive(rows, "rows must be positive"); in LensShadingMap()
/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/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/cards/
DCardExampleFragment.java112 CardRow[] rows = new Gson().fromJson(json, CardRow[].class); in createRows() local
113 for (CardRow row : rows) { in createRows()
/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()
/frameworks/base/tools/aapt2/cmd/
DCompile.cpp490 nine_patch = NinePatch::Create(image->rows.get(), image->width, image->height, &err); in CompilePng()
503 memmove(image->rows.get(), image->rows.get() + 1, image->height * sizeof(uint8_t**)); in CompilePng()
505 memmove(image->rows[h], image->rows[h] + 4, image->width * 4); in CompilePng()
/frameworks/support/samples/SupportLeanbackDemos/src/com/example/android/leanback/
DRowsActivity.java32 setContentView(R.layout.rows); in onCreate()
/frameworks/base/core/java/android/inputmethodservice/
DKeyboard.java148 private ArrayList<Row> rows = new ArrayList<Row>(); field in Keyboard
623 rows.add(row); in Keyboard()
627 int numRows = rows.size(); in resize()
629 Row row = rows.get(rowIndex); in resize()
813 rows.add(currentRow); in loadKeyboard()
/frameworks/support/samples/SupportLeanbackShowcase/app/src/main/java/android/support/v17/leanback/supportleanbackshowcase/app/
DMainFragment.java72 CardRow[] rows = new Gson().fromJson(json, CardRow[].class); in createRows() local
73 for (CardRow row : rows) { in createRows()

12