| /frameworks/base/packages/DocumentsUI/src/com/android/documentsui/dirlist/ |
| GridDocumentHolder.java | 25 import android.database.Cursor; 112 * @param cursor Pointing to the item to be bound. 116 public void bind(Cursor cursor, String modelId, State state) { 117 assert(cursor != null); 121 final String docAuthority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); 122 final String docId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID); 123 final String docMimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 124 final String docDisplayName = getCursorString(cursor, Document.COLUMN_DISPLAY_NAME); 125 final long docLastModified = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED) [all...] |
| ListDocumentHolder.java | 24 import android.database.Cursor; 107 * @param cursor Pointing to the item to be bound. 112 public void bind(Cursor cursor, String modelId, State state) { 113 assert(cursor != null); 117 final String docAuthority = getCursorString(cursor, RootCursorWrapper.COLUMN_AUTHORITY); 118 final String docId = getCursorString(cursor, Document.COLUMN_DOCUMENT_ID); 119 final String docMimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 120 final String docDisplayName = getCursorString(cursor, Document.COLUMN_DISPLAY_NAME); 121 final long docLastModified = getCursorLong(cursor, Document.COLUMN_LAST_MODIFIED) [all...] |
| ModelBackedDocumentsAdapter.java | 25 import android.database.Cursor; 114 Cursor cursor = mEnv.getModel().getItem(modelId); local 115 holder.bind(cursor, modelId, mEnv.getDisplayState()); 117 final String docMimeType = getCursorString(cursor, Document.COLUMN_MIME_TYPE); 118 final int docFlags = getCursorInt(cursor, Document.COLUMN_FLAGS); 128 mEnv.onBindDocumentHolder(holder, cursor);
|
| /frameworks/base/packages/SettingsProvider/test/src/com/android/providers/settings/ |
| BaseSettingsProviderTest.java | 23 import android.database.Cursor; 160 Cursor cursor = getContext().getContentResolver().query(uri, NAME_VALUE_COLUMNS, local 163 if (cursor == null) { 168 if (cursor.moveToFirst()) { 169 final int valueColumnIdx = cursor.getColumnIndex(Settings.NameValueTable.VALUE); 170 return cursor.getString(valueColumnIdx); 173 cursor.close();
|
| /frameworks/base/packages/SystemUI/src/com/android/systemui/media/ |
| RingtonePlayer.java | 22 import android.database.Cursor; 200 try (Cursor c = resolver.query(uri, new String[] {
|
| /frameworks/base/packages/SystemUI/src/com/android/systemui/statusbar/policy/ |
| UserInfoController.java | 27 import android.database.Cursor; 162 final Cursor cursor = context.getContentResolver().query( 167 if (cursor != null) { 169 if (cursor.moveToFirst()) { 170 name = cursor.getString(cursor.getColumnIndex( 174 cursor.close();
|
| /frameworks/base/packages/WallpaperCropper/src/com/android/gallery3d/common/ |
| Utils.java | 22 import android.database.Cursor; 210 public static void closeSilently(Cursor cursor) { 212 if (cursor != null) cursor.close();
|
| /frameworks/base/tests/LocationTracker/src/com/android/locationtracker/ |
| TrackerActivity.java | 28 import android.database.Cursor; 176 Cursor cursor = trackerData.query(tagFilter); local 183 while ((line = trackerData.getNextOutput(cursor)) != null) { 197 if (cursor != null) { 198 cursor.close();
|
| /frameworks/opt/chips/src/com/android/ex/chips/ |
| BaseRecipientAdapter.java | 26 import android.database.Cursor; 138 /** Used to temporarily hold results in Cursor objects. */ 174 public TemporaryEntry(Cursor cursor, Long directoryId) { 175 this.displayName = cursor.getString(Queries.Query.NAME); 176 this.destination = cursor.getString(Queries.Query.DESTINATION); 177 this.destinationType = cursor.getInt(Queries.Query.DESTINATION_TYPE); 178 this.destinationLabel = cursor.getString(Queries.Query.DESTINATION_LABEL); 179 this.contactId = cursor.getLong(Queries.Query.CONTACT_ID); 181 this.dataId = cursor.getLong(Queries.Query.DATA_ID) 423 Cursor cursor = null; local 953 final Cursor cursor = mContentResolver.query( local [all...] |
| /frameworks/opt/telephony/src/java/com/android/internal/telephony/ |
| InboundSmsTracker.java | 20 import android.database.Cursor; 127 * Create a new tracker from the row of the raw table pointed to by Cursor. 129 * @param cursor a Cursor pointing to the row to construct this SmsTracker for 131 public InboundSmsTracker(Cursor cursor, boolean isCurrentFormat3gpp2) { 132 mPdu = HexDump.hexStringToByteArray(cursor.getString(InboundSmsHandler.PDU_COLUMN)); 134 if (cursor.isNull(InboundSmsHandler.DESTINATION_PORT_COLUMN)) { 139 int destPort = cursor.getInt(InboundSmsHandler.DESTINATION_PORT_COLUMN); 151 mTimestamp = cursor.getLong(InboundSmsHandler.DATE_COLUMN) [all...] |
| SmsBroadcastUndelivered.java | 24 import android.database.Cursor; 148 Cursor cursor = null; local 151 cursor = mResolver.query(InboundSmsHandler.sRawUri, PDU_PENDING_MESSAGE_PROJECTION, 154 if (cursor == null) { 155 Rlog.e(TAG, "error getting pending message cursor"); 160 while (cursor.moveToNext()) { 163 tracker = TelephonyComponentFactory.getInstance().makeInboundSmsTracker(cursor, 213 if (cursor != null) { 214 cursor.close() [all...] |
| /frameworks/opt/telephony/tests/telephonytests/src/com/android/internal/telephony/ |
| SmsNumberUtilsTest.java | 19 import android.database.Cursor; 51 public Cursor query(Uri uri, String[] projection, String selection, String[] selectionArgs,
|
| /packages/apps/Bluetooth/src/com/android/bluetooth/map/ |
| BluetoothMapAccountLoader.java | 37 import android.database.Cursor; 158 Cursor c = null;
|
| /packages/apps/Bluetooth/src/com/android/bluetooth/opp/ |
| BluetoothOppReceiveFileInfo.java | 43 import android.database.Cursor; 96 Cursor metadataCursor = contentResolver.query(contentUri, new String[] {
|
| BluetoothOppTransferHistory.java | 42 import android.database.Cursor; 69 private Cursor mTransferCursor;
|
| /packages/apps/Bluetooth/src/com/android/bluetooth/pbap/ |
| BluetoothPbapCallLogComposer.java | 22 import android.database.Cursor; 80 private Cursor mCursor; 113 Log.e(TAG, "SQLiteException on Cursor#close(): " + e.getMessage()); 248 Log.e(TAG, "SQLiteException on Cursor#close(): " + e.getMessage());
|
| /packages/apps/Bluetooth/tests/src/com/android/bluetooth/tests/pbap/ |
| BluetoothPbapVcardManagerTest.java | 24 import android.database.Cursor; 142 private BluetoothPbapVcardManager createBluetoothPbapVcardManager(Cursor result) {
|
| /packages/apps/Calendar/src/com/android/calendar/ |
| CalendarColorPickerDialog.java | 24 import android.database.Cursor; 81 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 82 // If the query didn't return a cursor for some reason return 83 if (cursor == null) { 87 // If the Activity is finishing, then close the cursor. 88 // Otherwise, use the new cursor in the adapter. 91 cursor.close(); 97 if (!cursor.moveToFirst()) { 98 cursor.close() [all...] |
| CalendarUtils.java | 24 import android.database.Cursor; 94 protected void onQueryComplete(int token, Object cookie, Cursor cursor) { 96 if (cursor == null) { 104 int keyColumn = cursor.getColumnIndexOrThrow(CalendarCache.KEY); 105 int valueColumn = cursor.getColumnIndexOrThrow(CalendarCache.VALUE); 106 while(cursor.moveToNext()) { 107 String key = cursor.getString(keyColumn); 108 String value = cursor.getString(valueColumn); 124 cursor.close() [all...] |
| EventLoader.java | 21 import android.database.Cursor; 94 Cursor cursor = EventDays.query(cr, startDay, numDays, PROJECTION); local 96 int startDayColumnIndex = cursor.getColumnIndexOrThrow(EventDays.STARTDAY); 97 int endDayColumnIndex = cursor.getColumnIndexOrThrow(EventDays.ENDDAY); 100 while (cursor.moveToNext()) { 101 int firstDay = cursor.getInt(startDayColumnIndex); 102 int lastDay = cursor.getInt(endDayColumnIndex); 112 if (cursor != null) { 113 cursor.close() [all...] |
| GoogleCalendarUriIntentFilter.java | 27 import android.database.Cursor; 155 Cursor eventCursor = getContentResolver().query(Events.CONTENT_URI, 169 // Get info from Cursor
|
| /packages/apps/Calendar/src/com/android/calendar/alerts/ |
| AlertAdapter.java | 24 import android.database.Cursor; 50 public void bindView(View view, Context context, Cursor cursor) { 52 int color = Utils.getDisplayColorFromColor(cursor.getInt(AlertActivity.INDEX_COLOR)); 57 String rrule = cursor.getString(AlertActivity.INDEX_RRULE); 66 boolean hasAlarm = cursor.getInt(AlertActivity.INDEX_HAS_ALARM) != 0; 68 AgendaAdapter.updateReminder(view, context, cursor.getLong(AlertActivity.INDEX_BEGIN), 69 cursor.getLong(AlertActivity.INDEX_EVENT_ID)); 73 String eventName = cursor.getString(AlertActivity.INDEX_TITLE); 74 String location = cursor.getString(AlertActivity.INDEX_EVENT_LOCATION) [all...] |
| /packages/apps/Camera2/tests/src/com/android/camera/functional/ |
| VideoCaptureIntentTest.java | 25 import android.database.Cursor; 61 Cursor cursor = null; local 63 cursor = resolver.query(query, projection, null, null, null); 64 if (cursor != null && cursor.moveToFirst()) { 65 new File(cursor.getString(0)).delete(); 68 if (cursor != null) cursor.close();
|
| /packages/apps/Camera2/tests_camera/src/com/android/camera/functional/ |
| VideoCaptureIntentTest.java | 25 import android.database.Cursor; 61 Cursor cursor = null; local 63 cursor = resolver.query(query, projection, null, null, null); 64 if (cursor != null && cursor.moveToFirst()) { 65 new File(cursor.getString(0)).delete(); 68 if (cursor != null) cursor.close();
|
| /packages/apps/Contacts/src/com/android/contacts/activities/ |
| ShowOrCreateActivity.java | 25 import android.database.Cursor; 157 public void onQueryComplete(int token, Object cookie, Cursor cursor) { 158 if (cursor == null) { 169 count = cursor.getCount(); 170 if (count == 1 && cursor.moveToFirst()) { 172 contactId = cursor.getLong(CONTACT_ID_INDEX); 173 lookupKey = cursor.getString(LOOKUP_KEY_INDEX); 176 cursor.close();
|