Home
last modified time | relevance | path

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

1234567

/packages/apps/TV/src/com/android/tv/dvr/ui/list/
DScheduleRowPresenter.java368 ScheduleRow row = (ScheduleRow) item; in onBindRowViewHolder() local
369 @ScheduleRowAction int[] actions = getAvailableActions(row); in onBindRowViewHolder()
375 if (isInfoClickable(row)) { in onBindRowViewHolder()
376 onInfoClicked(row); in onBindRowViewHolder()
385 onActionClicked(actions[0], row); in onBindRowViewHolder()
393 onActionClicked(actions[1], row); in onBindRowViewHolder()
397 viewHolder.mTimeView.setText(onGetRecordingTimeText(row)); in onBindRowViewHolder()
398 String programInfoText = onGetProgramInfoText(row); in onBindRowViewHolder()
400 int durationMins = Math.max(1, Utils.getRoundOffMinsFromMs(row.getDuration())); in onBindRowViewHolder()
408 String channelName = getChannelNameText(row); in onBindRowViewHolder()
[all …]
DSeriesScheduleRowPresenter.java57 protected String onGetRecordingTimeText(ScheduleRow row) { in onGetRecordingTimeText() argument
59 getContext(), row.getStartTimeMs(), row.getEndTimeMs(), false, true, true, 0); in onGetRecordingTimeText()
63 protected String onGetProgramInfoText(ScheduleRow row) { in onGetProgramInfoText() argument
64 return row.getEpisodeDisplayTitle(getContext()); in onGetProgramInfoText()
71 EpisodicProgramRow row = (EpisodicProgramRow) item; in onBindRowViewHolder() local
72 if (getDvrManager().isConflicting(row.getSchedule())) { in onBindRowViewHolder()
90 protected void onInfoClicked(ScheduleRow row) { in onInfoClicked() argument
91 DvrUiHelper.startSchedulesActivity(getContext(), row.getSchedule()); in onInfoClicked()
95 protected void onStartRecording(ScheduleRow row) { in onStartRecording() argument
97 row.getSchedule() == null, TAG, "Start request with the existing schedule: " + row); in onStartRecording() local
[all …]
DScheduleRowAdapter.java148 ScheduleRow row = (ScheduleRow) get(i); in stop() local
149 if (row.isScheduleCanceled()) { in stop()
150 dvrManager.removeScheduledRecording(row.getSchedule()); in stop()
178 ScheduleRow row = (ScheduleRow) item; in findRowWithStartRequest() local
179 if (row.getSchedule() != null in findRowWithStartRequest()
180 && row.isStartRecordingRequested() in findRowWithStartRequest()
181 && row.matchSchedule(schedule)) { in findRowWithStartRequest()
182 return row; in findRowWithStartRequest()
271 ScheduleRow row = findRowWithStartRequest(schedule); in onScheduledRecordingAdded() local
277 if (row == null) { in onScheduledRecordingAdded()
[all …]
DSeriesScheduleRowAdapter.java114 for (EpisodicProgramRow row : rows) { in setPrograms()
115 add(row); in setPrograms()
155 EpisodicProgramRow row = (EpisodicProgramRow) get(index); in onScheduledRecordingAdded() local
156 if (!row.isStartRecordingRequested()) { in onScheduledRecordingAdded()
157 setScheduleToRow(row, schedule); in onScheduledRecordingAdded()
168 EpisodicProgramRow row = (EpisodicProgramRow) get(index); in onScheduledRecordingRemoved() local
169 row.setSchedule(null); in onScheduledRecordingRemoved()
179 EpisodicProgramRow row = (EpisodicProgramRow) get(index); in onScheduledRecordingUpdated() local
183 addPendingUpdate(row); in onScheduledRecordingUpdated()
186 if (row.isStopRecordingRequested()) { in onScheduledRecordingUpdated()
[all …]
DDvrHistoryRowAdapter.java193 ScheduleRow row = findRowByScheduledRecording(schedule); in onScheduledRecordingRemoved() local
194 if (row != null) { in onScheduledRecordingRemoved()
195 removeScheduleRow(row); in onScheduledRecordingRemoved()
196 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingRemoved()
207 ScheduleRow row = findRowByRecordedProgram(program); in onScheduledRecordingRemoved() local
208 if (row != null) { in onScheduledRecordingRemoved()
209 removeScheduleRow(row); in onScheduledRecordingRemoved()
210 notifyArrayItemRangeChanged(indexOf(row), 1); in onScheduledRecordingRemoved()
219 ScheduleRow row = findRowByScheduledRecording(schedule); in onScheduledRecordingUpdated() local
220 if (row != null) { in onScheduledRecordingUpdated()
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllogutils/
DCallLogEntryText.java47 public static CharSequence buildPrimaryText(Context context, CoalescedRow row) { in buildPrimaryText() argument
49 if (row.getNumberAttributes().getIsEmergencyNumber()) { in buildPrimaryText()
56 PhoneNumberDisplayUtil.getNameForPresentation(context, row.getNumberPresentation()); in buildPrimaryText()
62 if (row.getIsVoicemailCall() && !TextUtils.isEmpty(row.getVoicemailCallTag())) { in buildPrimaryText()
63 return row.getVoicemailCallTag(); in buildPrimaryText()
67 if (!TextUtils.isEmpty(row.getNumberAttributes().getName())) { in buildPrimaryText()
68 return row.getNumberAttributes().getName(); in buildPrimaryText()
72 if (!TextUtils.isEmpty(row.getFormattedNumber())) { in buildPrimaryText()
73 return PhoneNumberUtils.createTtsSpannable(row.getFormattedNumber()); in buildPrimaryText()
97 Context context, Clock clock, CoalescedRow row) { in buildSecondaryTextForEntries() argument
[all …]
DCallLogEntryDescriptions.java60 Context context, Clock clock, CoalescedRow row) { in buildDescriptionForEntry() argument
73 getPrimaryDescriptionResIdForCallType(row), in buildDescriptionForEntry()
74 row.getCoalescedIds().getCoalescedIdCount()), in buildDescriptionForEntry()
75 String.valueOf(row.getCoalescedIds().getCoalescedIdCount()), in buildDescriptionForEntry()
76 CallLogEntryText.buildPrimaryText(context, row)); in buildDescriptionForEntry()
83 context, clock, row, /* abbreviateDateTime = */ false)); in buildDescriptionForEntry()
87 CharSequence phoneAccountDescription = buildPhoneAccountDescription(context, row); in buildDescriptionForEntry()
106 private static @PluralsRes int getPrimaryDescriptionResIdForCallType(CoalescedRow row) { in getPrimaryDescriptionResIdForCallType() argument
107 switch (row.getCallType()) { in getPrimaryDescriptionResIdForCallType()
128 private static CharSequence buildPhoneAccountDescription(Context context, CoalescedRow row) { in buildPhoneAccountDescription() argument
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/menu/
DModules.java43 static List<HistoryItemActionModule> fromRow(Context context, CoalescedRow row) { in fromRow() argument
45 new HistoryItemActionModulesBuilder(context, buildModuleInfo(row)); in fromRow()
51 row.getNumber().getNormalizedNumber(), row.getNumberPresentation())) { in fromRow()
65 modules.add(createModuleForAccessingCallDetails(context, row)); in fromRow()
66 modules.add(new DeleteCallLogItemModule(context, row.getCoalescedIds())); in fromRow()
71 Context context, CoalescedRow row) { in createModuleForAccessingCallDetails() argument
73 !row.getIsVoicemailCall() && row.getNumberAttributes().getCanReportAsInvalidNumber(); in createModuleForAccessingCallDetails()
79 row.getCoalescedIds(), in createModuleForAccessingCallDetails()
80 createCallDetailsHeaderInfoFromRow(context, row), in createModuleForAccessingCallDetails()
82 canSupportAssistedDialing(row)), in createModuleForAccessingCallDetails()
[all …]
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
DHbpcdLookupDatabaseHelper.java202 ContentValues row = null; in loadTable() local
204 row = getTableMccIddRow(parser); in loadTable()
206 row = getTableMccLookupTableRow(parser); in loadTable()
208 row = getTableMccSidConflictRow(parser); in loadTable()
210 row = getTableMccSidRangeRow(parser); in loadTable()
212 row = getTableNanpAreaCodeRow(parser); in loadTable()
215 row = getTableArbitraryMccSidMatch(parser); in loadTable()
220 if (row != null) { in loadTable()
221 db.insert(tableName, null, row); in loadTable()
233 ContentValues row = new ContentValues(); in getTableMccIddRow() local
[all …]
/packages/apps/Dialer/java/com/android/dialer/calllog/ui/
DNewCallLogViewHolder.java120 private void displayRow(CoalescedRow row) { in displayRow() argument
122 primaryTextView.setText(CallLogEntryText.buildPrimaryText(activity, row)); in displayRow()
123 secondaryTextView.setText(CallLogEntryText.buildSecondaryTextForEntries(activity, clock, row)); in displayRow()
125 if (isUnreadMissedCall(row)) { in displayRow()
137 setNumberCalls(row); in displayRow()
138 setPhoto(row); in displayRow()
139 setFeatureIcons(row); in displayRow()
140 setCallTypeIcon(row); in displayRow()
141 setPhoneAccounts(row); in displayRow()
142 setCallButon(row); in displayRow()
[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/services/Car/tests/CarDeveloperOptions/src/com/android/car/developeroptions/notification/
DNotificationBackend.java62 final AppRow row = new AppRow(); in loadAppRow() local
63 row.pkg = app.packageName; in loadAppRow()
64 row.uid = app.uid; in loadAppRow()
66 row.label = app.loadLabel(pm); in loadAppRow()
68 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
69 row.label = row.pkg; in loadAppRow()
71 row.icon = IconDrawableFactory.newInstance(context).getBadgedIcon(app); in loadAppRow()
72 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
73 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
74 row.allowBubbles = canBubble(row.pkg, row.uid); in loadAppRow()
[all …]
/packages/apps/Settings/src/com/android/settings/notification/
DNotificationBackend.java64 final AppRow row = new AppRow(); in loadAppRow() local
65 row.pkg = app.packageName; in loadAppRow()
66 row.uid = app.uid; in loadAppRow()
68 row.label = app.loadLabel(pm); in loadAppRow()
70 Log.e(TAG, "Error loading application label for " + row.pkg, t); in loadAppRow()
71 row.label = row.pkg; in loadAppRow()
73 row.icon = IconDrawableFactory.newInstance(context).getBadgedIcon(app); in loadAppRow()
74 row.banned = getNotificationsBanned(row.pkg, row.uid); in loadAppRow()
75 row.showBadge = canShowBadge(row.pkg, row.uid); in loadAppRow()
76 row.allowBubbles = canBubble(row.pkg, row.uid); in loadAppRow()
[all …]
/packages/apps/DocumentsUI/tests/common/com/android/documentsui/
DTestRootProvider.java70 final RowBuilder row = c.newRow(); in queryRoots() local
71 row.add(Root.COLUMN_ROOT_ID, mRootId); in queryRoots()
72 row.add(Root.COLUMN_TITLE, mRootName); in queryRoots()
73 row.add(Root.COLUMN_FLAGS, mFlags); in queryRoots()
74 row.add(Root.COLUMN_DOCUMENT_ID, mRootDocId); in queryRoots()
75 row.add(Root.COLUMN_AVAILABLE_BYTES, 1024 * 1024 * 1000); in queryRoots()
84 final RowBuilder row = c.newRow(); in addFile() local
85 row.add(Document.COLUMN_DOCUMENT_ID, id); in addFile()
86 row.add(Document.COLUMN_DISPLAY_NAME, id); in addFile()
87 row.add(Document.COLUMN_SIZE, 0); in addFile()
[all …]
/packages/providers/MediaProvider/src/com/android/providers/media/
DMediaDocumentsProvider.java953 final RowBuilder row = result.newRow(); in includeImagesRoot() local
954 row.add(Root.COLUMN_ROOT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot()
955 row.add(Root.COLUMN_FLAGS, flags); in includeImagesRoot()
956 row.add(Root.COLUMN_TITLE, getContext().getString(R.string.root_images)); in includeImagesRoot()
957 row.add(Root.COLUMN_DOCUMENT_ID, TYPE_IMAGES_ROOT); in includeImagesRoot()
958 row.add(Root.COLUMN_MIME_TYPES, IMAGE_MIME_TYPES); in includeImagesRoot()
959 row.add(Root.COLUMN_QUERY_ARGS, SUPPORTED_QUERY_ARGS); in includeImagesRoot()
969 final RowBuilder row = result.newRow(); in includeVideosRoot() local
970 row.add(Root.COLUMN_ROOT_ID, TYPE_VIDEOS_ROOT); in includeVideosRoot()
971 row.add(Root.COLUMN_FLAGS, flags); in includeVideosRoot()
[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/apps/DocumentsUI/tests/unit/com/android/documentsui/sorting/
DSortingCursorWrapperTest.java119 MatrixCursor.RowBuilder row = c.newRow(); in setUp() local
120 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in setUp()
121 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in setUp()
122 row.add(Document.COLUMN_FLAGS, Document.FLAG_SUPPORTS_DELETE); in setUp()
125 row.add(Document.COLUMN_DISPLAY_NAME, NAMES[i]); in setUp()
126 row.add(Document.COLUMN_SIZE, rand.nextInt()); in setUp()
127 row.add(Document.COLUMN_MIME_TYPE, MIMES[i]); in setUp()
233 MatrixCursor.RowBuilder row = c.newRow(); in testSort_sizesWithBucketing_ascending() local
234 row.add(RootCursorWrapper.COLUMN_AUTHORITY, AUTHORITY); in testSort_sizesWithBucketing_ascending()
235 row.add(Document.COLUMN_DOCUMENT_ID, Integer.toString(i)); in testSort_sizesWithBucketing_ascending()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
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 …]
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 …]
/packages/apps/Dialer/java/com/android/dialer/searchfragment/cp2/
DCp2Contact.java114 Object[] row = new Object[Projections.CP2_PROJECTION.length]; in toCursorRow() local
115 row[Projections.ID] = phoneId(); in toCursorRow()
116 row[Projections.PHONE_TYPE] = phoneType(); in toCursorRow()
117 row[Projections.PHONE_LABEL] = phoneLabel(); in toCursorRow()
118 row[Projections.PHONE_NUMBER] = phoneNumber(); in toCursorRow()
119 row[Projections.DISPLAY_NAME] = displayName(); in toCursorRow()
120 row[Projections.PHOTO_ID] = photoId(); in toCursorRow()
121 row[Projections.PHOTO_URI] = photoUri(); in toCursorRow()
122 row[Projections.LOOKUP_KEY] = lookupKey(); in toCursorRow()
123 row[Projections.CARRIER_PRESENCE] = carrierPresence(); in toCursorRow()
[all …]
/packages/apps/DocumentsUI/tests/unit/com/android/documentsui/archives/
DResourcesProvider.java84 final RowBuilder row = result.newRow(); in queryRoots() local
85 row.add(Root.COLUMN_ROOT_ID, "root-id"); in queryRoots()
86 row.add(Root.COLUMN_FLAGS, 0); in queryRoots()
87 row.add(Root.COLUMN_TITLE, "ResourcesProvider"); in queryRoots()
88 row.add(Root.COLUMN_DOCUMENT_ID, "root-document-id"); in queryRoots()
98 final RowBuilder row = result.newRow(); in queryDocument() local
99 row.add(Document.COLUMN_DOCUMENT_ID, "root-document-id"); in queryDocument()
100 row.add(Document.COLUMN_FLAGS, 0); in queryDocument()
101 row.add(Document.COLUMN_DISPLAY_NAME, "ResourcesProvider"); in queryDocument()
102 row.add(Document.COLUMN_SIZE, 0); in queryDocument()
[all …]
/packages/apps/Launcher3/src/com/android/launcher3/allapps/
DFloatingHeaderView.java157 for (PluginHeaderRow row : mPluginRows.values()) { in recreateAllRowsArray()
158 mAllRows[count] = row; in recreateAllRowsArray()
188 PluginHeaderRow row = mPluginRows.get(plugin); in onPluginDisconnected() local
189 removeView(row.mView); in onPluginDisconnected()
196 for (FloatingHeaderRow row : mAllRows) { in setup()
197 row.setup(this, mAllRows, tabsHidden); in setup()
222 for (FloatingHeaderRow row : mAllRows) { in updateExpectedHeight()
223 mMaxTranslation += row.getExpectedHeight(); in updateExpectedHeight()
276 for (FloatingHeaderRow row : mAllRows) { in applyVerticalMove()
277 row.setVerticalScroll(0, true /* isScrolledOut */); in applyVerticalMove()
[all …]
/packages/apps/DocumentsUI/src/com/android/documentsui/inspector/
DTableView.java93 KeyValueRow row = (KeyValueRow) mInflater.inflate(R.layout.table_key_value_row, null); in createKeyValueRow() local
94 parent.addView(row); in createKeyValueRow()
95 row.setTextClassifier(mClassifier); in createKeyValueRow()
96 return row; in createKeyValueRow()
111 KeyValueRow row = mRows.get(key); in put() local
113 if (row == null) { in put()
114 row = createKeyValueRow(this); in put()
115 row.setKey(key); in put()
116 mRows.put(key, row); in put()
117 } else if (row.hasOnClickListeners()) { in put()
[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 …]

1234567