Home
last modified time | relevance | path

Searched refs:columnIndex (Results 1 – 25 of 30) sorted by relevance

12

/packages/apps/Dialer/InCallUI/src/com/android/incallui/
DCallerInfo.java232 int columnIndex; in getCallerInfo() local
235 columnIndex = cursor.getColumnIndex(PhoneLookup.DISPLAY_NAME); in getCallerInfo()
236 if (columnIndex != -1) { in getCallerInfo()
237 info.name = cursor.getString(columnIndex); in getCallerInfo()
241 columnIndex = cursor.getColumnIndex(PhoneLookup.NUMBER); in getCallerInfo()
242 if (columnIndex != -1) { in getCallerInfo()
243 info.phoneNumber = cursor.getString(columnIndex); in getCallerInfo()
247 columnIndex = cursor.getColumnIndex(PhoneLookup.NORMALIZED_NUMBER); in getCallerInfo()
248 if (columnIndex != -1) { in getCallerInfo()
249 info.normalizedNumber = cursor.getString(columnIndex); in getCallerInfo()
[all …]
/packages/inputmethods/LatinIME/tests/src/com/android/inputmethod/keyboard/layout/expected/
DExpectedKeyboardBuilder.java68 private static ExpectedKey[] replaceKeyAt(final ExpectedKey[] keys, final int columnIndex, in replaceKeyAt() argument
72 keys[columnIndex] = replacingKeys[0]; in replaceKeyAt()
78 System.arraycopy(keys, columnIndex + 1, newKeys, columnIndex + replacingKeys.length, in replaceKeyAt()
79 keys.length - 1 - columnIndex); in replaceKeyAt()
81 System.arraycopy(replacingKeys, 0, newKeys, columnIndex, replacingKeys.length); in replaceKeyAt()
92 for (int columnIndex = 0; columnIndex < keys.length; /* nothing */) { in replaceKeyOf()
93 final ExpectedKey currentKey = keys[columnIndex]; in replaceKeyOf()
95 columnIndex++; in replaceKeyOf()
99 keys = replaceKeyAt(keys, columnIndex, replacingKeys); in replaceKeyOf()
100 columnIndex += replacingKeys.length; in replaceKeyOf()
[all …]
DAbstractKeyboardBuilder.java120 final int columnIndex = column - 1; in setElementAt() local
121 if (columnIndex < 0) { in setElementAt()
125 if (columnIndex >= elements.length + 1) { in setElementAt()
130 System.arraycopy(newElements, columnIndex, newElements, columnIndex + 1, in setElementAt()
131 elements.length - columnIndex); in setElementAt()
133 newElements[columnIndex] = element; in setElementAt()
138 final E[] newElements = (columnIndex < elements.length) ? elements in setElementAt()
139 : Arrays.copyOf(elements, columnIndex + 1); in setElementAt()
140 newElements[columnIndex] = element; in setElementAt()
/packages/apps/UnifiedEmail/src/com/android/mail/browse/
DConversationCursor.java968 private Object getCachedValue(int columnIndex) { in getCachedValue() argument
970 return getCachedValue(uri, columnIndex); in getCachedValue()
973 private Object getCachedValue(String uri, int columnIndex) { in getCachedValue() argument
977 if (columnIndex == DELETED_COLUMN_INDEX) { in getCachedValue()
980 columnName = mColumnNames[columnIndex]; in getCachedValue()
1272 public double getDouble(int columnIndex) { in getDouble() argument
1273 Object obj = getCachedValue(columnIndex); in getDouble()
1275 return mUnderlyingCursor.getDouble(columnIndex); in getDouble()
1279 public float getFloat(int columnIndex) { in getFloat() argument
1280 Object obj = getCachedValue(columnIndex); in getFloat()
[all …]
/packages/apps/Email/provider_src/com/android/email/provider/
DEmailMessageCursor.java105 public String getString(final int columnIndex) { in getString() argument
106 if (columnIndex == mHtmlColumnIndex) { in getString()
108 } else if (columnIndex == mTextColumnIndex) { in getString()
111 return super.getString(columnIndex); in getString()
115 public int getType(int columnIndex) { in getType() argument
116 if (columnIndex == mHtmlColumnIndex || columnIndex == mTextColumnIndex) { in getType()
121 return super.getType(columnIndex); in getType()
DContentCache.java558 int columnIndex = c.getColumnIndex(column); in getMatrixCursor() local
559 if (columnIndex < 0) { in getMatrixCursor()
573 value = c.getString(columnIndex); in getMatrixCursor()
/packages/apps/Gallery2/gallerycommon/src/com/android/gallery3d/common/
DEntrySchema.java106 int columnIndex = column.projectionIndex; in cursorToObject() local
110 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
112 : cursor.getString(columnIndex)); in cursorToObject()
115 field.setBoolean(object, cursor.getShort(columnIndex) == 1); in cursorToObject()
118 field.setShort(object, cursor.getShort(columnIndex)); in cursorToObject()
121 field.setInt(object, cursor.getInt(columnIndex)); in cursorToObject()
124 field.setLong(object, cursor.getLong(columnIndex)); in cursorToObject()
127 field.setFloat(object, cursor.getFloat(columnIndex)); in cursorToObject()
130 field.setDouble(object, cursor.getDouble(columnIndex)); in cursorToObject()
133 field.set(object, cursor.isNull(columnIndex) in cursorToObject()
[all …]
/packages/apps/Messaging/tests/src/com/android/messaging/datamodel/
DFakeCursor.java132 public String getString(final int columnIndex) { in getString() argument
133 final int dataIdx = mProjection.get(columnIndex); in getString()
139 public int getInt(final int columnIndex) { in getInt() argument
140 final int dataIdx = mProjection.get(columnIndex); in getInt()
145 public long getLong(final int columnIndex) { in getLong() argument
146 final int dataIdx = mProjection.get(columnIndex); in getLong()
/packages/apps/Calculator/src/com/android/calculator2/
DCalculatorPadLayout.java71 int rowIndex = 0, columnIndex = 0; in onLayout() local
83 (isRTL ? (mColumnCount - 1) - columnIndex : columnIndex) * columnWidth; in onLayout()
96 rowIndex = (rowIndex + (columnIndex + 1) / mColumnCount) % mRowCount; in onLayout()
97 columnIndex = (columnIndex + 1) % mColumnCount; in onLayout()
/packages/apps/ContactsCommon/src/com/android/contacts/common/util/
DDataStatus.java153 final int columnIndex = cursor.getColumnIndex(columnName); in getInt() local
154 return cursor.isNull(columnIndex) ? missingValue : cursor.getInt(columnIndex); in getInt()
158 final int columnIndex = cursor.getColumnIndex(columnName); in getLong() local
159 return cursor.isNull(columnIndex) ? missingValue : cursor.getLong(columnIndex); in getLong()
/packages/experimental/LoaderApp/src/com/android/loaderapp/util/
DDataStatus.java147 final int columnIndex = cursor.getColumnIndex(columnName); in getInt() local
148 return cursor.isNull(columnIndex) ? missingValue : cursor.getInt(columnIndex); in getInt()
152 final int columnIndex = cursor.getColumnIndex(columnName); in getLong() local
153 return cursor.isNull(columnIndex) ? missingValue : cursor.getLong(columnIndex); in getLong()
/packages/apps/Messaging/src/com/android/messaging/mmslib/pdu/
DPduPersister.java319 final Cursor c, final int columnIndex, in setEncodedStringValueToHeaders() argument
321 final String s = c.getString(columnIndex); in setEncodedStringValueToHeaders()
332 final Cursor c, final int columnIndex, in setTextStringToHeaders() argument
334 final String s = c.getString(columnIndex); in setTextStringToHeaders()
341 final Cursor c, final int columnIndex, in setOctetToHeaders() argument
343 if (!c.isNull(columnIndex)) { in setOctetToHeaders()
344 final int b = c.getInt(columnIndex); in setOctetToHeaders()
350 final Cursor c, final int columnIndex, in setLongToHeaders() argument
352 if (!c.isNull(columnIndex)) { in setLongToHeaders()
353 final long l = c.getLong(columnIndex); in setLongToHeaders()
[all …]
/packages/apps/TV/tests/unit/src/com/android/tv/data/
DProgramDataManagerTest.java415 public String getColumnName(int columnIndex) {
416 return mColumns[columnIndex];
430 public int getInt(int columnIndex) {
432 Log.d(TAG, "Column (" + getColumnName(columnIndex) + ") is ignored in getInt()");
438 public long getLong(int columnIndex) {
439 String columnName = getColumnName(columnIndex);
455 public String getString(int columnIndex) {
456 String columnName = getColumnName(columnIndex);
DChannelDataManagerTest.java538 public String getColumnName(int columnIndex) { in getColumnName() argument
539 return mColumns[columnIndex]; in getColumnName()
553 public long getLong(int columnIndex) { in getLong() argument
554 String columnName = getColumnName(columnIndex); in getLong()
566 public String getString(int columnIndex) { in getString() argument
567 String columnName = getColumnName(columnIndex); in getString()
586 public int getInt(int columnIndex) { in getInt() argument
587 String columnName = getColumnName(columnIndex); in getInt()
/packages/providers/ContactsProvider/src/com/android/providers/contacts/enterprise/
DEnterpriseContactsCursorWrapper.java79 public String getString(int columnIndex) { in getString() argument
80 final String result = super.getString(columnIndex); in getString()
81 final String columnName = super.getColumnName(columnIndex); in getString()
100 String ringtoneUri = super.getString(columnIndex); in getString()
110 final String lookupKey = super.getString(columnIndex); in getString()
/packages/apps/Messaging/src/com/android/messaging/ui/conversationsettings/
DPeopleOptionsItemView.java68 public void bind(final Cursor cursor, final int columnIndex, ParticipantData otherParticipant, in bind() argument
70 Assert.isTrue(columnIndex < PeopleOptionsItemData.SETTINGS_COUNT && columnIndex >= 0); in bind()
71 mData.bind(cursor, otherParticipant, columnIndex); in bind()
/packages/providers/TelephonyProvider/tests/src/com/android/providers/telephony/
DTelephonyBackupAgentTest.java852 public String getColumnName(int columnIndex) { in getColumnName() argument
853 return projection[columnIndex]; in getColumnName()
857 public String getString(int columnIndex) { in getString() argument
858 return rows.get(nextRow).getAsString(projection[columnIndex]); in getString()
862 public int getInt(int columnIndex) { in getInt() argument
863 return rows.get(nextRow).getAsInteger(projection[columnIndex]); in getInt()
867 public long getLong(int columnIndex) { in getLong() argument
868 return rows.get(nextRow).getAsLong(projection[columnIndex]); in getLong()
/packages/apps/TV/src/com/android/tv/dialog/
DRecentlyWatchedDialogFragment.java71 public boolean setViewValue(View view, Cursor cursor, int columnIndex) { in onCreateDialog()
72 String name = cursor.getColumnName(columnIndex); in onCreateDialog()
74 long channelId = cursor.getLong(columnIndex); in onCreateDialog()
90 long time = cursor.getLong(columnIndex); in onCreateDialog()
/packages/apps/TvSettings/Settings/src/com/android/tv/settings/widget/picker/
DPicker.java197 protected void updateSelection(int columnIndex, int selectedIndex) { in updateSelection() argument
198 VerticalGridView columnView = mColumnViews.get(columnIndex); in updateSelection()
201 String text = mColumns.get(columnIndex).getItems()[selectedIndex]; in updateSelection()
202 mResult.set(columnIndex, text); in updateSelection()
/packages/apps/ManagedProvisioning/src/com/android/managedprovisioning/task/
DDownloadPackageTask.java154 int columnIndex = c.getColumnIndex(DownloadManager.COLUMN_STATUS); in createDownloadReceiver() local
155 if (DownloadManager.STATUS_SUCCESSFUL == c.getInt(columnIndex)) { in createDownloadReceiver()
158 } else if (DownloadManager.STATUS_FAILED == c.getInt(columnIndex)){ in createDownloadReceiver()
/packages/apps/Camera2/src/com/android/camera/data/
DDataUtils.java38 int columnIndex = cursor.getColumnIndexOrThrow(MediaStore.Images.Media.DATA); in getPathFromURI() local
42 return cursor.getString(columnIndex); in getPathFromURI()
/packages/services/Telephony/src/com/android/phone/vvm/omtp/sync/
DVoicemailStatusQueryHelper.java85 private boolean isFieldEqualTo(PhoneAccountHandle phoneAccount, int columnIndex, int value) { in isFieldEqualTo() argument
102 return cursor.getInt(columnIndex) == value; in isFieldEqualTo()
/packages/apps/UnifiedEmail/src/com/android/mail/content/
DThreadSafeCursorWrapper.java114 public void copyStringToBuffer(int columnIndex, CharArrayBuffer buffer) { in copyStringToBuffer() argument
117 super.copyStringToBuffer(columnIndex, buffer); in copyStringToBuffer()
/packages/apps/Calendar/tests/src/com/android/calendar/
DDbTestUtils.java119 public String getString(int columnIndex) { in getString() argument
120 return queryResult.get(columnIndex); in getString()
/packages/inputmethods/LatinIME/java/src/com/android/inputmethod/latin/userdictionary/
DUserDictionaryList.java68 final int columnIndex = cursor.getColumnIndex(UserDictionary.Words.LOCALE); in getUserDictionaryLocalesSet() local
70 final String locale = cursor.getString(columnIndex); in getUserDictionaryLocalesSet()

12