Home
last modified time | relevance | path

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

12

/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DActualKeyboardBuilder.java60 final ArrayList<ArrayList<Key>> rows = new ArrayList<>(); in buildKeyboard() local
67 rows.add(elements); in buildKeyboard()
72 rows.add(elements); // Add the last row. in buildKeyboard()
75 final int[] dimensions = new int[rows.size()]; in buildKeyboard()
77 dimensions[rowIndex] = rows.get(rowIndex).size(); in buildKeyboard()
81 for (int rowIndex = 0; rowIndex < rows.size(); rowIndex++) { in buildKeyboard()
83 final ArrayList<Key> rowKeys = rows.get(rowIndex); in buildKeyboard()
191 public static String toString(@Nullable final Key[][] rows) { in toString() argument
192 return KeyArrayStringizer.STRINGIZER.join(rows, "\n" /* delimiter */); in toString()
DExpectedKeyboardBuilder.java36 public ExpectedKeyboardBuilder(final ExpectedKey[][] rows) { in ExpectedKeyboardBuilder() argument
37 super(rows); in ExpectedKeyboardBuilder()
335 public static String toString(final ExpectedKey[][] rows) { in toString() argument
337 for (int rowIndex = 0; rowIndex < rows.length; rowIndex++) { in toString()
341 sb.append(Arrays.toString(rows[rowIndex])); in toString()
DAbstractKeyboardBuilder.java54 AbstractKeyboardBuilder(final E[][] rows) { in AbstractKeyboardBuilder() argument
55 mRows = newArrayOfArray(rows.length); in AbstractKeyboardBuilder()
56 for (int rowIndex = 0; rowIndex < rows.length; rowIndex++) { in AbstractKeyboardBuilder()
57 final E[] row = rows[rowIndex]; in AbstractKeyboardBuilder()
/packages/apps/Launcher3/
Dprint_db.py56 rows = []
58 rows.append(row)
59 return columns,rows
65 rows = []
67 rows.append(row)
68 return columns,rows
155 columns,rows = get_favorites(conn)
158 data = [dict(zip(columns,row)) for row in rows]
209 for row in rows:
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberProvider.java134 int rows = in delete() local
136 if (rows > 0) { in delete()
139 return rows; in delete()
155 int rows = in update() local
158 if (rows > 0) { in update()
161 return rows; in update()
/packages/apps/Launcher2/
Dprint_db.py45 rows = []
47 rows.append(row)
48 return columns,rows
123 columns,rows = get_favorites(conn)
124 data = [dict(zip(columns,row)) for row in rows]
154 for row in rows:
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/
DDelaunay.cpp56 int i, rows; in buildTriangulation() local
59 rows = (int)( 0.5 + sqrt( (double) size / log( (double) size ))); in buildTriangulation()
67 build( 0, size-1, &lefte, &righte, rows ); in buildTriangulation()
73 void CDelaunay::build(int lo, int hi, EdgePointer *le, EdgePointer *re, int rows) in build() argument
86 if (rows == 1) { // time to switch axis of division in build()
88 rows = 65536; in build()
90 lowrows = rows/2; in build()
92 (0.5 + ((double)(high-low+1) * ((double)lowrows / (double)rows))); in build()
94 build( split+1, high, &rdi, &rdo, (rows-lowrows) ); in build()
/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java205 int rows = database.delete(AnnotatedCallLog.TABLE, selection, selectionArgs); in delete() local
206 if (rows > 0) { in delete()
213 return rows; in delete()
243 int rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update() local
244 if (rows > 0) { in update()
251 return rows; in update()
/packages/apps/Launcher3/tests/src/com/android/launcher3/util/
DGridOccupancyTest.java49 private GridOccupancy initGrid(int rows, int... cells) { in initGrid() argument
50 int cols = cells.length / rows; in initGrid()
52 GridOccupancy grid = new GridOccupancy(cols, rows); in initGrid()
53 for (int y = 0; y < rows; y++) { in initGrid()
/packages/apps/Terminal/jni/
Dcom_android_terminal_Terminal.cpp121 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows);
416 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) { in resize() argument
419 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows); in resize()
421 mRows = rows; in resize()
425 struct winsize size = { rows, cols, 0, 0 }; in resize()
428 vterm_set_size(mVt, rows, cols); in resize()
567 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { in com_android_terminal_Terminal_nativeResize() argument
569 return term->resize(rows, cols, scrollRows); in com_android_terminal_Terminal_nativeResize()
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilder.java105 final ArrayList<Object[]> rows = in build() local
129 rows.add(row); in build()
136 Collections.sort(rows, new Comparator<Object[]>() { in build()
172 for (final Object[] row : rows) { in build()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java284 private MockContentProvider.Query queryFor(Uri uri, Object... rows) {
291 populateQueryRows(query, DynamicShortcuts.PROJECTION.length, rows);
338 Object... rows) {
339 for (int i = 0; i < rows.length; i += numColumns) {
342 row[j] = rows[i + j];
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/
Ddb_utilities_indexing.h35 inline void db_SetupMatrixRefs(double **ar,long rows,long cols,double *a) in db_SetupMatrixRefs() argument
38 for(i=0;i<rows;i++) ar[i]=&a[i*cols]; in db_SetupMatrixRefs()
41 inline void db_SymmetricExtendUpperToLower(double **A,int rows,int cols) in db_SymmetricExtendUpperToLower() argument
44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i]; in db_SymmetricExtendUpperToLower()
Ddb_utilities.cpp167 void db_PrintDoubleMatrix(double *a,long rows,long cols) in db_PrintDoubleMatrix() argument
170 for(long i=0;i<rows;i++) in db_PrintDoubleMatrix()
/packages/apps/Terminal/src/com/android/terminal/
DTerminalView.java253 final int rows = h / mMetrics.charHeight; in onSizeChanged() local
257 final boolean sizeChanged = (rows != mRows || cols != mCols || scrollRows != mScrollRows); in onSizeChanged()
259 mTerm.resize(rows, cols, scrollRows); in onSizeChanged()
261 mRows = rows; in onSizeChanged()
DTerminal.java144 public void resize(int rows, int cols, int scrollRows) { in resize() argument
145 if (nativeResize(mNativePtr, rows, cols, scrollRows) != 0) { in resize()
197 private static native int nativeResize(long ptr, int rows, int cols, int scrollRows); in nativeResize() argument
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java967 List<ContentValues> rows; field in TelephonyBackupAgentTest.FakeCursor
970 public FakeCursor(List<ContentValues> rows, String[] projection) { in FakeCursor() argument
972 this.rows = rows; in FakeCursor()
991 return rows.get(nextRow).getAsString(projection[columnIndex]); in getString()
996 return rows.get(nextRow).getAsInteger(projection[columnIndex]); in getInt()
1001 return rows.get(nextRow).getAsLong(projection[columnIndex]); in getLong()
1027 return rows.size(); in getCount()
/packages/apps/Messaging/src/com/android/messaging/widget/
DBaseWidgetProvider.java104 final int rows = getCellsForSize(minHeight); in getWidgetSize() local
108 LogUtil.v(TAG, "BaseWidgetProvider.getWidgetSize row: " + rows + in getWidgetSize()
113 if (rows == 1) { in getWidgetSize()
/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DSeriesScheduleRowAdapter.java97 List<EpisodicProgramRow> rows = new ArrayList<>(); in setPrograms() local
106 rows.add(new EpisodicProgramRow(mInputId, program, schedule, mHeaderRow)); in setPrograms()
111 for (EpisodicProgramRow row : rows) { in setPrograms()
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationSettingsBase.java228 protected void collectConfigActivities(ArrayMap<String, NotificationBackend.AppRow> rows) { in collectConfigActivities() argument
230 applyConfigActivities(rows, resolveInfos); in collectConfigActivities()
233 private void applyConfigActivities(ArrayMap<String, NotificationBackend.AppRow> rows, in applyConfigActivities() argument
240 final NotificationBackend.AppRow row = rows.get(appInfo.packageName); in applyConfigActivities()
DAppNotificationSettings.java145 ArrayMap<String, AppRow> rows = new ArrayMap<>(); in addHeaderPref() local
146 rows.put(mAppRow.pkg, mAppRow); in addHeaderPref()
147 collectConfigActivities(rows); in addHeaderPref()
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
DAllIntentsActivity.java638 final ArrayList<ContentValues> rows = new ArrayList<>(); in putDataExtra() local
639 rows.add(row1); in putDataExtra()
640 rows.add(row2); in putDataExtra()
642 intent.putParcelableArrayListExtra(Insert.DATA, rows); in putDataExtra()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DProximityInfo.java180 final int rows = touchPositionCorrection.getRows(); in createNativeProximityInfo() local
194 if (row < rows) { in createNativeProximityInfo()
209 sweetSpotRadii[infoIndex], (row < rows ? "correct" : "default"), in createNativeProximityInfo()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DMmsSmsDatabaseHelper.java294 int rows = db.delete("canonical_addresses", null, null); in removeUnferencedCanonicalAddresses() local
320 int rows = db.delete("canonical_addresses", sb.toString(), null); in removeUnferencedCanonicalAddresses() local
353 int rows = db.delete(MmsSmsProvider.TABLE_THREADS, in updateThreads() local
359 if (rows > 0) { in updateThreads()
456 int rows = db.delete("sms", "_id=" + message_id, null); in deleteOneSms() local
461 return rows; in deleteOneSms()
/packages/services/BuiltInPrintService/jni/plugins/
Dwprint_image.c956 int rows = (dbytes / bytes_per_row); in wprint_image_decode_stripe() local
957 *height += rows; in wprint_image_decode_stripe()
958 num_rows -= rows; in wprint_image_decode_stripe()
959 start_row += rows; in wprint_image_decode_stripe()
960 unpadded_start_row += rows; in wprint_image_decode_stripe()

12