Home
last modified time | relevance | path

Searched refs:row (Results 1 – 25 of 95) sorted by relevance

1234

/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java41 final AppRow row = new AppRow(); in loadAppRow() local
42 row.pkg = app.packageName; in loadAppRow()
43 row.uid = app.uid; in loadAppRow()
45 row.label = app.loadLabel(pm); in loadAppRow()
47 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
48 row.label = row.pkg; in loadAppRow()
50 row.icon = app.loadIcon(pm); in loadAppRow()
51 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
52 row.appImportance = getImportance(row.pkg, row.uid); in loadAppRow()
53 row.appBypassDnd = getBypassZenMode(row.pkg, row.uid); in loadAppRow()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DHbpcdLookupDatabaseHelper.java198 ContentValues row = null; in loadTable() local
200 row = getTableMccIddRow(parser); in loadTable()
202 row = getTableMccLookupTableRow(parser); in loadTable()
204 row = getTableMccSidConflictRow(parser); in loadTable()
206 row = getTableMccSidRangeRow(parser); in loadTable()
208 row = getTableNanpAreaCodeRow(parser); in loadTable()
211 row = getTableArbitraryMccSidMatch(parser); in loadTable()
216 if (row != null) { in loadTable()
217 db.insert(tableName, null, row); in loadTable()
229 ContentValues row = new ContentValues(); in getTableMccIddRow() local
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/internal/
DMatrixUtils.java46 private static void findPivotAndSwapRow(final int row, final float[][] squareMatrix0, in findPivotAndSwapRow() argument
48 int ip = row; in findPivotAndSwapRow()
49 float pivot = Math.abs(squareMatrix0[row][row]); in findPivotAndSwapRow()
50 for (int i = row + 1; i < size; ++i) { in findPivotAndSwapRow()
51 if (pivot < Math.abs(squareMatrix0[i][row])) { in findPivotAndSwapRow()
53 pivot = Math.abs(squareMatrix0[i][row]); in findPivotAndSwapRow()
56 if (ip != row) { in findPivotAndSwapRow()
59 squareMatrix0[ip][j] = squareMatrix0[row][j]; in findPivotAndSwapRow()
60 squareMatrix0[row][j] = temp0; in findPivotAndSwapRow()
62 squareMatrix1[ip][j] = squareMatrix1[row][j]; in findPivotAndSwapRow()
[all …]
DKeyboardBuilder.java305 final KeyboardRow row = parseRowAttributes(parser); in parseKeyboardContent() local
308 startRow(row); in parseKeyboardContent()
310 parseRowContent(parser, row, skip); in parseKeyboardContent()
355 private void parseRowContent(final XmlPullParser parser, final KeyboardRow row, in parseRowContent() argument
362 parseKey(parser, row, skip); in parseRowContent()
364 parseSpacer(parser, row, skip); in parseRowContent()
366 parseIncludeRowContent(parser, row, skip); in parseRowContent()
368 parseSwitchRowContent(parser, row, skip); in parseRowContent()
379 endRow(row); in parseRowContent()
422 final KeyboardRow row = new KeyboardRow(mResources, mParams, parser, mCurrentY); in parseGridRows() local
[all …]
/packages/apps/Calendar/src/com/android/calendar/agenda/
DAgendaByDayAdapter.java105 RowInfo row = mRowInfo.get(i); in getHeaderPosition() local
106 if (row != null && row.mType == TYPE_DAY) in getHeaderPosition()
138 RowInfo row = mRowInfo.get(position); in getItem() local
139 if (row.mType == TYPE_DAY) { in getItem()
140 return row; in getItem()
142 return mAgendaAdapter.getItem(row.mPosition); in getItem()
151 RowInfo row = mRowInfo.get(position); in getItemId() local
152 if (row.mType == TYPE_DAY) { in getItemId()
155 return mAgendaAdapter.getItemId(row.mPosition); in getItemId()
183 RowInfo row = mRowInfo.get(position); in getView() local
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java509 final RowBuilder row = result.newRow(); in includeImagesRoot() local
510 row.add(Root.COLUMN_ROOT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot()
511 row.add(Root.COLUMN_FLAGS, flags); in includeImagesRoot()
512 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_images)); in includeImagesRoot()
513 row.add(Root.COLUMN_DOCUMENT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot()
514 row.add(Root.COLUMN_MIME_TYPES, IMAGE_MIME_TYPES); in includeImagesRoot()
524 final RowBuilder row = result.newRow(); in includeVideosRoot() local
525 row.add(Root.COLUMN_ROOT_ID, TYPE_VIDEOS_ROOT); in includeVideosRoot()
526 row.add(Root.COLUMN_FLAGS, flags); in includeVideosRoot()
527 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_videos)); in includeVideosRoot()
[all …]
/packages/apps/Launcher2/
Dprint_db.py46 for row in c:
47 rows.append(row)
124 data = [dict(zip(columns,row)) for row in rows]
154 for row in rows:
157 for i in range(0,len(row)):
158 cell = row[i]
161 print_functions[i](out, row[0], row, cell)
173 for row in data:
174 if row["container"] != -101:
176 screen = row["screen"]
[all …]
/packages/apps/Launcher3/
Dprint_db.py57 for row in c:
58 rows.append(row)
66 for row in c:
67 rows.append(row)
158 data = [dict(zip(columns,row)) for row in rows]
209 for row in rows:
212 for i in range(0,len(row)):
213 cell = row[i]
216 print_functions[i](out, row[0], row, cell)
236 for row in data:
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DAbstractKeyboardBuilder.java57 final E[] row = rows[rowIndex]; in AbstractKeyboardBuilder() local
58 mRows[rowIndex] = Arrays.copyOf(row, row.length); in AbstractKeyboardBuilder()
84 E[] getRowAt(final int row) { in getRowAt() argument
85 final int rowIndex = row - 1; in getRowAt()
87 throw new RuntimeException("Illegal row number: " + row); in getRowAt()
98 void setRowAt(final int row, final E[] elements) { in setRowAt() argument
99 final int rowIndex = row - 1; in setRowAt()
101 throw new RuntimeException("Illegal row number: " + row); in setRowAt()
118 void setElementAt(final int row, final int column, final E element, final boolean insert) { in setElementAt() argument
119 final E[] elements = getRowAt(row); in setElementAt()
[all …]
DExpectedKeyboardBuilder.java90 for (int row = 1; row <= rowCount; row++) { in replaceKeyOf()
91 ExpectedKey[] keys = getRowAt(row); in replaceKeyOf()
101 setRowAt(row, keys); in replaceKeyOf()
139 public ExpectedKeyboardBuilder setKeysOfRow(final int row, final Object ... keys) { in setKeysOfRow() argument
140 setRowAt(row, joinKeys(keys)); in setKeysOfRow()
220 public ExpectedKeyboardBuilder insertKeysAtRow(final int row, final int column, in insertKeysAtRow() argument
224 setElementAt(row, column + index, expectedKeys[index], true /* insert */); in insertKeysAtRow()
237 public ExpectedKeyboardBuilder addKeysOnTheLeftOfRow(final int row, in addKeysOnTheLeftOfRow() argument
242 setElementAt(row, 1, expectedKeys[index], true /* insert */); in addKeysOnTheLeftOfRow()
255 public ExpectedKeyboardBuilder addKeysOnTheRightOfRow(final int row, in addKeysOnTheRightOfRow() argument
[all …]
/packages/apps/Gallery2/jni/filters/
DredEyeMath.c77 int row = recW * y; in dialateMaskIfRed() local
82 char b = (mask[row + x] | mask[row + x + 1] | mask[row + x - 1] in dialateMaskIfRed()
83 | mask[row + x - recW] | mask[row + x + recW]); in dialateMaskIfRed()
85 out[row + x] = 1; in dialateMaskIfRed()
87 out[row + x] = mask[row + x]; in dialateMaskIfRed()
95 int row = mw * y; in dialateMask() local
97 out[row + x] = (mask[row + x] | mask[row + x + 1] in dialateMask()
98 | mask[row + x - 1] | mask[row + x - mw] in dialateMask()
99 | mask[row + x + mw]); in dialateMask()
/packages/apps/TV/src/com/android/tv/search/
DLocalSearchProvider.java103 List<String> row = new ArrayList<>(SEARCHABLE_COLUMNS.length); in createSuggestionsCursor() local
106 row.clear(); in createSuggestionsCursor()
107 row.add(result.title); in createSuggestionsCursor()
108 row.add(result.description); in createSuggestionsCursor()
109 row.add(result.imageUri); in createSuggestionsCursor()
110 row.add(result.intentAction); in createSuggestionsCursor()
111 row.add(result.intentData); in createSuggestionsCursor()
112 row.add(result.contentType); in createSuggestionsCursor()
113 row.add(result.isLive ? LIVE_CONTENTS : NO_LIVE_CONTENTS); in createSuggestionsCursor()
114 row.add(result.videoWidth == 0 ? null : String.valueOf(result.videoWidth)); in createSuggestionsCursor()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/suggestions/
DMoreSuggestions.java65 int row = 0; in layout() local
84 if ((row + 1) >= maxRow) { in layout()
87 mNumColumnsInRow[row] = index - rowStartIndex; in layout()
89 row++; in layout()
92 mRowNumbers[index] = row; in layout()
95 mNumColumnsInRow[row] = index - rowStartIndex; in layout()
96 mNumRows = row + 1; in layout()
114 for (int row = 0; row < mNumRows; row++) { in calcurateMaxRowWidth()
115 final int numColumnInRow = mNumColumnsInRow[row]; in calcurateMaxRowWidth()
117 while (index < endIndex && mRowNumbers[index] == row) { in calcurateMaxRowWidth()
[all …]
/packages/apps/Messaging/src/com/android/messaging/datamodel/
DFrequentContactsCursorBuilder.java112 final Object[] row = new Object[ContactUtil.PhoneQuery.PROJECTION.length]; in build() local
113 row[ContactUtil.INDEX_DATA_ID] = in build()
115 row[ContactUtil.INDEX_CONTACT_ID] = in build()
117 row[ContactUtil.INDEX_LOOKUP_KEY] = in build()
119 row[ContactUtil.INDEX_DISPLAY_NAME] = in build()
121 row[ContactUtil.INDEX_PHOTO_URI] = in build()
123 row[ContactUtil.INDEX_PHONE_EMAIL] = in build()
125 row[ContactUtil.INDEX_PHONE_EMAIL_TYPE] = in build()
127 row[ContactUtil.INDEX_PHONE_EMAIL_LABEL] = in build()
129 rows.add(row); in build()
[all …]
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/keyboard/
DMoreKeysKeyboard.java162 final int row = n / mNumColumns; in getFixedOrderColumnPos() local
163 if (!isTopRow(row)) { in getFixedOrderColumnPos()
182 final int row = n / mNumColumns; in getAutomaticColumnPos() local
184 if (isTopRow(row)) { in getAutomaticColumnPos()
234 public int getX(final int n, final int row) { in getX() argument
236 if (isTopRow(row)) { in getX()
242 public int getY(final int row) { in getY() argument
243 return (mNumRows - 1 - row) * mDefaultRowHeight + mTopPadding; in getY()
246 public void markAsEdgeKey(final Key key, final int row) { in markAsEdgeKey() argument
247 if (row == 0) in markAsEdgeKey()
[all …]
/packages/providers/DownloadProvider/src/com/android/providers/downloads/
DDownloadStorageProvider.java100 final RowBuilder row = result.newRow(); in queryRoots() local
101 row.add(Root.COLUMN_ROOT_ID, DOC_ID_ROOT); in queryRoots()
102 row.add(Root.COLUMN_FLAGS, in queryRoots()
104 row.add(Root.COLUMN_ICON, R.mipmap.ic_launcher_download); in queryRoots()
105 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_downloads)); in queryRoots()
106 row.add(Root.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in queryRoots()
321 final RowBuilder row = result.newRow(); in includeDefaultDocument() local
322 row.add(Document.COLUMN_DOCUMENT_ID, DOC_ID_ROOT); in includeDefaultDocument()
323 row.add(Document.COLUMN_MIME_TYPE, Document.MIME_TYPE_DIR); in includeDefaultDocument()
324 row.add(Document.COLUMN_FLAGS, in includeDefaultDocument()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/ui/contact/
DContactListItemViewTest.java80 final int row = TestDataFactory.CONTACT_LIST_CURSOR_FIRST_LEVEL_CONTACT_INDEX; in testBindFirstLevel() local
81 cursor.moveToPosition(row); in testBindFirstLevel()
83 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, row), in testBindFirstLevel()
84 (String) cursor.getAt(Phone.NUMBER, row), in testBindFirstLevel()
85 (String) cursor.getAt(Contacts.PHOTO_THUMBNAIL_URI, row), true); in testBindFirstLevel()
91 final int row = TestDataFactory.CONTACT_LIST_CURSOR_SECOND_LEVEL_CONTACT_INDEX; in testBindSecondLevel() local
92 cursor.moveToPosition(row); in testBindSecondLevel()
94 verifyContent(view, (String) cursor.getAt(Contacts.DISPLAY_NAME, row), in testBindSecondLevel()
95 (String) cursor.getAt(Phone.NUMBER, row), in testBindSecondLevel()
96 (String) cursor.getAt(Contacts.PHOTO_THUMBNAIL_URI, row), false); in testBindSecondLevel()
/packages/apps/Launcher3/src/com/android/launcher3/widget/
DWidgetsListAdapter.java99 ViewGroup row = ((ViewGroup) holder.getContent().findViewById(R.id.widgets_cell_list)); in onBindViewHolder() local
103 pos, infoList.size(), row.getChildCount())); in onBindViewHolder()
108 int diff = infoList.size() - row.getChildCount(); in onBindViewHolder()
113 R.layout.widget_cell, row, false); in onBindViewHolder()
123 row.addView(widget); in onBindViewHolder()
126 for (int i=infoList.size() ; i < row.getChildCount(); i++) { in onBindViewHolder()
127 row.getChildAt(i).setVisibility(View.GONE); in onBindViewHolder()
141 WidgetCell widget = (WidgetCell) row.getChildAt(i); in onBindViewHolder()
182 ViewGroup row = ((ViewGroup) holder.getContent().findViewById(R.id.widgets_cell_list)); in onViewRecycled() local
184 for (int i = 0; i < row.getChildCount(); i++) { in onViewRecycled()
[all …]
/packages/apps/Dialer/src/com/android/dialer/dialpad/
DSmartDialCursorLoader.java97 Object[] row = new Object[PhoneQuery.PROJECTION_PRIMARY.length]; in loadInBackground() local
99 row[PhoneQuery.PHONE_ID] = contact.dataId; in loadInBackground()
100 row[PhoneQuery.PHONE_NUMBER] = contact.phoneNumber; in loadInBackground()
101 row[PhoneQuery.CONTACT_ID] = contact.id; in loadInBackground()
102 row[PhoneQuery.LOOKUP_KEY] = contact.lookupKey; in loadInBackground()
103 row[PhoneQuery.PHOTO_ID] = contact.photoId; in loadInBackground()
104 row[PhoneQuery.DISPLAY_NAME] = contact.displayName; in loadInBackground()
105 row[PhoneQuery.CARRIER_PRESENCE] = contact.carrierPresence; in loadInBackground()
106 cursor.addRow(row); in loadInBackground()
/packages/apps/Gallery2/src/com/android/photos/shims/
DMediaItemsLoader.java112 final Object[] row = new Object[PhotoSetLoader.PROJECTION.length]; in loadInBackground() local
117 row[PhotoSetLoader.INDEX_ID] = index; in loadInBackground()
118 row[PhotoSetLoader.INDEX_DATA] = item.getContentUri().toString(); in loadInBackground()
119 row[PhotoSetLoader.INDEX_DATE_ADDED] = item.getDateInMs(); in loadInBackground()
120 row[PhotoSetLoader.INDEX_HEIGHT] = item.getHeight(); in loadInBackground()
121 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth(); in loadInBackground()
122 row[PhotoSetLoader.INDEX_WIDTH] = item.getWidth(); in loadInBackground()
130 row[PhotoSetLoader.INDEX_MEDIA_TYPE] = mappedMediaType; in loadInBackground()
131 row[PhotoSetLoader.INDEX_SUPPORTED_OPERATIONS] = in loadInBackground()
133 cursor.addRow(row); in loadInBackground()
/packages/apps/DeskClock/src/com/android/deskclock/widget/selector/
DAlarmSelectionAdapter.java41 View row = convertView; in getView() local
42 if (row == null) { in getView()
44 row = inflater.inflate(R.layout.alarm_row, parent, false); in getView()
50 final TextTime alarmTime = (TextTime) row.findViewById(R.id.digital_clock); in getView()
54 final TextView alarmLabel = (TextView) row.findViewById(R.id.label); in getView()
67 final TextView daysOfWeekView = (TextView) row.findViewById(R.id.daysOfWeek); in getView()
70 return row; in getView()
/packages/apps/Gallery/src/com/android/camera/
DGridViewSpecial.java503 int row = pos / mColumns; in getRectForPosition() local
504 int col = pos - (row * mColumns); in getRectForPosition()
508 int top = row * mBlockHeight; in getRectForPosition()
523 int row = (mScrollY + y - spacing) / (mSpec.mCellHeight + spacing); in computeSelectedIndex() local
526 return (row * mColumns) + col; in computeSelectedIndex()
696 int row = mCurrentSelection / mColumns; in paintSelection() local
697 int col = mCurrentSelection - (row * mColumns); in paintSelection()
702 int yTop = spacing + (row * mBlockHeight); in paintSelection()
794 int row = pos / mColumns; in clearLoaderQueue() local
795 int col = pos - row * mColumns; in clearLoaderQueue()
[all …]
/packages/apps/Camera2/jni/
Djpegutil.cpp277 for (int row = 0; row < DCTSIZE * 2; row++) { in Compress() local
278 yArr[row] = yData[row]; in Compress()
280 for (int row = 0; row < DCTSIZE; row++) { in Compress() local
281 cbArr[row] = cbData[row]; in Compress()
282 crArr[row] = crData[row]; in Compress()
/packages/apps/UnifiedEmail/src/com/android/mail/ui/
DFolderSelectorAdapter.java127 final FolderRow row = new FolderRow(folder, isSelected); in createFolderRows() local
128 allFolders.add(row); in createFolderRows()
133 systemFolders.add(row); in createFolderRows()
141 for (final FolderRow row : allFolders) { in createFolderRows()
142 final Folder folder = row.getFolder(); in createFolderRows()
145 userFolders.add(row); in createFolderRows()
318 final FolderRow row = (FolderRow) getItem(position); in getView() local
319 final Folder folder = row.getFolder(); in getView()
320 final String folderDisplay = !TextUtils.isEmpty(row.mPathName) ? in getView()
321 row.mPathName : folder.name; in getView()
[all …]
/packages/apps/Messaging/src/com/android/messaging/sms/
DApnDatabase.java195 final ContentValues row = cursorToValues(cursor); in loadUserDataFromOldTable() local
196 if (row != null) { in loadUserDataFromOldTable()
197 result.add(row); in loadUserDataFromOldTable()
226 for (final ContentValues row : data) { in saveUserDataFromOldTable()
231 for (final String key : row.keySet()) { in saveUserDataFromOldTable()
236 final String value = row.getAsString(key); in saveUserDataFromOldTable()
253 db.update(APN_TABLE, row, ID_SELECTION, new String[]{cursor.getString(0)}); in saveUserDataFromOldTable()
256 row.put(Telephony.Carriers.NUMERIC, in saveUserDataFromOldTable()
258 row.getAsString(Telephony.Carriers.MCC), in saveUserDataFromOldTable()
259 row.getAsString(Telephony.Carriers.MNC)) in saveUserDataFromOldTable()
[all …]

1234