Searched refs:table (Results 1 - 25 of 34) sorted by relevance

12

/packages/providers/ContactsProvider/src/com/android/providers/contacts/database/
H A DMoreDatabaseUtils.java27 * Builds a CREATE INDEX ddl statement for a given table and field.
29 * @param table The table name.
33 public static String buildCreateIndexSql(String table, String field) { argument
34 return "CREATE INDEX " + buildIndexName(table, field) + " ON " + table
39 * Builds a DROP INDEX ddl statement for a given table and field.
41 * @param table The table name that was originally used to create the index.
46 public static String buildDropIndexSql(String table, Strin argument
55 buildIndexName(String table, String field) argument
[all...]
H A DContactsTableUtil.java34 * Methods for operating on the contacts table.
44 final String table = Tables.CONTACTS;
46 db.execSQL("CREATE INDEX contacts_has_phone_index ON " + table + " (" +
50 db.execSQL("CREATE INDEX contacts_name_raw_contact_id_index ON " + table + " (" +
54 db.execSQL(MoreDatabaseUtils.buildCreateIndexSql(table,
/packages/providers/ContactsProvider/src/com/android/providers/contacts/
H A DDatabaseModifier.java34 public abstract long insert(String table, String nullColumnHack, ContentValues values); argument
41 * Use this method to update a table which you would otherwise do using the
44 public abstract int update(String table, ContentValues values, argument
47 * Use this method to delete entries from a table which you would otherwise do using the
50 public abstract int delete(String table, String whereClause, String[] whereArgs); argument
H A DProfileDatabaseHelper.java34 // SQLite-standard table and columns for tracking autoincrement sequences.
68 for (String table : Tables.SEQUENCE_TABLES) {
70 values.put(SEQUENCE_NAME, table);
H A DDbModifierWithNotification.java98 public long insert(String table, String nullColumnHack, ContentValues values) { argument
100 long rowId = mDb.insert(table, nullColumnHack, values);
140 public int update(String table, ContentValues values, String whereClause, String[] whereArgs) { argument
143 int count = mDb.update(table, values, whereClause, whereArgs);
154 public int delete(String table, String whereClause, String[] whereArgs) { argument
156 int count = mDb.delete(table, whereClause, whereArgs);
/packages/screensavers/PhotoTable/src/com/android/dreams/phototable/
H A DPhotoTableDream.java22 * Example interactive screen saver: flick photos onto a table.
39 PhotoTable table = (PhotoTable) findViewById(R.id.table);
40 if (table != null) {
41 table.setDream(this);
51 setContentView(R.layout.table);
H A DEdgeSwipeDetector.java34 public EdgeSwipeDetector(Context context, PhotoTable table) { argument
35 mTable = table;
H A DPhotoTable.java454 private static View applyFrame(final PhotoTable table, final BitmapFactory.Options options, argument
456 LayoutInflater inflater = (LayoutInflater) table.getContext()
467 layers[0] = new BitmapDrawable(table.mResources, decodedPhoto);
468 layers[1] = table.mResources.getDrawable(R.drawable.frame);
470 layerList.setLayerInset(0, table.mInset, table.mInset,
471 table.mInset, table.mInset);
477 photo.setOnTouchListener(new PhotoTouchListener(table.getContext(),
478 table));
[all...]
H A DDragGestureDetector.java36 public DragGestureDetector(Context context, PhotoTable table) { argument
39 mTable = table;
H A DKeyboardInterpreter.java33 public KeyboardInterpreter(PhotoTable table) { argument
35 mTable = table;
/packages/providers/TelephonyProvider/src/com/android/providers/telephony/
H A DMmsProvider.java283 String table = TABLE_PDU;
309 table = TABLE_PART;
313 table = TABLE_ADDR;
317 table = TABLE_RATE;
321 table = TABLE_DRM;
333 if (table.equals(TABLE_PDU)) {
367 if ((rowId = db.insert(table, null, finalValues)) <= 0) {
374 } else if (table.equals(TABLE_ADDR)) {
378 if ((rowId = db.insert(table, null, finalValues)) <= 0) {
384 } else if (table
653 deleteDataRows(SQLiteDatabase db, String table, String selection, String[] selectionArgs) argument
[all...]
H A DSmsProvider.java346 String table = TABLE_SMS;
384 table = "raw";
388 table = "sr_pending";
392 table = "attachments";
396 table = "canonical_addresses";
406 if (table.equals(TABLE_SMS)) {
491 rowID = db.insert(table, "body", values);
493 // Don't use a trigger for updating the words table because of a bug
496 if (table == TABLE_SMS) {
497 // Update the words table wit
[all...]
/packages/apps/Gallery2/src/com/android/photos/data/
H A DPhotoProvider.java71 * Internal database table used for account information
94 /** Internal database table used for basic photo information. */
133 /** Internal database table used album information. */
170 /** Internal database table used metadata information. */
295 String table = getTableFromMatch(match, uri);
298 long id = db.insert(table, null, values);
300 // uri already matches the table.
320 String table = getTableFromMatch(match, uri);
321 Cursor c = query(table, projection, selection, selectionArgs, sortOrder, cancellationSignal);
339 String table
455 nestWhere(String matchColumn, String table, String nestedWhere) argument
518 query(String table, String[] columns, String selection, String[] selectionArgs, String orderBy, CancellationSignal cancellationSignal) argument
[all...]
H A DPhotoDatabase.java136 protected static void createTable(SQLiteDatabase db, String table, List<String[]> columns) { argument
138 create.append(table).append('(');
186 protected static void dropTable(SQLiteDatabase db, String table) { argument
189 db.execSQL("drop table if exists " + table);
/packages/apps/QuickSearchBox/src/com/android/quicksearchbox/
H A DLevenshteinSuggestionFormatter.java83 final LevenshteinDistance table = new LevenshteinDistance(source, target);
84 table.calculate();
87 LevenshteinDistance.EditOperation[] ops = table.getTargetOperations();
/packages/apps/Contacts/tests/src/com/android/contacts/tests/allintents/
H A DResultActivity.java178 TableLayout table = (TableLayout)findViewById(R.id.table);
182 table.addView(row);
188 TableLayout table = (TableLayout)findViewById(R.id.table);
194 table.addView(separator);
/packages/providers/DrmProvider/src/com/android/providers/drm/
H A DDrmProvider.java108 * Creates the table that'll hold the download information.
129 * Deletes the table that holds the download information.
273 public String table; field in class:DrmProvider.GetTableAndWhereOutParameter
285 out.table = "audio";
289 out.table = "audio";
294 out.table = "images";
298 out.table = "images";
356 count = db.delete(sGetTableAndWhereParam.table,
382 count = db.update(sGetTableAndWhereParam.table, initialValues,
/packages/apps/Exchange/exchange2/tests/src/com/android/exchange/provider/
H A DMockProvider.java118 String table = uri.getPath().substring(1);
120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table)
127 sURIMatcher.addURI(AUTHORITY, table, TABLE);
128 sURIMatcher.addURI(AUTHORITY, table + "/#", RECORD);
/packages/apps/Exchange/tests/src/com/android/exchange/provider/
H A DMockProvider.java118 String table = uri.getPath().substring(1);
120 Uri newUri = new Uri.Builder().scheme("content").authority(AUTHORITY).path(table)
127 sURIMatcher.addURI(AUTHORITY, table, TABLE);
128 sURIMatcher.addURI(AUTHORITY, table + "/#", RECORD);
/packages/apps/Launcher2/src/com/android/launcher2/
H A DLauncherProvider.java104 return "vnd.android.cursor.dir/" + args.table;
106 return "vnd.android.cursor.item/" + args.table;
116 qb.setTables(args.table);
126 SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) {
130 return db.insert(table, nullColumnHack, values);
136 db.delete(args.table, args.where, args.args);
144 final long rowId = dbInsertAndCheck(mOpenHelper, db, args.table, null, initialValues);
162 if (dbInsertAndCheck(mOpenHelper, db, args.table, null, values[i]) < 0) {
180 int count = db.delete(args.table, args.where, args.args);
191 int count = db.update(args.table, value
125 dbInsertAndCheck(DatabaseHelper helper, SQLiteDatabase db, String table, String nullColumnHack, ContentValues values) argument
1163 public final String table; field in class:LauncherProvider.SqlArguments
[all...]
/packages/providers/MediaProvider/src/com/android/providers/media/
H A DMediaProvider.java244 // entries for that storage from the files table.
787 // create image thumbnail table
926 // Cleans up album_art table entry when an album is deleted
999 // Create bucket_id and bucket_display_name columns for the video table.
1012 // Create bookmark column for the video table.
1031 // Create is_podcast and bookmark columns for the audio table.
1145 // create video thumbnail table
1308 // table, so we need to create that if we're at 100 or lower. This means
1324 // Create a new table to manage all files in our storage.
1387 // Value of _id from the old media table
2048 queryThumbnail(SQLiteQueryBuilder qb, Uri uri, String table, String column, boolean hasThumbnailId) argument
3668 public String table; field in class:MediaProvider.GetTableAndWhereOutParameter
4814 getKeyIdForName(DatabaseHelper helper, SQLiteDatabase db, String table, String keyField, String nameField, String rawName, String cacheName, String path, int albumHash, String artist, HashMap<String, Long> cache, Uri srcuri) argument
[all...]
/packages/apps/Email/src/com/android/email/provider/
H A DEmailProvider.java275 * Note that this isn't relevant for table creation strings, since they are used only once
303 // Email URI matching table
448 * delete from <table> where <column> not in (select <foreignColumn> from <foreignTable>)
450 * @param table the table whose orphans are to be removed
452 * @param foreignColumn the column in the foreign table whose absence will trigger the deletion
453 * @param foreignTable the foreign table
456 void deleteUnlinked(SQLiteDatabase db, String table, String column, String foreignColumn, argument
458 int count = db.delete(table, column + " not in (select " + foreignColumn + " from " +
461 Log.w(TAG, "Found " + count + " orphaned row(s) in " + table);
[all...]
/packages/apps/Gallery2/tests/src/com/android/photos/data/
H A DPhotoDatabaseTest.java217 private void validateTable(String table, String[] projection) { argument
219 Cursor cursor = db.query(table, projection, null, null, null, null, null);
H A DPhotoDatabaseUtils.java82 public static long queryId(SQLiteDatabase db, String table, String[] projection, argument
88 Cursor cursor = db.query(table, projection, selection, selectionArgs, null, null, null);
91 throw new AssertionFailedError("Couldn't find item in table");
/packages/inputmethods/OpenWnn/src/jp/co/omronsoft/openwnn/JAJP/
H A DRomkanFullKatakana.java163 * @param table HashMap for Romaji-to-Kana conversion
166 public static boolean convert(ComposingText text, HashMap<String, String> table) { argument
187 String match = table.get(key.toString().toLowerCase());

Completed in 624 milliseconds

12