Home
last modified time | relevance | path

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

123

/packages/apps/Dialer/java/com/android/dialer/calllog/database/
DAnnotatedCallLogContentProvider.java211 int rows = database.delete(AnnotatedCallLog.TABLE, selection, selectionArgs); in delete() local
212 if (rows == 0) { in delete()
214 return rows; in delete()
219 return rows; in delete()
237 int rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update() local
238 if (rows == 0) { in update()
240 return rows; in update()
245 return rows; in update()
253 rows = database.update(AnnotatedCallLog.TABLE, values, selection, selectionArgs); in update()
254 if (rows == 0) { in update()
[all …]
/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()
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()
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()
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/bots/
DInspectorBot.java64 Map<String, String> rows = new HashMap<>(); in getTableRows() local
72 rows.put( in getTableRows()
77 return rows; in getTableRows()
83 Map<String, String> rows = getTableRows(details); in isRowPresent() local
84 return rows.containsKey(key); in isRowPresent()
90 Map<String, String> rows = getTableRows(details); in isRowEquals() local
91 return rows.containsKey(key) && value.equals(rows.get(key)); in isRowEquals()
/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/phonelookup/database/
DPhoneLookupHistoryContentProvider.java201 int rows = database.delete(PhoneLookupHistory.TABLE, selection, selectionArgs); in delete() local
202 if (rows == 0) { in delete()
204 return rows; in delete()
209 return rows; in delete()
234 int rows = database.update(PhoneLookupHistory.TABLE, values, selection, selectionArgs); in update() local
235 if (rows == 0) { in update()
237 return rows; in update()
242 return rows; in update()
/packages/apps/ThemePicker/src/com/android/customization/model/grid/
DGridOption.java38 public final int rows; field in GridOption
43 public GridOption(String title, String name, boolean isCurrent, int rows, int cols, in GridOption() argument
47 mTileDrawable = new GridTileDrawable(rows, cols, iconShapePath); in GridOption()
49 this.rows = rows; in GridOption()
DLauncherGridOptionsProvider.java106 int rows = c.getInt(c.getColumnIndex(COL_ROWS)); in fetch() local
116 String title = mContext.getString(R.string.grid_title_pattern, cols, rows); in fetch()
117 mOptions.add(new GridOption(title, name, isSet, rows, cols, preview, previewCount, in fetch()
/packages/apps/Dialer/java/com/android/dialer/blocking/
DFilteredNumberProvider.java135 int rows = in delete() local
137 if (rows > 0) { in delete()
140 return rows; in delete()
156 int rows = in update() local
159 if (rows > 0) { in update()
162 return rows; in update()
/packages/apps/Settings/tests/robotests/src/com/android/settings/media/
DMediaOutputSliceTest.java115 final int rows = SliceQuery.findAll(slice, FORMAT_SLICE, HINT_LIST_ITEM, in getSlice_workerIsNull_shouldReturnZeroRow() local
118 assertThat(rows).isEqualTo(0); in getSlice_workerIsNull_shouldReturnZeroRow()
127 final int rows = SliceQuery.findAll(slice, FORMAT_SLICE, HINT_LIST_ITEM, in getSlice_bluetoothIsDisable_shouldReturnZeroRow() local
130 assertThat(rows).isEqualTo(0); in getSlice_bluetoothIsDisable_shouldReturnZeroRow()
139 final int rows = SliceQuery.findAll(slice, FORMAT_SLICE, HINT_LIST_ITEM, in getSlice_callStateRinging_shouldReturnZeroRow() local
142 assertThat(rows).isEqualTo(0); in getSlice_callStateRinging_shouldReturnZeroRow()
/packages/apps/Launcher3/robolectric_tests/src/com/android/launcher3/util/
DGridOccupancyTest.java55 private GridOccupancy initGrid(int rows, int... cells) { in initGrid() argument
56 int cols = cells.length / rows; in initGrid()
58 GridOccupancy grid = new GridOccupancy(cols, rows); in initGrid()
59 for (int y = 0; y < rows; y++) { in initGrid()
/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/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/Terminal/jni/
Dcom_android_terminal_Terminal.cpp121 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows);
409 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) { in resize() argument
412 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows); in resize()
414 mRows = rows; in resize()
418 struct winsize size = { rows, cols, 0, 0 }; in resize()
421 vterm_set_size(mVt, rows, cols); in resize()
560 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { in com_android_terminal_Terminal_nativeResize() argument
562 return term->resize(rows, cols, scrollRows); in com_android_terminal_Terminal_nativeResize()
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DCarrierIdProvider.java375 int rows = 0; in updateDatabaseFromPb() local
378 if (carrierList == null) return rows; in updateDatabaseFromPb()
403 rows++; in updateDatabaseFromPb()
406 + rows + "carrier id: " + id.canonicalId); in updateDatabaseFromPb()
412 Log.d(TAG, "update database from pb. inserted rows = " + rows); in updateDatabaseFromPb()
413 if (rows > 0) { in updateDatabaseFromPb()
422 return rows; in updateDatabaseFromPb()
/packages/apps/Contacts/tests/src/com/android/contacts/
DDynamicShortcutsTests.java285 private MockContentProvider.Query queryFor(Uri uri, Object... rows) {
292 populateQueryRows(query, DynamicShortcuts.PROJECTION.length, rows);
339 Object... rows) {
340 for (int i = 0; i < rows.length; i += numColumns) {
343 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()
/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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java110 final List<ListBuilder.RowBuilder> rows = getBluetoothRowBuilder(); in getSlice() local
113 if (rows.isEmpty()) { in getSlice()
122 final int deviceCount = Math.min(rows.size(), DEFAULT_EXPANDED_ROW_COUNT); in getSlice()
132 listBuilder.addRow(rows.get(i)); in getSlice()
/packages/apps/Settings/src/com/android/settings/homepage/contextualcards/slices/
DBluetoothDevicesSlice.java107 final List<ListBuilder.RowBuilder> rows = getBluetoothRowBuilder(); in getSlice() local
110 if (rows.isEmpty()) { in getSlice()
119 final int deviceCount = Math.min(rows.size(), DEFAULT_EXPANDED_ROW_COUNT); in getSlice()
129 listBuilder.addRow(rows.get(i)); in getSlice()
/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/Settings/tests/robotests/src/com/android/settings/wifi/slice/
DWifiSliceTest.java118 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_wifiOff_shouldReturnSingleRow() local
122 assertThat(rows).isEqualTo(1); in getWifiSlice_wifiOff_shouldReturnSingleRow()
129 final int rows = SliceQuery.findAll(wifiSlice, FORMAT_SLICE, HINT_LIST_ITEM, in getWifiSlice_noAp_shouldReturnLoadingRow() local
134 assertThat(rows).isEqualTo(DEFAULT_EXPANDED_ROW_COUNT + 1); in getWifiSlice_noAp_shouldReturnLoadingRow()
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java121 ArrayList<FloatingHeaderRow> rows = new ArrayList<>(); in onFinishInflate() local
126 rows.add((FloatingHeaderRow) child); in onFinishInflate()
129 mFixedRows = rows.toArray(new FloatingHeaderRow[rows.size()]); in onFinishInflate()

123