/packages/apps/Launcher3/tests/src/com/android/launcher3/util/ |
H A D | GridOccupancyTest.java | 49 private GridOccupancy initGrid(int rows, int... cells) { argument 50 int cols = cells.length / rows; 52 GridOccupancy grid = new GridOccupancy(cols, rows); 53 for (int y = 0; y < rows; y++) {
|
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/ |
H A D | AbstractKeyboardBuilder.java | 24 * A keyboard consists of an array of rows, and a row consists of an array of elements. Each row 31 // A building array of rows. 50 * elements of <code>rows</rows>. 51 * @param rows the template keyboard rows. The elements of the <code>rows</code> will be 54 AbstractKeyboardBuilder(final E[][] rows) { argument 55 mRows = newArrayOfArray(rows.length); 56 for (int rowIndex = 0; rowIndex < rows [all...] |
H A D | ActualKeyboardBuilder.java | 34 * An actual keyboard is an array of rows, and a row consists of an array of {@link Key}s. 50 * Create the keyboard that consists of the array of rows of the actual keyboard's keys. 53 * @return the actual keyboard grouped with rows. 56 // Filter out spacer to prepare to create rows. 59 // Grouping keys into rows. 60 final ArrayList<ArrayList<Key>> rows = new ArrayList<>(); 67 rows.add(elements); 72 rows.add(elements); // Add the last row. 74 // Calculate each dimension of rows and create a builder. 75 final int[] dimensions = new int[rows 191 toString(@ullable final Key[][] rows) argument [all...] |
H A D | ExpectedKeyboardBuilder.java | 26 * An expected keyboard is an array of rows, and a row consists of an array of {@link ExpectedKey}s. 36 public ExpectedKeyboardBuilder(final ExpectedKey[][] rows) { argument 37 super(rows); 332 * @param rows the keyboard to be converted to string. 333 * @return the human readable representation of <code>rows</code>. 335 public static String toString(final ExpectedKey[][] rows) { argument 337 for (int rowIndex = 0; rowIndex < rows.length; rowIndex++) { 341 sb.append(Arrays.toString(rows[rowIndex]));
|
/packages/apps/Settings/src/com/android/settings/notification/ |
H A D | AppNotificationSettings.java | 89 ArrayMap<String, AppRow> rows = new ArrayMap<String, AppRow>(); 90 rows.put(mAppRow.pkg, mAppRow); 91 collectConfigActivities(rows); 138 private void collectConfigActivities(ArrayMap<String, AppRow> rows) { argument 140 applyConfigActivities(rows, resolveInfos); 143 private void applyConfigActivities(ArrayMap<String, AppRow> rows, argument 150 final AppRow row = rows.get(appInfo.packageName);
|
/packages/apps/Launcher3/ |
H A D | print_db.py | 27 print " the specified grid size (rows x cols)" 29 print " and prints it with the specified grid size (rows x cols)" 56 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] [all...] |
/packages/apps/Messaging/src/com/android/messaging/datamodel/ |
H A D | FrequentContactsCursorBuilder.java | 105 final ArrayList<Object[]> rows = 129 rows.add(row); 134 // Now we have a list of rows containing frequent contacts in alphabetical order. 135 // Therefore, sort all the rows according to their actual ranks in the frequents list. 136 Collections.sort(rows, new Comparator<Object[]>() { 171 // Finally, add all the rows to this cursor. 172 for (final Object[] row : rows) {
|
/packages/apps/Dialer/src/com/android/dialer/database/ |
H A D | FilteredNumberProvider.java | 154 int rows = db.delete(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, 157 if (rows > 0) { 160 return rows; 190 int rows = db.update(DialerDatabaseHelper.Tables.FILTERED_NUMBER_TABLE, 194 if (rows > 0 ) { 197 return rows;
|
H A D | VoicemailArchiveProvider.java | 141 // Delete all the voicemail files related to the selected rows 147 int rows = db.delete(DialerDatabaseHelper.Tables.VOICEMAIL_ARCHIVE_TABLE, 150 if (rows > 0) { 153 return rows; 163 int rows = db.update(DialerDatabaseHelper.Tables.VOICEMAIL_ARCHIVE_TABLE, 167 if (rows > 0) { 170 return rows;
|
/packages/apps/Launcher2/ |
H A D | print_db.py | 45 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/Messaging/src/com/android/messaging/widget/ |
H A D | BaseWidgetProvider.java | 103 // First find out rows and columns based on width provided. 104 final int rows = getCellsForSize(minHeight); 108 LogUtil.v(TAG, "BaseWidgetProvider.getWidgetSize row: " + rows + 113 if (rows == 1) {
|
/packages/apps/Terminal/src/com/android/terminal/ |
H A D | Terminal.java | 144 public void resize(int rows, int cols, int scrollRows) { argument 145 if (nativeResize(mNativePtr, rows, cols, scrollRows) != 0) { 197 private static native int nativeResize(long ptr, int rows, int cols, int scrollRows); argument
|
H A D | TerminalView.java | 253 final int rows = h / mMetrics.charHeight; 257 final boolean sizeChanged = (rows != mRows || cols != mCols || scrollRows != mScrollRows); 259 mTerm.resize(rows, cols, scrollRows); 261 mRows = rows;
|
/packages/apps/Dialer/tests/src/com/android/dialer/database/ |
H A D | FilteredNumberProviderTest.java | 122 int rows = mResolver.delete( 126 assertEquals(rows, 1); 145 int rows = mResolver.update(FilteredNumberContract.FilteredNumber.CONTENT_URI, v, 148 assertEquals(rows, 1);
|
/packages/apps/LegacyCamera/jni/feature_stab/db_vlvm/ |
H A D | db_utilities_indexing.h | 35 inline void db_SetupMatrixRefs(double **ar,long rows,long cols,double *a) argument 38 for(i=0;i<rows;i++) ar[i]=&a[i*cols]; 41 inline void db_SymmetricExtendUpperToLower(double **A,int rows,int cols) argument 44 for(i=1;i<rows;i++) for(j=0;j<i;j++) A[i][j]=A[j][i];
|
H A D | db_utilities.cpp | 167 void db_PrintDoubleMatrix(double *a,long rows,long cols) argument 170 for(long i=0;i<rows;i++)
|
/packages/apps/LegacyCamera/jni/feature_mos/src/mosaic/ |
H A D | Delaunay.cpp | 56 int i, rows; local 59 rows = (int)( 0.5 + sqrt( (double) size / log( (double) size ))); 67 build( 0, size-1, &lefte, &righte, rows ); 73 void CDelaunay::build(int lo, int hi, EdgePointer *le, EdgePointer *re, int rows) argument 86 if (rows == 1) { // time to switch axis of division 88 rows = 65536; 90 lowrows = rows/2; 92 (0.5 + ((double)(high-low+1) * ((double)lowrows / (double)rows))); 94 build( split+1, high, &rdi, &rdo, (rows-lowrows) );
|
H A D | Delaunay.h | 64 void build(int lo, int hi, EdgePointer *le, EdgePointer *re, int rows);
|
/packages/providers/DownloadProvider/src/com/android/providers/downloads/ |
H A D | DownloadScanner.java | 170 final int rows = resolver.update(downloadUri, values, null, null); 171 if (rows == 0) {
|
/packages/apps/Terminal/jni/ |
H A D | com_android_terminal_Terminal.cpp | 123 status_t resize(dimen_t rows, dimen_t cols, dimen_t scrollRows); 418 status_t Terminal::resize(dimen_t rows, dimen_t cols, dimen_t scrollRows) { argument 421 ALOGD("resize(%d, %d, %d)", rows, cols, scrollRows); 423 mRows = rows; 427 struct winsize size = { rows, cols, 0, 0 }; 430 vterm_set_size(mVt, rows, cols); 569 jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) { 571 return term->resize(rows, cols, scrollRows); 568 com_android_terminal_Terminal_nativeResize(JNIEnv* env, jclass clazz, jlong ptr, jint rows, jint cols, jint scrollRows) argument
|
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/ |
H A D | TelephonyBackupAgentTest.java | 834 List<ContentValues> rows; field in class:TelephonyBackupAgentTest.FakeCursor 837 public FakeCursor(List<ContentValues> rows, String[] projection) { argument 839 this.rows = rows; 858 return rows.get(nextRow).getAsString(projection[columnIndex]); 863 return rows.get(nextRow).getAsInteger(projection[columnIndex]); 868 return rows.get(nextRow).getAsLong(projection[columnIndex]); 894 return rows.size();
|
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/ |
H A D | ProximityInfo.java | 180 final int rows = touchPositionCorrection.getRows(); 194 if (row < rows) { 209 sweetSpotRadii[infoIndex], (row < rows ? "correct" : "default"),
|
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/ |
H A D | AllIntentsActivity.java | 535 final ArrayList<ContentValues> rows = new ArrayList<>(); 536 rows.add(row1); 537 rows.add(row2); 539 intent.putParcelableArrayListExtra(Insert.DATA, rows);
|
/packages/apps/Dialer/src/com/android/dialer/filterednumber/ |
H A D | BlockNumberDialogFragment.java | 240 public void onUnblockComplete(int rows, ContentValues values) { 299 public void onUnblockComplete(int rows, final ContentValues values) {
|
/packages/apps/Gallery2/src/com/android/gallery3d/ui/ |
H A D | SlotView.java | 378 // of each slot. The number of rows and the gap between slots will be 381 // of rows in landscape/portrait mode and the gap between slots. The 462 // columns (rows). 501 int rows = (mWidth > mHeight) ? mSpec.rowsLand : mSpec.rowsPort; 503 mSlotHeight = Math.max(1, (mHeight - (rows - 1) * mSlotGap) / rows);
|